aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-05-25 04:31:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-05-25 04:31:54 +0000
commitaf6cca50afbf8b6c6cbdbc898eeacb8e23d13a34 (patch)
treeb3ed8282e35c90edb42f0844cd65c12048aec39a
parent30f892a0ee32ec556467e9f7bc7c46d4ed42f12e (diff)
downloadbusybox-w32-af6cca50afbf8b6c6cbdbc898eeacb8e23d13a34.tar.gz
busybox-w32-af6cca50afbf8b6c6cbdbc898eeacb8e23d13a34.tar.bz2
busybox-w32-af6cca50afbf8b6c6cbdbc898eeacb8e23d13a34.zip
move setgroups definition to libbb.h so that it no longer inadvertently
get hidden attribute
-rw-r--r--include/grp_.h5
-rw-r--r--include/libbb.h4
2 files changed, 3 insertions, 6 deletions
diff --git a/include/grp_.h b/include/grp_.h
index 45ee22ba9..23c4dcc03 100644
--- a/include/grp_.h
+++ b/include/grp_.h
@@ -36,11 +36,6 @@ struct group {
36 char **gr_mem; /* Member list. */ 36 char **gr_mem; /* Member list. */
37}; 37};
38 38
39/* We don't reimplement this, just supplying prototype */
40/* The function itself is in libc */
41/* Set the group set for the current user to GROUPS (N of them). */
42extern int setgroups(size_t __n, __const gid_t *__groups);
43
44 39
45#define setgrent bb_internal_setgrent 40#define setgrent bb_internal_setgrent
46#define endgrent bb_internal_endgrent 41#define endgrent bb_internal_endgrent
diff --git a/include/libbb.h b/include/libbb.h
index f50ae3604..0d6e3af7d 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -79,9 +79,11 @@
79# endif 79# endif
80#endif 80#endif
81 81
82/* Some libc's forget to declare these, help them */ 82/* Some libc's forget to declare these, do it ourself */
83extern char **environ; 83extern char **environ;
84 84
85/* Set the group set for the current user to GROUPS (N of them). */
86int setgroups(size_t n, const gid_t *groups);
85#if defined(__GLIBC__) && __GLIBC__ < 2 87#if defined(__GLIBC__) && __GLIBC__ < 2
86int vdprintf(int d, const char *format, va_list ap); 88int vdprintf(int d, const char *format, va_list ap);
87#endif 89#endif