Mercurial > emacs
comparison lib-src/ntlib.c @ 102670:06ca3efb355b
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.
| author | Eli Zaretskii <eliz@gnu.org> |
|---|---|
| date | Sat, 21 Mar 2009 11:29:28 +0000 |
| parents | a9f7e446141d |
| children | 1d1d5d9bd884 |
comparison
equal
deleted
inserted
replaced
| 102669:a37c36c333eb | 102670:06ca3efb355b |
|---|---|
| 117 if (s) | 117 if (s) |
| 118 return strcpy (s, name ? name : ""); | 118 return strcpy (s, name ? name : ""); |
| 119 return name; | 119 return name; |
| 120 } | 120 } |
| 121 | 121 |
| 122 int | 122 unsigned |
| 123 getuid () | 123 getuid () |
| 124 { | 124 { |
| 125 return 0; | 125 return 0; |
| 126 } | 126 } |
| 127 | 127 |
| 128 int | 128 int |
| 129 setuid (int uid) | 129 setuid (unsigned uid) |
| 130 { | 130 { |
| 131 return 0; | 131 return 0; |
| 132 } | 132 } |
| 133 | 133 |
| 134 struct passwd * | 134 struct passwd * |
| 135 getpwuid (int uid) | 135 getpwuid (unsigned uid) |
| 136 { | 136 { |
| 137 return NULL; | 137 return NULL; |
| 138 } | 138 } |
| 139 | 139 |
| 140 char * | 140 char * |
| 183 | 183 |
| 184 return NULL; | 184 return NULL; |
| 185 } | 185 } |
| 186 | 186 |
| 187 int | 187 int |
| 188 fchown (int fd, int uid, int gid) | 188 fchown (int fd, unsigned uid, unsigned gid) |
| 189 { | 189 { |
| 190 return 0; | 190 return 0; |
| 191 } | 191 } |
| 192 | 192 |
| 193 /* Place a wrapper around the MSVC version of ctime. It returns NULL | 193 /* Place a wrapper around the MSVC version of ctime. It returns NULL |
