diff options
author | Eli Zaretskii <eliz@gnu.org> | 2009-03-21 11:31:50 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2009-03-21 11:31:50 +0000 |
commit | 22749e9acb08d9a7ab78bdf930464b1f19012a63 (patch) | |
tree | bddda2f8f67fc48f7dd3c184f0e109fecc0139d4 /lib-src | |
parent | cc15c0f2167a8fa39d80f5d29672ee9d9eebd418 (diff) | |
download | emacs-22749e9acb08d9a7ab78bdf930464b1f19012a63.tar.gz |
inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
inc/pwd.h (struct passwd): Change the types of pw_uid and pw_gid to unsigned.
(getpwuid): Argument is now unsigned.
uid_t is now unsigned.
ntlib.c (setuid): Argument is now unsigned.
(getuid): Return value is now unsigned.
(getpwuid): Argument is now unsigned.
(fchown): UID and GID arguments are now unsigned.
ntlib.h (fchown): UID and GID arguments are now unsigned.
(getuid): Return value is now unsigned.
(setuid): Argument is now unsigned.
(getpwuid): Remove prototype (it's declared in nt/inc/pwd.h).
w32.c (getpwuid): Change argument type to unsigned.
(struct w32_id): Change type of `rid' member to unsigned.
(w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
argument ID to unsigned. All callers changed.
(getuid, geteuid, getgid, getegid): Change return type to unsigned.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/ChangeLog | 12 | ||||
-rw-r--r-- | lib-src/ntlib.c | 8 | ||||
-rw-r--r-- | lib-src/ntlib.h | 7 |
3 files changed, 19 insertions, 8 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 4838f807d06..b9c6f1318e6 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,15 @@ +2009-03-21 Eli Zaretskii <eliz@gnu.org> + + * ntlib.c (setuid): Argument is now unsigned. + (getuid): Return value is now unsigned. + (getpwuid): Argument is now unsigned. + (fchown): UID and GID arguments are now unsigned. + + * ntlib.h (fchown): UID and GID arguments are now unsigned. + (getuid): Return value is now unsigned. + (setuid): Argument is now unsigned. + (getpwuid): Remove prototype (it's declared in nt/inc/pwd.h). + 2009-03-11 Stefan Monnier <monnier@iro.umontreal.ca> * emacsclient.c (main): Revert part of last change, so diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c index 4ca7ae40aa1..bce4ce10f31 100644 --- a/lib-src/ntlib.c +++ b/lib-src/ntlib.c @@ -119,20 +119,20 @@ cuserid (char * s) return name; } -int +unsigned getuid () { return 0; } int -setuid (int uid) +setuid (unsigned uid) { return 0; } struct passwd * -getpwuid (int uid) +getpwuid (unsigned uid) { return NULL; } @@ -185,7 +185,7 @@ getpass (const char * prompt) } int -fchown (int fd, int uid, int gid) +fchown (int fd, unsigned uid, unsigned gid) { return 0; } diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h index 4fe492241dd..7f9313c9ec4 100644 --- a/lib-src/ntlib.h +++ b/lib-src/ntlib.h @@ -35,11 +35,10 @@ char *getwd (char *dir); int getppid(void); char * getlogin (); char * cuserid (char * s); -int getuid (); -int setuid (int uid); -struct passwd * getpwuid (int uid); +unsigned getuid (); +int setuid (unsigned uid); char * getpass (const char * prompt); -int fchown (int fd, int uid, int gid); +int fchown (int fd, unsigned uid, unsigned gid); #ifndef BSTRING #define bzero(b, l) memset(b, 0, l) |