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

[Commits] r22392 - in /fsf/trunk/libc: ./ debug/ elf/ manual/examples/ nscd/ ports/ ports/sysdeps/mips/ ports/sysdeps/mips/mips64/ por...



Author: eglibc
Date: Sat Feb  9 00:02:13 2013
New Revision: 22392

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

Removed:
    fsf/trunk/libc/sysdeps/generic/bp-checks.h
Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/Makeconfig
    fsf/trunk/libc/NEWS
    fsf/trunk/libc/debug/segfault.c
    fsf/trunk/libc/elf/cache.c
    fsf/trunk/libc/elf/dl-cache.c
    fsf/trunk/libc/manual/examples/mkfsock.c
    fsf/trunk/libc/nscd/connections.c
    fsf/trunk/libc/ports/ChangeLog.aarch64
    fsf/trunk/libc/ports/ChangeLog.alpha
    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/mips/add_n.S
    fsf/trunk/libc/ports/sysdeps/mips/bsd-_setjmp.S
    fsf/trunk/libc/ports/sysdeps/mips/bsd-setjmp.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/add_n.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/addmul_1.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/bsd-_setjmp.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/bsd-setjmp.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/lshift.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/mul_1.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/rshift.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/setjmp.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/sub_n.S
    fsf/trunk/libc/ports/sysdeps/mips/mips64/submul_1.S
    fsf/trunk/libc/ports/sysdeps/mips/setjmp.S
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/fdatasync.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/gethostname.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/msgctl.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/shmctl.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/dl-cache.h
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pread.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pread64.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pwrite.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pwrite64.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/readelflib.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/ia64/sigaction.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pread.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pread64.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pwrite.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pwrite64.c
    fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/ustat.c
    fsf/trunk/libc/string/strcpy.c
    fsf/trunk/libc/sysdeps/generic/ldconfig.h
    fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstat64.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/getdents.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/brk.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fxstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fxstatat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getgroups.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getresgid.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getresuid.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/lxstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/msgctl.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/setgroups.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/setrlimit.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/shmctl.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/mmap64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/msgctl.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/msgrcv.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/msgsnd.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/pread.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/pread64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/ptrace.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/pwrite.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/pwrite64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/readv.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/gettimeofday.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/semop.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/semtimedop.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pread.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pread64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pwrite.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pwrite64.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/shmctl.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sigtimedwait.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sigwaitinfo.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/sysctl.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/ustat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/wordsize-64/fxstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/wordsize-64/xstat.c
    fsf/trunk/libc/sysdeps/unix/sysv/linux/writev.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 Sat Feb  9 00:02:13 2013
