]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/Uefi/StubFunctions.c
StdLib: The formatting for double float values, within the gdtoa library, is improper.
[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
0c1992fb 14#include <LibConfig.h>\r
d7ce7006 15#include <sys/EfiCdefs.h>\r
16#include <sys/featuretest.h>\r
17#include <namespace.h>\r
18#include <stdio.h>\r
19#include <pwd.h>\r
20#include <errno.h>\r
21\r
22struct passwd *\r
23getpwuid (uid_t uid)\r
24{\r
d7ce7006 25 errno = EPERM;\r
26 return NULL;\r
27}\r
28\r
0c1992fb 29char *\r
30getlogin (void)\r
d7ce7006 31{\r
32 errno = EPERM;\r
33 return NULL;\r
34}\r
35\r
36struct passwd *\r
37getpwnam (const char *name)\r
38{\r
d7ce7006 39 errno = EPERM;\r
40 return NULL;\r
41}\r
42\r
0c1992fb 43uid_t\r
44getuid (void)\r
d7ce7006 45{\r
46 return 0;\r
47}\r
48\r
0c1992fb 49pid_t\r
50getpid(void)\r
51{\r
52 return 0;\r
53}\r
54\r
55pid_t\r
56fork (void)\r
d7ce7006 57{\r
58 errno = EPERM;\r
59 return (-1);\r
60}\r
61\r
0c1992fb 62int\r
63chmod (const char *c, mode_t m)\r
d7ce7006 64{\r
65 errno = EPERM;\r
66 return (-1);\r
67}\r
68\r
0c1992fb 69pid_t\r
70wait(int *stat_loc) {\r
d7ce7006 71 return 0;\r
72}\r
73\r
0c1992fb 74FILE *\r
75popen (const char *cmd, const char *type)\r
d7ce7006 76{\r
77 errno = EPERM;\r
78 return NULL;\r
79}\r
80\r
0c1992fb 81int\r
82pclose (FILE *stream)\r
d7ce7006 83{\r
84 errno = EPERM;\r
85 return -1;\r
86}\r
87\r
0c1992fb 88mode_t\r
89umask(mode_t cmask)\r
d7ce7006 90{\r
0c1992fb 91 return (mode_t)0;\r
d7ce7006 92}\r