1 /* @(#)gid.c	1.1 11/07/11 Copyright 2011 J. Schilling */
2 /*
3  *	Dummy functions for gid handling, used e.g. on MINGW
4  *
5  *	Copyright (c) 2011 J. Schilling
6  */
7 /*
8  * The contents of this file are subject to the terms of the
9  * Common Development and Distribution License, Version 1.0 only
10  * (the "License").  You may not use this file except in compliance
11  * with the License.
12  *
13  * See the file CDDL.Schily.txt in this distribution for details.
14  * A copy of the CDDL is also available via the Internet at
15  * http://www.opensource.org/licenses/cddl1.txt
16  *
17  * When distributing Covered Code, include this CDDL HEADER in each
18  * file and include the License file CDDL.Schily.txt from this distribution.
19  */
20 
21 #include <schily/types.h>
22 #include <schily/unistd.h>
23 #include <schily/standard.h>
24 #include <schily/schily.h>
25 
26 #ifndef	HAVE_GETGID
27 
28 EXPORT gid_t
getgid()29 getgid()
30 {
31 	return (0);
32 }
33 
34 #endif
35 
36 #ifndef	HAVE_GETEGID
37 
38 EXPORT gid_t
getegid()39 getegid()
40 {
41 	return (0);
42 }
43 
44 #endif
45 
46 #ifndef	HAVE_SETGID
47 
48 EXPORT int
setgid(gid)49 setgid(gid)
50 	gid_t	gid;
51 {
52 	return (0);
53 }
54 
55 #endif
56 
57 #ifndef	HAVE_SETEGID
58 
59 EXPORT int
setegid(gid)60 setegid(gid)
61 	gid_t	gid;
62 {
63 	return (0);
64 }
65 
66 #endif
67