aboutsummaryrefslogtreecommitdiffstats
path: root/wrapfuncs.in
diff options
context:
space:
mode:
Diffstat (limited to 'wrapfuncs.in')
-rw-r--r--wrapfuncs.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/wrapfuncs.in b/wrapfuncs.in
index 22510dc..26ef1b7 100644
--- a/wrapfuncs.in
+++ b/wrapfuncs.in
@@ -89,3 +89,23 @@ int truncate(const char *path, off_t length);
int utime(const char *path, const struct utimbuf *buf);
int utimes(const char *path, const struct timeval *times);
int execve(const char *filename, char *const *argv, char *const *envp);
+# for emulation of passwd utilities
+struct passwd *getpwnam(const char *name);
+struct passwd *getpwuid(uid_t uid);
+int getpwnam_r(const char *name, struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp);
+int getpwuid_r(uid_t uid, struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp);
+int getpwent_r(struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp);
+struct passwd *getpwent(void);
+void setpwent(void);
+void endpwent(void);
+int getpw(uid_t uid, char *buf);
+struct group *getgrnam(const char *name);
+struct group *getgrgid(gid_t gid);
+int getgrnam_r(const char *name, struct group *gbuf, char *buf, size_t buflen, struct group **gbufp);
+int getgrgid_r(gid_t gid, struct group *gbuf, char *buf, size_t buflen, struct group **gbufp);
+struct group *getgrent(void);
+int getgrent_r(struct group *gbuf, char *buf, size_t buflen, struct group **gbufp);
+void setgrent(void);
+void endgrent(void);
+int getgrouplist(const char *user, gid_t group, gid_t *groups, int *ngroups);
+int getgroups(int size, gid_t *list);