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  *
15  * When distributing Covered Code, include this CDDL HEADER in each
16  * file and include the License file CDDL.Schily.txt from this distribution.
17  */
18 
19 #include <schily/types.h>
20 #include <schily/unistd.h>
21 #include <schily/standard.h>
22 #include <schily/schily.h>
23 
24 #ifndef	HAVE_GETGID
25 
26 EXPORT gid_t
27 getgid()
28 {
29 	return (0);
30 }
31 
32 #endif
33 
34 #ifndef	HAVE_GETEGID
35 
36 EXPORT gid_t
37 getegid()
38 {
39 	return (0);
40 }
41 
42 #endif
43 
44 #ifndef	HAVE_SETGID
45 
46 EXPORT int
47 setgid(gid)
48 	gid_t	gid;
49 {
50 	return (0);
51 }
52 
53 #endif
54 
55 #ifndef	HAVE_SETEGID
56 
57 EXPORT int
58 setegid(gid)
59 	gid_t	gid;
60 {
61 	return (0);
62 }
63 
64 #endif
65