summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/getgid.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/getgid.c')
-rw-r--r--cpukit/libcsupport/src/getgid.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/getgid.c b/cpukit/libcsupport/src/getgid.c
new file mode 100644
index 0000000000..7074e765e5
--- /dev/null
+++ b/cpukit/libcsupport/src/getgid.c
@@ -0,0 +1,18 @@
+/*
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <rtems/userenv.h>
+
+/*
+ * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
+ * P1003.1b-1993, p. 84
+ */
+gid_t getgid( void )
+{
+ return _POSIX_types_Gid;
+}