2 * D header file for POSIX.
4 * Copyright: Public Domain
5 * License: Public Domain
7 * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
9 module core.sys.posix.pwd;
11 private import core.sys.posix.config;
12 public import core.sys.posix.sys.types; // for gid_t, uid_t
29 passwd* getpwnam(in char*);
30 passwd* getpwuid(uid_t);
46 else version( darwin )
62 else version( freebsd )
66 char* pw_name; /* user name */
67 char* pw_passwd; /* encrypted password */
68 uid_t pw_uid; /* user uid */
69 gid_t pw_gid; /* user gid */
70 time_t pw_change; /* password change time */
71 char* pw_class; /* user access class */
72 char* pw_gecos; /* Honeywell login info */
73 char* pw_dir; /* home directory */
74 char* pw_shell; /* default shell */
75 time_t pw_expire; /* account expiration */
76 int pw_fields; /* internal: fields filled in */
80 passwd* getpwnam(in char*);
81 passwd* getpwuid(uid_t);
84 // Thread-Safe Functions (TSF)
87 int getpwnam_r(in char*, passwd*, char*, size_t, passwd**);
88 int getpwuid_r(uid_t, passwd*, char*, size_t, passwd**);
93 int getpwnam_r(in char*, passwd*, char*, size_t, passwd**);
94 int getpwuid_r(uid_t, passwd*, char*, size_t, passwd**);
96 else version( darwin )
98 int getpwnam_r(in char*, passwd*, char*, size_t, passwd**);
99 int getpwuid_r(uid_t, passwd*, char*, size_t, passwd**);
101 else version( freebsd )
103 int getpwnam_r(in char*, passwd*, char*, size_t, passwd**);
104 int getpwuid_r(uid_t, passwd*, char*, size_t, passwd**);
121 else version ( darwin )
127 else version ( freebsd )