summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-12 14:48:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-12 14:48:10 +0000
commit9611f84e124405edc8ce1af0b40560c3a7d6ae72 (patch)
tree449871ba49acb16d65de8c3ec5be2ff71692e3d8 /libc/sysdeps
parent6602ba129f062e26a875d8f3b947504500dcc261 (diff)
*: remove vestiges of gcc's "bounded pointers" feature,
it is dead (not supported by gcc) for years. (more of it remains in multiple copies of sigaction.c)
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/sigqueue.c2
-rw-r--r--libc/sysdeps/linux/x86_64/brk.c13
2 files changed, 8 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/common/sigqueue.c b/libc/sysdeps/linux/common/sigqueue.c
index d610e8f6a..1b997dcd7 100644
--- a/libc/sysdeps/linux/common/sigqueue.c
+++ b/libc/sysdeps/linux/common/sigqueue.c
@@ -48,7 +48,7 @@ int sigqueue (pid_t pid, int sig, const union sigval val)
info.si_uid = getuid ();
info.si_value = val;
- return __libc_rt_sigqueueinfo(pid, sig, __ptrvalue (&info));
+ return __libc_rt_sigqueueinfo(pid, sig, &info);
}
#endif
diff --git a/libc/sysdeps/linux/x86_64/brk.c b/libc/sysdeps/linux/x86_64/brk.c
index fc906abc1..b1ee640af 100644
--- a/libc/sysdeps/linux/x86_64/brk.c
+++ b/libc/sysdeps/linux/x86_64/brk.c
@@ -25,19 +25,20 @@
void *__curbrk attribute_hidden = 0;
/* libc_hidden_proto(brk) */
-int brk (void *addr)
+int brk(void *addr)
{
- void *__unbounded newbrk;
+ void *newbrk;
__asm__ ("syscall\n"
- : "=a" (newbrk)
- : "0" (__NR_brk), "D" (__ptrvalue (addr))
- : "r11","rcx","memory");
+ : "=a" (newbrk)
+ : "0" (__NR_brk), "D" (addr)
+ : "r11", "rcx"
+ );
__curbrk = newbrk;
if (newbrk < addr) {
- __set_errno (ENOMEM);
+ __set_errno(ENOMEM);
return -1;
}