1 /* @(#)uid.c	1.1 11/07/11 Copyright 2011 J. Schilling */
2 /*
3  *	Dummy functions for uid 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_GETUID
27 
28 EXPORT uid_t
getuid()29 getuid()
30 {
31 	return (0);
32 }
33 
34 #endif
35 
36 #ifndef	HAVE_GETEUID
37 
38 EXPORT uid_t
geteuid()39 geteuid()
40 {
41 	return (0);
42 }
43 
44 #endif
45 
46 #ifndef	HAVE_SETUID
47 
48 EXPORT int
setuid(uid)49 setuid(uid)
50 	uid_t	uid;
51 {
52 	return (0);
53 }
54 
55 #endif
56 
57 #ifndef	HAVE_SETEUID
58 
59 EXPORT int
seteuid(uid)60 seteuid(uid)
61 	uid_t	uid;
62 {
63 	return (0);
64 }
65 
66 #endif
67