diff options
author | Ron Yorston <rmy@pobox.com> | 2015-05-18 14:38:08 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-05-18 14:38:08 +0100 |
commit | 4a9a7addbc23be8e7db385697678f53a9d0b96a1 (patch) | |
tree | eaab6e7b36fac13da1f3d25f167c62912652ab87 /include/mingw.h | |
parent | 10695d3d3472bb5ad7b9f5d9313f073fc67a8f1a (diff) | |
download | busybox-w32-4a9a7addbc23be8e7db385697678f53a9d0b96a1.tar.gz busybox-w32-4a9a7addbc23be8e7db385697678f53a9d0b96a1.tar.bz2 busybox-w32-4a9a7addbc23be8e7db385697678f53a9d0b96a1.zip |
mingw: provide fake getgroups and getgrouplist
This makes it possible to enable the id and groups applets,
though the results they return are worthless.
Diffstat (limited to 'include/mingw.h')
-rw-r--r-- | include/mingw.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h index f3b260f5a..84522f032 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -48,6 +48,7 @@ IMPL(getgrnam,struct group *,NULL,const char *name UNUSED_PARAM); | |||
48 | struct group *getgrgid(gid_t gid); | 48 | struct group *getgrgid(gid_t gid); |
49 | NOIMPL(initgroups,const char *group UNUSED_PARAM,gid_t gid UNUSED_PARAM); | 49 | NOIMPL(initgroups,const char *group UNUSED_PARAM,gid_t gid UNUSED_PARAM); |
50 | static inline void endgrent(void) {} | 50 | static inline void endgrent(void) {} |
51 | int getgrouplist(const char *user, gid_t group, gid_t *groups, int *ngroups); | ||
51 | 52 | ||
52 | /* | 53 | /* |
53 | * limits.h | 54 | * limits.h |
@@ -380,7 +381,7 @@ char *mingw_getcwd(char *pointer, int len); | |||
380 | 381 | ||
381 | 382 | ||
382 | IMPL(getgid,int,DEFAULT_GID,void); | 383 | IMPL(getgid,int,DEFAULT_GID,void); |
383 | NOIMPL(getgroups,int n UNUSED_PARAM,gid_t *groups UNUSED_PARAM); | 384 | int getgroups(int n, gid_t *groups); |
384 | IMPL(getppid,int,1,void); | 385 | IMPL(getppid,int,1,void); |
385 | IMPL(getegid,int,DEFAULT_GID,void); | 386 | IMPL(getegid,int,DEFAULT_GID,void); |
386 | IMPL(geteuid,int,DEFAULT_UID,void); | 387 | IMPL(geteuid,int,DEFAULT_UID,void); |