Skip to content

Commit

Permalink
Add 1 Minix and 5 Irix errno
Browse files Browse the repository at this point in the history
  • Loading branch information
mentalisttraceur committed Jun 8, 2023
1 parent 0c9a356 commit 90b4164
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 0 deletions.
36 changes: 36 additions & 0 deletions errnoname.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,18 @@ char const * errnoname(int errno_)
#ifdef EBADFD
[EBADFD] = "EBADFD",
#endif
#ifdef EBADFILT
[EBADFILT] = "EBADFILT",
#endif
#ifdef EBADFSYS
[EBADFSYS] = "EBADFSYS",
#endif
#ifdef EBADHANDLE
[EBADHANDLE] = "EBADHANDLE",
#endif
#ifdef EBADIOCTL
[EBADIOCTL] = "EBADIOCTL",
#endif
#ifdef EBADMACHO
[EBADMACHO] = "EBADMACHO",
#endif
Expand All @@ -141,18 +147,30 @@ char const * errnoname(int errno_)
#ifdef EBADRQC
[EBADRQC] = "EBADRQC",
#endif
#ifdef EBADRSPEC
[EBADRSPEC] = "EBADRSPEC",
#endif
#ifdef EBADSLT
[EBADSLT] = "EBADSLT",
#endif
#ifdef EBADTSPEC
[EBADTSPEC] = "EBADTSPEC",
#endif
#ifdef EBADTYPE
[EBADTYPE] = "EBADTYPE",
#endif
#ifdef EBADVER
[EBADVER] = "EBADVER",
#endif
#ifdef EBDHDL
[EBDHDL] = "EBDHDL",
#endif
#ifdef EBFONT
[EBFONT] = "EBFONT",
#endif
#ifdef EBUFSIZE
[EBUFSIZE] = "EBUFSIZE",
#endif
#ifdef EBUSY
[EBUSY] = "EBUSY",
#endif
Expand Down Expand Up @@ -1512,12 +1530,18 @@ char const * errnoname(int errno_)
#ifdef EBADFD
case EBADFD: return "EBADFD";
#endif
#ifdef EBADFILT
case EBADFILT: return "EBADFILT";
#endif
#ifdef EBADFSYS
case EBADFSYS: return "EBADFSYS";
#endif
#ifdef EBADHANDLE
case EBADHANDLE: return "EBADHANDLE";
#endif
#ifdef EBADIOCTL
case EBADIOCTL: return "EBADIOCTL";
#endif
#ifdef EBADMACHO
case EBADMACHO: return "EBADMACHO";
#endif
Expand All @@ -1542,18 +1566,30 @@ char const * errnoname(int errno_)
#ifdef EBADRQC
case EBADRQC: return "EBADRQC";
#endif
#ifdef EBADRSPEC
case EBADRSPEC: return "EBADRSPEC";
#endif
#ifdef EBADSLT
case EBADSLT: return "EBADSLT";
#endif
#ifdef EBADTSPEC
case EBADTSPEC: return "EBADTSPEC";
#endif
#ifdef EBADTYPE
case EBADTYPE: return "EBADTYPE";
#endif
#ifdef EBADVER
case EBADVER: return "EBADVER";
#endif
#ifdef EBDHDL
case EBDHDL: return "EBDHDL";
#endif
#ifdef EBFONT
case EBFONT: return "EBFONT";
#endif
#ifdef EBUFSIZE
case EBUFSIZE: return "EBUFSIZE";
#endif
#ifdef EBUSY
case EBUSY: return "EBUSY";
#endif
Expand Down
6 changes: 6 additions & 0 deletions for-maintainers/errno-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ EBADEPT
EBADEXEC
EBADF
EBADFD
EBADFILT
EBADFSYS
EBADHANDLE
EBADIOCTL
EBADMACHO
EBADMODE
EBADMSG
Expand All @@ -41,10 +43,14 @@ EBADR
EBADREQUEST
EBADRPC
EBADRQC
EBADRSPEC
EBADSLT
EBADTSPEC
EBADTYPE
EBADVER
EBDHDL
EBFONT
EBUFSIZE
EBUSY
ECALLDENIED
ECANCEL
Expand Down
10 changes: 10 additions & 0 deletions for-maintainers/gather-errno-names.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ minix()
{
github Stichting-MINIX-Research-Foundation/minix/master/sys/sys/errno.h \
| extract_c | grep -v ELAST

# Alleged in https://www.mail-archive.com/bug-gnulib@gnu.org/msg39118.html
printf '%s\n' EBADIOCTL
}

