]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/Uefi/StubFunctions.c
Fix GCC build breaks.
[mirror_edk2.git] / StdLib / LibC / Uefi / StubFunctions.c
CommitLineData
d7ce7006 1/** @file\r
2 Implement the invalid functions to return failures.\r
3\r
4 Copyright (c) 2011, Intel Corporation\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14#include <sys/EfiCdefs.h>\r
15#include <sys/featuretest.h>\r
16#include <namespace.h>\r
17#include <stdio.h>\r
18#include <pwd.h>\r
19#include <errno.h>\r
20\r
21struct passwd *\r
22getpwuid (uid_t uid)\r
23{\r
d7ce7006 24 errno = EPERM;\r
25 return NULL;\r
26}\r
27\r
28char *getlogin (void)\r
29{\r
30 errno = EPERM;\r
31 return NULL;\r
32}\r
33\r
34struct passwd *\r
35getpwnam (const char *name)\r
36{\r
d7ce7006 37 errno = EPERM;\r
38 return NULL;\r
39}\r
40\r
41uid_t getuid (void)\r
42{\r
43 return 0;\r
44}\r
45\r
46pid_t fork (void)\r
47{\r
48 errno = EPERM;\r
49 return (-1);\r
50}\r
51\r
52int chmod (const char *c, mode_t m)\r
53{\r
54 errno = EPERM;\r
55 return (-1);\r
56}\r
57\r
58pid_t wait(int *stat_loc) {\r
59 return 0;\r
60}\r
61\r
62FILE *popen (const char *cmd, const char *type)\r
63{\r
64 errno = EPERM;\r
65 return NULL;\r
66}\r
67\r
68int pclose (FILE *stream)\r
69{\r
70 errno = EPERM;\r
71 return -1;\r
72}\r
73\r
74int access (const char *path, int amode)\r
75{\r
76 return 0;\r
77}\r