aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-05-18 14:38:08 +0100
committerRon Yorston <rmy@pobox.com>2015-05-18 14:38:08 +0100
commit4a9a7addbc23be8e7db385697678f53a9d0b96a1 (patch)
treeeaab6e7b36fac13da1f3d25f167c62912652ab87 /include/mingw.h
parent10695d3d3472bb5ad7b9f5d9313f073fc67a8f1a (diff)
downloadbusybox-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.h3
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);
48struct group *getgrgid(gid_t gid); 48struct group *getgrgid(gid_t gid);
49NOIMPL(initgroups,const char *group UNUSED_PARAM,gid_t gid UNUSED_PARAM); 49NOIMPL(initgroups,const char *group UNUSED_PARAM,gid_t gid UNUSED_PARAM);
50static inline void endgrent(void) {} 50static inline void endgrent(void) {}
51int 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
382IMPL(getgid,int,DEFAULT_GID,void); 383IMPL(getgid,int,DEFAULT_GID,void);
383NOIMPL(getgroups,int n UNUSED_PARAM,gid_t *groups UNUSED_PARAM); 384int getgroups(int n, gid_t *groups);
384IMPL(getppid,int,1,void); 385IMPL(getppid,int,1,void);
385IMPL(getegid,int,DEFAULT_GID,void); 386IMPL(getegid,int,DEFAULT_GID,void);
386IMPL(geteuid,int,DEFAULT_UID,void); 387IMPL(geteuid,int,DEFAULT_UID,void);