source: branches/samba-3.3.x/source/tests/getgroups.c@ 614

Last change on this file since 614 was 206, checked in by Herwig Bauernfeind, 17 years ago

Import Samba 3.3 branch at 3.0.0 level (psmedley's port)

File size: 1.3 KB
Line 
1/* this tests whether getgroups actually returns lists of integers
2 rather than gid_t. The test only works if the user running
3 the test is in at least 1 group
4
5 The test is designed to check for those broken OSes that define
6 getgroups() as returning an array of gid_t but actually return a
7 array of ints! Ultrix is one culprit
8 */
9
10#if defined(HAVE_UNISTD_H)
11#include <unistd.h>
12#endif
13
14#include <sys/types.h>
15#include <stdio.h>
16#include <unistd.h>
17#include <grp.h>
18
19main()
20{
21 int i;