summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/getrlimit.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-12-08 23:48:24 +0000
committerUlrich Drepper <drepper@redhat.com>1999-12-08 23:48:24 +0000
commitd587d83bd9825c431456774321bfd0d5eabe7fee (patch)
tree26a083c0bf27e914ae70e4e8a03e62b0f52c8c9d /sysdeps/unix/sysv/linux/getrlimit.c
parent49f2be5b0eea30507a77e9467d0ef2c697953bca (diff)
downloadglibc-d587d83bd9825c431456774321bfd0d5eabe7fee.tar
glibc-d587d83bd9825c431456774321bfd0d5eabe7fee.tar.gz
glibc-d587d83bd9825c431456774321bfd0d5eabe7fee.tar.bz2
glibc-d587d83bd9825c431456774321bfd0d5eabe7fee.zip
Update.
* sysdeps/unix/sysv/linux/getrlimit.c: Remove K&R compatibility. * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_TRUNCATE64_SYSCALL and __ASSUME_MMAP2_SYSCALL for 2.3.31 on x86. * sysdeps/unix/sysv/linux/ftruncate64.c: New file. * sysdeps/unix/sysv/linux/truncate64.c: New file. * sysdeps/unix/sysv/linux/i386/mmap.S: Allow using mmap2. * sysdeps/unix/sysv/linux/i386/mmap64.S: New file.
Diffstat (limited to 'sysdeps/unix/sysv/linux/getrlimit.c')
-rw-r--r--sysdeps/unix/sysv/linux/getrlimit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/getrlimit.c b/sysdeps/unix/sysv/linux/getrlimit.c
index a929030d2a..14a879c5df 100644
--- a/sysdeps/unix/sysv/linux/getrlimit.c
+++ b/sysdeps/unix/sysv/linux/getrlimit.c
@@ -24,10 +24,9 @@
#include "kernel-features.h"
-extern int __syscall_ugetrlimit __P ((unsigned int resource,
- struct rlimit *rlimits));
-extern int __syscall_getrlimit __P ((unsigned int resource,
- struct rlimit *rlimits));
+extern int __syscall_ugetrlimit (unsigned int resource,
+ struct rlimit *rlimits);
+extern int __syscall_getrlimit (unsigned int resource, struct rlimit *rlimits);
/* Linux 2.3.25 introduced a new system call since the types used for
the limits are now unsigned. */