diff options
author | Denis Vlasenko | 2008-09-25 10:20:46 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-09-25 10:20:46 +0000 |
commit | cac0f5b7e552adee46b8e35ae66b6465f4903c37 (patch) | |
tree | 3f54e1f7fc10512fad09e141a0bdf3e96c9acca7 /include | |
parent | f6cad924b1a19e3d965f82aa67a8d97a40069b41 (diff) | |
download | busybox-cac0f5b7e552adee46b8e35ae66b6465f4903c37.zip busybox-cac0f5b7e552adee46b8e35ae66b6465f4903c37.tar.gz |
return setgroups() decl to libbb, it is needed if we use libpwdgrp.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index 815a3f3..3b4715e 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -80,8 +80,10 @@ #endif /* Some libc's forget to declare these, do it ourself */ -extern char **environ; +extern char **environ; +/* Set the group set for the current user to GROUPS (N of them). */ +int setgroups(size_t n, const gid_t *groups); #if defined(__GLIBC__) && __GLIBC__ < 2 int vdprintf(int d, const char *format, va_list ap); #endif @@ -107,7 +109,7 @@ struct sysinfo { unsigned long totalhigh; /* Total high memory size */ unsigned long freehigh; /* Available high memory size */ unsigned int mem_unit; /* Memory unit size in bytes */ - char _f[20 - 2*sizeof(long) - sizeof(int)]; /* Padding: libc5 uses this.. */ + char _f[20 - 2 * sizeof(long) - sizeof(int)]; /* Padding: libc5 uses this.. */ }; int sysinfo(struct sysinfo* info); |