mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
d26d7ae0e4
Building o//third_party/python now takes 5 seconds on my PC This change works towards modifying Python to use runtime dispatching when appropriate. For example, when loading the magnums in the socket module, it's a good idea to check if the magnum is zero, because that means the local system platform doesn't support it.
23 lines
566 B
C
23 lines
566 B
C
#ifndef Py_POSIXMODULE_H
|
|
#define Py_POSIXMODULE_H
|
|
COSMOPOLITAN_C_START_
|
|
|
|
#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
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !Py_POSIXMODULE_H */
|