ReactOS  0.4.14-dev-77-gd9e7c48
uid.c
Go to the documentation of this file.
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  *
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_GETUID
25 
28 {
29  return (0);
30 }
31 
32 #endif
33 
34 #ifndef HAVE_GETEUID
35 
38 {
39  return (0);
40 }
41 
42 #endif
43 
44 #ifndef HAVE_SETUID
45 
46 EXPORT int
47 setuid(uid)
48  uid_t uid;
49 {
50  return (0);
51 }
52 
53 #endif
54 
55 #ifndef HAVE_SETEUID
56 
57 EXPORT int
58 seteuid(uid)
59  uid_t uid;
60 {
61  return (0);
62 }
63 
64 #endif
long uid_t
Definition: various.h:8
EXPORT uid_t getuid()
Definition: uid.c:27
EXPORT int setuid(uid_t uid)
Definition: uid.c:47
EXPORT int seteuid(uid_t uid)
Definition: uid.c:58
EXPORT uid_t geteuid()
Definition: uid.c:37