diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:47:56 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:47:56 +0300 |
commit | c558a99e0be506a9abdf677f0ca4490644e05fc1 (patch) | |
tree | 17aef678ad05a32ef96ce8385703cb3fe089a5c7 /sys/include/ape/pwd.h | |
parent | e5888a1ffdae813d7575f5fb02275c6bb07e5199 (diff) |
Import sources from 2011-03-30 iso image - sys/include
Diffstat (limited to 'sys/include/ape/pwd.h')
-rwxr-xr-x | sys/include/ape/pwd.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/include/ape/pwd.h b/sys/include/ape/pwd.h new file mode 100755 index 000000000..3fdb5d082 --- /dev/null +++ b/sys/include/ape/pwd.h @@ -0,0 +1,28 @@ +#ifndef __PWD +#define __PWD +#ifndef _POSIX_SOURCE + This header file is not defined in pure ANSI +#endif +#pragma lib "/$M/lib/ape/libap.a" +#include <sys/types.h> + +struct passwd { + char *pw_name; + uid_t pw_uid; + gid_t pw_gid; + char *pw_dir; + char *pw_shell; +}; + +#ifdef __cplusplus +extern "C" { +#endif + +extern struct passwd *getpwuid(uid_t); +extern struct passwd *getpwnam(const char *); + +#ifdef __cplusplus +} +#endif + +#endif |