@@ -1,3 +1,213 @@
+2013-02-08  Roland McGrath  <roland@xxxxxxxxxxxxx>
+
+	* manual/examples/mkfsock.c (make_named_socket): Don't add one for
+	the '\0' terminator.
+
+2013-02-08  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* debug/segfault.c: Don't include <bp-checks.h>.
+	* sysdeps/generic/bp-checks.h: Remove file.
+	* sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
+	(__GETDENTS): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
+	* sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
+	(__getgroups): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
+	(setgroups): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
+	* sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
+	(__libc_msgrcv): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
+	(__libc_msgsnd): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
+	<bp-checks.h>.
+	(__libc_pread): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
+	include <bp-checks.h>.
+	(__libc_pread64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
+	include <bp-checks.h>.
+	(__libc_pwrite): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
+	include <bp-checks.h>.
+	(__libc_pwrite64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
+	<bp-checks.h>.
+	(__libc_pread): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
+	include <bp-checks.h>.
+	(__libc_pread64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
+	include <bp-checks.h>.
+	(__libc_pwrite): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
+	include <bp-checks.h>.
+	(__libc_pwrite64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
+	(do_pread): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
+	(do_pread64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
+	(do_pwrite): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
+	(do_pwrite64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
+	(__libc_readv): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
+	(semop): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/semtimedop.c: Don't include
+	<bp-checks.h>.
+	(semtimedop): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
+	(__libc_pread): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
+	<bp-checks.h>.
+	(__libc_pread64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
+	<bp-checks.h>.
+	(__libc_pwrite): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
+	<bp-checks.h>.
+	(__libc_pwrite64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
+	<bp-checks.h>.
+	(__libc_msgrcv): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
+	(__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
+	* sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
+	(__libc_writev): Don't use CHECK_N.
+
+2013-02-08  Roland McGrath  <roland@xxxxxxxxxxxxx>
+
+	* string/strcpy.c: Removed unused variable.
+
+	* Makeconfig (+sysdep-includes): Define with := rather than =.
+	Use an existing include/ subdir of each sysdeps dir before it.
+
+2013-02-08  Carlos O'Donell  <carlos@xxxxxxxxxx>
+
+	* nscd/connection.c (register_traced_file): Comment function.
+	[HAVE_INOTIFY] (union __inev): Define.
+	[HAVE_INOTIFY] (inotify_check_files): New function.
+	[HAVE_INOTIFY] (clear_db_cache): Likewise.
+	[HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
+	clear_db_cache.
+	[HAVE_INOTIFY] (main_loop_epoll): Likewise.
+
+2013-02-08  Carlos O'Donell  <carlos@xxxxxxxxxx>
+
+	* elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
+	loaded if not already and that a failure is permanent.
+
+2013-02-08  Carlos O'Donell  <carlos@xxxxxxxxxx>
+
+	[BZ #15006]
+	* sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
+	* elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
+
+2013-02-08  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
+	(CHECK_1_NULL_OK): Likewise.
+	* sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
+	(__fxstat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/fxstat64.c: Do not include
+	<bp-checks.h>.
+	(___fxstat64): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/fxstatat.c: Do not include
+	<bp-checks.h>.
+	(__fxstatat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
+	<bp-checks.h>.
+	(__fxstatat64): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
+	<bp-checks.h>.
+	(__fxstat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
+	<bp-checks.h>.
+	(__fxstatat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
+	<bp-checks.h>.
+	(__getresgid): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
+	<bp-checks.h>.
+	(__getresuid): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
+	<bp-checks.h>.
+	(__lxstat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
+	<bp-checks.h>.
+	(__old_msgctl): Do not use CHECK_1.
+	(__new_msgctl): Likewise.
+	* sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
+	<bp-checks.h>.
+	(__new_setrlimit): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
+	<bp-checks.h>.
+	(__old_shmctl): Do not use CHECK_1.
+	(__new_shmctl): Likewise.
+	* sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
+	<bp-checks.h>.
+	(__xstat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
+	(__lxstat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/lxstat64.c: Do not include
+	<bp-checks.h>.
+	(___lxstat64): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
+	(__old_msgctl): Do not use CHECK_1.
+	(__new_msgctl): Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
+	<bp-checks.h>.
+	(__gettimeofday): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
+	(ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
+	* sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
+	<bp-checks.h>.
+	(__gettimeofday): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
+	(__old_shmctl): Do not use CHECK_1_NULL_OK.
+	(__new_shmctl): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
+	<bp-checks.h>.
+	(do_sigtimedwait): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
+	<bp-checks.h>.
+	(do_sigwaitinfo): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
+	<bp-checks.h>.
+	(msgctl): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
+	<bp-checks.h>.
+	(shmctl): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
+	(ustat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
+	<bp-checks.h>.
+	(__fxstat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
+	<bp-checks.h>.
+	(__fxstatat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
+	<bp-checks.h>.
+	(__lxstat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
+	<bp-checks.h>.
+	(__xstat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
+	(__xstat): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
+	(___xstat64): Do not use CHECK_1.
+
+	[BZ #13550]
+	* sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
+	definitions.
+	(CHECK_BOUNDS_HIGH): Likewise.
+	* string/strcpy.c: Do not include <bp-checks.h>.
+	(strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
+
 2013-02-07  Roland McGrath  <roland@xxxxxxxxxxxxx>
 
 	* nscd/nscd-client.h (__nscd_drop_map_ref):

Modified: fsf/trunk/libc/Makeconfig
==============================================================================
--- fsf/trunk/libc/Makeconfig (original)
+++ fsf/trunk/libc/Makeconfig Sat Feb  9 00:02:13 2013
@@ -765,11 +765,18 @@
 # Don't duplicate options if we inherited variables from the parent.
 +cflags	:= $(sort $(+cflags))
 
+# Each sysdeps directory can contain header files that both will be
+# used to compile and will be installed.  Each can also contain an
+# include/ subdirectory, whose header files will be used to compile
+# but will not be installed, and will take precedence over the
+# installed files.  This mirrors the top-level include/ subdirectory.
++sysdep-includes := $(foreach dir,$(+sysdep_dirs),\
+			      $(addprefix -I,$(wildcard $(dir)/include) $(dir)))
+
 # These are flags given to the C compiler to tell it to look for
 # include files (including ones given in angle brackets) in the parent
 # library source directory, in the include directory, and in the
 # current directory.
-+sysdep-includes = $(addprefix -I,$(+sysdep_dirs))
 +includes = -I$(..)include $(if $(subdir),$(objpfx:%/=-I%)) \
 	    $(+sysdep-includes) $(includes) \
 	    $(patsubst %/,-I%,$(..)) $(libio-include) -I. $(sysincludes)

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

Modified: fsf/trunk/libc/debug/segfault.c
==============================================================================
--- fsf/trunk/libc/debug/segfault.c (original)
+++ fsf/trunk/libc/debug/segfault.c Sat Feb  9 00:02:13 2013
@@ -31,8 +31,6 @@
 #include <_itoa.h>
 #include <ldsodefs.h>
 
-#include <bp-checks.h>
-
 /* This file defines macros to access the content of the sigcontext element
    passed up by the signal handler.  */
 #include <sigcontextinfo.h>

Modified: fsf/trunk/libc/elf/cache.c
==============================================================================
--- fsf/trunk/libc/elf/cache.c (original)
+++ fsf/trunk/libc/elf/cache.c Sat Feb  9 00:02:13 2013
@@ -99,6 +99,10 @@
       break;
     case FLAG_AARCH64_LIB64:
       fputs (",AArch64", stdout);
+      break;
+    /* Uses the ARM soft-float ABI.  */
+    case FLAG_ARM_LIBSF:
+      fputs (",soft-float", stdout);
       break;
     case 0:
       break;

Modified: fsf/trunk/libc/elf/dl-cache.c
==============================================================================
--- fsf/trunk/libc/elf/dl-cache.c (original)
+++ fsf/trunk/libc/elf/dl-cache.c Sat Feb  9 00:02:13 2013
@@ -172,8 +172,9 @@
 }
 
 
-/* Look up NAME in ld.so.cache and return the file name stored there,
-   or null if none is found.  */
+/* Look up NAME in ld.so.cache and return the file name stored there, or null
+   if none is found.  The cache is loaded if it was not already.  If loading
+   the cache previously failed there will be no more attempts to load it.  */
 
 const char *
 internal_function

Modified: fsf/trunk/libc/manual/examples/mkfsock.c
==============================================================================
--- fsf/trunk/libc/manual/examples/mkfsock.c (original)
+++ fsf/trunk/libc/manual/examples/mkfsock.c Sat Feb  9 00:02:13 2013
@@ -45,13 +45,12 @@
 
   /* The size of the address is
      the offset of the start of the filename,
-     plus its length,
-     plus one for the terminating null byte.
+     plus its length (not including the terminating null byte).
      Alternatively you can just do:
      size = SUN_LEN (&name);
   */
   size = (offsetof (struct sockaddr_un, sun_path)
-	  + strlen (name.sun_path) + 1);
+	  + strlen (name.sun_path));
 
   if (bind (sock, (struct sockaddr *) &name, size) < 0)
     {

Modified: fsf/trunk/libc/nscd/connections.c
==============================================================================
--- fsf/trunk/libc/nscd/connections.c (original)
+++ fsf/trunk/libc/nscd/connections.c Sat Feb  9 00:02:13 2013
@@ -976,9 +976,25 @@
 }
 
 
+/* Register the file in FINFO as a traced file for the database DBS[DBIX].
+
+   We support registering multiple files per database. Each call to
+   register_traced_file adds to the list of registered files.
+
+   When we prune the database, either through timeout or a request to
+   invalidate, we will check to see if any of the registered files has changed.
+   When we accept new connections to handle a cache request we will also
+   check to see if any of the registered files has changed.
+
+   If we have inotify support then we install an inotify fd to notify us of
+   file deletion or modification, both of which will require we invalidate
+   the cache for the database.  Without inotify support we stat the file and
+   store st_mtime to determine if the file has been modified.  */
 void
 register_traced_file (size_t dbidx, struct traced_file *finfo)
 {
+  /* If the database is disabled or file checking is disabled
+     then ignore the registration.  */
   if (! dbs[dbidx].enabled || ! dbs[dbidx].check_file)
     return;
 
@@ -1870,6 +1886,63 @@
 /* Array for times a connection was accepted.  */
 static time_t *starttime;
 
+#ifdef HAVE_INOTIFY
+/* Inotify event for changed file.  */
+union __inev
+{
+  struct inotify_event i;
+# ifndef PATH_MAX
+#  define PATH_MAX 1024
+# endif
+  char buf[sizeof (struct inotify_event) + PATH_MAX];
+};
+
+/* Process the inotify event in INEV. If the event matches any of the files
+   registered with a database then mark that database as requiring its cache
+   to be cleared. We indicate the cache needs clearing by setting
+   TO_CLEAR[DBCNT] to true for the matching database.  */
+static inline void
+inotify_check_files (bool *to_clear, union __inev *inev)
+{
+  /* Check which of the files changed.  */
+  for (size_t dbcnt = 0; dbcnt < lastdb; ++dbcnt)
+    {
+      struct traced_file *finfo = dbs[dbcnt].traced_files;
+
+      while (finfo != NULL)
+	{
+	  /* Inotify event watch descriptor matches.  */
+	  if (finfo->inotify_descr == inev->i.wd)
+	    {
+	      /* Mark cache as needing to be cleared and reinitialize.  */
+	      to_clear[dbcnt] = true;
+	      if (finfo->call_res_init)
+	        res_init ();
+	      return;
+	    }
+
+	  finfo = finfo->next;
+        }
+    }
+}
+
+/* If an entry in the array of booleans TO_CLEAR is TRUE then clear the cache
+   for the associated database, otherwise do nothing. The TO_CLEAR array must
+   have LASTDB entries.  */
+static inline void
+clear_db_cache (bool *to_clear)
+{
+  for (size_t dbcnt = 0; dbcnt < lastdb; ++dbcnt)
+    if (to_clear[dbcnt])
+      {
+	pthread_mutex_lock (&dbs[dbcnt].prune_lock);
+	dbs[dbcnt].clear_cache = 1;
+	pthread_mutex_unlock (&dbs[dbcnt].prune_lock);
+	pthread_cond_signal (&dbs[dbcnt].prune_cond);
+      }
+}
+
+#endif
 
 static void
 __attribute__ ((__noreturn__))
@@ -1976,15 +2049,10 @@
 	      if (conns[1].revents != 0)
 		{
 		  bool to_clear[lastdb] = { false, };
-		  union
-		  {
-# ifndef PATH_MAX
-#  define PATH_MAX 1024
-# endif
-		    struct inotify_event i;
-		    char buf[sizeof (struct inotify_event) + PATH_MAX];
-		  } inev;
-
+		  union __inev inev;
+
+		  /* Read all inotify events for files registered via
+		     register_traced_file().  */
 		  while (1)
 		    {
 		      ssize_t nb = TEMP_FAILURE_RETRY (read (inotify_fd, &inev,
@@ -2010,35 +2078,11 @@
 			}
 
 		      /* Check which of the files changed.  */
-		      for (size_t dbcnt = 0; dbcnt < lastdb; ++dbcnt)
-			{
-			  struct traced_file *finfo = dbs[dbcnt].traced_files;
-
-			  while (finfo != NULL)
-			    {
-			      if (finfo->inotify_descr == inev.i.wd)
-				{
-				  to_clear[dbcnt] = true;
-				  if (finfo->call_res_init)
-				    res_init ();
-				  goto next;
-				}
-
-			      finfo = finfo->next;
-			    }
-			}
-		    next:;
+		      inotify_check_files (to_clear, &inev);
 		    }
 
 		  /* Actually perform the cache clearing.  */
-		  for (size_t dbcnt = 0; dbcnt < lastdb; ++dbcnt)
-		    if (to_clear[dbcnt])
-		      {
-			pthread_mutex_lock (&dbs[dbcnt].prune_lock);
-			dbs[dbcnt].clear_cache = 1;
-			pthread_mutex_unlock (&dbs[dbcnt].prune_lock);
-			pthread_cond_signal (&dbs[dbcnt].prune_cond);
-		      }
+		  clear_db_cache (to_clear);
 
 		  --n;
 		}
@@ -2208,12 +2252,10 @@
 	else if (revs[cnt].data.fd == inotify_fd)
 	  {
 	    bool to_clear[lastdb] = { false, };
-	    union
-	    {
-	      struct inotify_event i;
-	      char buf[sizeof (struct inotify_event) + PATH_MAX];
-	    } inev;
-
+	    union __inev inev;
+
+	    /* Read all inotify events for files registered via
+	       register_traced_file().  */
 	    while (1)
 	      {
 		ssize_t nb = TEMP_FAILURE_RETRY (read (inotify_fd, &inev,
@@ -2235,35 +2277,11 @@
 		  }
 
 		/* Check which of the files changed.  */
-		for (size_t dbcnt = 0; dbcnt < lastdb; ++dbcnt)
-		  {
-		    struct traced_file *finfo = dbs[dbcnt].traced_files;
-
-		    while (finfo != NULL)
-		      {
-			if (finfo->inotify_descr == inev.i.wd)
-			  {
-			    to_clear[dbcnt] = true;
-			    if (finfo->call_res_init)
-			      res_init ();
-			    goto next;
-			  }
-
-			finfo = finfo->next;
-		      }
-		  }
-	      next:;
+		inotify_check_files(to_clear, &inev);
 	      }
 
 	    /* Actually perform the cache clearing.  */
-	    for (size_t dbcnt = 0; dbcnt < lastdb; ++dbcnt)
-	      if (to_clear[dbcnt])
-		{
-		  pthread_mutex_lock (&dbs[dbcnt].prune_lock);
-		  dbs[dbcnt].clear_cache = 1;
-		  pthread_mutex_unlock (&dbs[dbcnt].prune_lock);
-		  pthread_cond_signal (&dbs[dbcnt].prune_cond);
-		}
+	    clear_db_cache (to_clear);
 	  }
 # endif
 # ifdef HAVE_NETLINK

Modified: fsf/trunk/libc/ports/ChangeLog.aarch64
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.aarch64 (original)
+++ fsf/trunk/libc/ports/ChangeLog.aarch64 Sat Feb  9 00:02:13 2013
@@ -1,3 +1,10 @@
+2013-02-08  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Do not include
+	<bp-checks.h>.
+	(__gettimeofday): Do not use CHECK_1.
+
 2013-01-23  Marcus Shawcroft  <marcus.shawcroft@xxxxxxxxxx>
 
         * sysdeps/aarch64/strncmp.S: New file.

Modified: fsf/trunk/libc/ports/ChangeLog.alpha
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.alpha (original)
+++ fsf/trunk/libc/ports/ChangeLog.alpha Sat Feb  9 00:02:13 2013
@@ -1,3 +1,19 @@
+2013-02-08  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/unix/sysv/linux/alpha/fdatasync.c: Don't include
+	<bp-checks.h>.
+	* sysdeps/unix/sysv/linux/alpha/gethostname.c: Likewise.
+	(__gethostname): Don't use CHECK_N.
+
+	[BZ #13550]
+	* sysdeps/unix/sysv/linux/alpha/msgctl.c: Do not include
+	<bp-checks.h>.
+	(__new_msgctl): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/alpha/shmctl.c: Do not include
+	<bp-checks.h>.
+	(__new_shmctl): Do not use CHECK_1.
+
 2013-01-31  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	[BZ #13550]

Modified: fsf/trunk/libc/ports/ChangeLog.arm
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.arm (original)
+++ fsf/trunk/libc/ports/ChangeLog.arm Sat Feb  9 00:02:13 2013
@@ -1,3 +1,28 @@
+2013-02-08  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/unix/sysv/linux/arm/pread.c: Don't include
+	<bp-checks.h>.
+	(__libc_pread): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/arm/pread64.c: Don't include
+	<bp-checks.h>.
+	(__libc_pread64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/arm/pwrite.c: Don't include
+	<bp-checks.h>.
+	(__libc_pwrite): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/arm/pwrite64.c: Don't include
+	<bp-checks.h>.
+	(__libc_pwrite64): Don't use CHECK_N.
+
+2013-02-08  Carlos O'Donell  <carlos@xxxxxxxxxx>
+
+	[BZ #15006]
+	* sysdeps/unix/sysv/linux/arm/dl-cache.h
+	[__ARM_PCS_VFP] (_dl_cache_check_flags): Allow plain FLAG_ELF_LIBC6.
+	[!__ARM_PCS_VFP] (_dl_cache_check_flags): Likewise.
+	* sysdeps/unix/sysv/linux/arm/readelflib.c (process_elf_file):
+	Set FLAG_ARM_LIBSF for soft-float ABI otherwise just FLAG_ELF_LIBC6.
+
 2013-02-04  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	[BZ #13550]

Modified: fsf/trunk/libc/ports/ChangeLog.ia64
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.ia64 (original)
+++ fsf/trunk/libc/ports/ChangeLog.ia64 Sat Feb  9 00:02:13 2013
@@ -1,3 +1,10 @@
+2013-02-08  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/unix/sysv/linux/ia64/sigaction.c: Do not include
+	<bp-checks.h>.
+	(__libc_sigaction): Do not use CHECK_1_NULL_OK.
+
 2013-02-04  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 Sat Feb  9 00:02:13 2013
@@ -1,3 +1,12 @@
+2013-02-08  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/m68k/kernel-features.h
+	(__ASSUME_O_CLOEXEC): Define for 2.6.23 or later.
+	(__ASSUME_SOCK_CLOEXEC, __ASSUME_IN_NONBLOCK, __ASSUME_PIPE2)
+	(__ASSUME_EVENTFD2, __ASSUME_SIGNALFD4, __ASSUME_DUP3): Define for
+	2.6.27 or later.
+	(__ASSUME_ACCEPT4): Define for 2.6.28 or later.
+
 2013-02-04  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	[BZ #13550]

Modified: fsf/trunk/libc/ports/ChangeLog.mips
==============================================================================
--- fsf/trunk/libc/ports/ChangeLog.mips (original)
+++ fsf/trunk/libc/ports/ChangeLog.mips Sat Feb  9 00:02:13 2013
@@ -1,3 +1,46 @@
+2013-02-08  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	[BZ #13550]
+	* sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c: Don't include
+	<bp-checks.h>.
+	* sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
+	(__libc_pread): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/mips/pread64.c: Don't include
+	<bp-checks.h>.
+	(__libc_pread64): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/mips/pwrite.c: Don't include
+	<bp-checks.h>.
+	(__libc_pwrite): Don't use CHECK_N.
+	* sysdeps/unix/sysv/linux/mips/pwrite64.c: Don't include
+	<bp-checks.h>.
+	(__libc_pwrite64): Don't use CHECK_N.
+
+	* sysdeps/mips/add_n.S (__mpn_add_n): Use END.
+	* sysdeps/mips/bsd-_setjmp.S (_setjmp): Likewise.
+	* sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
+	* sysdeps/mips/mips64/add_n.S (__mpn_add_n): Use ENTRY and END.
+	* sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Likewise.
+	* sysdeps/mips/mips64/bsd-_setjmp.S (_setjmp): Use END.
+	* sysdeps/mips/mips64/bsd-setjmp.S (setjmp): Likewise.
+	* sysdeps/mips/mips64/lshift.S (__mpn_lshift): Use ENTRY and END.
+	* sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Likewise.
+	* sysdeps/mips/mips64/rshift.S (__mpn_rshift): Likewise.
+	* sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Use END.
+	* sysdeps/mips/mips64/sub_n.S (__mpn_sub_n): Use ENTRY and END.
+	* sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Likewise.
+	* sysdeps/mips/setjmp.S (__sigsetjmp): Use END.
+
+	[BZ #13550]
+	* sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Do not include
+	<bp-checks.h>.
+	(__msgctl): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Do not include
+	<bp-checks.h>.
+	(__shmctl): Do not use CHECK_1.
+	* sysdeps/unix/sysv/linux/mips/ustat.c: Do not include
+	<bp-checks.h>.
+	(ustat): Do not use CHECK_1.
+
 2013-02-05  Maciej W. Rozycki  <macro@xxxxxxxxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Add a missing

Modified: fsf/trunk/libc/ports/sysdeps/mips/add_n.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/add_n.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/add_n.S Sat Feb  9 00:02:13 2013
@@ -118,4 +118,4 @@
 	sw	$11,0($4)
 	j	$31
 	or	$2,$2,$8
-	.end __mpn_add_n
+END (__mpn_add_n)

Modified: fsf/trunk/libc/ports/sysdeps/mips/bsd-_setjmp.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/bsd-_setjmp.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/bsd-_setjmp.S Sat Feb  9 00:02:13 2013
@@ -38,5 +38,5 @@
 #else
 	j	C_SYMBOL_NAME (__sigsetjmp)
 #endif
-	.end	_setjmp
+END (_setjmp)
 libc_hidden_def (_setjmp)

Modified: fsf/trunk/libc/ports/sysdeps/mips/bsd-setjmp.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/bsd-setjmp.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/bsd-setjmp.S Sat Feb  9 00:02:13 2013
@@ -38,4 +38,4 @@
 #else
 	j	C_SYMBOL_NAME (__sigsetjmp)
 #endif
-	.end	setjmp
+END (setjmp)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/add_n.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/add_n.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/add_n.S Sat Feb  9 00:02:13 2013
@@ -33,11 +33,7 @@
 #ifdef __PIC__
 	.option pic2
 #endif
-	.text
-	.align	2
-	.globl	__mpn_add_n
-	.ent	__mpn_add_n
-__mpn_add_n:
+ENTRY (__mpn_add_n)
 #ifdef __PIC__
 	SETUP_GP /* ??? unused */
 #endif
@@ -126,4 +122,4 @@
 	j	$31
 	or	$2,$2,$8
 
-	.end	__mpn_add_n
+END (__mpn_add_n)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/addmul_1.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/addmul_1.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/addmul_1.S Sat Feb  9 00:02:13 2013
@@ -32,11 +32,7 @@
 #ifdef PIC
 	.option pic2
 #endif
-	.text
-	.align	4
-	.globl	__mpn_addmul_1
-	.ent	__mpn_addmul_1
-__mpn_addmul_1:
+ENTRY (__mpn_addmul_1)
 #ifdef PIC
 	SETUP_GP /* ??? unused */
 #endif
@@ -102,4 +98,4 @@
 	j	$31
 	daddu	$2,$9,$2	# add high product limb and carry from addition
 
-	.end	__mpn_addmul_1
+END (__mpn_addmul_1)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/bsd-_setjmp.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/bsd-_setjmp.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/bsd-_setjmp.S Sat Feb  9 00:02:13 2013
@@ -43,5 +43,5 @@
 #else
 	j	C_SYMBOL_NAME (__sigsetjmp)
 #endif
-	.end	_setjmp
+END (_setjmp)
 libc_hidden_def (_setjmp)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/bsd-setjmp.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/bsd-setjmp.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/bsd-setjmp.S Sat Feb  9 00:02:13 2013
@@ -43,4 +43,4 @@
 #else
 	j	C_SYMBOL_NAME (__sigsetjmp)
 #endif
-	.end	setjmp
+END (setjmp)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/lshift.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/lshift.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/lshift.S Sat Feb  9 00:02:13 2013
@@ -32,11 +32,7 @@
 #ifdef __PIC__
 	.option pic2
 #endif
-	.text
-	.align	2
-	.globl	__mpn_lshift
-	.ent	__mpn_lshift
-__mpn_lshift:
+ENTRY (__mpn_lshift)
 #ifdef __PIC__
 	SETUP_GP /* ??? unused */
 #endif
@@ -101,4 +97,4 @@
 L(Lend):	dsll	$8,$10,$7
 	j	$31
 	sd	$8,-8($4)
-	.end	__mpn_lshift
+END (__mpn_lshift)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/mul_1.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/mul_1.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/mul_1.S Sat Feb  9 00:02:13 2013
@@ -33,11 +33,7 @@
 #ifdef __PIC__
 	.option pic2
 #endif
-	.text
-	.align	4
-	.globl	__mpn_mul_1
-	.ent	__mpn_mul_1
-__mpn_mul_1:
+ENTRY (__mpn_mul_1)
 #ifdef __PIC__
 	SETUP_GP /* ??? unused */
 #endif
@@ -91,4 +87,4 @@
 	j	$31
 	daddu	$2,$9,$2	# add high product limb and carry from addition
 
-	.end	__mpn_mul_1
+END (__mpn_mul_1)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/rshift.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/rshift.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/rshift.S Sat Feb  9 00:02:13 2013
@@ -32,11 +32,7 @@
 #ifdef __PIC__
 	.option pic2
 #endif
-	.text
-	.align	2
-	.globl	__mpn_rshift
-	.ent	__mpn_rshift
-__mpn_rshift:
+ENTRY (__mpn_rshift)
 #ifdef __PIC__
 	SETUP_GP /* ??? unused */
 #endif
@@ -98,4 +94,4 @@
 L(Lend):	dsrl	$8,$10,$7
 	j	$31
 	sd	$8,0($4)
-	.end	__mpn_rshift
+END (__mpn_rshift)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/setjmp.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/setjmp.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/setjmp.S Sat Feb  9 00:02:13 2013
@@ -41,4 +41,4 @@
 	move a4, gp
 #endif
 	jr t9
-	.end __sigsetjmp
+END (__sigsetjmp)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/sub_n.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/sub_n.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/sub_n.S Sat Feb  9 00:02:13 2013
@@ -33,11 +33,7 @@
 #ifdef __PIC__
 	.option pic2
 #endif
-	.text
-	.align	2
-	.globl	__mpn_sub_n
-	.ent	__mpn_sub_n
-__mpn_sub_n:
+ENTRY (__mpn_sub_n)
 #ifdef __PIC__
 	SETUP_GP /* ??? unused */
 #endif
@@ -126,4 +122,4 @@
 	j	$31
 	or	$2,$2,$8
 
-	.end	__mpn_sub_n
+END (__mpn_sub_n)

Modified: fsf/trunk/libc/ports/sysdeps/mips/mips64/submul_1.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/mips64/submul_1.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/mips64/submul_1.S Sat Feb  9 00:02:13 2013
@@ -33,11 +33,7 @@
 #ifdef __PIC__
 	.option pic2
 #endif
-	.text
-	.align	4
-	.globl	__mpn_submul_1
-	.ent	__mpn_submul_1
-__mpn_submul_1:
+ENTRY (__mpn_submul_1)
 #ifdef __PIC__
 	SETUP_GP /* ??? unused */
 #endif
@@ -103,4 +99,4 @@
 	j	$31
 	daddu	$2,$9,$2	# add high product limb and carry from addition
 
-	.end	__mpn_submul_1
+END (__mpn_submul_1)

Modified: fsf/trunk/libc/ports/sysdeps/mips/setjmp.S
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/mips/setjmp.S (original)
+++ fsf/trunk/libc/ports/sysdeps/mips/setjmp.S Sat Feb  9 00:02:13 2013
@@ -41,4 +41,4 @@
 #else
 	j	__sigsetjmp_aux
 #endif
-	.end __sigsetjmp
+END (__sigsetjmp)

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/aarch64/gettimeofday.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 #undef __gettimeofday
 
 #include <bits/libc-vdso.h>
-#include <bp-checks.h>
 
 /* Get the current time of day and timezone information,
    putting it into *tv and *tz.  If tz is null, *tz is not filled.
@@ -32,7 +31,7 @@
      struct timeval *tv;
      struct timezone *tz;
 {
-  return INLINE_VSYSCALL (gettimeofday, 2, CHECK_1 (tv), CHECK_1 (tz));
+  return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
 }
 libc_hidden_def (__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/fdatasync.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/fdatasync.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/fdatasync.c Sat Feb  9 00:02:13 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/gethostname.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/gethostname.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/gethostname.c Sat Feb  9 00:02:13 2013
@@ -22,14 +22,13 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 int
 __gethostname (char *name, size_t len)
 {
   int result;
 
-  result = INLINE_SYSCALL (gethostname, 2, CHECK_N (name, len), len);
+  result = INLINE_SYSCALL (gethostname, 2, name, len);
 
   if (result == 0
       /* See whether the string is terminated.  If not we will return

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/msgctl.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/msgctl.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/msgctl.c Sat Feb  9 00:02:13 2013
@@ -21,13 +21,12 @@
 #include <ipc_priv.h>
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 
 int
 __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
 {
-  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, CHECK_1 (buf));
+  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, buf);
 }
 
 #include <shlib-compat.h>

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/shmctl.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/shmctl.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/alpha/shmctl.c Sat Feb  9 00:02:13 2013
@@ -22,13 +22,12 @@
 #include <sysdep.h>
 #include <sys/syscall.h>
 #include <bits/wordsize.h>
-#include <bp-checks.h>
 
 
 int
 __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
 {
-  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, CHECK_1 (buf));
+  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, buf);
 }
 
 #include <shlib-compat.h>

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/dl-cache.h
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/dl-cache.h (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/dl-cache.h Sat Feb  9 00:02:13 2013
@@ -18,12 +18,17 @@
 
 #include <ldconfig.h>
 
+/* In order to support the transition from unmarked objects
+   to marked objects we must treat unmarked objects as
+   compatible with either FLAG_ARM_LIBHF or FLAG_ARM_LIBSF.  */
 #ifdef __ARM_PCS_VFP
 # define _dl_cache_check_flags(flags) \
-  ((flags) == (FLAG_ARM_LIBHF | FLAG_ELF_LIBC6))
+  ((flags) == (FLAG_ARM_LIBHF | FLAG_ELF_LIBC6) \
+   || (flags) == FLAG_ELF_LIBC6)
 #else
 # define _dl_cache_check_flags(flags) \
-  ((flags) == FLAG_ELF_LIBC6)
+  ((flags) == (FLAG_ARM_LIBSF | FLAG_ELF_LIBC6) \
+   || (flags) == FLAG_ELF_LIBC6)
 #endif
 
 #include_next <dl-cache.h>

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pread.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pread.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pread.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 ssize_t
 __libc_pread (fd, buf, count, offset)
@@ -37,7 +36,7 @@
     {
       /* In the ARM EABI, 64-bit values are aligned to even/odd register
 	 pairs for syscalls.  */
-      result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
 			       __LONG_LONG_PAIR (offset >> 31, offset));
 
       return result;
@@ -47,7 +46,7 @@
 
   /* In the ARM EABI, 64-bit values are aligned to even/odd register
      pairs for syscalls.  */
-  result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
 			   __LONG_LONG_PAIR (offset >> 31, offset));
 
   LIBC_CANCEL_RESET (oldtype);

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pread64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pread64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pread64.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 ssize_t
 __libc_pread64 (fd, buf, count, offset)
@@ -37,7 +36,7 @@
     {
       /* In the ARM EABI, 64-bit values are aligned to even/odd register
 	 pairs for syscalls.  */
-      result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
 			       __LONG_LONG_PAIR ((off_t) (offset >> 32),
 						 (off_t) (offset & 0xffffffff)));
 
@@ -48,7 +47,7 @@
 
   /* In the ARM EABI, 64-bit values are aligned to even/odd register
      pairs for syscalls.  */
-  result = INLINE_SYSCALL (pread64, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread64, 6, fd, buf, count, 0,
 			   __LONG_LONG_PAIR ((off_t) (offset >> 32),
 					     (off_t) (offset & 0xffffffff)));
 

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pwrite.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pwrite.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pwrite.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 ssize_t
 __libc_pwrite (fd, buf, count, offset)
@@ -37,7 +36,7 @@
     {
       /* In the ARM EABI, 64-bit values are aligned to even/odd register
 	 pairs for syscalls.  */
-      result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
 			       __LONG_LONG_PAIR (offset >> 31, offset));
 
       return result;
@@ -47,7 +46,7 @@
 
   /* In the ARM EABI, 64-bit values are aligned to even/odd register
      pairs for syscalls.  */
-  result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
 			   __LONG_LONG_PAIR (offset >> 31, offset));
 
   LIBC_CANCEL_RESET (oldtype);

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pwrite64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pwrite64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/pwrite64.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 ssize_t
 __libc_pwrite64 (fd, buf, count, offset)
@@ -37,7 +36,7 @@
     {
       /* In the ARM EABI, 64-bit values are aligned to even/odd register
 	 pairs for syscalls.  */
-      result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
 			       __LONG_LONG_PAIR ((off_t) (offset >> 32),
 						 (off_t) (offset & 0xffffffff)));
 
@@ -48,7 +47,7 @@
 
   /* In the ARM EABI, 64-bit values are aligned to even/odd register
      pairs for syscalls.  */
-  result = INLINE_SYSCALL (pwrite64, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite64, 6, fd, buf, count, 0,
 			   __LONG_LONG_PAIR ((off_t) (offset >> 32),
 					     (off_t) (offset & 0xffffffff)));
 

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/readelflib.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/readelflib.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/arm/readelflib.c Sat Feb  9 00:02:13 2013
@@ -46,6 +46,12 @@
 	  if (elf32_header->e_flags & EF_ARM_ABI_FLOAT_HARD)
 	    *flag = FLAG_ARM_LIBHF|FLAG_ELF_LIBC6;
 	  else if (elf32_header->e_flags & EF_ARM_ABI_FLOAT_SOFT)
+	    *flag = FLAG_ARM_LIBSF|FLAG_ELF_LIBC6;
+	  else
+	    /* We must assume the unmarked objects are compatible
+	       with all ABI variants. Such objects may have been
+	       generated in a transitional period when the ABI
+	       tags were not added to all objects.  */
 	    *flag = FLAG_ELF_LIBC6;
 	}
     }

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/ia64/sigaction.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/ia64/sigaction.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/ia64/sigaction.c Sat Feb  9 00:02:13 2013
@@ -26,7 +26,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* The variable is shared between all wrappers around signal handling
    functions which have RT equivalents.  This is the definition.  */
@@ -42,8 +41,7 @@
 {
   /* XXX The size argument hopefully will have to be changed to the
      real size of the user-level sigset_t.  */
-  return INLINE_SYSCALL (rt_sigaction, 4, sig,
-			 CHECK_1_NULL_OK (act), CHECK_1_NULL_OK (oact), _NSIG / 8);
+  return INLINE_SYSCALL (rt_sigaction, 4, sig, act, oact, _NSIG / 8);
 }
 libc_hidden_def (__libc_sigaction)
 

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h Sat Feb  9 00:02:13 2013
@@ -20,6 +20,26 @@
 /* Many syscalls were added in 2.6.10 for m68k.  */
 #define __ASSUME_UTIMES	1
 
+/* Support for various CLOEXEC and NONBLOCK flags was added 2.6.23.  */
+#if __LINUX_KERNEL_VERSION >= 0x020617
+# define __ASSUME_O_CLOEXEC	1
+#endif
+
+/* Support for various CLOEXEC and NONBLOCK flags was added in 2.6.27.  */
+#if __LINUX_KERNEL_VERSION >= 0x02061b
+# define __ASSUME_SOCK_CLOEXEC	1
+# define __ASSUME_IN_NONBLOCK	1
+# define __ASSUME_PIPE2		1
+# define __ASSUME_EVENTFD2	1
+# define __ASSUME_SIGNALFD4	1
+# define __ASSUME_DUP3		1
+#endif
+
+/* Support for the accept4 syscall was added in 2.6.28.  */
+#if __LINUX_KERNEL_VERSION >= 0x02061c
+# define __ASSUME_ACCEPT4	1
+#endif
+
 #include_next <kernel-features.h>
 
 /* These syscalls were added only in 3.0 for m68k.  */

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c Sat Feb  9 00:02:13 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <xstatconv.h>
 

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/msgctl.c Sat Feb  9 00:02:13 2013
@@ -20,14 +20,12 @@
 #include <ipc_priv.h>
 #include <sysdep.h>
 
-#include <bp-checks.h>
-
 int __msgctl (int msqid, int cmd, struct msqid_ds *buf);
 
 int
 __msgctl (int msqid, int cmd, struct msqid_ds *buf)
 {
-  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, CHECK_1 (buf));
+  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, buf);
 }
 
 #include <shlib-compat.h>

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/mips64/shmctl.c Sat Feb  9 00:02:13 2013
@@ -20,14 +20,12 @@
 #include <ipc_priv.h>
 #include <sysdep.h>
 
-#include <bp-checks.h>
-
 int __shmctl (int shmid, int cmd, struct shmid_ds *buf);
 
 int
 __shmctl (int shmid, int cmd, struct shmid_ds *buf)
 {
-  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, CHECK_1 (buf));
+  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, buf);
 }
 
 #include <shlib-compat.h>

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pread.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pread.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pread.c Sat Feb  9 00:02:13 2013
@@ -26,7 +26,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -54,10 +53,9 @@
   if (SINGLE_THREAD_P)
     {
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-			       offset);
+      result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 #else
-      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
 			       __LONG_LONG_PAIR (offset >> 31, offset));
 #endif
       return result;
@@ -66,9 +64,9 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
 
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
+  result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 #else
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
 			   __LONG_LONG_PAIR (offset >> 31, offset));
 #endif
 

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pread64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pread64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pread64.c Sat Feb  9 00:02:13 2013
@@ -25,7 +25,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -50,10 +49,9 @@
   if (SINGLE_THREAD_P)
     {
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-			       offset);
+      result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 #else
-     result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+     result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
 			      __LONG_LONG_PAIR ((off_t) (offset >> 32),
 			      (off_t) (offset & 0xffffffff)));
 #endif
@@ -63,9 +61,9 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
 
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
+  result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 #else
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
 			   __LONG_LONG_PAIR ((off_t) (offset >> 32),
 					     (off_t) (offset & 0xffffffff)));
 #endif

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pwrite.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pwrite.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pwrite.c Sat Feb  9 00:02:13 2013
@@ -26,7 +26,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -54,10 +53,9 @@
   if (SINGLE_THREAD_P)
     {
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-			       offset);
+      result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 #else
-      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
 			       __LONG_LONG_PAIR (offset >> 31, offset));
 #endif
       return result;
@@ -66,9 +64,9 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
 
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
+  result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 #else
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
 			   __LONG_LONG_PAIR (offset >> 31, offset));
 #endif
 

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pwrite64.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pwrite64.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/pwrite64.c Sat Feb  9 00:02:13 2013
@@ -25,7 +25,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -49,10 +48,9 @@
   if (SINGLE_THREAD_P)
     {
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-			       offset);
+      result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 #else
-     result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+     result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
 			      __LONG_LONG_PAIR ((off_t) (offset >> 32),
 			     (off_t) (offset & 0xffffffff)));
 #endif
@@ -63,9 +61,9 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
 
 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
+  result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 #else
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0,
 			   __LONG_LONG_PAIR ((off_t) (offset >> 32),
 					     (off_t) (offset & 0xffffffff)));
 #endif

Modified: fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/ustat.c
==============================================================================
--- fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/ustat.c (original)
+++ fsf/trunk/libc/ports/sysdeps/unix/sysv/linux/mips/ustat.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 int
 ustat (dev_t dev, struct ustat *ubuf)
@@ -32,5 +31,5 @@
   /* We must convert the value to dev_t type used by the kernel.  */
   k_dev = ((major (dev) & 0xff) << 8) | (minor (dev) & 0xff);
 
-  return INLINE_SYSCALL (ustat, 2, k_dev, CHECK_1 (ubuf));
+  return INLINE_SYSCALL (ustat, 2, k_dev, ubuf);
 }

Modified: fsf/trunk/libc/string/strcpy.c
==============================================================================
--- fsf/trunk/libc/string/strcpy.c (original)
+++ fsf/trunk/libc/string/strcpy.c Sat Feb  9 00:02:13 2013
@@ -18,7 +18,6 @@
 #include <stddef.h>
 #include <string.h>
 #include <memcopy.h>
-#include <bp-checks.h>
 
 #undef strcpy
 
@@ -29,9 +28,8 @@
      const char *src;
 {
   char c;
-  char *__unbounded s = (char *__unbounded) CHECK_BOUNDS_LOW (src);
-  const ptrdiff_t off = CHECK_BOUNDS_LOW (dest) - s - 1;
-  size_t n;
+  char *__unbounded s = (char *__unbounded) src;
+  const ptrdiff_t off = dest - s - 1;
 
   do
     {
@@ -40,10 +38,6 @@
     }
   while (c != '\0');
 
-  n = s - src;
-  (void) CHECK_BOUNDS_HIGH (src + n);
-  (void) CHECK_BOUNDS_HIGH (dest + n);
-
   return dest;
 }
 libc_hidden_builtin_def (strcpy)

Removed: 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 (removed)
@@ -1,68 +1,0 @@
-/* Bounded-pointer checking macros for C.
-   Copyright (C) 2000-2013 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Greg McGary <greg@xxxxxxxxxx>
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#ifndef _bp_checks_h_
-#define _bp_checks_h_ 1
-
-#if __BOUNDED_POINTERS__
-
-# define BOUNDS_VIOLATED (__builtin_trap (), 0)
-
-/* Verify that pointer's value >= low.  Return pointer value.  */
-# define CHECK_BOUNDS_LOW(ARG)					\
-  (((__ptrvalue (ARG) < __ptrlow (ARG)) && BOUNDS_VIOLATED),	\
-   __ptrvalue (ARG))
-
-/* Verify that pointer's value < high.  Return pointer value.  */
-# define CHECK_BOUNDS_HIGH(ARG)				\
-  (((__ptrvalue (ARG) > __ptrhigh (ARG)) && BOUNDS_VIOLATED),	\
-   __ptrvalue (ARG))
-
-# define _CHECK_N(ARG, N, COND)				\
-  (((COND)						\
-    && (__ptrvalue (ARG) < __ptrlow (ARG)		\
-	|| __ptrvalue (ARG) + (N) > __ptrhigh (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.  */
-# define CHECK_N_NULL_OK(ARG, N) _CHECK_N ((ARG), (N), __ptrvalue (ARG))
-
-/* Check bounds of a pointer seated to a single object.  */
-# 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)
-
-#else /* !__BOUNDED_POINTERS__ */
-
-/* Do nothing if not compiling with -fbounded-pointers.  */
-
-# define BOUNDS_VIOLATED
-# define CHECK_BOUNDS_LOW(ARG) (ARG)
-# define CHECK_BOUNDS_HIGH(ARG) (ARG)
-# define CHECK_1(ARG) (ARG)
-# define CHECK_1_NULL_OK(ARG) (ARG)
-# define CHECK_N(ARG, N) (ARG)
-# define CHECK_N_NULL_OK(ARG, N) (ARG)
-
-#endif /* !__BOUNDED_POINTERS__ */
-
-#endif /* _bp_checks_h_ */

Modified: fsf/trunk/libc/sysdeps/generic/ldconfig.h
==============================================================================
--- fsf/trunk/libc/sysdeps/generic/ldconfig.h (original)
+++ fsf/trunk/libc/sysdeps/generic/ldconfig.h Sat Feb  9 00:02:13 2013
@@ -36,6 +36,7 @@
 #define FLAG_X8664_LIBX32	0x0800
 #define FLAG_ARM_LIBHF		0x0900
 #define FLAG_AARCH64_LIB64	0x0a00
+#define FLAG_ARM_LIBSF		0x0b00
 
 /* Name of auxiliary cache.  */
 #define _PATH_LDCONFIG_AUX_CACHE "/var/cache/ldconfig/aux-cache"

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstat.c Sat Feb  9 00:02:13 2013
@@ -28,7 +28,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <xstatconv.h>
 
@@ -37,7 +36,7 @@
 __fxstat (int vers, int fd, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (fstat, 2, fd, (struct kernel_stat *) buf);
 
 #ifdef STAT_IS_KERNEL_STAT
   errno = EINVAL;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstat64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstat64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstat64.c Sat Feb  9 00:02:13 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -33,7 +32,7 @@
 ___fxstat64 (int vers, int fd, struct stat64 *buf)
 {
   int result;
-  result = INLINE_SYSCALL (fstat64, 2, fd, CHECK_1 (buf));
+  result = INLINE_SYSCALL (fstat64, 2, fd, 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/fxstatat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/fxstatat.c Sat Feb  9 00:02:13 2013
@@ -29,7 +29,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 #include <kernel-features.h>
 
 #include <xstatconv.h>
@@ -110,10 +109,10 @@
     {
       if (flag & AT_SYMLINK_NOFOLLOW)
 	result = INTERNAL_SYSCALL (lstat, err, 2, file,
-				   CHECK_1 ((struct kernel_stat *) st));
+				   (struct kernel_stat *) st);
       else
 	result = INTERNAL_SYSCALL (stat, err, 2, file,
-				   CHECK_1 ((struct kernel_stat *) st));
+				   (struct kernel_stat *) st);
 
       if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
 	return result;

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 Sat Feb  9 00:02:13 2013
@@ -25,7 +25,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -99,9 +98,9 @@
     }
 
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lstat64, err, 2, file, CHECK_1 (st));
+    result = INTERNAL_SYSCALL (lstat64, err, 2, file, st);
   else
-    result = INTERNAL_SYSCALL (stat64, err, 2, file, CHECK_1 (st));
+    result = INTERNAL_SYSCALL (stat64, err, 2, file, 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/getdents.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/getdents.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/getdents.c Sat Feb  9 00:02:13 2013
@@ -28,7 +28,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 
@@ -109,7 +108,7 @@
       && (offsetof (struct kernel_dirent, d_reclen)
 	  == offsetof (struct dirent, d_reclen)))
     {
-      retval = INLINE_SYSCALL (getdents, 3, fd, CHECK_N(buf, nbytes), nbytes);
+      retval = INLINE_SYSCALL (getdents, 3, fd, buf, nbytes);
 
       /* The kernel added the d_type value after the name.  Change
 	 this now.  */
@@ -158,8 +157,7 @@
 		   - offsetof (DIRENT_TYPE, d_name);
 	  kbuf = __alloca(kbytes);
 	}
-      retval = INLINE_SYSCALL (getdents64, 3, fd, CHECK_N(kbuf, kbytes),
-			       kbytes);
+      retval = INLINE_SYSCALL (getdents64, 3, fd, kbuf, kbytes);
 # ifndef __ASSUME_GETDENTS64_SYSCALL
       if (retval != -1 || (errno != EINVAL && errno != ENOSYS))
 # endif
@@ -255,8 +253,7 @@
 
     skdp = kdp = __alloca (red_nbytes);
 
-    retval = INLINE_SYSCALL (getdents, 3, fd,
-			     CHECK_N ((char *) kdp, red_nbytes), red_nbytes);
+    retval = INLINE_SYSCALL (getdents, 3, fd, (char *) kdp, red_nbytes);
 
     if (retval == -1)
       return -1;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/brk.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/brk.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/brk.c Sat Feb  9 00:02:13 2013
@@ -19,8 +19,6 @@
 #include <errno.h>
 #include <unistd.h>
 #include <sysdep.h>
-
-#include <bp-checks.h>
 
 /* This must be initialized data because commons can't have aliases.  */
 void *__curbrk = 0;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fxstat.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fxstat.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/fxstat.c Sat Feb  9 00:02:13 2013
@@ -27,7 +27,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -40,7 +39,7 @@
   int result;
 
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (fstat, 2, fd, (struct kernel_stat *) buf);
 
   {
     struct stat64 buf64;

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 Sat Feb  9 00:02:13 2013
@@ -29,7 +29,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -103,10 +102,10 @@
     {
       if (flag & AT_SYMLINK_NOFOLLOW)
 	result = INTERNAL_SYSCALL (lstat, err, 2, file,
-				   CHECK_1 ((struct kernel_stat *) st));
+				   (struct kernel_stat *) st);
       else
 	result = INTERNAL_SYSCALL (stat, err, 2, file,
-				   CHECK_1 ((struct kernel_stat *) st));
+				   (struct kernel_stat *) st);
       goto out;
     }
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getgroups.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getgroups.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getgroups.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <linux/posix_types.h>
 
@@ -34,7 +33,7 @@
 int
 __getgroups (int n, gid_t *groups)
 {
-  return INLINE_SYSCALL (getgroups32, 2, n, CHECK_N (groups, n));
+  return INLINE_SYSCALL (getgroups32, 2, n, groups);
 }
 
 weak_alias (__getgroups, getgroups)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getresgid.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getresgid.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getresgid.c Sat Feb  9 00:02:13 2013
@@ -23,15 +23,13 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Consider moving to syscalls.list.  */
 
 int
 __getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid)
 {
-  return INLINE_SYSCALL (getresgid32, 3, CHECK_1 (rgid),
-			 CHECK_1 (egid), CHECK_1 (sgid));
+  return INLINE_SYSCALL (getresgid32, 3, rgid, egid, sgid);
 }
 libc_hidden_def (__getresgid)
 weak_alias (__getresgid, getresgid)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getresuid.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getresuid.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/getresuid.c Sat Feb  9 00:02:13 2013
@@ -23,15 +23,13 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Consider moving to syscalls.list.  */
 
 int
 __getresuid (uid_t *ruid, uid_t *euid, uid_t *suid)
 {
-  return INLINE_SYSCALL (getresuid32, 3, CHECK_1 (ruid),
-			 CHECK_1 (euid), CHECK_1 (suid));
+  return INLINE_SYSCALL (getresuid32, 3, ruid, euid, suid);
 }
 libc_hidden_def (__getresuid)
 weak_alias (__getresuid, getresuid)

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 Sat Feb  9 00:02:13 2013
@@ -27,7 +27,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -41,7 +40,7 @@
   int result;
 
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (lstat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (lstat, 2, name, (struct kernel_stat *) buf);
 
   {
     struct stat64 buf64;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/msgctl.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/msgctl.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/msgctl.c Sat Feb  9 00:02:13 2013
@@ -23,7 +23,6 @@
 #include <sysdep.h>
 #include <string.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <shlib-compat.h>
 
@@ -56,8 +55,7 @@
 attribute_compat_text_section
 __old_msgctl (int msqid, int cmd, struct __old_msqid_ds *buf)
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-			 msqid, cmd, 0, CHECK_1 (buf));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, buf);
 }
 compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0);
 #endif
@@ -66,7 +64,7 @@
 __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
 {
   return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-			 msqid, cmd | __IPC_64, 0, CHECK_1 (buf));
+			 msqid, cmd | __IPC_64, 0, buf);
 }
 
 versioned_symbol (libc, __new_msgctl, msgctl, GLIBC_2_2);

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/setgroups.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/setgroups.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/setgroups.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <setxid.h>
 #include <linux/posix_types.h>
@@ -33,6 +32,6 @@
 int
 setgroups (size_t n, const gid_t *groups)
 {
-  return INLINE_SETXID_SYSCALL (setgroups32, 2, n, CHECK_N (groups, n));
+  return INLINE_SETXID_SYSCALL (setgroups32, 2, n, groups);
 }
 libc_hidden_def (setgroups)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/setrlimit.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/setrlimit.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/setrlimit.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 #include <sysdep.h>
 #include <sys/syscall.h>
 #include <shlib-compat.h>
-#include <bp-checks.h>
 
 extern int __new_setrlimit (enum __rlimit_resource resource,
 			    const struct rlimit *__unboundedrlimits);
@@ -32,7 +31,7 @@
 int
 __new_setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
 {
-  return INLINE_SYSCALL (setrlimit, 2, resource, CHECK_1 (rlimits));
+  return INLINE_SYSCALL (setrlimit, 2, resource, rlimits);
 }
 
 weak_alias (__new_setrlimit, __setrlimit);

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/shmctl.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/shmctl.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/i386/shmctl.c Sat Feb  9 00:02:13 2013
@@ -24,7 +24,6 @@
 #include <string.h>
 #include <sys/syscall.h>
 #include <bits/wordsize.h>
-#include <bp-checks.h>
 
 #include <shlib-compat.h>
 
@@ -63,8 +62,7 @@
 attribute_compat_text_section
 __old_shmctl (int shmid, int cmd, struct __old_shmid_ds *buf)
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl,
-			 shmid, cmd, 0, CHECK_1 (buf));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, buf);
 }
 compat_symbol (libc, __old_shmctl, shmctl, GLIBC_2_0);
 #endif
@@ -73,7 +71,7 @@
 __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
 {
   return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl,
-			 shmid, cmd | __IPC_64, 0, CHECK_1 (buf));
+			 shmid, cmd | __IPC_64, 0, buf);
 }
 
 versioned_symbol (libc, __new_shmctl, shmctl, GLIBC_2_2);

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 Sat Feb  9 00:02:13 2013
@@ -27,7 +27,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -41,7 +40,7 @@
   int result;
 
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (stat, 2, name, CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (stat, 2, name, (struct kernel_stat *) buf);
 
   {
     struct stat64 buf64;

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 Sat Feb  9 00:02:13 2013
@@ -27,7 +27,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <xstatconv.h>
 
@@ -36,8 +35,7 @@
 __lxstat (int vers, const char *name, struct stat *buf)
 {
   if (vers == _STAT_VER_KERNEL)
-    return INLINE_SYSCALL (lstat, 2, name,
-			   CHECK_1 ((struct kernel_stat *) buf));
+    return INLINE_SYSCALL (lstat, 2, name, (struct kernel_stat *) buf);
 
 #ifdef STAT_IS_KERNEL_STAT
   errno = EINVAL;

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 Sat Feb  9 00:02:13 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -32,7 +31,7 @@
 ___lxstat64 (int vers, const char *name, struct stat64 *buf)
 {
   int result;
-  result = INLINE_SYSCALL (lstat64, 2, name, CHECK_1 (buf));
+  result = INLINE_SYSCALL (lstat64, 2, name, 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/mmap64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/mmap64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/mmap64.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/msgctl.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/msgctl.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/msgctl.c Sat Feb  9 00:02:13 2013
@@ -24,7 +24,6 @@
 #include <string.h>
 #include <sys/syscall.h>
 #include <shlib-compat.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -57,7 +56,7 @@
 attribute_compat_text_section
 __old_msgctl (int msqid, int cmd, struct __old_msqid_ds *buf)
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, CHECK_1 (buf));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, buf);
 }
 compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0);
 #endif
@@ -67,7 +66,7 @@
 {
 #if __ASSUME_IPC64 > 0
   return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-			 msqid, cmd | __IPC_64, 0, CHECK_1 (buf));
+			 msqid, cmd | __IPC_64, 0, buf);
 #else
   switch (cmd) {
     case MSG_STAT:
@@ -76,7 +75,7 @@
       break;
     default:
       return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-			     msqid, cmd, 0, CHECK_1 (buf));
+			     msqid, cmd, 0, buf);
   }
 
   {
@@ -86,7 +85,7 @@
     /* Unfortunately there is no way how to find out for sure whether
        we should use old or new msgctl.  */
     result = INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-			     msqid, cmd | __IPC_64, 0, CHECK_1 (buf));
+			     msqid, cmd | __IPC_64, 0, buf);
     if (result != -1 || errno != EINVAL)
       return result;
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/msgrcv.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/msgrcv.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/msgrcv.c Sat Feb  9 00:02:13 2013
@@ -23,8 +23,6 @@
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
 
-#include <bp-checks.h>
-
 /* Kludge to work around Linux' restriction of only up to five
    arguments to a system call.  */
 struct ipc_kludge
@@ -46,7 +44,7 @@
      fives parameters to a system call.  */
   struct ipc_kludge tmp;
 
-  tmp.msgp = CHECK_N (msgp, msgsz);
+  tmp.msgp = msgp;
   tmp.msgtyp = msgtyp;
 
   if (SINGLE_THREAD_P)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/msgsnd.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/msgsnd.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/msgsnd.c Sat Feb  9 00:02:13 2013
@@ -23,8 +23,6 @@
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
 
-#include <bp-checks.h>
-
 int
 __libc_msgsnd (msqid, msgp, msgsz, msgflg)
      int msqid;
@@ -34,12 +32,12 @@
 {
   if (SINGLE_THREAD_P)
     return INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz,
-			   msgflg, (void *) CHECK_N (msgp, msgsz));
+			   msgflg, (void *) msgp);
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   int result = INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz,
-			       msgflg, (void *) CHECK_N (msgp, msgsz));
+			       msgflg, (void *) msgp);
 
   LIBC_CANCEL_RESET (oldtype);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c Sat Feb  9 00:02:13 2013
@@ -16,7 +16,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
-#include <bp-checks.h>
 #include <stddef.h>
 #include <sys/time.h>
 #include <time.h>
@@ -33,7 +32,7 @@
      struct timeval *tv;
      struct timezone *tz;
 {
-  return INLINE_VSYSCALL (gettimeofday, 2, CHECK_1 (tv), CHECK_1 (tz));
+  return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
 }
 libc_hidden_def (__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -38,7 +37,7 @@
   if (SINGLE_THREAD_P)
     {
       /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
+      result = INLINE_SYSCALL (pread, 6, fd, buf, count,
 			       0, offset >> 31, offset);
 
       return result;
@@ -47,7 +46,7 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count,
 			       0, offset >> 31, offset);
 
   LIBC_CANCEL_RESET (oldtype);

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c Sat Feb  9 00:02:13 2013
@@ -21,7 +21,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -38,7 +37,7 @@
   if (SINGLE_THREAD_P)
     {
       /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
+      result = INLINE_SYSCALL (pread, 6, fd, buf, count,
 			       0, (long) (offset >> 32),
 			       (long) offset);
 
@@ -48,7 +47,7 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count,
 			   0, (long) (offset >> 32),
 			   (long) offset);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,7 +38,7 @@
   if (SINGLE_THREAD_P)
     {
       /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
+      result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
 			       0, offset >> 31, offset);
 
       return result;
@@ -48,7 +47,7 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
 			   0, offset >> 31, offset);
 
   LIBC_CANCEL_RESET (oldtype);

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c Sat Feb  9 00:02:13 2013
@@ -21,7 +21,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -38,7 +37,7 @@
   if (SINGLE_THREAD_P)
     {
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-      result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
+      result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
 			       0, (long) (offset >> 32),
 			       (long) offset);
 
@@ -48,7 +47,7 @@
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   /* On PPC32 64bit values are aligned in odd/even register pairs.  */
-  result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pwrite, 6, fd, buf, count,
 			   0, (long) (offset >> 32),
 			   (long) offset);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -40,16 +39,14 @@
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                                offset);
+      result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                            offset);
+  result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 
   LIBC_CANCEL_RESET (oldtype);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c Sat Feb  9 00:02:13 2013
@@ -21,7 +21,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,16 +38,14 @@
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                                offset);
+      result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-   result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
-                            offset);
+   result = INLINE_SYSCALL (pread, 4, fd, buf, count, offset);
 
   LIBC_CANCEL_RESET (oldtype);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -40,16 +39,14 @@
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-                              offset);
+      result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-			                     offset);
+  result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 
   LIBC_CANCEL_RESET (oldtype);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c Sat Feb  9 00:02:13 2013
