ReactOS
0.4.16-dev-91-g764881a
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
26
EXPORT
uid_t
27
getuid
()
28
{
29
return
(0);
30
}
31
32
#endif
33
34
#ifndef HAVE_GETEUID
35
36
EXPORT
uid_t
37
geteuid
()
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
uid_t
long uid_t
Definition:
various.h:8
schily.h
types.h
standard.h
EXPORT
Definition:
spec2def.c:21
unistd.h
geteuid
EXPORT uid_t geteuid()
Definition:
uid.c:37
setuid
EXPORT int setuid(uid_t uid)
Definition:
uid.c:47
getuid
EXPORT uid_t getuid()
Definition:
uid.c:27
seteuid
EXPORT int seteuid(uid_t uid)
Definition:
uid.c:58
sdk
tools
mkisofs
schilytools
libschily
uid.c
Generated on Fri Oct 4 2024 06:13:56 for ReactOS by
1.9.6