]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove __ptrvalue, __bounded and __unbounded.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 13 Feb 2013 23:30:40 +0000 (23:30 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 13 Feb 2013 23:30:40 +0000 (23:30 +0000)
60 files changed:
ChangeLog
csu/libc-start.c
debug/backtrace.c
elf/dl-runtime.c
include/set-hooks.h
misc/sys/cdefs.h
ports/ChangeLog.aarch64
ports/ChangeLog.alpha
ports/ChangeLog.am33
ports/ChangeLog.arm
ports/ChangeLog.mips
ports/sysdeps/am33/dl-machine.h
ports/sysdeps/arm/frame.h
ports/sysdeps/unix/sysv/linux/aarch64/sigaction.c
ports/sysdeps/unix/sysv/linux/alpha/sigaction.c
ports/sysdeps/unix/sysv/linux/am33/brk.c
ports/sysdeps/unix/sysv/linux/arm/sigaction.c
ports/sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c
ports/sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c
ports/sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c
ports/sysdeps/unix/sysv/linux/mips/mips64/xstat64.c
ports/sysdeps/unix/sysv/linux/mips/sigaction.c
stdio-common/vfprintf.c
string/strcpy.c
sysdeps/generic/frame.h
sysdeps/gnu/bits/msq.h
sysdeps/i386/dl-machine.h
sysdeps/powerpc/powerpc32/backtrace.c
sysdeps/powerpc/powerpc64/backtrace.c
sysdeps/sparc/backtrace.c
sysdeps/unix/sysv/linux/aio_sigqueue.c
sysdeps/unix/sysv/linux/fxstat.c
sysdeps/unix/sysv/linux/fxstatat.c
sysdeps/unix/sysv/linux/gai_sigqueue.c
sysdeps/unix/sysv/linux/i386/brk.c
sysdeps/unix/sysv/linux/i386/fxstat.c
sysdeps/unix/sysv/linux/i386/fxstatat.c
sysdeps/unix/sysv/linux/i386/lxstat.c
sysdeps/unix/sysv/linux/i386/msgctl.c
sysdeps/unix/sysv/linux/i386/setrlimit.c
sysdeps/unix/sysv/linux/i386/shmctl.c
sysdeps/unix/sysv/linux/i386/sigaction.c
sysdeps/unix/sysv/linux/i386/xstat.c
sysdeps/unix/sysv/linux/llseek.c
sysdeps/unix/sysv/linux/lxstat.c
sysdeps/unix/sysv/linux/mmap64.c
sysdeps/unix/sysv/linux/msgctl.c
sysdeps/unix/sysv/linux/msgrcv.c
sysdeps/unix/sysv/linux/powerpc/libc-start.c
sysdeps/unix/sysv/linux/ptrace.c
sysdeps/unix/sysv/linux/semctl.c
sysdeps/unix/sysv/linux/shmat.c
sysdeps/unix/sysv/linux/shmctl.c
sysdeps/unix/sysv/linux/shmdt.c
sysdeps/unix/sysv/linux/sigaction.c
sysdeps/unix/sysv/linux/sigqueue.c
sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
sysdeps/unix/sysv/linux/sysctl.c
sysdeps/unix/sysv/linux/x86_64/sigaction.c
sysdeps/unix/sysv/linux/xstat.c

index 295864b6fc75401d27b4f5188a8342fa82154bff..9a35f15b7b68965671dc6bd8e99566bd1c2c6150 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,80 @@
+2013-02-13  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
+       code.
+       * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
+       prototype or function definition.  Rename ubp_* variables and
+       parameters.  Remove argv definitions conditional on
+       [__BOUNDED_POINTERS__].
+       * debug/backtrace.c (__backtrace): Do not use __unbounded.
+       * elf/dl-runtime.c (_dl_fixup): Likewise.
+       * include/set-hooks.h (RUN_HOOK): Likewise.
+       * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
+       definition.
+       * string/strcpy.c (strcpy): Do not use __unbounded.
+       * sysdeps/generic/frame.h (struct layout): Likewise.
+       * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
+       * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
+       * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
+       * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
+       * sysdeps/sparc/backtrace.c (struct layout): Likewise.
+       (__backtrace): Likewise.
+       * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
+       use __ptrvalue.
+       * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
+       * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
+       * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
+       Likewise.
+       * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
+       * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
+       * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
+       * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
+       * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
+       Do not use __unbounded.
+       * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
+       Rename __unboundedrlimits parameter to rlimits in prototype.
+       * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
+       Do not use __unbounded.
+       * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
+       not use __ptrvalue.
+       * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
+       * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
+       * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
+       * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
+       __ptrvalue or __unbounded.
+       (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
+       * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
+       use __unbounded.
+       (__new_msgctl): Do not use __ptrvalue.
+       * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
+       __unbounded.
+       (__libc_msgrcv): Do not use __ptrvalue.
+       * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
+       startup_info): Do not use __unbounded.
+       (__libc_start_main): Likewise.  Rename ubp_* variables and
+       parameters.  Remove argv definitions conditional on
+       [__BOUNDED_POINTERS__].
+       * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
+       __ptrvalue.
+       * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
+       use __unbounded.
+       * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
+       or __ptrvalue.
+       * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
+       use __unbounded.
+       (__new_shmctl): Do not use __ptrvalue.
+       * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
+       * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
+       Likewise.
+       * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
+       (__libc_sigaction): Likewise.
+       * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
+       Likewise.
+       * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
+
 2013-02-13   OndÅ™ej Bílka  <neleai@seznam.cz>
 
        * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
index d4a135f21bf8bfd48b91c221d1f84771b4d99cb5..4f2a3366a6c2e7936ba0870ceddd0b6f015dc84a 100644 (file)
@@ -101,14 +101,14 @@ apply_irel (void)
 STATIC int LIBC_START_MAIN (int (*main) (int, char **, char **
                                         MAIN_AUXVEC_DECL),
                            int argc,
-                           char *__unbounded *__unbounded ubp_av,
+                           char **argv,
 #ifdef LIBC_START_MAIN_AUXVEC_ARG
-                           ElfW(auxv_t) *__unbounded auxvec,
+                           ElfW(auxv_t) *auxvec,
 #endif
                            __typeof (main) init,
                            void (*fini) (void),
                            void (*rtld_fini) (void),
-                           void *__unbounded stack_end)
+                           void *stack_end)
      __attribute__ ((noreturn));
 
 
