From 187a0744042960f4306d691ebfef3c3e3cdd3470 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Mon, 2 May 2016 14:49:35 +0200 Subject: libcsupport: Add dummy for setgroups(). The dummy for setgroups() allows applications using it to build (for example civetweb webserver). --- testsuites/psxtests/psxhdrs/unistd/setgroups.c | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 testsuites/psxtests/psxhdrs/unistd/setgroups.c (limited to 'testsuites/psxtests/psxhdrs/unistd/setgroups.c') diff --git a/testsuites/psxtests/psxhdrs/unistd/setgroups.c b/testsuites/psxtests/psxhdrs/unistd/setgroups.c new file mode 100644 index 0000000000..e8b87ab54e --- /dev/null +++ b/testsuites/psxtests/psxhdrs/unistd/setgroups.c @@ -0,0 +1,33 @@ +/* + * This test file is used to verify that the header files associated with + * invoking this function are correct. + * + * COPYRIGHT (c) 1989-2009. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include + +int test( void ); + +int test( void ) +{ + gid_t grouplist[ 20 ]; + int gidsetsize; + int result; + + gidsetsize = sizeof(grouplist)/sizeof(grouplist[0]); + + result = setgroups( gidsetsize, grouplist ); + + return result; +} -- cgit v1.2.3