Skip to content

Commit

Permalink
Add historical EIOCBRETRY errno
Browse files Browse the repository at this point in the history
  • Loading branch information
mentalisttraceur committed Jan 22, 2024
1 parent 20e3333 commit 807a548
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions errnoname.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@ char const * errnoname(int errno_)
#ifdef EIOCBQUEUED
[EIOCBQUEUED] = "EIOCBQUEUED",
#endif
#ifdef EIOCBRETRY
[EIOCBRETRY] = "EIOCBRETRY",
#endif
#ifdef EIORESID
[EIORESID] = "EIORESID",
#endif
Expand Down Expand Up @@ -1955,6 +1958,9 @@ char const * errnoname(int errno_)
#ifdef EIOCBQUEUED
case EIOCBQUEUED: return "EIOCBQUEUED";
#endif
#ifdef EIOCBRETRY
case EIOCBRETRY: return "EIOCBRETRY";
#endif
#ifdef EIORESID
case EIORESID: return "EIORESID";
#endif
Expand Down
1 change: 1 addition & 0 deletions for-maintainers/errno-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ EINVALIDNAME
EINVALIDRXSOCKETCALL
EIO
EIOCBQUEUED
EIOCBRETRY
EIORESID
EIPADDRNOTFOUND
EIPSEC
Expand Down
4 changes: 4 additions & 0 deletions for-maintainers/gather-errno-names.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ linux()
| extract_c &
github torvalds/linux/master/include/uapi/asm-generic/errno.h \
| extract_c

# Retry-based AIO was removed on 2013-05-08 in
# commit 41003a7bcfed1255032e1e7c7b487e505b22e298:
printf '%s\n' EIOCBRETRY
}

darwin() # MacOS, iOS, etc.
Expand Down
3 changes: 3 additions & 0 deletions variant-for-readable-vendoring/errnoname-array-elements.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@
#ifdef EIOCBQUEUED
[EIOCBQUEUED] = "EIOCBQUEUED",
#endif
#ifdef EIOCBRETRY
[EIOCBRETRY] = "EIOCBRETRY",
#endif
#ifdef EIORESID
[EIORESID] = "EIORESID",
#endif
Expand Down
3 changes: 3 additions & 0 deletions variant-for-readable-vendoring/errnoname-switch-cases.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@
#ifdef EIOCBQUEUED
case EIOCBQUEUED: return "EIOCBQUEUED";
#endif
#ifdef EIOCBRETRY
case EIOCBRETRY: return "EIOCBRETRY";
#endif
#ifdef EIORESID
case EIORESID: return "EIORESID";
#endif
Expand Down

0 comments on commit 807a548

Please sign in to comment.