diff options
author | Roland McGrath <roland@gnu.org> | 1998-11-29 10:10:47 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-11-29 10:10:47 +0000 |
commit | 2d6d0728231ad89064267fb0df3090675a4f174b (patch) | |
tree | a9fce31bc7fdb5eb10c5dc75be6f08cc813bc330 /hurd | |
parent | 5f75d1e2fdf4b188bb742a7d6626731bf5b392f6 (diff) | |
download | glibc-2d6d0728231ad89064267fb0df3090675a4f174b.zip glibc-2d6d0728231ad89064267fb0df3090675a4f174b.tar.gz glibc-2d6d0728231ad89064267fb0df3090675a4f174b.tar.bz2 |
1998-11-28 Roland McGrath <roland@baalperazim.frob.com>
* hurd/setuids.c: Renamed to ...
* hurd/seteuids.c: this.
(setuids): Renamed to seteuids.
* hurd/getuids.c: Renamed to ...
* hurd/geteuids.c: this.
(__getuids): Renamed to geteuids, no aliases.
* hurd/hurd.h (geteuids, seteuids): Declare them.
* hurd/Versions: Replace getuids; __getuids with geteuids; seteuids.
* hurd/Makefile (routines): Updated.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/Makefile | 2 | ||||
-rw-r--r-- | hurd/Versions | 2 | ||||
-rw-r--r-- | hurd/geteuids.c (renamed from hurd/getuids.c) | 6 | ||||
-rw-r--r-- | hurd/hurd.h | 5 | ||||
-rw-r--r-- | hurd/seteuids.c (renamed from hurd/setuids.c) | 4 |
5 files changed, 11 insertions, 8 deletions
diff --git a/hurd/Makefile b/hurd/Makefile index 85aa30a..3eeb445 100644 --- a/hurd/Makefile +++ b/hurd/Makefile @@ -46,7 +46,7 @@ routines = hurdstartup hurdinit \ path-lookup \ setauth \ pid2task task2pid \ - getuids setuids getumask fchroot \ + geteuids seteuids getumask fchroot \ hurdsock hurdauth \ privports \ msgportdemux \ diff --git a/hurd/Versions b/hurd/Versions index 6247858..46e9279 100644 --- a/hurd/Versions +++ b/hurd/Versions @@ -18,7 +18,7 @@ libc { _hurd_init; _hurd_proc_init; _hurd_exec; _hurd_canonicalize_directory_name_internal; - getuids; __getuids; + geteuids; seteuids; # XXX ought to exist on all platforms getumask; diff --git a/hurd/getuids.c b/hurd/geteuids.c index f367e0e..ed85dfd 100644 --- a/hurd/getuids.c +++ b/hurd/geteuids.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1994, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 94, 96, 97, 98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,7 +21,7 @@ #include <string.h> int -__getuids (int n, uid_t *uidset) +geteuids (int n, uid_t *uidset) { error_t err; int nuids; @@ -61,5 +61,3 @@ __getuids (int n, uid_t *uidset) return nuids; } - -weak_alias (__getuids, getuids) diff --git a/hurd/hurd.h b/hurd/hurd.h index 98d726a..10036a9 100644 --- a/hurd/hurd.h +++ b/hurd/hurd.h @@ -155,6 +155,11 @@ extern int setcttyid (mach_port_t); extern int __setauth (auth_t), setauth (auth_t); +/* Get and set the effective UID set. */ +extern int geteuids (int __n, uid_t *__uidset); +extern int seteuids (int __n, const uid_t *__uidset); + + /* Split FILE into a directory and a name within the directory. The directory lookup uses the current root and working directory. If successful, stores in *NAME a pointer into FILE where the name diff --git a/hurd/setuids.c b/hurd/seteuids.c index 8b20240..231dce5 100644 --- a/hurd/setuids.c +++ b/hurd/seteuids.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1994, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1993, 94, 97, 98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,7 +21,7 @@ /* Set the uid set for the current user to UIDS (N of them). */ int -setuids (int n, const uid_t *uids) +seteuids (int n, const uid_t *uids) { error_t err; auth_t newauth; |