diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-22 19:35:08 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-22 19:35:08 +0000 |
commit | df31d32b411022d130b078de177cfa40b7bf6cde (patch) | |
tree | 0604126022fcad298f377155a756b42e28882177 /libc/sysdeps/linux/common/ulimit.c | |
parent | d98307c5af70386c4480deff87c7c9921d801c7c (diff) |
Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA is a useless attempt
Diffstat (limited to 'libc/sysdeps/linux/common/ulimit.c')
-rw-r--r-- | libc/sysdeps/linux/common/ulimit.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libc/sysdeps/linux/common/ulimit.c b/libc/sysdeps/linux/common/ulimit.c index 523beae47..75d7a8237 100644 --- a/libc/sysdeps/linux/common/ulimit.c +++ b/libc/sysdeps/linux/common/ulimit.c @@ -5,21 +5,10 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#define _GNU_SOURCE -#define _LARGEFILE64_SOURCE -#include <features.h> -#undef __OPTIMIZE__ -/* We absolutely do _NOT_ want interfaces silently - * * * renamed under us or very bad things will happen... */ -#ifdef __USE_FILE_OFFSET64 -# undef __USE_FILE_OFFSET64 -#endif +#include "syscalls.h" #ifdef __NR_ulimit -#include <sys/types.h> -#include <sys/syscall.h> - _syscall2(long, ulimit, int, cmd, int, arg); #else @@ -27,7 +16,6 @@ _syscall2(long, ulimit, int, cmd, int, arg); #include <stdarg.h> #include <unistd.h> #include <ulimit.h> -#include <errno.h> #include <sys/resource.h> libc_hidden_proto(sysconf) @@ -68,4 +56,3 @@ long int ulimit(int cmd, ...) return result; } #endif - |