@@ -117,29 +117,23 @@ STATIC int LIBC_START_MAIN (int (*main) (int, char **, char **
    finalizers were called in more than one place.  */
 STATIC int
 LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
-                int argc, char *__unbounded *__unbounded ubp_av,
+                int argc, char **argv,
 #ifdef LIBC_START_MAIN_AUXVEC_ARG
-                ElfW(auxv_t) *__unbounded auxvec,
+                ElfW(auxv_t) *auxvec,
 #endif
                 __typeof (main) init,
                 void (*fini) (void),
-                void (*rtld_fini) (void), void *__unbounded stack_end)
+                void (*rtld_fini) (void), void *stack_end)
 {
-#if __BOUNDED_POINTERS__
-  char **argv;
-#else
-# define argv ubp_av
-#endif
-
   /* Result of the 'main' function.  */
   int result;
 
   __libc_multiple_libcs = &_dl_starting_up && !_dl_starting_up;
 
 #ifndef SHARED
-  char *__unbounded *__unbounded ubp_ev = &ubp_av[argc + 1];
+  char **ev = &argv[argc + 1];
 
-  __environ = ubp_ev;
+  __environ = ev;
 
   /* Store the lowest stack address.  This is done in ld.so if this is
      the code for the DSO.  */
@@ -149,12 +143,12 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
   /* First process the auxiliary vector since we need to find the
      program header to locate an eventually present PT_TLS entry.  */
 #  ifndef LIBC_START_MAIN_AUXVEC_ARG
-  ElfW(auxv_t) *__unbounded auxvec;
+  ElfW(auxv_t) *auxvec;
   {
-    char *__unbounded *__unbounded evp = ubp_ev;
+    char **evp = ev;
     while (*evp++ != NULL)
       ;
-    auxvec = (ElfW(auxv_t) *__unbounded) evp;
+    auxvec = (ElfW(auxv_t) *) evp;
   }
 #  endif
   _dl_aux_init (auxvec);
index ca80797fc97a2be2e560e0a1c9d3adec435cf2a2..84594986cf39a99dfc79707505205027a09f3ce9 100644 (file)
@@ -63,8 +63,8 @@ __backtrace (array, size)
      int size;
 {
   struct layout *current;
-  void *__unbounded top_frame;
-  void *__unbounded top_stack;
+  void *top_frame;
+  void *top_stack;
   int cnt = 0;
 
   top_frame = FIRST_FRAME_POINTER;
index 9ac2726102f923228dea71c7f64887d3cee7b320..3ca02f51b9b0b14b6b249c810f28c8f1364921de 100644 (file)
@@ -62,9 +62,7 @@ _dl_fixup (
 # ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
           ELF_MACHINE_RUNTIME_FIXUP_ARGS,
 # endif
-          /* GKM FIXME: Fix trampoline to pass bounds so we can do
-             without the `__unbounded' qualifier.  */
-          struct link_map *__unbounded l, ElfW(Word) reloc_arg)
+          struct link_map *l, ElfW(Word) reloc_arg)
 {
   const ElfW(Sym) *const symtab
     = (const void *) D_PTR (l, l_info[DT_SYMTAB]);
index 5c751ee3721e5c3f0cc1a6e9f9b460f632740d4f..e58f444d42cb7e85ed77c7eb3473c1c68760c295 100644 (file)
@@ -41,7 +41,7 @@
 
 # define RUN_HOOK(NAME, ARGS)                                                \
 do {                                                                         \
-  void *const *__unbounded ptr;                                                      \
+  void *const *ptr;                                                  \
   for (ptr = (void *const *) symbol_set_first_element (NAME);                \
        ! symbol_set_end_p (NAME, ptr); ++ptr)                                \
     (*(__##NAME##_hook_function_t *) *ptr) ARGS;                             \
index 81ab3187bf19817384f2297247e826d96ed88d66..7794e4e26d3a71973ee78c32b1c7d64c214fe4d6 100644 (file)
 #endif
 
 
-/* Support for bounded pointers.  */
-#ifndef __BOUNDED_POINTERS__
-# define __bounded     /* nothing */
-# define __unbounded   /* nothing */
-# define __ptrvalue    /* nothing */
-#endif
-
-
 /* Fortify support.  */
 #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
 #define __bos0(ptr) __builtin_object_size (ptr, 0)
index 767e1f1b5a9958fcd9a7160affce9e9d978af975..bfd73c586c9f8dcee02b3f355c5c5449c365e089 100644 (file)
@@ -1,3 +1,9 @@
+2013-02-13  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/aarch64/sigaction.c (__libc_sigaction):
+       Do not use __ptrvalue.
+
 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #13550]
index 38c41dcff42f49a61e48972b342e0f4d5db80f0e..352a76e48dda690308fb0ac9c283a8b0e796e578 100644 (file)
@@ -1,3 +1,9 @@
+2013-02-13  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/alpha/sigaction.c
+       (__syscall_rt_sigaction): Do not use __unbounded in prototype.
+
 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #13550]
index 015fa9066e456292912fed58b5374f29c4c49281..15138e336a3f0f6607e75be6267aff729a115584 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-13  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/am33/dl-machine.h (fixup): Do not use __unbounded.
+       * sysdeps/unix/sysv/linux/am33/brk.c (__brk): Do not use
+       __ptrvalue.
+
 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
 
        * All files with FSF copyright notices: Update copyright dates
index 23b907516636ca3b40ffd34287cb3fbe83ee9298..2596b8da3587259562518661b7243cf3699697f1 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-13  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/arm/frame.h (struct layout): Do not use __unbounded.
+       * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction): Do
+       not use __ptrvalue.
+
 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #13550]
index 3dcac85d9a8dfb6eabb80c474cdbde587b8fb90b..b91a1a8619275b0fbaf70710b14b7db9e20433ed 100644 (file)
@@ -1,3 +1,17 @@
+2013-02-13  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/unix/sysv/linux/mips/mips64/fxstat64.c (__fxstat64): Do
+       not use __ptrvalue.
+       * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c (__fxstatat64):
+       Likewise.
+       * sysdeps/unix/sysv/linux/mips/mips64/lxstat64.c (__lxstat64):
+       Likewise.
+       * sysdeps/unix/sysv/linux/mips/mips64/xstat64.c (__xstat64):
+       Likewise.
+       * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
+       Likewise.
+
 2013-02-11  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/mips/include/sys/asm.h: New file.
index 2db27378dbf0e92ab75223f7758bf242a534a9ed..f22fee875ef6f8c8f846c17c354238db659a0692 100644 (file)
@@ -62,9 +62,7 @@ elf_machine_load_address (void)
 
    We cannot use this scheme for profiling because the _mcount call
    destroys the passed register information.  */
-/* GKM FIXME: Fix trampoline to pass bounds so we can do
-   without the `__unbounded' qualifier.  */
-static ElfW(Addr) fixup (struct link_map *__unbounded l, ElfW(Word) reloc_offset)
+static ElfW(Addr) fixup (struct link_map *l, ElfW(Word) reloc_offset)
      __attribute__ ((unused));
 static ElfW(Addr) profile_fixup (struct link_map *l, ElfW(Word) reloc_offset,
                                 ElfW(Addr) retaddr)
index c5a8ed17ec835a0130559525240b47b23d25ec87..db3529939b3bb244e804e1059684534dc326e347 100644 (file)
@@ -19,9 +19,9 @@
 /* This is the APCS stack backtrace structure.  */
 struct layout
 {
-  struct layout *__unbounded next;
-  void *__unbounded sp;
-  void *__unbounded return_address;
+  struct layout *next;
+  void *sp;
+  void *return_address;
 };
 
 #define FIRST_FRAME_POINTER ADVANCE_STACK_FRAME (__builtin_frame_address (0))
index 74b6675647c48b5866205a5ae5354cd907d126dc..dbaa2246b7bb69453298be6162b7ba0609bcf0b4 100644 (file)
@@ -51,8 +51,8 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
     }
 
   result = INLINE_SYSCALL (rt_sigaction, 4, sig,
-                          act ? __ptrvalue (&kact) : NULL,
-                          oact ? __ptrvalue (&koact) : NULL, _NSIG / 8);
+                          act ? &kact : NULL,
+                          oact ? &koact : NULL, _NSIG / 8);
   if (result >= 0 || errno != ENOSYS)
     {
       if (oact && result >= 0)
index 77c0115c4b40bb6100ced1502486aa69e4b70c5d..ad3860dfc0336323b775289bb7d1ac0de9985c35 100644 (file)
@@ -32,7 +32,7 @@
          : INLINE_SYSCALL1(name, nr, args))
 
 struct kernel_sigaction;
-extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
-                                  struct kernel_sigaction *__unbounded, size_t);
+extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *,
+                                  struct kernel_sigaction *, size_t);
 
 #include <sysdeps/unix/sysv/linux/sigaction.c>
