[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r22364 - in /fsf/trunk/libc: ./ elf/ include/ nptl/ ports/ ports/sysdeps/ia64/ ports/sysdeps/m68k/ ports/sysdeps/unix/sysv/l...



Author: eglibc
Date: Tue Feb  5 00:01:48 2013
New Revision: 22364

Log:
Import glibc-mainline for 2013-02-05

Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/NEWS
    fsf/trunk/libc/elf/tst-stackguard1.c
    fsf/trunk/libc/include/errno.h
    fsf/trunk/libc/include/netdb.h
    fsf/trunk/libc/nptl/ChangeLog
    fsf/trunk/libc/nptl/tst-cancel14.c
    fsf/trunk/libc/nptl/tst-cancel15.c
    fsf/trunk/libc/nptl/tst-mutex9.c
    fsf/trunk/libc/nptl/tst-stackguard1.c
    fsf/trunk/libc/ports/ChangeLog.arm
    fsf/trunk/libc/ports/ChangeLog.ia64
    fsf/trunk/libc/ports/ChangeLog.m68k
    fsf/trunk/libc/ports/ChangeLog.mips
    fsf/trunk/libc/ports/sysdeps/ia64/memchr.S
    fsf/trunk/libc/ports/sysdeps/m68k/memchr.S
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/truncate64.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/ia64/umount.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips32/truncate64.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/xstat64.c
    fsf/trunk/libc/sysdeps/generic/bp-checks.h
    fsf/trunk/libc/sysdeps/i386/memchr.S
    fsf/trunk/libc/sysdeps/sparc/fpu/libm-test-ulps
    fsf/trunk/libc/sysdeps/sparc/sparc32/memchr.S
    fsf/trunk/libc/sysdeps/sparc/sparc64/memchr.S
    fsf/trunk/libc/sysdeps/unix/sysv/linux/execve.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/getcwd.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/chown.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fchownat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fxstatat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/lchown.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/lxstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/xstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/lxstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/lxstat64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/s390-32/chown.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/s390-32/lchown.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/chown.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/truncate64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/xmknod.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/xmknodat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/xstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/xstat64.c

Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Tue Feb  5 00:01:48 2013
@@ -1,3 +1,77 @@
+2013-02-04  David S. Miller  <davem@xxxxxxxxxxxxx>
+
+	* sysdeps/sparc/fpu/libm-test-ulps: Update.
+
+2013-02-04  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
+	(__ubp_memchr): Remove prototype.
+	[__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
+	[__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
+	[__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
+	[!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
+	* sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
+	Remove alias.
+	* sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
+	(__ubp_memchr): Likewise.
+	* sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
+	(__ubp_memchr): Likewise.
+	* sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
+	(__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
+	(__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
+	* sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
+	CHECK_STRING.
+	* sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
+	* sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
+	(__getcwd): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/i386/chown.c: Do not include
+	<bp-checks.h>.
+	(__real_chown): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
+	<bp-checks.h>.
+	(fchownat): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
+	CHECK_STRING.
+	* sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
+	<bp-checks.h>.
+	(__lchown): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
+	* sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
+	* sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
+	* sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
+	include <bp-checks.h>.
+	(truncate64): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
+	<bp-checks.h>.
+	(__real_chown): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
+	<bp-checks.h>.
+	(__lchown): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/sh/chown.c: Do not include
+	<bp-checks.h>.
+	(__chown): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/truncate64.c: Do not include
+	<bp-checks.h>.
+	(truncate64): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
+	Likewise.
+	* sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
+	(__xmknod): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/xmknodat.c: Do not include
+	<bp-checks.h>.
+	(__xmknodat): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
+	* sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
+
+2013-02-04  Andreas Schwab  <schwab@xxxxxxx>
+
+	[BZ #14142]
+	* include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
+	* include/netdb.h: Likewise for h_errno.
+	* elf/tst-stackguard1.c: Include <tls.h>.
+
 2013-02-02  Jan Kratochvil  <jan.kratochvil@xxxxxxxxxx>
 
 	* elf/link.h (struct link_map): Extend the l_addr comment.

Modified: fsf/trunk/libc/NEWS
==============================================================================
--- fsf/trunk/libc/NEWS (original)
+++ fsf/trunk/libc/NEWS Tue Feb  5 00:01:48 2013
@@ -9,8 +9,8 @@
 
 * The following bugs are resolved with this release:
 
-  13951, 14200, 14317, 14327, 14496, 14964, 14981, 14982, 14985, 14994,
-  14996, 15003, 15020, 15023, 15036, 15062.
+  13951, 14142, 14200, 14317, 14327, 14496, 14964, 14981, 14982, 14985,
+  14994, 14996, 15003, 15020, 15023, 15036, 15062.
 
 
 Version 2.17

Modified: fsf/trunk/libc/elf/tst-stackguard1.c
==============================================================================
--- fsf/trunk/libc/elf/tst-stackguard1.c (original)
+++ fsf/trunk/libc/elf/tst-stackguard1.c Tue Feb  5 00:01:48 2013
@@ -23,6 +23,7 @@
 #include <string.h>
 #include <sys/wait.h>
 #include <stackguard-macros.h>
+#include <tls.h>
 #include <unistd.h>
 
 static const char *command;

Modified: fsf/trunk/libc/include/errno.h
==============================================================================
--- fsf/trunk/libc/include/errno.h (original)
+++ fsf/trunk/libc/include/errno.h Tue Feb  5 00:01:48 2013
@@ -17,7 +17,7 @@
 #  define errno rtld_errno
 extern int rtld_errno attribute_hidden;
 
-# else
+# elif !defined NOT_IN_libc || defined IN_LIB
 
 #  include <tls.h>
 
@@ -29,7 +29,7 @@
 #  endif
 extern __thread int errno attribute_tls_model_ie;
 
-# endif	/* RTLD_PRIVATE_ERRNO */
+# endif	/* !NOT_IN_libc || IN_LIB */
 
 # define __set_errno(val) (errno = (val))
 

Modified: fsf/trunk/libc/include/netdb.h
==============================================================================
--- fsf/trunk/libc/include/netdb.h (original)
+++ fsf/trunk/libc/include/netdb.h Tue Feb  5 00:01:48 2013
@@ -3,18 +3,20 @@
 
 #ifndef _ISOMAC
 /* Macros for accessing h_errno from inside libc.  */
-# undef  h_errno
-# ifdef _LIBC_REENTRANT
-#  include <tls.h>
-#  ifndef NOT_IN_libc
-#   define h_errno __libc_h_errno
+# if !defined NOT_IN_libc || defined IN_LIB
+#  undef  h_errno
+#  ifdef _LIBC_REENTRANT
+#   include <tls.h>
+#   ifndef NOT_IN_libc
+#    define h_errno __libc_h_errno
+#   else
+#    define h_errno h_errno	/* For #ifndef h_errno tests.  */
+#   endif
+extern __thread int h_errno attribute_tls_model_ie;
 #  else
-#   define h_errno h_errno	/* For #ifndef h_errno tests.  */
-#  endif
-extern __thread int h_errno attribute_tls_model_ie;
-# else
 extern int h_errno;
-# endif	/* _LIBC_REENTRANT */
+#  endif	/* _LIBC_REENTRANT */
+# endif /* !NOT_IN_libc || IN_LIB */
 # define __set_h_errno(x) (h_errno = (x))
 
 libc_hidden_proto (hstrerror)

Modified: fsf/trunk/libc/nptl/ChangeLog
==============================================================================
--- fsf/trunk/libc/nptl/ChangeLog (original)
+++ fsf/trunk/libc/nptl/ChangeLog Tue Feb  5 00:01:48 2013
@@ -1,3 +1,11 @@
+2013-02-04  Andreas Schwab  <schwab@xxxxxxx>
+
+	[BZ #14142]
+	* tst-cancel14.c: Include <sys/time.h>.
+	* tst-cancel15.c: Likewise.
+	* tst-mutex9.c: Include <stdint.h>, <stdlib.h> and <sys/time.h>.
+	* tst-stackguard1.c: Include <tls.h>
+
 2013-01-16  Andreas Schwab  <schwab@xxxxxxx>
 
 	[BZ #14327]

Modified: fsf/trunk/libc/nptl/tst-cancel14.c
==============================================================================
--- fsf/trunk/libc/nptl/tst-cancel14.c (original)
+++ fsf/trunk/libc/nptl/tst-cancel14.c Tue Feb  5 00:01:48 2013
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/time.h>
 
 
 static pthread_barrier_t bar;

Modified: fsf/trunk/libc/nptl/tst-cancel15.c
==============================================================================
--- fsf/trunk/libc/nptl/tst-cancel15.c (original)
+++ fsf/trunk/libc/nptl/tst-cancel15.c Tue Feb  5 00:01:48 2013
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/time.h>
 
 
 static pthread_barrier_t bar;

Modified: fsf/trunk/libc/nptl/tst-mutex9.c
==============================================================================
--- fsf/trunk/libc/nptl/tst-mutex9.c (original)
+++ fsf/trunk/libc/nptl/tst-mutex9.c Tue Feb  5 00:01:48 2013
@@ -18,10 +18,13 @@
 
 #include <errno.h>
 #include <pthread.h>
+#include <stdint.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/mman.h>
+#include <sys/time.h>
 #include <sys/wait.h>
 
 

Modified: fsf/trunk/libc/nptl/tst-stackguard1.c
==============================================================================
--- fsf/trunk/libc/nptl/tst-stackguard1.c (original)
+++ fsf/trunk/libc/nptl/tst-stackguard1.c Tue Feb  5 00:01:48 2013
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <sys/wait.h>
 #include <stackguard-macros.h>
+#include <tls.h>
 #include <unistd.h>
 
 static const char *command;

Modified: fsf/trunk/libc/ports/ChangeLog.arm
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.arm (original)
+++ fsf/trunk/libc/ports/ChangeLog.arm Tue Feb  5 00:01:48 2013
@@ -1,3 +1,10 @@
+2013-02-04  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/unix/sysv/linux/arm/truncate64.c: Do not include
+	<bp-checks.h>.
+	(truncate64): Do not use CHECK_STRING.
+
 2013-01-02  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* All files with FSF copyright notices: Update copyright dates

Modified: fsf/trunk/libc/ports/ChangeLog.ia64
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.ia64 (original)
+++ fsf/trunk/libc/ports/ChangeLog.ia64 Tue Feb  5 00:01:48 2013
@@ -1,3 +1,12 @@
+2013-02-04  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/ia64/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
+	Remove alias.
+	* sysdeps/unix/sysv/linux/ia64/umount.c: Do not include
+	<bp-checks.h>.
+	(umount): Do not use CHECK_STRING.
+
 2013-01-31  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	[BZ #13550]

Modified: fsf/trunk/libc/ports/ChangeLog.m68k
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.m68k (original)
+++ fsf/trunk/libc/ports/ChangeLog.m68k Tue Feb  5 00:01:48 2013
@@ -1,3 +1,9 @@
+2013-02-04  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/m68k/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
+	Remove alias.
+
 2013-01-20  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
 
 	* sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.

Modified: fsf/trunk/libc/ports/ChangeLog.mips
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.mips (original)
+++ fsf/trunk/libc/ports/ChangeLog.mips Tue Feb  5 00:01:48 2013
@@ -1,3 +1,19 @@
+2013-02-04  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Do not include
+	<bp-checks.h>.
+	(truncate64): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
+	<bp-checks.h>.
+	(__fxstatat64): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c: Do not include
+	<bp-checks.h>.
+	(__lxstat64): Do not use CHECK_STRING.
+	* sysdeps/unix/sysv/linux/mips/mips64/xstat64.c: Do not include
+	<bp-checks.h>.
+	(__xstat64): Do not use CHECK_STRING.
+
 2013-01-31  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	[BZ #13550]

Modified: fsf/trunk/libc/ports/sysdeps/ia64/memchr.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/ia64/memchr.S (original)
+++ fsf/trunk/libc/ports/sysdeps/ia64/memchr.S Tue Feb  5 00:01:48 2013
@@ -154,7 +154,4 @@
 END(__memchr)
 
 weak_alias (__memchr, memchr)
-#if !__BOUNDED_POINTERS__
-weak_alias (__memchr, __ubp_memchr)
-#endif
 libc_hidden_builtin_def (memchr)

Modified: fsf/trunk/libc/ports/sysdeps/m68k/memchr.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/m68k/memchr.S (original)
+++ fsf/trunk/libc/ports/sysdeps/m68k/memchr.S Tue Feb  5 00:01:48 2013
@@ -304,7 +304,4 @@
 END(__memchr)
 
 weak_alias (__memchr, memchr)
-#if !__BOUNDED_POINTERS__
-weak_alias (__memchr, __ubp_memchr)
-#endif
 libc_hidden_builtin_def (memchr)

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/truncate64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/truncate64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/truncate64.c Tue Feb  5 00:01:48 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Truncate the file FD refers to to LENGTH bytes.  */
 int
@@ -30,7 +29,7 @@
 {
   unsigned int low = length & 0xffffffff;
   unsigned int high = length >> 32;
-  int result = INLINE_SYSCALL (truncate64, 4, CHECK_STRING (path), 0,
+  int result = INLINE_SYSCALL (truncate64, 4, path, 0,
 			       __LONG_LONG_PAIR (high, low));
   return result;
 }

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/ia64/umount.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/ia64/umount.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/ia64/umount.c Tue Feb  5 00:01:48 2013
@@ -20,11 +20,10 @@
 #include <errno.h>
 
 #include <sysdep.h>
-#include <bp-checks.h>
 
 /* Unmount a filesystem.  */
 int
 umount (const char *special_file)
 {
-  return INLINE_SYSCALL (umount, 2, CHECK_STRING (special_file), 0);
+  return INLINE_SYSCALL (umount, 2, special_file, 0);
 }

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips32/truncate64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips32/truncate64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips32/truncate64.c Tue Feb  5 00:01:48 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Truncate the file FD refers to to LENGTH bytes.  */
 int
@@ -30,7 +29,7 @@
 {
   unsigned int low = length & 0xffffffff;
   unsigned int high = length >> 32;
-  int result = INLINE_SYSCALL (truncate64, 4, CHECK_STRING (path), 0,
+  int result = INLINE_SYSCALL (truncate64, 4, path, 0,
 			       __LONG_LONG_PAIR (high, low));
   return result;
 }

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c Tue Feb  5 00:01:48 2013
@@ -25,7 +25,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -96,11 +95,9 @@
     }
 
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lstat, err, 2, CHECK_STRING (file),
-			       __ptrvalue (&kst));
+    result = INTERNAL_SYSCALL (lstat, err, 2, file, __ptrvalue (&kst));
   else
-    result = INTERNAL_SYSCALL (stat, err, 2, CHECK_STRING (file),
-			       __ptrvalue (&kst));
+    result = INTERNAL_SYSCALL (stat, err, 2, file, __ptrvalue (&kst));
 
   if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
     return __xstat64_conv (vers, &kst, st);

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c Tue Feb  5 00:01:48 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <xstatconv.h>
 
@@ -34,7 +33,7 @@
   int result;
   struct kernel_stat kbuf;
 
-  result = INLINE_SYSCALL (lstat, 2, CHECK_STRING (name), __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (lstat, 2, name, __ptrvalue (&kbuf));
   if (result == 0)
     result = __xstat64_conv (vers, &kbuf, buf);
 

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/xstat64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/xstat64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/xstat64.c Tue Feb  5 00:01:48 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <xstatconv.h>
 
@@ -35,7 +34,7 @@
   int result;
   struct kernel_stat kbuf;
 
-  result = INLINE_SYSCALL (stat, 2, CHECK_STRING (name), __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (stat, 2, name, __ptrvalue (&kbuf));
   if (result == 0)
     result = __xstat64_conv (vers, &kbuf, buf);
 

Modified: fsf/trunk/libc/sysdeps/generic/bp-checks.h
==============================================================================
--- fsf/trunk/libc/sysdeps/generic/bp-checks.h (original)
+++ fsf/trunk/libc/sysdeps/generic/bp-checks.h Tue Feb  5 00:01:48 2013
@@ -41,16 +41,6 @@
     && BOUNDS_VIOLATED),				\
    __ptrvalue (ARG))
 
-extern void *__unbounded __ubp_memchr (const void *__unbounded, int, unsigned);
-
-# define _CHECK_STRING(ARG, COND)				\
-  (((COND)							\
-    && (__ptrvalue (ARG) < __ptrlow (ARG)			\
-	|| !__ubp_memchr (__ptrvalue (ARG), '\0',			\
-		      (__ptrhigh (ARG) - __ptrvalue (ARG))))	\
-    && BOUNDS_VIOLATED),					\
-   __ptrvalue (ARG))
-
 /* Check bounds of a pointer seated to an array of N objects.  */
 # define CHECK_N(ARG, N) _CHECK_N ((ARG), (N), 1)
 /* Same as CHECK_N, but tolerate ARG == NULL.  */
@@ -60,11 +50,6 @@
 # define CHECK_1(ARG) CHECK_N ((ARG), 1)
 /* Same as CHECK_1, but tolerate ARG == NULL.  */
 # define CHECK_1_NULL_OK(ARG) CHECK_N_NULL_OK ((ARG), 1)
-
-/* Check for NUL-terminator within string's bounds.  */
-# define CHECK_STRING(ARG) _CHECK_STRING ((ARG), 1)
-/* Same as CHECK_STRING, but tolerate ARG == NULL.  */
-# define CHECK_STRING_NULL_OK(ARG) _CHECK_STRING ((ARG), __ptrvalue (ARG))
 
 #else /* !__BOUNDED_POINTERS__ */
 
@@ -77,7 +62,6 @@
 # define CHECK_1_NULL_OK(ARG) (ARG)
 # define CHECK_N(ARG, N) (ARG)
 # define CHECK_N_NULL_OK(ARG, N) (ARG)
-# define CHECK_STRING(ARG) (ARG)
 
 #endif /* !__BOUNDED_POINTERS__ */
 

Modified: fsf/trunk/libc/sysdeps/i386/memchr.S
==============================================================================
--- fsf/trunk/libc/sysdeps/i386/memchr.S (original)
+++ fsf/trunk/libc/sysdeps/i386/memchr.S Tue Feb  5 00:01:48 2013
@@ -333,7 +333,4 @@
 END (BP_SYM (__memchr))
 
 weak_alias (BP_SYM (__memchr), BP_SYM (memchr))
-#if !__BOUNDED_POINTERS__
-weak_alias (__memchr, __ubp_memchr)
-#endif
 libc_hidden_builtin_def (memchr)

Modified: fsf/trunk/libc/sysdeps/sparc/fpu/libm-test-ulps
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/fpu/libm-test-ulps (original)
+++ fsf/trunk/libc/sysdeps/sparc/fpu/libm-test-ulps Tue Feb  5 00:01:48 2013
@@ -204,6 +204,38 @@
 Test "Real part of: cacos (-0.5 - 0 i) == 2.094395102393195492308428922186335256131 + +0 i":
 ildouble: 1
 ldouble: 1
+Test "Imaginary part of: cacos (-0x1.fp-1025 + 1.5 i) == 1.570796326794896619231321691639751442099 - 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cacos (-0x1.fp-1025 - 1.5 i) == 1.570796326794896619231321691639751442099 + 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: cacos (-0x1.fp-129 + 1.5 i) == 1.570796326794896619231321691639751442100 - 1.194763217287109304111930828519090523536 i":
+float: 1
+ifloat: 1
+Test "Imaginary part of: cacos (-0x1.fp-129 + 1.5 i) == 1.570796326794896619231321691639751442100 - 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: cacos (-0x1.fp-129 - 1.5 i) == 1.570796326794896619231321691639751442100 + 1.194763217287109304111930828519090523536 i":
+float: 1
+ifloat: 1
+Test "Imaginary part of: cacos (-0x1.fp-129 - 1.5 i) == 1.570796326794896619231321691639751442100 + 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cacos (-0x1.fp-16385 + 1.5 i) == 1.570796326794896619231321691639751442099 - 1.194763217287109304111930828519090523536 i":
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cacos (-0x1.fp-16385 - 1.5 i) == 1.570796326794896619231321691639751442099 + 1.194763217287109304111930828519090523536 i":
+ildouble: 1
+ldouble: 1
 Test "Imaginary part of: cacos (-0x1p500 + 1.0 i) == 3.141592653589793238462643383279502884197 - 3.472667374605326000180332928505464606058e2 i":
 ildouble: 1
 ldouble: 1
@@ -260,6 +292,32 @@
 float: 1
 ifloat: 1
 Test "Imaginary part of: cacos (0.75 + 1.25 i) == 1.11752014915610270578240049553777969 - 1.13239363160530819522266333696834467 i":
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cacos (0x1.fp-1025 + 1.5 i) == 1.570796326794896619231321691639751442099 - 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cacos (0x1.fp-1025 - 1.5 i) == 1.570796326794896619231321691639751442099 + 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cacos (0x1.fp-129 + 1.5 i) == 1.570796326794896619231321691639751442097 - 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cacos (0x1.fp-129 - 1.5 i) == 1.570796326794896619231321691639751442097 + 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cacos (0x1.fp-16385 + 1.5 i) == 1.570796326794896619231321691639751442099 - 1.194763217287109304111930828519090523536 i":
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: cacos (0x1.fp-16385 - 1.5 i) == 1.570796326794896619231321691639751442099 + 1.194763217287109304111930828519090523536 i":
 ildouble: 1
 ldouble: 1
 Test "Imaginary part of: cacos (0x1.fp1023 + 0x1.fp1023 i) == 7.853981633974483096156608458198757210493e-1 - 7.107906849659093345062145442726115449315e2 i":
@@ -481,6 +539,32 @@
 idouble: 1
 ildouble: 1
 ldouble: 1
+Test "Imaginary part of: casin (-0x1.fp-1025 + 1.5 i) == -2.989196569048182929051881765490354365918e-309 + 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (-0x1.fp-1025 - 1.5 i) == -2.989196569048182929051881765490354365918e-309 - 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (-0x1.fp-129 + 1.5 i) == -1.579176199917649005841160751101628985741e-39 + 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (-0x1.fp-129 - 1.5 i) == -1.579176199917649005841160751101628985741e-39 - 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (-0x1.fp-16385 + 1.5 i) == -4.516698239814521372306784062043266700598e-4933 + 1.194763217287109304111930828519090523536 i":
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (-0x1.fp-16385 - 1.5 i) == -4.516698239814521372306784062043266700598e-4933 - 1.194763217287109304111930828519090523536 i":
+ildouble: 1
+ldouble: 1
 Test "Imaginary part of: casin (-0x1p500 + 1.0 i) == -1.570796326794896619231321691639751442099 + 3.472667374605326000180332928505464606058e2 i":
 ildouble: 1
 ldouble: 1
@@ -518,6 +602,32 @@
 idouble: 1
 ifloat: 1
 Test "Imaginary part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i":
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (0x1.fp-1025 + 1.5 i) == 2.989196569048182929051881765490354365918e-309 + 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (0x1.fp-1025 - 1.5 i) == 2.989196569048182929051881765490354365918e-309 - 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (0x1.fp-129 + 1.5 i) == 1.579176199917649005841160751101628985741e-39 + 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (0x1.fp-129 - 1.5 i) == 1.579176199917649005841160751101628985741e-39 - 1.194763217287109304111930828519090523536 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (0x1.fp-16385 + 1.5 i) == 4.516698239814521372306784062043266700598e-4933 + 1.194763217287109304111930828519090523536 i":
+ildouble: 1
+ldouble: 1
+Test "Imaginary part of: casin (0x1.fp-16385 - 1.5 i) == 4.516698239814521372306784062043266700598e-4933 - 1.194763217287109304111930828519090523536 i":
 ildouble: 1
 ldouble: 1
 Test "Imaginary part of: casin (0x1.fp1023 + 0x1.fp1023 i) == 7.853981633974483096156608458198757210493e-1 + 7.107906849659093345062145442726115449315e2 i":
@@ -635,6 +745,19 @@
 ifloat: 1
 ildouble: 2
 ldouble: 2
+Test "Real part of: casinh (-1.5 + 0x1.fp-1025 i) == -1.194763217287109304111930828519090523536 + 2.989196569048182929051881765490354365918e-309 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: casinh (-1.5 + 0x1.fp-129 i) == -1.194763217287109304111930828519090523536 + 1.579176199917649005841160751101628985741e-39 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: casinh (-1.5 + 0x1.fp-16385 i) == -1.194763217287109304111930828519090523536 + 4.516698239814521372306784062043266700598e-4933 i":
+ildouble: 1
+ldouble: 1
 Test "Real part of: casinh (-1.5 - 0 i) == -1.194763217287109304111930828519090523536 - 0 i":
 double: 2
 float: 1
@@ -642,6 +765,19 @@
 ifloat: 1
 ildouble: 2
 ldouble: 2
+Test "Real part of: casinh (-1.5 - 0x1.fp-1025 i) == -1.194763217287109304111930828519090523536 - 2.989196569048182929051881765490354365918e-309 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: casinh (-1.5 - 0x1.fp-129 i) == -1.194763217287109304111930828519090523536 - 1.579176199917649005841160751101628985741e-39 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: casinh (-1.5 - 0x1.fp-16385 i) == -1.194763217287109304111930828519090523536 - 4.516698239814521372306784062043266700598e-4933 i":
+ildouble: 1
+ldouble: 1
 Test "Real part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i":
 double: 5
 float: 1
@@ -730,9 +866,35 @@
 idouble: 1
 ildouble: 1
 ldouble: 1
+Test "Real part of: casinh (1.5 + 0x1.fp-1025 i) == 1.194763217287109304111930828519090523536 + 2.989196569048182929051881765490354365918e-309 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: casinh (1.5 + 0x1.fp-129 i) == 1.194763217287109304111930828519090523536 + 1.579176199917649005841160751101628985741e-39 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: casinh (1.5 + 0x1.fp-16385 i) == 1.194763217287109304111930828519090523536 + 4.516698239814521372306784062043266700598e-4933 i":
+ildouble: 1
+ldouble: 1
 Test "Real part of: casinh (1.5 - 0 i) == 1.194763217287109304111930828519090523536 - 0 i":
 double: 1
 idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: casinh (1.5 - 0x1.fp-1025 i) == 1.194763217287109304111930828519090523536 - 2.989196569048182929051881765490354365918e-309 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: casinh (1.5 - 0x1.fp-129 i) == 1.194763217287109304111930828519090523536 - 1.579176199917649005841160751101628985741e-39 i":
+double: 1
+idouble: 1
+ildouble: 1
+ldouble: 1
+Test "Real part of: casinh (1.5 - 0x1.fp-16385 i) == 1.194763217287109304111930828519090523536 - 4.516698239814521372306784062043266700598e-4933 i":
 ildouble: 1
 ldouble: 1
 

Modified: fsf/trunk/libc/sysdeps/sparc/sparc32/memchr.S
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/sparc32/memchr.S (original)
+++ fsf/trunk/libc/sysdeps/sparc/sparc32/memchr.S Tue Feb  5 00:01:48 2013
@@ -139,7 +139,4 @@
 END(__memchr)
 
 weak_alias (__memchr, memchr)
-#if !__BOUNDED_POINTERS__
-weak_alias (__memchr, __ubp_memchr)
-#endif
 libc_hidden_builtin_def (memchr)

Modified: fsf/trunk/libc/sysdeps/sparc/sparc64/memchr.S
==============================================================================
--- fsf/trunk/libc/sysdeps/sparc/sparc64/memchr.S (original)
+++ fsf/trunk/libc/sysdeps/sparc/sparc64/memchr.S Tue Feb  5 00:01:48 2013
@@ -256,7 +256,4 @@
 END(__memchr)
 
 weak_alias (__memchr, memchr)
-#if !__BOUNDED_POINTERS__
-weak_alias (__memchr, __ubp_memchr)
-#endif
 libc_hidden_builtin_def (memchr)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/execve.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/execve.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/execve.c Tue Feb  5 00:01:48 2013
@@ -21,7 +21,8 @@
 #include <sysdep.h>
 #include <alloca.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
+
+/* Consider moving to syscalls.list.  */
 
 int
 __execve (file, argv, envp)
@@ -29,34 +30,6 @@
      char *const argv[];
      char *const envp[];
 {
-#if __BOUNDED_POINTERS__
-  {
-    char *const *v;
-    int i;
-    char *__unbounded *__unbounded ubp_argv;
-    char *__unbounded *__unbounded ubp_envp;
-    char *__unbounded *__unbounded ubp_v;
-
-    for (v = argv; *v; v++)
-      ;
-    i = v - argv + 1;
-    ubp_argv = (char *__unbounded *__unbounded) alloca (sizeof (*ubp_argv) * i);
-    for (v = argv, ubp_v = ubp_argv; --i; v++, ubp_v++)
-      *ubp_v = CHECK_STRING (*v);
-    *ubp_v = 0;
-
-    for (v = envp; *v; v++)
-      ;
-    i = v - envp + 1;
-    ubp_envp = (char *__unbounded *__unbounded) alloca (sizeof (*ubp_envp) * i);
-    for (v = envp, ubp_v = ubp_envp; --i; v++, ubp_v++)
-      *ubp_v = CHECK_STRING (*v);
-    *ubp_v = 0;
-
-    return INLINE_SYSCALL (execve, 3, CHECK_STRING (file), ubp_argv, ubp_envp);
-  }
-#else
   return INLINE_SYSCALL (execve, 3, file, argv, envp);
-#endif
 }
 weak_alias (__execve, execve)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat.c Tue Feb  5 00:01:48 2013
@@ -109,10 +109,10 @@
   if (vers == _STAT_VER_KERNEL)
     {
       if (flag & AT_SYMLINK_NOFOLLOW)
-	result = INTERNAL_SYSCALL (lstat, err, 2, CHECK_STRING (file),
+	result = INTERNAL_SYSCALL (lstat, err, 2, file,
 				   CHECK_1 ((struct kernel_stat *) st));
       else
-	result = INTERNAL_SYSCALL (stat, err, 2, CHECK_STRING (file),
+	result = INTERNAL_SYSCALL (stat, err, 2, file,
 				   CHECK_1 ((struct kernel_stat *) st));
 
       if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
@@ -126,11 +126,9 @@
     }
 #else
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lstat, err, 2, CHECK_STRING (file),
-			       __ptrvalue (&kst));
+    result = INTERNAL_SYSCALL (lstat, err, 2, file, __ptrvalue (&kst));
   else
-    result = INTERNAL_SYSCALL (stat, err, 2, CHECK_STRING (file),
-			       __ptrvalue (&kst));
+    result = INTERNAL_SYSCALL (stat, err, 2, file, __ptrvalue (&kst));
 
   if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
     return __xstat_conv (vers, &kst, st);

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat64.c Tue Feb  5 00:01:48 2013
@@ -99,11 +99,9 @@
     }
 
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lstat64, err, 2, CHECK_STRING (file),
-			       CHECK_1 (st));
+    result = INTERNAL_SYSCALL (lstat64, err, 2, file, CHECK_1 (st));
   else
-    result = INTERNAL_SYSCALL (stat64, err, 2, CHECK_STRING (file),
-			       CHECK_1 (st));
+    result = INTERNAL_SYSCALL (stat64, err, 2, file, CHECK_1 (st));
   if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
     {
 # if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/getcwd.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/getcwd.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/getcwd.c Tue Feb  5 00:01:48 2013
@@ -26,7 +26,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -78,7 +77,7 @@
 
   int retval;
 
-  retval = INLINE_SYSCALL (getcwd, 2, CHECK_STRING (path), alloc_size);
+  retval = INLINE_SYSCALL (getcwd, 2, path, alloc_size);
   if (retval >= 0)
     {
 #ifndef NO_ALLOCATION

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/chown.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/chown.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/chown.c Tue Feb  5 00:01:48 2013
@@ -21,7 +21,6 @@
 #include <sysdep.h>
 #include <sys/syscall.h>
 #include <shlib-compat.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 
@@ -45,7 +44,7 @@
 int
 __real_chown (const char *file, uid_t owner, gid_t group)
 {
-  return INLINE_SYSCALL (chown32, 3, CHECK_STRING (file), owner, group);
+  return INLINE_SYSCALL (chown32, 3, file, owner, group);
 }
 
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fchownat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fchownat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fchownat.c Tue Feb  5 00:01:48 2013
@@ -24,7 +24,6 @@
 #include <sysdep.h>
 #include <sys/syscall.h>
 #include <shlib-compat.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 #include <kernel-features.h>
@@ -86,11 +85,9 @@
   INTERNAL_SYSCALL_DECL (err);
 
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lchown32, err, 3, CHECK_STRING (file), owner,
-			       group);
+    result = INTERNAL_SYSCALL (lchown32, err, 3, file, owner, group);
   else
-    result = INTERNAL_SYSCALL (chown32, err, 3, CHECK_STRING (file), owner,
-			       group);
+    result = INTERNAL_SYSCALL (chown32, err, 3, file, owner, group);
 
   if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (result, err), 0))
     {

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fxstatat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fxstatat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fxstatat.c Tue Feb  5 00:01:48 2013
@@ -102,20 +102,18 @@
   if (vers == _STAT_VER_KERNEL)
     {
       if (flag & AT_SYMLINK_NOFOLLOW)
-	result = INTERNAL_SYSCALL (lstat, err, 2, CHECK_STRING (file),
+	result = INTERNAL_SYSCALL (lstat, err, 2, file,
 				   CHECK_1 ((struct kernel_stat *) st));
       else
-	result = INTERNAL_SYSCALL (stat, err, 2, CHECK_STRING (file),
+	result = INTERNAL_SYSCALL (stat, err, 2, file,
 				   CHECK_1 ((struct kernel_stat *) st));
       goto out;
     }
 
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lstat64, err, 2, CHECK_STRING (file),
-			       __ptrvalue (&st64));
+    result = INTERNAL_SYSCALL (lstat64, err, 2, file, __ptrvalue (&st64));
   else
-    result = INTERNAL_SYSCALL (stat64, err, 2, CHECK_STRING (file),
-			       __ptrvalue (&st64));
+    result = INTERNAL_SYSCALL (stat64, err, 2, file, __ptrvalue (&st64));
   if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
     return __xstat32_conv (vers, &st64, st);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/lchown.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/lchown.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/lchown.c Tue Feb  5 00:01:48 2013
@@ -20,7 +20,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 
@@ -29,7 +28,7 @@
 int
 __lchown (const char *file, uid_t owner, gid_t group)
 {
-  return INLINE_SYSCALL (lchown32, 3, CHECK_STRING (file), owner, group);
+  return INLINE_SYSCALL (lchown32, 3, file, owner, group);
 }
 
 weak_alias (__lchown, lchown)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/lxstat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/lxstat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/lxstat.c Tue Feb  5 00:01:48 2013
@@ -41,12 +41,12 @@
   int result;
 
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (lstat, 2, CHECK_STRING (name), CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (lstat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
 
   {
     struct stat64 buf64;
 
-    result = INLINE_SYSCALL (lstat64, 2, CHECK_STRING (name), __ptrvalue (&buf64));
+    result = INLINE_SYSCALL (lstat64, 2, name, __ptrvalue (&buf64));
     if (result == 0)
       result = __xstat32_conv (vers, &buf64, buf);
     return result;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/xstat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/xstat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/xstat.c Tue Feb  5 00:01:48 2013
@@ -41,12 +41,12 @@
   int result;
 
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (stat, 2, CHECK_STRING (name), CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (stat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
 
   {
     struct stat64 buf64;
 
-    result = INLINE_SYSCALL (stat64, 2, CHECK_STRING (name), __ptrvalue (&buf64));
+    result = INLINE_SYSCALL (stat64, 2, name, __ptrvalue (&buf64));
     if (result == 0)
       result = __xstat32_conv (vers, &buf64, buf);
     return result;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/lxstat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/lxstat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/lxstat.c Tue Feb  5 00:01:48 2013
@@ -36,7 +36,7 @@
 __lxstat (int vers, const char *name, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (lstat, 2, CHECK_STRING (name),
+    return INLINE_SYSCALL (lstat, 2, name,
 			   CHECK_1 ((struct kernel_stat *) buf));
 
 #ifdef STAT_IS_KERNEL_STAT
@@ -46,7 +46,7 @@
   struct kernel_stat kbuf;
   int result;
 
-  result = INLINE_SYSCALL (lstat, 2, CHECK_STRING (name), __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (lstat, 2, name, __ptrvalue (&kbuf));
   if (result == 0)
     result = __xstat_conv (vers, &kbuf, buf);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/lxstat64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/lxstat64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/lxstat64.c Tue Feb  5 00:01:48 2013
@@ -32,7 +32,7 @@
 ___lxstat64 (int vers, const char *name, struct stat64 *buf)
 {
   int result;
-  result = INLINE_SYSCALL (lstat64, 2, CHECK_STRING (name), CHECK_1 (buf));
+  result = INLINE_SYSCALL (lstat64, 2, name, CHECK_1 (buf));
 #if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
   if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
     buf->st_ino = buf->__st_ino;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c Tue Feb  5 00:01:48 2013
@@ -21,7 +21,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Truncate the file referenced by FD to LENGTH bytes.  */
 int
@@ -30,7 +29,7 @@
      off64_t length;
 {
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-  int result = INLINE_SYSCALL (truncate64, 4, CHECK_STRING (path), 0,
+  int result = INLINE_SYSCALL (truncate64, 4, path, 0,
 			       (long) (length >> 32),
 			       (long) length);
   return result;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/s390-32/chown.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/s390-32/chown.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/s390-32/chown.c Tue Feb  5 00:01:48 2013
@@ -21,7 +21,6 @@
 #include <sysdep.h>
 #include <sys/syscall.h>
 #include <shlib-compat.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 
@@ -42,7 +41,7 @@
 int
 __real_chown (const char *file, uid_t owner, gid_t group)
 {
-  return INLINE_SYSCALL (chown32, 3, CHECK_STRING (file), owner, group);
+  return INLINE_SYSCALL (chown32, 3, file, owner, group);
 }
 
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/s390-32/lchown.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/s390-32/lchown.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/s390-32/lchown.c Tue Feb  5 00:01:48 2013
@@ -20,7 +20,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 
@@ -29,7 +28,7 @@
 int
 __lchown (const char *file, uid_t owner, gid_t group)
 {
-  return INLINE_SYSCALL (lchown32, 3, CHECK_STRING (file), owner, group);
+  return INLINE_SYSCALL (lchown32, 3, file, owner, group);
 }
 
 weak_alias (__lchown, lchown)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/chown.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/chown.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/chown.c Tue Feb  5 00:01:48 2013
@@ -20,7 +20,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 
@@ -29,7 +28,7 @@
 int
 __chown (const char *file, uid_t owner, gid_t group)
 {
-  return INLINE_SYSCALL (chown32, 3, CHECK_STRING (file), owner, group);
+  return INLINE_SYSCALL (chown32, 3, file, owner, group);
 }
 libc_hidden_def (__chown)
 weak_alias (__chown, chown)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/truncate64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/truncate64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/truncate64.c Tue Feb  5 00:01:48 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Truncate the file referenced by FD to LENGTH bytes.  */
 int
@@ -30,7 +29,7 @@
 {
   unsigned int low = length & 0xffffffff;
   unsigned int high = length >> 32;
-  int result = INLINE_SYSCALL (truncate64, 3, CHECK_STRING (path),
+  int result = INLINE_SYSCALL (truncate64, 3, path,
 			       __LONG_LONG_PAIR (high, low));
   return result;
 }

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c Tue Feb  5 00:01:48 2013
@@ -33,7 +33,7 @@
 __lxstat (int vers, const char *name, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
-    return INLINE_SYSCALL (lstat, 2, CHECK_STRING (name), CHECK_1 (buf));
+    return INLINE_SYSCALL (lstat, 2, name, CHECK_1 (buf));
 
   __set_errno (EINVAL);
   return -1;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/xmknod.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/xmknod.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/xmknod.c Tue Feb  5 00:01:48 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Create a device file named PATH, with permission and special bits MODE
    and device number DEV (which can be constructed from major and minor
@@ -47,8 +46,7 @@
       return -1;
     }
 
-  return INLINE_SYSCALL (mknod, 3, CHECK_STRING (path), mode,
-			 (unsigned int) k_dev);
+  return INLINE_SYSCALL (mknod, 3, path, mode, (unsigned int) k_dev);
 }
 
 weak_alias (__xmknod, _xmknod)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/xmknodat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/xmknodat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/xmknodat.c Tue Feb  5 00:01:48 2013
@@ -26,7 +26,6 @@
 #include <sysdep.h>
 #include <kernel-features.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 
 /* Create a device file named PATH relative to FD, with permission and
@@ -92,8 +91,7 @@
       file = buf;
     }
 
-  return INLINE_SYSCALL (mknod, 3, CHECK_STRING (file), mode,
-			 (unsigned int) k_dev);
+  return INLINE_SYSCALL (mknod, 3, file, mode, (unsigned int) k_dev);
 #endif
 }
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/xstat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/xstat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/xstat.c Tue Feb  5 00:01:48 2013
@@ -36,7 +36,7 @@
 __xstat (int vers, const char *name, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (stat, 2, CHECK_STRING (name),
+    return INLINE_SYSCALL (stat, 2, name,
 			   CHECK_1 ((struct kernel_stat *) buf));
 
 #ifdef STAT_IS_KERNEL_STAT
@@ -46,8 +46,7 @@
   struct kernel_stat kbuf;
   int result;
 
-  result = INLINE_SYSCALL (stat, 2, CHECK_STRING (name),
-			   __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (stat, 2, name, __ptrvalue (&kbuf));
   if (result == 0)
     result = __xstat_conv (vers, &kbuf, buf);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/xstat64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/xstat64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/xstat64.c Tue Feb  5 00:01:48 2013
@@ -33,7 +33,7 @@
 ___xstat64 (int vers, const char *name, struct stat64 *buf)
 {
   int result;
-  result = INLINE_SYSCALL (stat64, 2, CHECK_STRING (name), CHECK_1 (buf));
+  result = INLINE_SYSCALL (stat64, 2, name, CHECK_1 (buf));
 #if defined _HAVE_STAT64___ST_INO && __ASSUME_ST_INO_64_BIT == 0
   if (__builtin_expect (!result, 1) && buf->__st_ino != (__ino_t) buf->st_ino)
     buf->st_ino = buf->__st_ino;

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits