Re: No human readable message with g_vfs

From: Bakul Shah <bakul_at_bitblocks.com>
Date: Mon, 03 Jan 2011 11:02:45 -0800
On Mon, 03 Jan 2011 21:20:42 +0300 Anonymous <swell.k_at_gmail.com>  wrote:
> 
> Do you mean perror(1)?
> 
>   $ perror 5
>   Input/output error

I prefer mine:

$ errno () { grep "^#.*\\<$*\\>" /usr/include/sys/errno.h }
$ errno 5
#define EIO             5               /* Input/output error */
$ errno EIO
#define EIO             5               /* Input/output error */
Received on Mon Jan 03 2011 - 18:11:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:10 UTC