1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
* 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.
This commit is contained in:
Ulrich Drepper
1999-12-08 23:48:24 +00:00
parent 49f2be5b0e
commit d587d83bd9
7 changed files with 326 additions and 6 deletions

View File

@ -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. */