Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Andreas Jaeger committed Dec 28, 2000
1 parent 8da8e2d commit dde52fc
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ChangeLog
@@ -1,5 +1,19 @@
2000-12-28 Andreas Jaeger <aj@suse.de>

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

* sysdeps/generic/ldsodefs.h: Add noreturn attribute to
_dl_reloc_bad_type.

Expand Down
1 change: 1 addition & 0 deletions sysdeps/generic/dl-environ.c
Expand Up @@ -21,6 +21,7 @@
#include <ldsodefs.h>

extern char **_environ;
extern void unsetenv (const char *name);

/* Walk through the environment of the process and return all entries
starting with `LD_'. */
Expand Down
6 changes: 6 additions & 0 deletions sysdeps/unix/sysv/linux/i386/chown.c
Expand Up @@ -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. */

Expand Down
4 changes: 4 additions & 0 deletions sysdeps/unix/sysv/linux/i386/getrlimit.c
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c
Expand Up @@ -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). */
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/unix/sysv/linux/i386/setrlimit.c
Expand Up @@ -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. */
Expand Down

0 comments on commit dde52fc

Please sign in to comment.