index 51b59adc9d6904cf0bda0c1885875f651b0f4142..8fd2ff01d96d2907bcf8705e52b22810374bdfc4 100644 (file)
@@ -30,7 +30,7 @@ __brk (void *addr)
 {
   void *newbrk;
 
-  newbrk = INLINE_SYSCALL (brk, 1, __ptrvalue (addr));
+  newbrk = INLINE_SYSCALL (brk, 1, addr);
 
   __curbrk = newbrk;
 
index c039b857f01f1e87e8aaff5ef13655ecb60ea66d..21bf506ef7c73a97c9371e9504dd611af57d9fe7 100644 (file)
@@ -83,8 +83,8 @@ __libc_sigaction (sig, act, oact)
   /* XXX The size argument hopefully will have to be changed to the
      real size of the user-level sigset_t.  */
   result = INLINE_SYSCALL (rt_sigaction, 4, sig,
-                          act ? __ptrvalue (&kact) : NULL,
-                          oact ? __ptrvalue (&koact) : NULL, _NSIG / 8);
+                          act ? &kact : NULL,
+                          oact ? &koact : NULL, _NSIG / 8);
 
   if (oact && result >= 0)
     {
index 434c7cd8356badcd4a7308cc6f00500bfd3edb9e..624994022fdd85ea216ede59675cbc1b05a3f1b0 100644 (file)
@@ -34,7 +34,7 @@ __fxstat64 (int vers, int fd, struct stat64 *buf)
   int result;
   struct kernel_stat kbuf;
 
-  result = INLINE_SYSCALL (fstat, 2, fd, __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (fstat, 2, fd, &kbuf);
   if (result == 0)
     result = __xstat64_conv (vers, &kbuf, buf);
 
index 42c9f5c40433a219b59a4a6da661feb486e56d9b..ca2f2f6153292652bc73ee6950e4b46c8b527a9b 100644 (file)
@@ -95,9 +95,9 @@ __fxstatat64 (int vers, int fd, const char *file, struct stat64 *st, int flag)
     }
 
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lstat, err, 2, file, __ptrvalue (&kst));
+    result = INTERNAL_SYSCALL (lstat, err, 2, file, &kst);
   else
-    result = INTERNAL_SYSCALL (stat, err, 2, file, __ptrvalue (&kst));
+    result = INTERNAL_SYSCALL (stat, err, 2, file, &kst);
 
   if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
     return __xstat64_conv (vers, &kst, st);
index fdaa75583702bf1e9705930870e3bd1107cd5b99..b01204deb79cda7856db328dcbd64e2c18aa1374 100644 (file)
@@ -33,7 +33,7 @@ __lxstat64 (int vers, const char *name, struct stat64 *buf)
   int result;
   struct kernel_stat kbuf;
 