@@ -21,7 +21,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,16 +38,14 @@
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-                                offset);
+      result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count,
-                            offset);
+  result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset);
 
   LIBC_CANCEL_RESET (oldtype);
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/pread.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/pread.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/pread.c Sat Feb  9 00:02:13 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -44,7 +43,7 @@
   ssize_t result;
 
   assert (sizeof (offset) == 4);
-  result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pread, 5, fd, buf, count,
 			   __LONG_LONG_PAIR (offset >> 31, offset));
 
   return result;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/pread64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/pread64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/pread64.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,7 +38,7 @@
 {
   ssize_t result;
 
-  result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pread, 5, fd, buf, count,
 			   __LONG_LONG_PAIR ((off_t) (offset >> 32),
 					     (off_t) (offset & 0xffffffff)));
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/ptrace.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/ptrace.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/ptrace.c Sat Feb  9 00:02:13 2013
@@ -24,7 +24,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 long int
 ptrace (enum __ptrace_request request, ...)
@@ -43,77 +42,6 @@
   if (request > 0 && request < 4)
     data = &ret;
 
-#if __BOUNDED_POINTERS__
-  switch (request)
-    {
-    case PTRACE_PEEKTEXT:
-    case PTRACE_PEEKDATA:
-    case PTRACE_PEEKUSER:
-    case PTRACE_POKETEXT:
-    case PTRACE_POKEDATA:
-    case PTRACE_POKEUSER:
-      (void) CHECK_1 ((int *) addr);
-      (void) CHECK_1 ((int *) data);
-      break;
-
-    case PTRACE_GETREGS:
-    case PTRACE_SETREGS:
-#ifdef __i386__
-      (void) CHECK_1 ((struct user_regs_struct *) data);
-#else
-      /* We don't know the size of data, so the best we can do is ensure
-	 that `data' is valid for at least one word.  */
-      (void) CHECK_1 ((int *) data);
-#endif
-      break;
-
-    case PTRACE_GETFPREGS:
-    case PTRACE_SETFPREGS:
-#ifdef __i386__
-      (void) CHECK_1 ((struct user_fpregs_struct *) data);
-#else
-      /* We don't know the size of data, so the best we can do is ensure
-	 that `data' is valid for at least one word.  */
-      (void) CHECK_1 ((int *) data);
-#endif
-      break;
-
-    case PTRACE_GETFPXREGS:
-    case PTRACE_SETFPXREGS:
-#ifdef __i386__
-      (void) CHECK_1 ((struct user_fpxregs_struct *) data);
-#else
-      /* We don't know the size of data, so the best we can do is ensure
-	 that `data' is valid for at least one word.  */
-      (void) CHECK_1 ((int *) data);
-#endif
-      break;
-
-    case PTRACE_GETSIGINFO:
-    case PTRACE_SETSIGINFO:
-      (void) CHECK_1 ((siginfo_t *) data);
-      break;
-
-    case PTRACE_GETEVENTMSG:
-      (void) CHECK_1 ((unsigned long *) data);
-      break;
-
-    case PTRACE_SETOPTIONS:
-      (void) CHECK_1 ((long *) data);
-      break;
-
-    case PTRACE_TRACEME:
-    case PTRACE_CONT:
-    case PTRACE_KILL:
-    case PTRACE_SINGLESTEP:
-    case PTRACE_ATTACH:
-    case PTRACE_DETACH:
-    case PTRACE_SYSCALL:
-      /* Neither `data' nor `addr' needs any checks.  */
-      break;
-    };
-#endif
-
   res = INLINE_SYSCALL (ptrace, 4, request, pid,
 			__ptrvalue (addr), __ptrvalue (data));
   if (res >= 0 && request > 0 && request < 4)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/pwrite.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/pwrite.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/pwrite.c Sat Feb  9 00:02:13 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -44,7 +43,7 @@
   ssize_t result;
 
   assert (sizeof (offset) == 4);
