From 811fae12e9b824936e37abd512b789602f57e2e1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Nov 1999 19:24:38 +0000 Subject: Split types.s into individual files. --- cpukit/posix/src/getgid.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 cpukit/posix/src/getgid.c (limited to 'cpukit/posix/src/getgid.c') diff --git a/cpukit/posix/src/getgid.c b/cpukit/posix/src/getgid.c new file mode 100644 index 0000000000..6b65d12e99 --- /dev/null +++ b/cpukit/posix/src/getgid.c @@ -0,0 +1,38 @@ +/* + * $Id$ + */ + +#include +#include +#include +#include + +#include +#include +#include + +gid_t _POSIX_types_Gid = 0; + +/*PAGE + * + * 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; +} + +/*PAGE + * + * 4.2.2 Set User and Group IDs, P1003.1b-1993, p. 84 + */ + +int setgid( + gid_t gid +) +{ + _POSIX_types_Gid = gid; + return 0; +} -- cgit v1.2.3