-  result = INLINE_SYSCALL (lstat, 2, name, __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (lstat, 2, name, &kbuf);
   if (result == 0)
     result = __xstat64_conv (vers, &kbuf, buf);
 
index c6d8b5e7981262c390526ea3970aa8d3da994afb..89cde2b33a0d8fc32bc7d5f27e29e101bc96fd48 100644 (file)
@@ -34,7 +34,7 @@ __xstat64 (int vers, const char *name, struct stat64 *buf)
   int result;
   struct kernel_stat kbuf;
 
-  result = INLINE_SYSCALL (stat, 2, name, __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (stat, 2, name, &kbuf);
   if (result == 0)
     result = __xstat64_conv (vers, &kbuf, buf);
 
index c490dd144e4379091496433aad3afb124414bea4..9d8ee76d02e0151840707e0de8019e0f4b052f1f 100644 (file)
@@ -71,8 +71,8 @@ __libc_sigaction (sig, act, oact)
   /* XXX The size argument hopefully will have to be changed to the
      real size of the user-level sigset_t.     */
   result = INLINE_SYSCALL (rt_sigaction, 4, sig,
-                          act ? __ptrvalue (&kact) : NULL,
-                          oact ? __ptrvalue (&koact) : NULL,
+                          act ? &kact : NULL,
+                          oact ? &koact : NULL,
                           sizeof (kernel_sigset_t));
 
   if (oact && result >= 0)
index df4bc47f987edb1bbb1f35e22669b79c783bf7ac..89126d2d0a16cdeb1918a50790089c0c83a9f369 100644 (file)
@@ -302,7 +302,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
       do                                                                     \
        {                                                                     \
          int offset;                                                         \
-         void *__unbounded ptr;                                              \
+         void *ptr;                                                          \
          spec = (ChExpr);                                                    \
          offset = NOT_IN_JUMP_RANGE (spec) ? REF (form_unknown)              \
            : table[CHAR_CLASS (spec)];                                       \
@@ -315,7 +315,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
 # define JUMP(ChExpr, table)                                                 \
       do                                                                     \
        {                                                                     \
-         const void *__unbounded ptr;                                        \
+         const void *ptr;                                                    \
          spec = (ChExpr);                                                    \
          ptr = NOT_IN_JUMP_RANGE (spec) ? REF (form_unknown)                 \
            : table[CHAR_CLASS (spec)];                                       \
index 64e030d8d2abf4f411100b6f7c31d5529ea20de9..b71f7536bca7fd2afc5854f681a3629cee2cab6f 100644 (file)
@@ -28,7 +28,7 @@ strcpy (dest, src)
      const char *src;
 {
   char c;
-  char *__unbounded s = (char *__unbounded) src;
+  char *s = (char *) src;
   const ptrdiff_t off = dest - s - 1;
 
   do
index e6dfc72f315d765f1966f35b9a7a613522abbe9a..cae84ef3e2222f69402d210fb2b5057e9c5d6dbd 100644 (file)
@@ -18,6 +18,6 @@
 
 struct layout
 {
-  void *__unbounded next;
-  void *__unbounded return_address;
+  void *next;
+  void *return_address;
 };
index 33f16a54e054532d7f9eec5dc1ee704581304652..ca70acd52eb2eea4f1f385d4648a83f43112436f 100644 (file)
@@ -38,13 +38,13 @@ typedef unsigned short int msglen_t;
 struct msqid_ds
 {
   struct ipc_perm msg_perm;    /* structure describing operation permission */
-  struct msg *__unbounded __msg_first; /* pointer to first message on queue */
-  struct msg *__unbounded __msg_last; /* pointer to last message on queue */
+  struct msg *__msg_first;     /* pointer to first message on queue */
+  struct msg *__msg_last;      /* pointer to last message on queue */
   __time_t msg_stime;          /* time of last msgsnd command */
   __time_t msg_rtime;          /* time of last msgrcv command */
   __time_t msg_ctime;          /* time of last change */
-  struct wait_queue *__unbounded __wwait; /* ??? */
-  struct wait_queue *__unbounded __rwait; /* ??? */
+  struct wait_queue *__wwait;  /* ??? */
+  struct wait_queue *__rwait;  /* ??? */
   unsigned short int __msg_cbytes;/* current number of bytes on queue */
   msgqnum_t msg_qnum;          /* number of messages currently on queue */
   msglen_t msg_qbytes;         /* max number of bytes allowed on queue */
index a1e40d8eb006492dfdf66059a621b002a87f364f..1f2cb60163eb3a07e6b95de5773e744a8462606c 100644 (file)
@@ -151,11 +151,9 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
 
    We cannot use this scheme for profiling because the _mcount call
    destroys the passed register information.  */
-/* GKM FIXME: Fix trampoline to pass bounds so we can do
-   without the `__unbounded' qualifier.  */
 #define ARCH_FIXUP_ATTRIBUTE __attribute__ ((regparm (3), stdcall, unused))
 
-extern ElfW(Addr) _dl_fixup (struct link_map *__unbounded l,
+extern ElfW(Addr) _dl_fixup (struct link_map *l,
                             ElfW(Word) reloc_offset)
      ARCH_FIXUP_ATTRIBUTE;
 extern ElfW(Addr) _dl_profile_fixup (struct link_map *l,
index cd044503378ee025f96ce7fcef2cf6aa2d364fcc..b4b11dd03c3eeef5fd43a96f1cb3aa9db59f0bfd 100644 (file)
@@ -31,8 +31,8 @@
 */
 struct layout
 {
-  struct layout *__unbounded next;
-  void *__unbounded return_address;
+  struct layout *next;
+  void *return_address;
 };
 
 int
index ca04a6f9cf4129de9a9c83a29fa1ec40ff1827cd..2d3e051cb9591678ebf49b3c9c7b6c3267c2feb4 100644 (file)
@@ -33,9 +33,9 @@
 */
 struct layout
 {
-  struct layout *__unbounded next;
+  struct layout *next;
   long condition_register;
-  void *__unbounded return_address;
+  void *return_address;
 };
 
 int
index a0ba1fdfd7579c4f8c478fe9f0db5129e17fbf09..48f3cf6c13f6928d1e1c1e761dc4844b667b1860 100644 (file)
@@ -30,7 +30,7 @@ struct layout
   unsigned long locals[8];
   unsigned long ins[6];
   unsigned long next;
-  void *__unbounded return_address;
+  void *return_address;
 };
 
 struct trace_arg
@@ -127,9 +127,9 @@ __backtrace (void **array, int size)
 
       asm volatile ("mov %%fp, %0" : "=r"(fp));
       asm volatile ("mov %%i7, %0" : "=r"(i7));
-      current = (struct layout *__unbounded) (fp + BACKTRACE_STACK_BIAS);
+      current = (struct layout *) (fp + BACKTRACE_STACK_BIAS);
 
-      array[0] = (void *__unbounded) i7;
+      array[0] = (void *) i7;
 
       if (size == 1)
        return 1;
@@ -140,8 +140,7 @@ __backtrace (void **array, int size)
          array[count] = current->return_address;
          if (!current->next)
            break;
-         current = (struct layout *__unbounded) (current->next
-                                                 + BACKTRACE_STACK_BIAS);
+         current = (struct layout *) (current->next + BACKTRACE_STACK_BIAS);
        }
     }
   else
index 1cd5802d746f50008b4a409669108de8108633ed..9af05e86af7a4c5a9ecf4b1f29c8f21568bf79e7 100644 (file)
@@ -47,8 +47,7 @@ __aio_sigqueue (sig, val, caller_pid)
   info.si_uid = getuid ();
   info.si_value = val;
 
-  return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid,
-                        sig, __ptrvalue (&info));
+  return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info);
 }
 #else
 # include <rt/aio_sigqueue.c>
index 06a7fc08ee79b06e17c32693ef80cd46d336a3e0..3623fdf1c18c3062f2f1e607afbe343db055cd5b 100644 (file)
@@ -45,7 +45,7 @@ __fxstat (int vers, int fd, struct stat *buf)
   struct kernel_stat kbuf;
   int result;
 
-  result = INLINE_SYSCALL (fstat, 2, fd, __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (fstat, 2, fd, &kbuf);
   if (result == 0)
     result = __xstat_conv (vers, &kbuf, buf);
 
index 2578eeae3e9d1a7aa33fdddc944ab28a8270ec8b..b8bd8a5c169bdfd1f0a533bd2308ed362cc66b9b 100644 (file)
@@ -125,9 +125,9 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
     }
 #else
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lstat, err, 2, file, __ptrvalue (&kst));
+    result = INTERNAL_SYSCALL (lstat, err, 2, file, &kst);
   else
-    result = INTERNAL_SYSCALL (stat, err, 2, file, __ptrvalue (&kst));
+    result = INTERNAL_SYSCALL (stat, err, 2, file, &kst);
 
   if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
     return __xstat_conv (vers, &kst, st);
index 5097dc730e7201393ef723abda952e9f886c4270..5c8cb449870588c132830dd5b7040bfde504fad4 100644 (file)
@@ -47,8 +47,7 @@ __gai_sigqueue (sig, val, caller_pid)
   info.si_uid = __getuid ();
   info.si_value = val;
 
-  return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid,
-                        sig, __ptrvalue (&info));
+  return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info);
 }
 #else
 # include <resolv/gai_sigqueue.c>
index 47bb01d7fa48c816f55124d921a14c07fed83442..880542a61bdfea33afdd3256255a6265af0d8310 100644 (file)
@@ -31,11 +31,10 @@ weak_alias (__curbrk, ___brk_addr)
 int
 __brk (void *addr)
 {
-  void *__unbounded newbrk;
+  void *newbrk;
 
   INTERNAL_SYSCALL_DECL (err);
-  newbrk = (void *__unbounded) INTERNAL_SYSCALL (brk, err, 1,
-                                                __ptrvalue (addr));
+  newbrk = (void *) INTERNAL_SYSCALL (brk, err, 1, addr);
 
   __curbrk = newbrk;
 
index 8ceb26932e957a0ed3bd7202dd4f502b47ea7855..4f34a4cefeffece54c80087a631826e9f912e0f7 100644 (file)
@@ -44,7 +44,7 @@ __fxstat (int vers, int fd, struct stat *buf)
   {
     struct stat64 buf64;
 
-    result = INLINE_SYSCALL (fstat64, 2, fd, __ptrvalue (&buf64));
+    result = INLINE_SYSCALL (fstat64, 2, fd, &buf64);
     if (result == 0)
       result = __xstat32_conv (vers, &buf64, buf);
     return result;
index a98c6c890c9977a6068c157507da54ad4b59fa71..7ecbbe0891cdd0a8cbcc768abec512385af0b457 100644 (file)
@@ -110,9 +110,9 @@ __fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
     }
 
   if (flag & AT_SYMLINK_NOFOLLOW)
-    result = INTERNAL_SYSCALL (lstat64, err, 2, file, __ptrvalue (&st64));
+    result = INTERNAL_SYSCALL (lstat64, err, 2, file, &st64);
   else
-    result = INTERNAL_SYSCALL (stat64, err, 2, file, __ptrvalue (&st64));
+    result = INTERNAL_SYSCALL (stat64, err, 2, file, &st64);
   if (__builtin_expect (!INTERNAL_SYSCALL_ERROR_P (result, err), 1))
     return __xstat32_conv (vers, &st64, st);
 
index a10f40367ec764e825ec9c108457ed0c664dc1da..8e595b1b586fe2433bf9969383653ed846875b62 100644 (file)
@@ -45,7 +45,7 @@ __lxstat (int vers, const char *name, struct stat *buf)
   {
     struct stat64 buf64;
 
-    result = INLINE_SYSCALL (lstat64, 2, name, __ptrvalue (&buf64));
+    result = INLINE_SYSCALL (lstat64, 2, name, &buf64);
     if (result == 0)
       result = __xstat32_conv (vers, &buf64, buf);
     return result;
index f48d8e250a6b6080374817562d4e7f394f3ff699..e0af4e3e9376e4fb4efe8241dcd5fa357d07f53d 100644 (file)
 struct __old_msqid_ds
 {
   struct __old_ipc_perm msg_perm;      /* structure describing operation permission */
-  struct msg *__unbounded __msg_first; /* pointer to first message on queue */
-  struct msg *__unbounded __msg_last;  /* pointer to last message on queue */
+  struct msg *__msg_first;             /* pointer to first message on queue */
+  struct msg *__msg_last;              /* pointer to last message on queue */
   __time_t msg_stime;                  /* time of last msgsnd command */
   __time_t msg_rtime;                  /* time of last msgrcv command */
   __time_t msg_ctime;                  /* time of last change */
-  struct wait_queue *__unbounded __wwait; /* ??? */
-  struct wait_queue *__unbounded __rwait; /* ??? */
+  struct wait_queue *__wwait;          /* ??? */
+  struct wait_queue *__rwait;          /* ??? */
   unsigned short int __msg_cbytes;     /* current number of bytes on queue */
   unsigned short int msg_qnum;         /* number of messages currently on queue */
   unsigned short int msg_qbytes;       /* max number of bytes allowed on queue */
index 05ccb1cc21cbb04a06ad5ea66b55732859ff76a2..0fe31e19df278c7e96b833513e34eabc59714e69 100644 (file)
@@ -24,7 +24,7 @@
 #include <shlib-compat.h>
 
 extern int __new_setrlimit (enum __rlimit_resource resource,
-                           const struct rlimit *__unboundedrlimits);
+                           const struct rlimit *rlimits);
 
 /* Consider moving to syscalls.list.  */
 
index cb1539a0b0f5e1e15db9e36700d6ecb0816da541..8459dff321b46a228cccd31258283c9bb97d201e 100644 (file)
@@ -38,8 +38,8 @@ struct __old_shmid_ds
   __ipc_pid_t shm_lpid;                        /* pid of last shmop */
   unsigned short int shm_nattch;       /* number of current attaches */
   unsigned short int __shm_npages;     /* size of segment (pages) */
-  unsigned long int *__unbounded __shm_pages; /* array of ptrs to frames -> SHMMAX */
-  struct vm_area_struct *__unbounded __attaches; /* descriptors for attaches */
+  unsigned long int *__shm_pages;      /* array of ptrs to frames -> SHMMAX */
+  struct vm_area_struct *__attaches;   /* descriptors for attaches */
 };
 
 struct __old_shminfo
index 6b70b1541c9e821af3a14d82401387e436542840..d2bac9122a4c55f692c368564e63b46bc81a2cc8 100644 (file)
@@ -72,8 +72,8 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
   /* XXX The size argument hopefully will have to be changed to the
      real size of the user-level sigset_t.  */
   result = INLINE_SYSCALL (rt_sigaction, 4,
-                          sig, act ? __ptrvalue (&kact) : NULL,
-                          oact ? __ptrvalue (&koact) : NULL, _NSIG / 8);
+                          sig, act ? &kact : NULL,
+                          oact ? &koact : NULL, _NSIG / 8);
 
   if (oact && result >= 0)
     {
index 26dc00a5b39702288e796ddc9b1fdeb8f546887c..e2abe8bb95e9f5f3e4575bc9571472b2a73d268c 100644 (file)
@@ -45,7 +45,7 @@ __xstat (int vers, const char *name, struct stat *buf)
   {
     struct stat64 buf64;
 
-    result = INLINE_SYSCALL (stat64, 2, name, __ptrvalue (&buf64));
+    result = INLINE_SYSCALL (stat64, 2, name, &buf64);
     if (result == 0)
       result = __xstat32_conv (vers, &buf64, buf);
     return result;
index 4580b872f417609ac9cf0db5fb44dc12ed95703b..a15be30249f9135f4b770c5050e1cc8a13e1fc1e 100644 (file)
@@ -32,7 +32,7 @@ __llseek (int fd, loff_t offset, int whence)
 
   return (loff_t) (INLINE_SYSCALL (_llseek, 5, fd, (off_t) (offset >> 32),
                                   (off_t) (offset & 0xffffffff),
-                                  __ptrvalue (&retval), whence) ?: retval);
+                                  &retval, whence) ?: retval);
 }
 weak_alias (__llseek, llseek)
 strong_alias (__llseek, __libc_lseek64)
index 5f7bce23b106c6849f60772bc9cdecfb9567e100..3a838918e0d8c777d317893e1b90a2ee483671f7 100644 (file)
@@ -44,7 +44,7 @@ __lxstat (int vers, const char *name, struct stat *buf)
   struct kernel_stat kbuf;
   int result;
 
-  result = INLINE_SYSCALL (lstat, 2, name, __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (lstat, 2, name, &kbuf);
   if (result == 0)
     result = __xstat_conv (vers, &kbuf, buf);
 
index a424092ae30a802692bcc4f9790fb9e4170ef22e..175e4abba1023841fd446c5458445f4c8772b9ad 100644 (file)
@@ -53,14 +53,10 @@ __mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t offset)
       return MAP_FAILED;
     }
   void *result;
-  __ptrvalue (result) = (void *__unbounded)
-    INLINE_SYSCALL (mmap2, 6, __ptrvalue (addr),
+  result = (void *)
+    INLINE_SYSCALL (mmap2, 6, addr,
                    len, prot, flags, fd,
                    (off_t) (offset >> MMAP2_PAGE_SHIFT));
-#if __BOUNDED_POINTERS__
-  __ptrlow (result) = __ptrvalue (result);
-  __ptrhigh (result) = __ptrvalue (result) + len;
-#endif
   return result;
 }
 weak_alias (__mmap64, mmap64)
index 2483ebb24315e293c1fb773e421b221ed01712cb..0bbaf086cc155bda843a67e9d81c25d1c2317b87 100644 (file)
 struct __old_msqid_ds
 {
   struct __old_ipc_perm msg_perm;      /* structure describing operation permission */
-  struct msg *__unbounded __msg_first; /* pointer to first message on queue */
-  struct msg *__unbounded __msg_last;  /* pointer to last message on queue */
+  struct msg *__msg_first;             /* pointer to first message on queue */
+  struct msg *__msg_last;              /* pointer to last message on queue */
   __time_t msg_stime;                  /* time of last msgsnd command */
   __time_t msg_rtime;                  /* time of last msgrcv command */
   __time_t msg_ctime;                  /* time of last change */
-  struct wait_queue *__unbounded __wwait; /* ??? */
-  struct wait_queue *__unbounded __rwait; /* ??? */
+  struct wait_queue *__wwait;          /* ??? */
+  struct wait_queue *__rwait;          /* ??? */
   unsigned short int __msg_cbytes;     /* current number of bytes on queue */
   unsigned short int msg_qnum;         /* number of messages currently on queue */
   unsigned short int msg_qbytes;       /* max number of bytes allowed on queue */
@@ -103,8 +103,7 @@ __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
            return -1;
          }
       }
-    result = INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
-                            msqid, cmd, 0, __ptrvalue (&old));
+    result = INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, &old);
     if (result != -1 && cmd != IPC_SET)
       {
        memset(buf, 0, sizeof(*buf));
index edf81a53d3bc61a77904203ca73469525f4d8e63..7ec9b253bced09b9d07ef4f2cfb1caf3039029bb 100644 (file)
@@ -27,7 +27,7 @@
    arguments to a system call.  */
 struct ipc_kludge
   {
-    void *__unbounded msgp;
+    void *msgp;
     long int msgtyp;
   };
 
@@ -48,13 +48,12 @@ __libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
   tmp.msgtyp = msgtyp;
 
   if (SINGLE_THREAD_P)
-    return INLINE_SYSCALL (ipc, 5, IPCOP_msgrcv, msqid, msgsz, msgflg,
-                          __ptrvalue (&tmp));
+    return INLINE_SYSCALL (ipc, 5, IPCOP_msgrcv, msqid, msgsz, msgflg, &tmp);
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   ssize_t result = INLINE_SYSCALL (ipc, 5, IPCOP_msgrcv, msqid, msgsz, msgflg,
-                                  __ptrvalue (&tmp));
+                                  &tmp);
 
    LIBC_CANCEL_RESET (oldtype);
 
index fb1f9a4eae1d3eb115f7cb683800018ca2464bb7..07d0ef8a1e7a0ecded4d044e69fc9f2ef7ff8587 100644 (file)
@@ -33,7 +33,7 @@ int __cache_line_size attribute_hidden;
 
 struct startup_info
   {
-    void *__unbounded sda_base;
+    void *sda_base;
     int (*main) (int, char **, char **, void *);
     int (*init) (int, char **, char **, void *);
     void (*fini) (void);
@@ -42,34 +42,28 @@ struct startup_info
 int
 /* GKM FIXME: GCC: this should get __BP_ prefix by virtue of the
    BPs in the arglist of startup_info.main and startup_info.init. */
-  BP_SYM (__libc_start_main) (int argc, char *__unbounded *__unbounded ubp_av,
-                             char *__unbounded *__unbounded ubp_ev,
-                             ElfW (auxv_t) * __unbounded auxvec,
+  BP_SYM (__libc_start_main) (int argc, char **argv,
+                             char **ev,
+                             ElfW (auxv_t) * auxvec,
                              void (*rtld_fini) (void),
-                             struct startup_info *__unbounded stinfo,
-                             char *__unbounded *__unbounded stack_on_entry)
+                             struct startup_info *stinfo,
+                             char **stack_on_entry)
 {
-#if __BOUNDED_POINTERS__
-  char **argv;
-#else
-# define argv ubp_av
-#endif
-
   /* the PPC SVR4 ABI says that the top thing on the stack will
      be a NULL pointer, so if not we assume that we're being called
      as a statically-linked program by Linux...  */
   if (*stack_on_entry != NULL)
     {
-      char *__unbounded * __unbounded temp;
+      char **temp;
       /* ...in which case, we have argc as the top thing on the
          stack, followed by argv (NULL-terminated), envp (likewise),
          and the auxilary vector.  */
       /* 32/64-bit agnostic load from stack */
-      argc = *(long int *__unbounded) stack_on_entry;
-      ubp_av = stack_on_entry + 1;
-      ubp_ev = ubp_av + argc + 1;
+      argc = *(long int *) stack_on_entry;
+      argv = stack_on_entry + 1;
+      ev = argv + argc + 1;
 #ifdef HAVE_AUX_VECTOR
-      temp = ubp_ev;
+      temp = ev;
       while (*temp != NULL)
        ++temp;
       auxvec = (ElfW (auxv_t) *)++ temp;
@@ -86,7 +80,7 @@ int
        break;
       }
 
-  return generic_start_main (stinfo->main, argc, ubp_av, auxvec,
+  return generic_start_main (stinfo->main, argc, argv, auxvec,
                             stinfo->init, stinfo->fini, rtld_fini,
                             stack_on_entry);
 }
index e94cbd55f629509ebf4b4ddde670f5dfeae8dbfa..3a6ca6c0e45f80c254298c31868a719b98cc2917 100644 (file)
@@ -42,8 +42,7 @@ ptrace (enum __ptrace_request request, ...)
   if (request > 0 && request < 4)
     data = &ret;
 
-  res = INLINE_SYSCALL (ptrace, 4, request, pid,
-                       __ptrvalue (addr), __ptrvalue (data));
+  res = INLINE_SYSCALL (ptrace, 4, request, pid, addr, data);
   if (res >= 0 && request > 0 && request < 4)
     {
       __set_errno (0);
index 6c5c51e930633f60896e107b02545e33fb566138..b28861d4298b12a836231e380a2cba3670ca0130 100644 (file)
@@ -33,10 +33,10 @@ struct __old_semid_ds
   struct __old_ipc_perm sem_perm;      /* operation permission struct */
   __time_t sem_otime;                  /* last semop() time */
   __time_t sem_ctime;                  /* last time changed by semctl() */
-  struct sem *__unbounded __sembase;   /* ptr to first semaphore in array */
-  struct sem_queue *__unbounded __sem_pending; /* pending operations */
-  struct sem_queue *__unbounded __sem_pending_last; /* last pending operation */
-  struct sem_undo *__unbounded __undo; /* ondo requests on this array */
+  struct sem *__sembase;               /* ptr to first semaphore in array */
+  struct sem_queue *__sem_pending;     /* pending operations */
+  struct sem_queue *__sem_pending_last; /* last pending operation */
+  struct sem_undo *__undo;             /* ondo requests on this array */
   unsigned short int sem_nsems;                /* number of semaphores in set */
 };
 
index 91d9443767fc014f34cb196553587fed61e15640..45f0dea65abb5c6423c65f3ad4cb010218cdf511 100644 (file)
@@ -36,7 +36,7 @@ shmat (shmid, shmaddr, shmflg)
 {
   INTERNAL_SYSCALL_DECL(err);
   unsigned long resultvar;
-  void *__unbounded raddr;
+  void *raddr;
 
 #if __BOUNDED_POINTERS__
   size_t length = ~0;
@@ -49,8 +49,8 @@ shmat (shmid, shmaddr, shmflg)
 
   resultvar = INTERNAL_SYSCALL (ipc, err, 5, IPCOP_shmat,
                                shmid, shmflg,
-                               (long int) __ptrvalue (&raddr),
-                               __ptrvalue ((void *) shmaddr));
+                               (long int) &raddr,
+                               (void *) shmaddr);
   if (INTERNAL_SYSCALL_ERROR_P (resultvar, err))
     {
       __set_errno (INTERNAL_SYSCALL_ERRNO (resultvar, err));
index 10b0ccdf35b0faf3ec7d25ff74b7052c4ffe93fc..34806fbb6b5b2b4cad62924e25cc82fde6deb2e5 100644 (file)
@@ -39,8 +39,8 @@ struct __old_shmid_ds
   __ipc_pid_t shm_lpid;                        /* pid of last shmop */
   unsigned short int shm_nattch;       /* number of current attaches */
   unsigned short int __shm_npages;     /* size of segment (pages) */
-  unsigned long int *__unbounded __shm_pages; /* array of ptrs to frames -> SHMMAX */
-  struct vm_area_struct *__unbounded __attaches; /* descriptors for attaches */
+  unsigned long int *__shm_pages;      /* array of ptrs to frames -> SHMMAX */
+  struct vm_area_struct *__attaches;   /* descriptors for attaches */
 };
 
 struct __old_shminfo
@@ -115,8 +115,7 @@ __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
            return -1;
          }
       }