-  result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pwrite, 5, fd, buf, count,
 			   __LONG_LONG_PAIR (offset >> 31, offset));
 
   return result;

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/pwrite64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/pwrite64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/pwrite64.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -39,7 +38,7 @@
 {
   ssize_t result;
 
-  result = INLINE_SYSCALL (pwrite, 5, fd, CHECK_N (buf, count), count,
+  result = INLINE_SYSCALL (pwrite, 5, fd, buf, count,
 			   __LONG_LONG_PAIR ((off_t) (offset >> 32),
 					     (off_t) (offset & 0xffffffff)));
 

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/readv.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/readv.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/readv.c Sat Feb  9 00:02:13 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 #include <kernel-features.h>
 
 #ifndef __ASSUME_COMPLETE_READV_WRITEV
@@ -47,12 +46,12 @@
   ssize_t result;
 
   if (SINGLE_THREAD_P)
-    result = INLINE_SYSCALL (readv, 3, fd, CHECK_N (vector, count), count);
+    result = INLINE_SYSCALL (readv, 3, fd, vector, count);
   else
     {
       int oldtype = LIBC_CANCEL_ASYNC ();
 
-      result = INLINE_SYSCALL (readv, 3, fd, CHECK_N (vector, count), count);
+      result = INLINE_SYSCALL (readv, 3, fd, vector, count);
 
       LIBC_CANCEL_RESET (oldtype);
     }

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/gettimeofday.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/gettimeofday.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/s390/gettimeofday.c Sat Feb  9 00:02:13 2013
@@ -16,7 +16,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
-#include <bp-checks.h>
 #include <stddef.h>
 #include <sys/time.h>
 #include <time.h>
@@ -33,7 +32,7 @@
      struct timeval *tv;
      struct timezone *tz;
 {
-  return INLINE_VSYSCALL (gettimeofday, 2, CHECK_1 (tv), CHECK_1 (tz));
+  return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
 }
 libc_hidden_def (__gettimeofday)
 weak_alias (__gettimeofday, gettimeofday)

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/semop.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/semop.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/semop.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Perform user-defined atomical operation of array of semaphores.  */
 
@@ -32,6 +31,5 @@
      struct sembuf *sops;
      size_t nsops;
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_semop,
-			 semid, (int) nsops, 0, CHECK_N (sops, nsops));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_semop, semid, (int) nsops, 0, sops);
 }

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/semtimedop.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/semtimedop.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/semtimedop.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 /* Perform user-defined atomical operation of array of semaphores.  */
 