haiku()
Expand Down Expand Up @@ -220,6 +223,13 @@ irix()
printf '%s\n' EFSCORRUPTED
printf '%s\n' ENFSREMOTE
printf '%s\n' EWRONGFS

# Alleged in https://www.mail-archive.com/bug-gnulib@gnu.org/msg39118.html
printf '%s\n' EBADFILT
printf '%s\n' EBADRSPEC
printf '%s\n' EBADTSPEC
printf '%s\n' EBDHDL
printf '%s\n' EBUFSIZE
}

ultrix()
Expand Down
18 changes: 18 additions & 0 deletions variant-for-readable-vendoring/errnoname-array-elements.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,18 @@
#ifdef EBADFD
[EBADFD] = "EBADFD",
#endif
#ifdef EBADFILT
[EBADFILT] = "EBADFILT",
#endif
#ifdef EBADFSYS
[EBADFSYS] = "EBADFSYS",
#endif
#ifdef EBADHANDLE
[EBADHANDLE] = "EBADHANDLE",
#endif
#ifdef EBADIOCTL
[EBADIOCTL] = "EBADIOCTL",
#endif
#ifdef EBADMACHO
[EBADMACHO] = "EBADMACHO",
#endif
Expand All @@ -127,18 +133,30 @@
#ifdef EBADRQC
[EBADRQC] = "EBADRQC",
#endif
#ifdef EBADRSPEC
[EBADRSPEC] = "EBADRSPEC",
#endif
#ifdef EBADSLT
[EBADSLT] = "EBADSLT",
#endif
#ifdef EBADTSPEC
[EBADTSPEC] = "EBADTSPEC",
#endif
#ifdef EBADTYPE
[EBADTYPE] = "EBADTYPE",
#endif
#ifdef EBADVER
[EBADVER] = "EBADVER",
#endif
#ifdef EBDHDL
[EBDHDL] = "EBDHDL",
#endif
#ifdef EBFONT
[EBFONT] = "EBFONT",
#endif
#ifdef EBUFSIZE
[EBUFSIZE] = "EBUFSIZE",
#endif
#ifdef EBUSY
[EBUSY] = "EBUSY",
#endif
Expand Down
18 changes: 18 additions & 0 deletions variant-for-readable-vendoring/errnoname-switch-cases.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,18 @@
#ifdef EBADFD
case EBADFD: return "EBADFD";
#endif
#ifdef EBADFILT
case EBADFILT: return "EBADFILT";
#endif
#ifdef EBADFSYS
case EBADFSYS: return "EBADFSYS";
#endif
#ifdef EBADHANDLE
case EBADHANDLE: return "EBADHANDLE";
#endif
#ifdef EBADIOCTL
case EBADIOCTL: return "EBADIOCTL";
#endif
#ifdef EBADMACHO
case EBADMACHO: return "EBADMACHO";
#endif
Expand All @@ -127,18 +133,30 @@
#ifdef EBADRQC
case EBADRQC: return "EBADRQC";
#endif
#ifdef EBADRSPEC
case EBADRSPEC: return "EBADRSPEC";
#endif
#ifdef EBADSLT
case EBADSLT: return "EBADSLT";
#endif
#ifdef EBADTSPEC
case EBADTSPEC: return "EBADTSPEC";
#endif
#ifdef EBADTYPE
case EBADTYPE: return "EBADTYPE";
#endif
#ifdef EBADVER
case EBADVER: return "EBADVER";
#endif
#ifdef EBDHDL
case EBDHDL: return "EBDHDL";
#endif
#ifdef EBFONT
case EBFONT: return "EBFONT";
#endif
#ifdef EBUFSIZE
case EBUFSIZE: return "EBUFSIZE";
#endif
#ifdef EBUSY
case EBUSY: return "EBUSY";
#endif
Expand Down

0 comments on commit 90b4164

Please sign in to comment.