mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-02 06:59:29 +00:00
These are the commits from https://github.com/ahgamut/cpython/tree/cosmo_py36 squashed for simplicity. Also included is the pyconfig.h used for compilation. The pyconfig.h has to be changed manually in case Cosmopolitan gets new features.
33 lines
717 B
C
33 lines
717 B
C
/* Declarations shared between the different POSIX-related modules */
|
|
|
|
#ifndef Py_POSIXMODULE_H
|
|
#define Py_POSIXMODULE_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
|
|
#ifndef Py_LIMITED_API
|
|
#ifndef MS_WINDOWS
|
|
PyAPI_FUNC(PyObject *) _PyLong_FromUid(uid_t);
|
|
PyAPI_FUNC(PyObject *) _PyLong_FromGid(gid_t);
|
|
PyAPI_FUNC(int) _Py_Uid_Converter(PyObject *, void *);
|
|
PyAPI_FUNC(int) _Py_Gid_Converter(PyObject *, void *);
|
|
#endif /* MS_WINDOWS */
|
|
#endif
|
|
|
|
#undef HAVE_SETGROUPS
|
|
#undef HAVE_FORKPTY
|
|
#undef HAVE_SCHED_SETPARAM
|
|
#undef HAVE_SCHED_SETSCHEDULER
|
|
#undef HAVE_FCHMODAT
|
|
#undef HAVE_LINKAT
|
|
#undef HAVE_READLINKAT
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_POSIXMODULE_H */
|