about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/shmat.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-02-15 00:51:53 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-02-15 00:51:53 +0000
commit2bdd4ca6b6c38367e301042c2247395568c63ebd (patch)
tree8fb33d2cfb3fc67852327483322747eceefb91ae /sysdeps/unix/sysv/linux/shmat.c
parentdd395cf1103ec8e26affcf501791505ded4d31c6 (diff)
downloadglibc-2bdd4ca6b6c38367e301042c2247395568c63ebd.tar.gz
glibc-2bdd4ca6b6c38367e301042c2247395568c63ebd.tar.xz
glibc-2bdd4ca6b6c38367e301042c2247395568c63ebd.zip
Remove miscellaneous bounded-pointers relics in C code.
Diffstat (limited to 'sysdeps/unix/sysv/linux/shmat.c')
-rw-r--r--sysdeps/unix/sysv/linux/shmat.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c
index 45f0dea65a..bac1b290ac 100644
--- a/sysdeps/unix/sysv/linux/shmat.c
+++ b/sysdeps/unix/sysv/linux/shmat.c
@@ -38,15 +38,6 @@ shmat (shmid, shmaddr, shmflg)
   unsigned long resultvar;
   void *raddr;
 
-#if __BOUNDED_POINTERS__
-  size_t length = ~0;
-  struct shmid_ds shmds;
-  /* It's unfortunate that we need to make another system call to get
-     the shared memory segment length...  */
-  if (shmctl (shmid, IPC_STAT, &shmds) == 0)
-    length = shmds.shm_segsz;
-#endif
-
   resultvar = INTERNAL_SYSCALL (ipc, err, 5, IPCOP_shmat,
 				shmid, shmflg,
 				(long int) &raddr,