-    result = INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0,
-                            __ptrvalue (&old.ds));
+    result = INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd, 0, &old.ds);
     if (result != -1 && (cmd == SHM_STAT || cmd == IPC_STAT))
       {
        memset(buf, 0, sizeof(*buf));
index aac66199b60a65feccc41c65451439fd70aca5a8..260526bb7f129aadd5e2bed4399757bbcbe87baa 100644 (file)
@@ -30,5 +30,5 @@ int
 shmdt (shmaddr)
      const void *shmaddr;
 {
-  return INLINE_SYSCALL (ipc, 5, IPCOP_shmdt, 0, 0, 0, __ptrvalue ((void *) shmaddr));
+  return INLINE_SYSCALL (ipc, 5, IPCOP_shmdt, 0, 0, 0, (void *) shmaddr);
 }
index 3fe882eecc617891fc502efee7434c94fd661c4a..336975c51d90158ad5754fc799483515712319dd 100644 (file)
@@ -55,8 +55,8 @@ __libc_sigaction (sig, act, oact)
   /* XXX The size argument hopefully will have to be changed to the
      real size of the user-level sigset_t.  */
   result = INLINE_SYSCALL (rt_sigaction, 4, sig,
-                          act ? __ptrvalue (&kact) : NULL,
-                          oact ? __ptrvalue (&koact) : NULL, _NSIG / 8);
+                          act ? &kact : NULL,
+                          oact ? &koact : NULL, _NSIG / 8);
 
   if (oact && result >= 0)
     {
index eb056f3e92797724c6530f69bb77bc93ad1d4c43..37d61c8a1a429767fa0c405ffc5c25e3c335d24e 100644 (file)
@@ -43,7 +43,7 @@ __sigqueue (pid, sig, val)
   info.si_uid = __getuid ();
   info.si_value = val;
 
-  return INLINE_SYSCALL (rt_sigqueueinfo, 3, pid, sig, __ptrvalue (&info));
+  return INLINE_SYSCALL (rt_sigqueueinfo, 3, pid, sig, &info);
 }
 weak_alias (__sigqueue, sigqueue)
 #else
index 988d26662b65d521722fc4644c2796567c9eda61..d5e708777dda188d7afc8604190e312a538b722d 100644 (file)
@@ -48,8 +48,8 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
   /* XXX The size argument hopefully will have to be changed to the
      real size of the user-level sigset_t.  */
   ret = INLINE_SYSCALL (rt_sigaction, 5, sig,
-                       act ? __ptrvalue (&kact) : 0,
-                       oact ? __ptrvalue (&koact) : 0, stub, _NSIG / 8);
+                       act ? &kact : 0,
+                       oact ? &koact : 0, stub, _NSIG / 8);
 
   if (oact && ret >= 0)
     {
index 2d37de73363971e1b8d1940fc23f3e67cfabd604..4ff1bf3787a427c99e2049f83fd30c02bb443303 100644 (file)
@@ -37,7 +37,7 @@ __sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
     .newlen = newlen
   };
 
-  return INLINE_SYSCALL (_sysctl, 1, __ptrvalue (&args));
+  return INLINE_SYSCALL (_sysctl, 1, &args);
 }
 libc_hidden_def (__sysctl)
 weak_alias (__sysctl, sysctl)
index 0fcb754a55e8bf3b5091b3aa6c8e2ac18955d3d3..4b5d1e1a8b0a96f8d0586154f2ca10d0e829c0b2 100644 (file)
@@ -62,8 +62,8 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
   /* XXX The size argument hopefully will have to be changed to the
      real size of the user-level sigset_t.  */
   result = INLINE_SYSCALL (rt_sigaction, 4,
-                          sig, act ? __ptrvalue (&kact) : NULL,
-                          oact ? __ptrvalue (&koact) : NULL, _NSIG / 8);
+                          sig, act ? &kact : NULL,
+                          oact ? &koact : NULL, _NSIG / 8);
   if (oact && result >= 0)
     {
       oact->sa_handler = koact.k_sa_handler;
index 2eaf380b1173e35ac62555f222bd342aa1782199..ac342cec75fde2594da3a83443b6118bbf7ae266 100644 (file)
@@ -44,7 +44,7 @@ __xstat (int vers, const char *name, struct stat *buf)
   struct kernel_stat kbuf;
   int result;
 
-  result = INLINE_SYSCALL (stat, 2, name, __ptrvalue (&kbuf));
+  result = INLINE_SYSCALL (stat, 2, name, &kbuf);
   if (result == 0)
     result = __xstat_conv (vers, &kbuf, buf);