forked from enlightenment/efl
* src/lib/Evil.h: * src/lib/Makefile.am: * src/lib/evil.c: * src/lib/pwd/Makefile.am: * src/lib/pwd/pwd.h: add langinfo and getpwuid support * src/lib/mman/sys/mman.h: * src/lib/dlfcn/dlfcn.h: fix comment SVN revision: 34942devs/devilhorns/wayland_egl
parent
d6b97fd852
commit
6aba69be2f
9 changed files with 189 additions and 8 deletions
@ -0,0 +1,4 @@ |
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
include_HEADERS = pwd.h
|
@ -0,0 +1,54 @@ |
||||
#ifndef __EVIL_PWD_H__ |
||||
#define __EVIL_PWD_H__ |
||||
|
||||
|
||||
#include <time.h> |
||||
|
||||
#include <Evil.h> |
||||
|
||||
|
||||
#ifdef EAPI |
||||
# undef EAPI |
||||
#endif /* EAPI */ |
||||
|
||||
#ifdef _WIN32 |
||||
# ifdef EFL_EVIL_PWD_BUILD |
||||
# ifdef DLL_EXPORT |
||||
# define EAPI __declspec(dllexport) |
||||
# else |
||||
# define EAPI |
||||
# endif /* ! DLL_EXPORT */ |
||||
# else |
||||
# define EAPI __declspec(dllimport) |
||||
# endif /* ! EFL_EVIL_PWD_BUILD */ |
||||
#endif /* _WIN32 */ |
||||
|
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
|
||||
struct passwd { |
||||
char *pw_name; /* user name */ |
||||
char *pw_passwd; /* encrypted password */ |
||||
uid_t pw_uid; /* user uid */ |
||||
gid_t pw_gid; /* user gid */ |
||||
time_t pw_change; /* password change time */ |
||||
char *pw_class; /* user access class */ |
||||
char *pw_gecos; /* Honeywell login info */ |
||||
char *pw_dir; /* home directory */ |
||||
char *pw_shell; /* default shell */ |
||||
time_t pw_expire; /* account expiration */ |
||||
int pw_fields; /* internal: fields filled in */ |
||||
}; |
||||
|
||||
EAPI struct passwd * getpwuid (uid_t uid); |
||||
|
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
|
||||
#endif /* __EVIL_PWD_H__ */ |
Loading…
Reference in new issue