1 /*
2 * Copyright (C) 2010, 2022, the Free Software Foundation, Inc.
3 *
4 * This file is part of GAWK, the GNU implementation of the
5 * AWK Programming Language.
6 *
7 * GAWK is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * GAWK is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21
22 #ifdef __MINGW32__
23
24 #include <process.h>
25
26 unsigned int getuid (void)
27 {
28 return (0); /* root! */
29 }
30
31 unsigned int geteuid (void)
32 {
33 return (0);
34 }
35
36 unsigned int getgid (void)
37 {
38 return (0);
39 }
40
41 unsigned int getegid (void)
42 {
43 return (0);
44 }
45
46 #endif /* __MINGW32__ */
47
48 int getpgrp(void)
49 {
50 return (0);
51 }
52
53 #if defined(__MINGW32__)
54 int getppid(void)
55 {
56 return (0);
57 }
58 #endif /* __MINGW32__ */