@@ -34,6 +33,6 @@
      const struct timespec *timeout;
 {
   return INLINE_SYSCALL (ipc, 6, IPCOP_semtimedop,
-			 semid, (int) nsops, 0, CHECK_N (sops, nsops),
+			 semid, (int) nsops, 0, sops,
 			 timeout);
 }

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pread.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pread.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pread.c Sat Feb  9 00:02:13 2013
@@ -23,7 +23,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -46,14 +45,14 @@
 
   if (SINGLE_THREAD_P)
     {
-      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+      result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
 			       __LONG_LONG_PAIR (offset >> 31, offset));
       return result;
     }
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
 			   __LONG_LONG_PAIR (offset >> 31, offset));
 
   LIBC_CANCEL_RESET (oldtype);

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pread64.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pread64.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/sh/pread64.c Sat Feb  9 00:02:13 2013
@@ -22,7 +22,6 @@
 
 #include <sysdep-cancel.h>
 #include <sys/syscall.h>
-#include <bp-checks.h>
 
 #include <kernel-features.h>
 
@@ -45,7 +44,7 @@
 
   if (SINGLE_THREAD_P)
     {
-     result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+     result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,
 			      __LONG_LONG_PAIR ((off_t) (offset >> 32),
 			      (off_t) (offset & 0xffffffff)));
      return result;
@@ -53,7 +52,7 @@
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
+  result = INLINE_SYSCALL (pread, 6, fd, buf, count, 0,

[... 439 lines stripped ...]
_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits