OS-specific module implementation for EDK II and UEFI.\r
Derived from posixmodule.c in Python 2.7.2.\r
\r
+ Copyright (c) 2015, Daryl McDaniel. All rights reserved.<BR>\r
Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available under\r
the terms and conditions of the BSD License that accompanies this distribution.\r
return PyLong_FromPid(getpid());\r
}\r
\r
+\r
#ifdef HAVE_GETLOGIN\r
PyDoc_STRVAR(edk2_getlogin__doc__,\r
"getlogin() -> string\n\n\\r
"popen(command [, mode='r' [, bufsize]]) -> pipe\n\n\\r
Open a pipe to/from a command returning a file object.");\r
\r
-/* standard posix version of popen() support */\r
static PyObject *\r
edk2_popen(PyObject *self, PyObject *args)\r
{\r
\r
#endif /* HAVE_POPEN */\r
\r
+\r
#if defined(HAVE_WAIT3) || defined(HAVE_WAIT4)\r
static PyObject *\r
wait_helper(pid_t pid, int status, struct rusage *ru)\r
if (all_ins(m))\r
return;\r
\r
- if (setup_confname_tables(m))\r
- return;\r
-\r
Py_INCREF(PyExc_OSError);\r
PyModule_AddObject(m, "error", PyExc_OSError);\r
\r