diff options
author | Andreas Jaeger <aj@suse.de> | 2000-12-28 14:22:22 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-12-28 14:22:22 +0000 |
commit | dde52fca4821489036284fa237ede2a6023915a6 (patch) | |
tree | deafb06cfedcf252ad22efc3effab3f2210967b6 /sysdeps/unix/sysv/linux | |
parent | 8da8e2dbd2299e1a3ebc266a023ba6b37833bdc8 (diff) | |
download | glibc-dde52fca4821489036284fa237ede2a6023915a6.tar.gz glibc-dde52fca4821489036284fa237ede2a6023915a6.tar.xz glibc-dde52fca4821489036284fa237ede2a6023915a6.zip |
Update.
* sysdeps/generic/dl-environ.c: Add prototype for unsetenv. * sysdeps/unix/sysv/linux/i386/setrlimit.c: Add prototype for __new_setrlimit. * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Add prototype for __old_getrlimit64. * sysdeps/unix/sysv/linux/i386/getrlimit.c: Add prototype for __new_getrlimit. * sysdeps/unix/sysv/linux/i386/chown.c: Add prototypes for __chown_is_lchown and __real_chown.
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/chown.c | 6 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/getrlimit.c | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setrlimit.c | 2 |
4 files changed, 15 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/chown.c b/sysdeps/unix/sysv/linux/i386/chown.c index f7082ceac7..aa04ca4bd4 100644 --- a/sysdeps/unix/sysv/linux/i386/chown.c +++ b/sysdeps/unix/sysv/linux/i386/chown.c @@ -39,6 +39,12 @@ extern int __syscall_chown (const char *__file, __kernel_uid_t __owner, __kernel_gid_t __group); + +extern int __chown_is_lchown (const char *__file, uid_t __owner, + gid_t __group); +extern int __real_chown (const char *__file, uid_t __owner, gid_t __group); + + #if defined __NR_lchown || __ASSUME_LCHOWN_SYSCALL > 0 /* Running under Linux > 2.1.80. */ diff --git a/sysdeps/unix/sysv/linux/i386/getrlimit.c b/sysdeps/unix/sysv/linux/i386/getrlimit.c index 33d011a72c..765c21de04 100644 --- a/sysdeps/unix/sysv/linux/i386/getrlimit.c +++ b/sysdeps/unix/sysv/linux/i386/getrlimit.c @@ -31,6 +31,10 @@ extern int __syscall_ugetrlimit (unsigned int resource, extern int __syscall_getrlimit (unsigned int resource, struct rlimit *__unbounded rlimits); +extern int __new_getrlimit (enum __rlimit_resource resource, + struct rlimit *__unbounded rlimits); + + /* Linux 2.3.25 introduced a new system call since the types used for the limits are now unsigned. */ #if defined __NR_ugetrlimit && !defined __ASSUME_NEW_GETRLIMIT_SYSCALL diff --git a/sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c b/sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c index 2f8a365d3e..5f1a3d0ebb 100644 --- a/sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c +++ b/sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c @@ -26,6 +26,9 @@ #include <sys/types.h> extern int __new_getrlimit (enum __rlimit_resource, struct rlimit *); +extern int __old_getrlimit64 (enum __rlimit_resource resource, + struct rlimit64 *rlimits); + /* Put the soft and hard limits for RESOURCE in *RLIMITS. Returns 0 if successful, -1 if not (and sets errno). */ diff --git a/sysdeps/unix/sysv/linux/i386/setrlimit.c b/sysdeps/unix/sysv/linux/i386/setrlimit.c index 04b55d1d1c..2435d908c4 100644 --- a/sysdeps/unix/sysv/linux/i386/setrlimit.c +++ b/sysdeps/unix/sysv/linux/i386/setrlimit.c @@ -31,6 +31,8 @@ extern int __syscall_setrlimit (unsigned int resource, const struct rlimit *__unbounded rlimits); extern int __syscall_ugetrlimit (unsigned int resource, const struct rlimit *__unbounded rlimits); +extern int __new_setrlimit (enum __rlimit_resource resource, + const struct rlimit *__unboundedrlimits); /* Linux 2.3.25 introduced a new system call since the types used for the limits are now unsigned. */ |