From: Ben Gras Date: Wed, 28 Jul 2010 16:32:21 +0000 (+0000) Subject: new EPFNOSUPPORT errno X-Git-Tag: v3.1.8~132 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/dnssec-revoke.html?a=commitdiff_plain;h=05bbf81f93e7167d9c77d6983b0a52bbe7f3be65;p=minix.git new EPFNOSUPPORT errno --- diff --git a/include/errno.h b/include/errno.h index 9f2536106..1aef7acab 100644 --- a/include/errno.h +++ b/include/errno.h @@ -110,6 +110,7 @@ extern int errno; /* place where the error numbers go */ #define EOPNOTSUPP (_SIGN 76) /* Operation not supported */ #define ENOTSUP EOPNOTSUPP /* Not supported */ #define ENETDOWN (_SIGN 77) /* network is down */ +#define EPFNOSUPPORT (_SIGN 78) /* Protocol family not supported */ /* The following are not POSIX errors, but they can still happen. * All of these are generated by the kernel and relate to message passing. diff --git a/lib/libc/ansi/errlist.c b/lib/libc/ansi/errlist.c index bbbbadf22..eade94954 100644 --- a/lib/libc/ansi/errlist.c +++ b/lib/libc/ansi/errlist.c @@ -85,6 +85,7 @@ const char *_sys_errlist[] = { "Protocol not available", /* ENOPROTOOPT */ "Operation not supported", /* EOPNOTSUPP */ "Network is down", /* ENETDOWN */ + "Protocol family not supported", /* EPFNOSUPPORT */ }; const int _sys_nerr = sizeof(_sys_errlist) / sizeof(_sys_errlist[0]); diff --git a/man/man2/intro.2 b/man/man2/intro.2 index 50e5eb338..cfca39419 100644 --- a/man/man2/intro.2 +++ b/man/man2/intro.2 @@ -365,6 +365,8 @@ for example, trying to a connection on a datagram socket. .It Er 77 ENETDOWN Em "Network is down" . A socket operation encountered a dead network. +.It Er 77 EPFNOSUPPORT Em "Protocol family not supported" . +A socket operation specified an unsupported protocol family. .El .Sh DEFINITIONS .Bl -tag -width Ds