]>
Commit | Line | Data |
---|---|---|
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 | |
22 | struct passwd *\r | |
23 | getpwuid (uid_t uid)\r | |
24 | {\r | |
d7ce7006 | 25 | errno = EPERM;\r |
26 | return NULL;\r | |
27 | }\r | |
28 | \r | |
0c1992fb | 29 | char *\r |
30 | getlogin (void)\r | |
d7ce7006 | 31 | {\r |
32 | errno = EPERM;\r | |
33 | return NULL;\r | |
34 | }\r | |
35 | \r | |
36 | struct passwd *\r | |
37 | getpwnam (const char *name)\r | |
38 | {\r | |
d7ce7006 | 39 | errno = EPERM;\r |
40 | return NULL;\r | |
41 | }\r | |
42 | \r | |
0c1992fb | 43 | uid_t\r |
44 | getuid (void)\r | |
d7ce7006 | 45 | {\r |
46 | return 0;\r | |
47 | }\r | |
48 | \r | |
0c1992fb | 49 | pid_t\r |
50 | getpid(void)\r | |
51 | {\r | |
52 | return 0;\r | |
53 | }\r | |
54 | \r | |
55 | pid_t\r | |
56 | fork (void)\r | |
d7ce7006 | 57 | {\r |
58 | errno = EPERM;\r | |
59 | return (-1);\r | |
60 | }\r | |
61 | \r | |
0c1992fb | 62 | int\r |
63 | chmod (const char *c, mode_t m)\r | |
d7ce7006 | 64 | {\r |
65 | errno = EPERM;\r | |
66 | return (-1);\r | |
67 | }\r | |
68 | \r | |
0c1992fb | 69 | pid_t\r |
70 | wait(int *stat_loc) {\r | |
d7ce7006 | 71 | return 0;\r |
72 | }\r | |
73 | \r | |
0c1992fb | 74 | FILE *\r |
75 | popen (const char *cmd, const char *type)\r | |
d7ce7006 | 76 | {\r |
77 | errno = EPERM;\r | |
78 | return NULL;\r | |
79 | }\r | |
80 | \r | |
0c1992fb | 81 | int\r |
82 | pclose (FILE *stream)\r | |
d7ce7006 | 83 | {\r |
84 | errno = EPERM;\r | |
85 | return -1;\r | |
86 | }\r | |
87 | \r | |
0c1992fb | 88 | mode_t\r |
89 | umask(mode_t cmask)\r | |
d7ce7006 | 90 | {\r |
0c1992fb | 91 | return (mode_t)0;\r |
d7ce7006 | 92 | }\r |