hurd: Define ELIBEXEC
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 12 Apr 2022 20:16:38 +0000 (22:16 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 12 Apr 2022 20:16:40 +0000 (22:16 +0200)
So we can implement it in the exec server.

manual/errno.texi
sysdeps/mach/hurd/bits/errno.h

index 9879ab4..28dd871 100644 (file)
@@ -749,6 +749,11 @@ particular function will always fail with @code{ENOSYS} unless you
 install a new version of the C library or the operating system.
 @end deftypevr
 
+@deftypevr Macro int ELIBEXEC
+@standards{GNU, errno.h}
+@errno{ELIBEXEC, 83, Cannot exec a shared library directly}
+@end deftypevr
+
 @deftypevr Macro int ENOTSUP
 @standards{POSIX.1, errno.h}
 @errno{ENOTSUP, 118, Not supported}
@@ -1059,11 +1064,6 @@ They are not yet documented.}
 @errno{ELIBMAX, ???/82, Attempting to link in too many shared libraries}
 @end deftypevr
 
-@deftypevr Macro int ELIBEXEC
-@standards{Linux???, errno.h}
-@errno{ELIBEXEC, ???/83, Cannot exec a shared library directly}
-@end deftypevr
-
 @deftypevr Macro int ESTRPIPE
 @standards{Linux???, errno.h}
 @errno{ESTRPIPE, ???/86, Streams pipe error}
index 8f2fbfd..0d935e7 100644 (file)
@@ -115,6 +115,7 @@ enum __error_t_codes
   EAUTH                          = 0x40000050, /* Authentication error */
   ENEEDAUTH                      = 0x40000051, /* Need authenticator */
   ENOSYS                         = 0x4000004e, /* Function not implemented */
+  ELIBEXEC                       = 0x40000053, /* Cannot exec a shared library directly */
   ENOTSUP                        = 0x40000076, /* Not supported */
   EILSEQ                         = 0x4000006a, /* Invalid or incomplete multibyte or wide character */
   EBACKGROUND                    = 0x40000064, /* Inappropriate operation for background process */
@@ -312,6 +313,7 @@ enum __error_t_codes
 #define EAUTH                          0x40000050
 #define ENEEDAUTH                      0x40000051
 #define ENOSYS                         0x4000004e
+#define ELIBEXEC                       0x40000053
 #define ENOTSUP                        0x40000076
 #define EILSEQ                         0x4000006a
 #define EBACKGROUND                    0x40000064