]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Back out errlist changes for now too. cvs/fedora-glibc-2_3_3-73
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Oct 2004 11:46:43 +0000 (11:46 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 21 Oct 2004 11:46:43 +0000 (11:46 +0000)
fedora/glibc.spec.in
manual/errno.texi
sysdeps/gnu/Makefile
sysdeps/gnu/errlist-compat.awk
sysdeps/gnu/errlist.awk
sysdeps/gnu/errlist.c
sysdeps/unix/sysv/linux/Versions

index 6b24cdaa551340c5f4fc6e672fbc9f3a948e9614..6e9da80df284aa57d7c781d33f60efaa7e94e940 100644 (file)
@@ -1258,6 +1258,7 @@ rm -f *.filelist*
 %changelog
 * Thu Oct 21 2004 Jakub Jelinek <jakub@redhat.com> 2.3.3-73
 - remove setaltroot and key{_add,_request,ctl} also from Versions
+- back out _sys_errlist changes
 
 * Thu Oct 21 2004 Jakub Jelinek <jakub@redhat.com> 2.3.3-72
 - back out setaltroot and key{_add,_request,ctl} addition
index 7872452df3bce46b7312c42c5b37290e432e36a7..c799d268f89762e440d08e6aee335dd6fd88f3ce 100644 (file)
@@ -1229,30 +1229,6 @@ They are not yet documented.}
 @comment errno ???/???
 @end deftypevr
 
-@comment errno.h
-@comment Linux???: Required key not available
-@deftypevr Macro int ENOKEY
-@comment errno ???/???
-@end deftypevr
-
-@comment errno.h
-@comment Linux???: Key has expired
-@deftypevr Macro int EKEYEXPIRED
-@comment errno ???/???
-@end deftypevr
-
-@comment errno.h
-@comment Linux???: Key has been revoked
-@deftypevr Macro int EKEYREVOKED
-@comment errno ???/???
-@end deftypevr
-
-@comment errno.h
-@comment Linux???: Key was rejected by service
-@deftypevr Macro int EKEYREJECTED
-@comment errno ???/???
-@end deftypevr
-
 @node Error Messages,  , Error Codes, Error Reporting
 @section Error Messages
 
index 0fc33213ae9e782a8fe51ccf0db167a98578d61b..dee0c67bcf3dbbda54f3c8f86b9e77d41f7231eb 100644 (file)
@@ -49,14 +49,10 @@ endif
 # Make it unwritable so noone will edit it by mistake.
        -chmod a-w $@T
        mv -f $@T $@
-$(objpfx)errlist-compat.h: $(objpfx)errlist-compat.c
-       sed -n '1p;/ERR_MAX/p' $< > $@T
-       -chmod a-w $@T
-       mv -f $@T $@
-generated += errlist-compat.c errlist-compat.h
+generated += errlist-compat.c
 
 # This will force the generation above to happy if need be.
-$(foreach o,.d $(object-suffixes),$(objpfx)errlist$o):$(objpfx)errlist-compat.h
+$(foreach o,.d $(object-suffixes),$(objpfx)errlist$o):$(objpfx)errlist-compat.c
 endif
 
 ifeq ($(subdir),login)
index db827f3f7024fe9031c7a55c71aa26e3c4ebfeec..cb5798034d1cd237455144ab825366f174abdd53 100644 (file)
@@ -59,7 +59,7 @@ END {
 
   count = maxerr + 1;
 
-  if (highest < count) {
+  if (highest != count) {
     printf "*** errlist.c count %d vs Versions sys_errlist@%s count %d\n", \
       count, highest_version, highest > "/dev/stderr";
     exit 1;
@@ -79,12 +79,6 @@ END {
   print "/* This file was generated by errlist-compat.awk; DO NOT EDIT!  */\n";
   print "#include <shlib-compat.h>\n";
 
-  if (highest > count) {
-    printf "*** errlist.c count %d inflated to %s count %d (old errno.h?)\n", \
-      count, highest_version, highest > "/dev/stderr";
-    printf "#define ERR_MAX %d\n\n", highest;
-  }
-
   for (old in compat) {
     new = compat[old];
     n = vcount[old];
index 3f074ed482c9c817281e463433aad5b772c6174b..f8f7ba53353dd2c6c9862515aa497f15a29de984 100644 (file)
@@ -47,16 +47,7 @@ BEGIN {
     print "#endif";
     print "";
 
-    print "#if !defined EMIT_ERR_MAX && !defined ERRLIST_NO_COMPAT";
-    print "# include <errlist-compat.h>";
-    print "#endif";
-    print "#ifdef ERR_MAX";
-    print "# define ERRLIST_SIZE ERR_MAX + 1";
-    print "#else"
-    print "# define ERRLIST_SIZE";
-    print "#endif";
-
-    print "const char *const _sys_errlist_internal[ERRLIST_SIZE] =";
+    print "const char *const _sys_errlist_internal[] =";
     print "  {";
     print "    [0] = N_(\"Success\"),"
   }
index 3098fc34c52163d8ca1e4283c7e386bb6a1191f8..8131038047d5fbbb60cf0f66585dc61689b0176e 100644 (file)
@@ -7,15 +7,7 @@
 # define ERR_REMAP(n) n
 #endif
 
-#if !defined EMIT_ERR_MAX && !defined ERRLIST_NO_COMPAT
-# include <errlist-compat.h>
-#endif
-#ifdef ERR_MAX
-# define ERRLIST_SIZE ERR_MAX + 1
-#else
-# define ERRLIST_SIZE
-#endif
-const char *const _sys_errlist_internal[ERRLIST_SIZE] =
+const char *const _sys_errlist_internal[] =
   {
     [0] = N_("Success"),
 #ifdef EPERM
@@ -1407,38 +1399,6 @@ TRANS error; @pxref{Cancel AIO Operations}. */
 # undef ERR_MAX
 # define ERR_MAX EMEDIUMTYPE
 # endif
-#endif
-#ifdef ENOKEY
-/* */
-    [ERR_REMAP (ENOKEY)] = N_("Required key not available"),
-# if ENOKEY > ERR_MAX
-# undef ERR_MAX
-# define ERR_MAX ENOKEY
-# endif
-#endif
-#ifdef EKEYEXPIRED
-/* */
-    [ERR_REMAP (EKEYEXPIRED)] = N_("Key has expired"),
-# if EKEYEXPIRED > ERR_MAX
-# undef ERR_MAX
-# define ERR_MAX EKEYEXPIRED
-# endif
-#endif
-#ifdef EKEYREVOKED
-/* */
-    [ERR_REMAP (EKEYREVOKED)] = N_("Key has been revoked"),
-# if EKEYREVOKED > ERR_MAX
-# undef ERR_MAX
-# define ERR_MAX EKEYREVOKED
-# endif
-#endif
-#ifdef EKEYREJECTED
-/* */
-    [ERR_REMAP (EKEYREJECTED)] = N_("Key was rejected by service"),
-# if EKEYREJECTED > ERR_MAX
-# undef ERR_MAX
-# define ERR_MAX EKEYREJECTED
-# endif
 #endif
   };
 
index aeb4f1768db301845767a6a5ab0e5926a32cd8fe..980724e51911678f31d6c9b87377b702d8fcaf45 100644 (file)
@@ -114,9 +114,6 @@ libc {
   }
   GLIBC_2.3.4 {
     sched_getaffinity; sched_setaffinity;
-
-    #errlist-compat    129
-    _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
   }
   GLIBC_PRIVATE {
     # functions used in other libraries