svn commit: trunk/uClibc/extra/scripts

kraj at uclibc.org kraj at uclibc.org
Sat Oct 7 06:40:34 UTC 2006


Author: kraj
Date: 2006-10-06 23:40:33 -0700 (Fri, 06 Oct 2006)
New Revision: 16333

Log:
Sergey Lapin says the undefined syscall numbers from unistd.h do not get propogated into generated sysnum.h.


Modified:
   trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh


Changeset:
Modified: trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh
===================================================================
--- trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh	2006-10-07 06:40:20 UTC (rev 16332)
+++ trunk/uClibc/extra/scripts/gen_bits_syscall_h.sh	2006-10-07 06:40:33 UTC (rev 16333)
@@ -23,8 +23,9 @@
 esac
 
 ( echo "#include \"$UNISTD_H_PATH\"" ;
-  $CC -E $CC_SYSNUM_ARGS $INCLUDE_OPTS $UNISTD_H_PATH | # needed to strip out any kernel-internal defines
-  sed -ne 's/^[ ]*#define[ ]*__NR_\([A-Za-z0-9_]*\).*/UCLIBC_\1 __NR_\1/gp'
+  $CC -E $CC_SYSNUM_ARGS $INCLUDE_OPTS $UNISTD_H_PATH |
+  sed -ne 's/^[ ]*#define[ ]*__NR_\([A-Za-z0-9_]*\).*/UCLIBC_\1 __NR_\1/gp' \
+      -e 's/^[ ]*#undef[ ]*__NR_\([A-Za-z0-9_]*\).*/UNDEFUCLIBC_\1 __NR_\1/gp' # needed to strip out any kernel-internal defines
 ) |
 $CC -E $INCLUDE_OPTS - |
 ( echo "/* WARNING!!! AUTO-GENERATED FILE!!! DO NOT EDIT!!! */" ; echo ;
@@ -36,7 +37,8 @@
   echo "#endif" ; echo ;
   sed -ne 's/^UCLIBC_\([A-Za-z0-9_]*\) *\(.*\)/#undef __NR_\1\
 #define __NR_\1 \2\
-#define SYS_\1 __NR_\1/gp'
+#define SYS_\1 __NR_\1/gp' \
+     -e 's/^UNDEFUCLIBC_\([A-Za-z0-9_]*\).*/#undef __NR_\1/gp'
   echo ;
   echo "#endif" ;
 )




More information about the uClibc-cvs mailing list