1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
emacs/nt/inc/pwd.h
Eli Zaretskii 22749e9acb 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.
2009-03-21 11:31:50 +00:00

29 lines
584 B
C

#ifndef _PWD_H_
#define _PWD_H_
/*
* pwd.h doesn't exist on NT, so we put together our own.
*/
struct passwd {
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 unsigned uid_t;
typedef uid_t gid_t;
struct passwd * getpwnam (char *);
struct passwd * getpwuid (unsigned);
#endif /* _PWD_H_ */
/* arch-tag: 68308424-cb2b-49ed-bb52-b347fee416bf
(do not change this comment) */