+++ /dev/null
-/** @file\r
- Implement the invalid functions to return failures.\r
-\r
- Copyright (c) 2011, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-#include <LibConfig.h>\r
-#include <sys/EfiCdefs.h>\r
-#include <sys/featuretest.h>\r
-#include <namespace.h>\r
-#include <stdio.h>\r
-#include <pwd.h>\r
-#include <errno.h>\r
-\r
-struct passwd *\r
-getpwuid (uid_t uid)\r
-{\r
- errno = EPERM;\r
- return NULL;\r
-}\r
-\r
-char *\r
-getlogin (void)\r
-{\r
- errno = EPERM;\r
- return NULL;\r
-}\r
-\r
-struct passwd *\r
-getpwnam (const char *name)\r
-{\r
- errno = EPERM;\r
- return NULL;\r
-}\r
-\r
-uid_t\r
-getuid (void)\r
-{\r
- return 0;\r
-}\r
-\r
-pid_t\r
-getpid(void)\r
-{\r
- return 0;\r
-}\r
-\r
-pid_t\r
-fork (void)\r
-{\r
- errno = EPERM;\r
- return (-1);\r
-}\r
-\r
-int\r
-chmod (const char *c, mode_t m)\r
-{\r
- errno = EPERM;\r
- return (-1);\r
-}\r
-\r
-pid_t\r
-wait(int *stat_loc) {\r
- return 0;\r
-}\r
-\r
-FILE *\r
-popen (const char *cmd, const char *type)\r
-{\r
- errno = EPERM;\r
- return NULL;\r
-}\r
-\r
-int\r
-pclose (FILE *stream)\r
-{\r
- errno = EPERM;\r
- return -1;\r
-}\r
-\r
-mode_t\r
-umask(mode_t cmask)\r
-{\r
- return (mode_t)0;\r
-}\r