diff options
Diffstat (limited to 'libc/sysdeps/linux/vax')
| -rw-r--r-- | libc/sysdeps/linux/vax/bits/fcntl.h | 8 | ||||
| -rw-r--r-- | libc/sysdeps/linux/vax/brk.c | 2 | ||||
| -rw-r--r-- | libc/sysdeps/linux/vax/mmap.c | 4 |
3 files changed, 5 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/vax/bits/fcntl.h b/libc/sysdeps/linux/vax/bits/fcntl.h index a38bf52ad..66c2812c4 100644 --- a/libc/sysdeps/linux/vax/bits/fcntl.h +++ b/libc/sysdeps/linux/vax/bits/fcntl.h @@ -162,8 +162,7 @@ struct flock64 #endif -#ifdef __USE_GNU -#if 0 +#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ /* Flags for SYNC_FILE_RANGE. */ # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages in the range before performing the @@ -174,7 +173,6 @@ struct flock64 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in the range after performing the write. */ -#endif /* Flags for SPLICE and VMSPLICE. */ # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */ @@ -187,18 +185,16 @@ struct flock64 __BEGIN_DECLS -#ifdef __USE_GNU +#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ /* Provide kernel hint to read ahead. */ extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) __THROW; -#if 0 /* Selective file content synch'ing. */ extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to, unsigned int __flags); -#endif /* Splice address range into a pipe. */ extern ssize_t vmsplice (int __fdout, const struct iovec *__iov, diff --git a/libc/sysdeps/linux/vax/brk.c b/libc/sysdeps/linux/vax/brk.c index 47fd3e529..53652f922 100644 --- a/libc/sysdeps/linux/vax/brk.c +++ b/libc/sysdeps/linux/vax/brk.c @@ -24,7 +24,7 @@ /* This must be initialized data because commons can't have aliases. */ void *__curbrk attribute_hidden = NULL; -libc_hidden_proto(brk) +/* libc_hidden_proto(brk) */ int brk (void *addr) { diff --git a/libc/sysdeps/linux/vax/mmap.c b/libc/sysdeps/linux/vax/mmap.c index 41bfb79f1..2df685c21 100644 --- a/libc/sysdeps/linux/vax/mmap.c +++ b/libc/sysdeps/linux/vax/mmap.c @@ -4,8 +4,8 @@ #include <errno.h> #include <sys/syscall.h> -libc_hidden_proto(mmap) +/* libc_hidden_proto(mmap) */ _syscall6 (void *, mmap, void *, start, size_t, length, int, prot, int, flags, - int, fd, off_t, offset); + int, fd, off_t, offset) libc_hidden_def(mmap) |
