summaryrefslogtreecommitdiff
path: root/nt/inc
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2009-03-21 11:31:50 +0000
committerEli Zaretskii <eliz@gnu.org>2009-03-21 11:31:50 +0000
commit22749e9acb08d9a7ab78bdf930464b1f19012a63 (patch)
treebddda2f8f67fc48f7dd3c184f0e109fecc0139d4 /nt/inc
parentcc15c0f2167a8fa39d80f5d29672ee9d9eebd418 (diff)
downloademacs-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 'nt/inc')
-rw-r--r--nt/inc/pwd.h20
-rw-r--r--nt/inc/sys/stat.h4
2 files changed, 12 insertions, 12 deletions
diff --git a/nt/inc/pwd.h b/nt/inc/pwd.h
index 31c0df7ec30..d8a4ffc2e20 100644
--- a/nt/inc/pwd.h
+++ b/nt/inc/pwd.h
@@ -5,21 +5,21 @@
*/
struct passwd {
- char *pw_name;
- char *pw_passwd;
- int pw_uid;
- int pw_gid;
- int pw_quota;
- char *pw_gecos;
- char *pw_dir;
- char *pw_shell;
+ char *pw_name;
+ char *pw_passwd;
+ unsigned pw_uid; /* Vista's TrustedInstaller has a very large RID */
+ unsigned pw_gid;
+ int pw_quota;
+ char *pw_gecos;
+ char *pw_dir;
+ char *pw_shell;
};
-typedef int uid_t;
+typedef unsigned uid_t;
typedef uid_t gid_t;
struct passwd * getpwnam (char *);
-struct passwd * getpwuid (int);
+struct passwd * getpwuid (unsigned);
#endif /* _PWD_H_ */
diff --git a/nt/inc/sys/stat.h b/nt/inc/sys/stat.h
index a7c4c02ee06..4d93430803c 100644
--- a/nt/inc/sys/stat.h
+++ b/nt/inc/sys/stat.h
@@ -61,8 +61,8 @@ struct stat {
dev_t st_dev;
unsigned short st_mode;
short st_nlink;
- int st_uid;
- int st_gid;
+ unsigned st_uid; /* Vista's TrustedInstaller has a very large RID */
+ unsigned st_gid;
unsigned __int64 st_size;
dev_t st_rdev;
time_t st_atime;