5
Last change
on this file since 187a0744 was
187a0744,
checked in by Christian Mauderer <Christian.Mauderer@…>, on 05/02/16 at 12:49:35
|
libcsupport: Add dummy for setgroups().
The dummy for setgroups() allows applications using it to build (for example
civetweb webserver).
|
-
Property mode set to
100644
|
File size:
686 bytes
|
Line | |
---|
1 | /* |
---|
2 | * This test file is used to verify that the header files associated with |
---|
3 | * invoking this function are correct. |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-2009. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.org/license/LICENSE. |
---|
11 | */ |
---|
12 | |
---|
13 | #ifdef HAVE_CONFIG_H |
---|
14 | #include "config.h" |
---|
15 | #endif |
---|
16 | |
---|
17 | #include <sys/types.h> |
---|
18 | #include <unistd.h> |
---|
19 | |
---|
20 | int test( void ); |
---|
21 | |
---|
22 | int test( void ) |
---|
23 | { |
---|
24 | gid_t grouplist[ 20 ]; |
---|
25 | int gidsetsize; |
---|
26 | int result; |
---|
27 | |
---|
28 | gidsetsize = sizeof(grouplist)/sizeof(grouplist[0]); |
---|
29 | |
---|
30 | result = setgroups( gidsetsize, grouplist ); |
---|
31 | |
---|
32 | return result; |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.