Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/getopt.c

This commit is contained in:
Roland McGrath 1995-02-18 03:51:45 +00:00
parent 28f540f45b
commit 0ad4617705
6 changed files with 163 additions and 113 deletions

View File

@ -20,7 +20,7 @@ Cambridge, MA 02139, USA. */
#include <mach/mach_interface.h> #include <mach/mach_interface.h>
mach_port_t __mach_task_self_; mach_port_t __mach_task_self_;
vm_size_t __vm_page_size; vm_size_t __vm_page_size = 0; /* Must be data not bss for weak alias. */
weak_alias (__vm_page_size, vm_page_size) weak_alias (__vm_page_size, vm_page_size)
void void

View File

@ -31,17 +31,10 @@ Cambridge, MA 02139, USA. */
#endif #endif
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#if defined (emacs) || defined (CONFIG_BROKETS)
/* We use <config.h> instead of "config.h" so that a compilation
using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
(which it would do because it found this file in $srcdir). */
#include <config.h> #include <config.h>
#else
#include "config.h"
#endif
#endif #endif
#ifndef __STDC__ #if !defined (__STDC__) || !__STDC__
/* This is a separate conditional since some stdc systems /* This is a separate conditional since some stdc systems
reject `defined (const)'. */ reject `defined (const)'. */
#ifndef const #ifndef const
@ -70,6 +63,14 @@ Cambridge, MA 02139, USA. */
#include <stdlib.h> #include <stdlib.h>
#endif /* GNU C library. */ #endif /* GNU C library. */
/* This is for other GNU distributions with internationalized messages.
The GNU C Library itself does not yet support such messages. */
#if HAVE_LIBINTL_H
# include <libintl.h>
#else
# define gettext(msgid) (msgid)
#endif
/* This version of `getopt' appears to the caller like standard Unix `getopt' /* This version of `getopt' appears to the caller like standard Unix `getopt'
but it behaves differently for the user, since it allows the user but it behaves differently for the user, since it allows the user
to intersperse the options with the other arguments. to intersperse the options with the other arguments.
@ -199,7 +200,7 @@ my_index (str, chr)
#ifdef __GNUC__ #ifdef __GNUC__
/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. /* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h.
That was relevant to code that was here before. */ That was relevant to code that was here before. */
#ifndef __STDC__ #if !defined (__STDC__) || !__STDC__
/* gcc with -traditional declares the built-in strlen to return int, /* gcc with -traditional declares the built-in strlen to return int,
and has done so at least since version 2.4.5. -- rms. */ and has done so at least since version 2.4.5. -- rms. */
extern int strlen (const char *); extern int strlen (const char *);
@ -516,7 +517,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
if (ambig && !exact) if (ambig && !exact)
{ {
if (opterr) if (opterr)
fprintf (stderr, "%s: option `%s' is ambiguous\n", fprintf (stderr, gettext ("%s: option `%s' is ambiguous\n"),
argv[0], argv[optind]); argv[0], argv[optind]);
nextchar += strlen (nextchar); nextchar += strlen (nextchar);
optind++; optind++;
@ -536,18 +537,17 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
else else
{ {
if (opterr) if (opterr)
{
if (argv[optind - 1][1] == '-') if (argv[optind - 1][1] == '-')
/* --option */ /* --option */
fprintf (stderr, fprintf (stderr,
"%s: option `--%s' doesn't allow an argument\n", gettext ("%s: option `--%s' doesn't allow an argument\n"),
argv[0], pfound->name); argv[0], pfound->name);
else else
/* +option or -option */ /* +option or -option */
fprintf (stderr, fprintf (stderr,
"%s: option `%c%s' doesn't allow an argument\n", gettext ("%s: option `%c%s' doesn't allow an argument\n"),
argv[0], argv[optind - 1][0], pfound->name); argv[0], argv[optind - 1][0], pfound->name);
}
nextchar += strlen (nextchar); nextchar += strlen (nextchar);
return '?'; return '?';
} }
@ -559,7 +559,8 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
else else
{ {
if (opterr) if (opterr)
fprintf (stderr, "%s: option `%s' requires an argument\n", fprintf (stderr,
gettext ("%s: option `%s' requires an argument\n"),
argv[0], argv[optind - 1]); argv[0], argv[optind - 1]);
nextchar += strlen (nextchar); nextchar += strlen (nextchar);
return optstring[0] == ':' ? ':' : '?'; return optstring[0] == ':' ? ':' : '?';
@ -587,11 +588,11 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
{ {
if (argv[optind][1] == '-') if (argv[optind][1] == '-')
/* --option */ /* --option */
fprintf (stderr, "%s: unrecognized option `--%s'\n", fprintf (stderr, gettext ("%s: unrecognized option `--%s'\n"),
argv[0], nextchar); argv[0], nextchar);
else else
/* +option or -option */ /* +option or -option */
fprintf (stderr, "%s: unrecognized option `%c%s'\n", fprintf (stderr, gettext ("%s: unrecognized option `%c%s'\n"),
argv[0], argv[optind][0], nextchar); argv[0], argv[optind][0], nextchar);
} }
nextchar = (char *) ""; nextchar = (char *) "";
@ -616,9 +617,11 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
{ {
if (posixly_correct) if (posixly_correct)
/* 1003.2 specifies the format of this message. */ /* 1003.2 specifies the format of this message. */
fprintf (stderr, "%s: illegal option -- %c\n", argv[0], c); fprintf (stderr, gettext ("%s: illegal option -- %c\n"),
argv[0], c);
else else
fprintf (stderr, "%s: invalid option -- %c\n", argv[0], c); fprintf (stderr, gettext ("%s: invalid option -- %c\n"),
argv[0], c);
} }
optopt = c; optopt = c;
return '?'; return '?';
@ -652,7 +655,8 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
if (opterr) if (opterr)
{ {
/* 1003.2 specifies the format of this message. */ /* 1003.2 specifies the format of this message. */
fprintf (stderr, "%s: option requires an argument -- %c\n", fprintf (stderr,
gettext ("%s: option requires an argument -- %c\n"),
argv[0], c); argv[0], c);
} }
optopt = c; optopt = c;

View File

@ -1,5 +1,5 @@
/* Declarations for getopt. /* Declarations for getopt.
Copyright (C) 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc. Copyright (C) 1989, 90, 91, 92, 93, 94 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib. the C library, however. The master source lives in /gd/gnu/lib.
@ -80,7 +80,7 @@ extern int optopt;
struct option struct option
{ {
#if __STDC__ #if defined (__STDC__) && __STDC__
const char *name; const char *name;
#else #else
char *name; char *name;
@ -98,15 +98,15 @@ struct option
#define required_argument 1 #define required_argument 1
#define optional_argument 2 #define optional_argument 2
#if __STDC__ #if defined (__STDC__) && __STDC__
#if defined(__GNU_LIBRARY__) #ifdef __GNU_LIBRARY__
/* Many other libraries have conflicting prototypes for getopt, with /* Many other libraries have conflicting prototypes for getopt, with
differences in the consts, in stdlib.h. To avoid compilation differences in the consts, in stdlib.h. To avoid compilation
errors, only prototype getopt for the GNU C library. */ errors, only prototype getopt for the GNU C library. */
extern int getopt (int argc, char *const *argv, const char *shortopts); extern int getopt (int argc, char *const *argv, const char *shortopts);
#else /* not __GNU_LIBRARY__ */ #else /* not __GNU_LIBRARY__ */
extern int getopt (); extern int getopt ();
#endif /* not __GNU_LIBRARY__ */ #endif /* __GNU_LIBRARY__ */
extern int getopt_long (int argc, char *const *argv, const char *shortopts, extern int getopt_long (int argc, char *const *argv, const char *shortopts,
const struct option *longopts, int *longind); const struct option *longopts, int *longind);
extern int getopt_long_only (int argc, char *const *argv, extern int getopt_long_only (int argc, char *const *argv,
@ -124,7 +124,7 @@ extern int getopt_long ();
extern int getopt_long_only (); extern int getopt_long_only ();
extern int _getopt_internal (); extern int _getopt_internal ();
#endif /* not __STDC__ */ #endif /* __STDC__ */
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -1,5 +1,5 @@
/* getopt_long and getopt_long_only entry points for GNU getopt. /* getopt_long and getopt_long_only entry points for GNU getopt.
Copyright (C) 1987, 88, 89, 90, 91, 92, 1993 Copyright (C) 1987, 88, 89, 90, 91, 92, 1993, 1994
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of This file is part of the GNU C Library. Its master source is NOT part of
@ -21,19 +21,12 @@ not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */ Cambridge, MA 02139, USA. */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#if defined (emacs) || defined (CONFIG_BROKETS)
/* We use <config.h> instead of "config.h" so that a compilation
using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
(which it would do because it found this file in $srcdir). */
#include <config.h> #include <config.h>
#else
#include "config.h"
#endif
#endif #endif
#include "getopt.h" #include "getopt.h"
#ifndef __STDC__ #if !defined (__STDC__) || !__STDC__
/* This is a separate conditional since some stdc systems /* This is a separate conditional since some stdc systems
reject `defined (const)'. */ reject `defined (const)'. */
#ifndef const #ifndef const

View File

@ -30,8 +30,8 @@ const char *_sys_errlist[] =
"Not a directory", /* 20 = ENOTDIR */ "Not a directory", /* 20 = ENOTDIR */
"Is a directory", /* 21 = EISDIR */ "Is a directory", /* 21 = EISDIR */
"Invalid argument", /* 22 = EINVAL */ "Invalid argument", /* 22 = EINVAL */
"Too many open files", /* 23 = EMFILE */ "Too many open files in system", /* 23 = ENFILE */
"Too many open files in system", /* 24 = ENFILE */ "Too many open files", /* 24 = EMFILE */
"Inappropriate ioctl for device", /* 25 = ENOTTY */ "Inappropriate ioctl for device", /* 25 = ENOTTY */
"Text file busy", /* 26 = ETXTBSY */ "Text file busy", /* 26 = ETXTBSY */
"File too large", /* 27 = EFBIG */ "File too large", /* 27 = EFBIG */
@ -42,7 +42,7 @@ const char *_sys_errlist[] =
"Broken pipe", /* 32 = EPIPE */ "Broken pipe", /* 32 = EPIPE */
"Numerical argument out of domain", /* 33 = EDOM */ "Numerical argument out of domain", /* 33 = EDOM */
"Numerical result out of range", /* 34 = ERANGE */ "Numerical result out of range", /* 34 = ERANGE */
"Operation would block", /* 35 = EWOULDBLOCK */ "Resource temporarily unavailable", /* 35 = EAGAIN */
"Operation now in progress", /* 36 = EINPROGRESS */ "Operation now in progress", /* 36 = EINPROGRESS */
"Operation already in progress", /* 37 = EALREADY */ "Operation already in progress", /* 37 = EALREADY */
"Socket operation on non-socket", /* 38 = ENOTSOCK */ "Socket operation on non-socket", /* 38 = ENOTSOCK */
@ -66,28 +66,59 @@ const char *_sys_errlist[] =
"Socket is already connected", /* 56 = EISCONN */ "Socket is already connected", /* 56 = EISCONN */
"Socket is not connected", /* 57 = ENOTCONN */ "Socket is not connected", /* 57 = ENOTCONN */
"Can't send after socket shutdown", /* 58 = ESHUTDOWN */ "Can't send after socket shutdown", /* 58 = ESHUTDOWN */
"Connection timed out", /* 59 = ETIMEDOUT */ "Too many references: can't splice",/* 59 = ETOOMANYREFS */
"Connection refused", /* 60 = ECONNREFUSED */ "Connection timed out", /* 60 = ETIMEDOUT */
"Too many levels of symbolic links",/* 61 = ELOOP */ "Connection refused", /* 61 = ECONNREFUSED */
"File name too long", /* 62 = ENAMETOOLONG */ "Too many levels of symbolic links",/* 62 = ELOOP */
"Host is down", /* 63 = EHOSTDOWN */ "File name too long", /* 63 = ENAMETOOLONG */
"No route to host", /* 64 = EHOSTUNREACH */ "Host is down", /* 64 = EHOSTDOWN */
"Directory not empty", /* 65 = ENOTEMPTY */ "No route to host", /* 65 = EHOSTUNREACH */
"Too many users", /* 66 = EUSERS */ "Directory not empty", /* 66 = ENOTEMPTY */
"Disc quota exceeded", /* 67 = EDQUOT */ "Too many processes", /* 67 = EPROCLIM */
"Stale NFS file handle", /* 68 = ESTALE */ "Too many users", /* 68 = EUSERS */
"Too many levels of remote in path",/* 69 = EREMOTE */ "Disc quota exceeded", /* 69 = EDQUOT */
"No locks available", /* 70 = ENOLCK */ "Stale NFS file handle", /* 70 = ESTALE */
"Function not implemented", /* 71 = ENOSYS */ "Too many levels of remote in path",/* 71 = EREMOTE */
"Inappropriate operation for background process",/* 72 = EBACKGROUND */ "RPC struct is bad", /* 72 = EBADRPC */
"?", /* 73 = ED */ "RPC version wrong", /* 73 = ERPCMISMATCH */
"You really blew it this time", /* 74 = EGREGIOUS */ "RPC program not available", /* 74 = EPROGUNAVAIL */
"Computer bought the farm", /* 75 = EIEIO */ "RPC program version wrong", /* 75 = EPROGMISMATCH */
"Gratuitous error", /* 76 = EGRATUITOUS */ "RPC bad procedure for program", /* 76 = EPROCUNAVAIL */
"No locks available", /* 77 = ENOLCK */
"Function not implemented", /* 78 = ENOSYS */
"Inappropriate file type or format",/* 79 = EFTYPE */
"Authentication error", /* 80 = EAUTH */
"Need authenticator", /* 81 = ENEEDAUTH */
"Reserved error 82",
"Reserved error 83",
"Reserved error 84",
"Reserved error 85",
"Reserved error 86",
"Reserved error 87",
"Reserved error 88",
"Reserved error 89",
"Reserved error 90",
"Reserved error 91",
"Reserved error 92",
"Reserved error 93",
"Reserved error 94",
"Reserved error 95",
"Reserved error 96",
"Reserved error 97",
"Reserved error 98",
"Reserved error 99",
"Inappropriate operation for background process",/* 100 = EBACKGROUND */
"Translator died", /* 101 = EDIED */
"?", /* 102 = ED */
"You really blew it this time", /* 103 = EGREGIOUS */
"Computer bought the farm", /* 104 = EIEIO */
"Gratuitous error", /* 105 = EGRATUITOUS */
}; };
#include <errno.h> #include <errno.h>
#if _HURD_ERRNOS != 77 #if _HURD_ERRNOS != 106
#error errlist/errnos generation bug #error errlist/errnos generation bug
#endif #endif
const int _sys_nerr = 77; const int _sys_nerr = 106;
weak_alias (_sys_errlist, sys_errlist)
weak_alias (_sys_nerr, sys_nerr)

View File

@ -1,4 +1,4 @@
/* This file generated by gawk manual/errno.texi ../mach/mach/message.h ../mach/mach/kern_return.h ../mach/mach/mig_errors.h ../mach/device/device_types.h. */ /* This file generated by gawk ../manual/errno.texi ../../mach/mach/message.h ../../mach/mach/kern_return.h ../../mach/mach/mig_errors.h ../../mach/device/device_types.h. */
/* The Hurd uses Mach error system 0x10, currently only subsystem 0. */ /* The Hurd uses Mach error system 0x10, currently only subsystem 0. */
#ifndef _HURD_ERRNO #ifndef _HURD_ERRNO
@ -55,10 +55,10 @@ enum __error_t_codes
#define EISDIR _HURD_ERRNO (21)/* Is a directory */ #define EISDIR _HURD_ERRNO (21)/* Is a directory */
EINVAL = _HURD_ERRNO (22), EINVAL = _HURD_ERRNO (22),
#define EINVAL _HURD_ERRNO (22)/* Invalid argument */ #define EINVAL _HURD_ERRNO (22)/* Invalid argument */
EMFILE = _HURD_ERRNO (23), EMFILE = _HURD_ERRNO (24),
#define EMFILE _HURD_ERRNO (23)/* Too many open files */ #define EMFILE _HURD_ERRNO (24)/* Too many open files */
ENFILE = _HURD_ERRNO (24), ENFILE = _HURD_ERRNO (23),
#define ENFILE _HURD_ERRNO (24)/* Too many open files in system */ #define ENFILE _HURD_ERRNO (23)/* Too many open files in system */
ENOTTY = _HURD_ERRNO (25), ENOTTY = _HURD_ERRNO (25),
#define ENOTTY _HURD_ERRNO (25)/* Inappropriate ioctl for device */ #define ENOTTY _HURD_ERRNO (25)/* Inappropriate ioctl for device */
ETXTBSY = _HURD_ERRNO (26), ETXTBSY = _HURD_ERRNO (26),
@ -88,8 +88,6 @@ enum __error_t_codes
#define EALREADY _HURD_ERRNO (37)/* Operation already in progress */ #define EALREADY _HURD_ERRNO (37)/* Operation already in progress */
ENOTSOCK = _HURD_ERRNO (38), ENOTSOCK = _HURD_ERRNO (38),
#define ENOTSOCK _HURD_ERRNO (38)/* Socket operation on non-socket */ #define ENOTSOCK _HURD_ERRNO (38)/* Socket operation on non-socket */
EDESTADDRREQ = _HURD_ERRNO (39),
#define EDESTADDRREQ _HURD_ERRNO (39)/* Destination address required */
EMSGSIZE = _HURD_ERRNO (40), EMSGSIZE = _HURD_ERRNO (40),
#define EMSGSIZE _HURD_ERRNO (40)/* Message too long */ #define EMSGSIZE _HURD_ERRNO (40)/* Message too long */
EPROTOTYPE = _HURD_ERRNO (41), EPROTOTYPE = _HURD_ERRNO (41),
@ -126,44 +124,68 @@ enum __error_t_codes
#define EISCONN _HURD_ERRNO (56)/* Socket is already connected */ #define EISCONN _HURD_ERRNO (56)/* Socket is already connected */
ENOTCONN = _HURD_ERRNO (57), ENOTCONN = _HURD_ERRNO (57),
#define ENOTCONN _HURD_ERRNO (57)/* Socket is not connected */ #define ENOTCONN _HURD_ERRNO (57)/* Socket is not connected */
EDESTADDRREQ = _HURD_ERRNO (39),
#define EDESTADDRREQ _HURD_ERRNO (39)/* Destination address required */
ESHUTDOWN = _HURD_ERRNO (58), ESHUTDOWN = _HURD_ERRNO (58),
#define ESHUTDOWN _HURD_ERRNO (58)/* Can't send after socket shutdown */ #define ESHUTDOWN _HURD_ERRNO (58)/* Can't send after socket shutdown */
ETIMEDOUT = _HURD_ERRNO (59), ETOOMANYREFS = _HURD_ERRNO (59),
#define ETIMEDOUT _HURD_ERRNO (59)/* Connection timed out */ #define ETOOMANYREFS _HURD_ERRNO (59)/* Too many references: can't splice */
ECONNREFUSED = _HURD_ERRNO (60), ETIMEDOUT = _HURD_ERRNO (60),
#define ECONNREFUSED _HURD_ERRNO (60)/* Connection refused */ #define ETIMEDOUT _HURD_ERRNO (60)/* Connection timed out */
ELOOP = _HURD_ERRNO (61), ECONNREFUSED = _HURD_ERRNO (61),
#define ELOOP _HURD_ERRNO (61)/* Too many levels of symbolic links */ #define ECONNREFUSED _HURD_ERRNO (61)/* Connection refused */
ENAMETOOLONG = _HURD_ERRNO (62), ELOOP = _HURD_ERRNO (62),
#define ENAMETOOLONG _HURD_ERRNO (62)/* File name too long */ #define ELOOP _HURD_ERRNO (62)/* Too many levels of symbolic links */
EHOSTDOWN = _HURD_ERRNO (63), ENAMETOOLONG = _HURD_ERRNO (63),
#define EHOSTDOWN _HURD_ERRNO (63)/* Host is down */ #define ENAMETOOLONG _HURD_ERRNO (63)/* File name too long */
EHOSTUNREACH = _HURD_ERRNO (64), EHOSTDOWN = _HURD_ERRNO (64),
#define EHOSTUNREACH _HURD_ERRNO (64)/* No route to host */ #define EHOSTDOWN _HURD_ERRNO (64)/* Host is down */
ENOTEMPTY = _HURD_ERRNO (65), EHOSTUNREACH = _HURD_ERRNO (65),
#define ENOTEMPTY _HURD_ERRNO (65)/* Directory not empty */ #define EHOSTUNREACH _HURD_ERRNO (65)/* No route to host */
EUSERS = _HURD_ERRNO (66), ENOTEMPTY = _HURD_ERRNO (66),
#define EUSERS _HURD_ERRNO (66)/* Too many users */ #define ENOTEMPTY _HURD_ERRNO (66)/* Directory not empty */
EDQUOT = _HURD_ERRNO (67), EPROCLIM = _HURD_ERRNO (67),
#define EDQUOT _HURD_ERRNO (67)/* Disc quota exceeded */ #define EPROCLIM _HURD_ERRNO (67)/* Too many processes */
ESTALE = _HURD_ERRNO (68), EUSERS = _HURD_ERRNO (68),
#define ESTALE _HURD_ERRNO (68)/* Stale NFS file handle */ #define EUSERS _HURD_ERRNO (68)/* Too many users */
EREMOTE = _HURD_ERRNO (69), EDQUOT = _HURD_ERRNO (69),
#define EREMOTE _HURD_ERRNO (69)/* Too many levels of remote in path */ #define EDQUOT _HURD_ERRNO (69)/* Disc quota exceeded */
ENOLCK = _HURD_ERRNO (70), ESTALE = _HURD_ERRNO (70),
#define ENOLCK _HURD_ERRNO (70)/* No locks available */ #define ESTALE _HURD_ERRNO (70)/* Stale NFS file handle */
ENOSYS = _HURD_ERRNO (71), EREMOTE = _HURD_ERRNO (71),
#define ENOSYS _HURD_ERRNO (71)/* Function not implemented */ #define EREMOTE _HURD_ERRNO (71)/* Too many levels of remote in path */
EBACKGROUND = _HURD_ERRNO (72), EBADRPC = _HURD_ERRNO (72),
#define EBACKGROUND _HURD_ERRNO (72)/* Inappropriate operation for background process */ #define EBADRPC _HURD_ERRNO (72)/* RPC struct is bad */
ED = _HURD_ERRNO (73), ERPCMISMATCH = _HURD_ERRNO (73),
#define ED _HURD_ERRNO (73)/* ? */ #define ERPCMISMATCH _HURD_ERRNO (73)/* RPC version wrong */
EGREGIOUS = _HURD_ERRNO (74), EPROGUNAVAIL = _HURD_ERRNO (74),
#define EGREGIOUS _HURD_ERRNO (74)/* You really blew it this time */ #define EPROGUNAVAIL _HURD_ERRNO (74)/* RPC program not available */
EIEIO = _HURD_ERRNO (75), EPROGMISMATCH = _HURD_ERRNO (75),
#define EIEIO _HURD_ERRNO (75)/* Computer bought the farm */ #define EPROGMISMATCH _HURD_ERRNO (75)/* RPC program version wrong */
EGRATUITOUS = _HURD_ERRNO (76), EPROCUNAVAIL = _HURD_ERRNO (76),
#define EGRATUITOUS _HURD_ERRNO (76)/* Gratuitous error */ #define EPROCUNAVAIL _HURD_ERRNO (76)/* RPC bad procedure for program */
ENOLCK = _HURD_ERRNO (77),
#define ENOLCK _HURD_ERRNO (77)/* No locks available */
EFTYPE = _HURD_ERRNO (79),
#define EFTYPE _HURD_ERRNO (79)/* Inappropriate file type or format */
EAUTH = _HURD_ERRNO (80),
#define EAUTH _HURD_ERRNO (80)/* Authentication error */
ENEEDAUTH = _HURD_ERRNO (81),
#define ENEEDAUTH _HURD_ERRNO (81)/* Need authenticator */
ENOSYS = _HURD_ERRNO (78),
#define ENOSYS _HURD_ERRNO (78)/* Function not implemented */
EBACKGROUND = _HURD_ERRNO (100),
#define EBACKGROUND _HURD_ERRNO (100)/* Inappropriate operation for background process */
EDIED = _HURD_ERRNO (101),
#define EDIED _HURD_ERRNO (101)/* Translator died */
ED = _HURD_ERRNO (102),
#define ED _HURD_ERRNO (102)/* ? */
EGREGIOUS = _HURD_ERRNO (103),
#define EGREGIOUS _HURD_ERRNO (103)/* You really blew it this time */
EIEIO = _HURD_ERRNO (104),
#define EIEIO _HURD_ERRNO (104)/* Computer bought the farm */
EGRATUITOUS = _HURD_ERRNO (105),
#define EGRATUITOUS _HURD_ERRNO (105)/* Gratuitous error */
/* Errors from <mach/message.h>. */ /* Errors from <mach/message.h>. */
EMACH_SEND_IN_PROGRESS = 0x10000001, EMACH_SEND_IN_PROGRESS = 0x10000001,
@ -245,7 +267,7 @@ enum __error_t_codes
}; };
#define _HURD_ERRNOS 77 #define _HURD_ERRNOS 106
/* User-visible type of error codes. It is ok to use `int' or /* User-visible type of error codes. It is ok to use `int' or
`kern_return_t' for these, but with `error_t' the debugger prints `kern_return_t' for these, but with `error_t' the debugger prints