mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Added configuration tests for presence of alarm(), pause(), and getpwent()
This commit is contained in:
parent
5de31fc094
commit
1171ee6aaf
5 changed files with 24 additions and 11 deletions
|
@ -90,6 +90,7 @@ pwd_getpwnam(self, args)
|
|||
return mkpwent(p);
|
||||
}
|
||||
|
||||
#ifdef HAVE_GETPWENT
|
||||
static PyObject *
|
||||
pwd_getpwall(self, args)
|
||||
PyObject *self;
|
||||
|
@ -113,11 +114,14 @@ pwd_getpwall(self, args)
|
|||
}
|
||||
return d;
|
||||
}
|
||||
#endif
|
||||
|
||||
static PyMethodDef pwd_methods[] = {
|
||||
{"getpwuid", pwd_getpwuid},
|
||||
{"getpwnam", pwd_getpwnam},
|
||||
#ifdef HAVE_GETPWENT
|
||||
{"getpwall", pwd_getpwall},
|
||||
#endif
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue