No human readable message with g_vfs

Bakul Shah bakul at bitblocks.com
Mon Jan 3 19:11:17 UTC 2011


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 */


More information about the freebsd-current mailing list