posixmodule.h 791 B

1234567891011121314151617181920212223242526272829303132
  1. /* Declarations shared between the different POSIX-related modules */
  2. #ifndef Py_POSIXMODULE_H
  3. #define Py_POSIXMODULE_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #ifdef HAVE_SYS_TYPES_H
  8. #include <sys/types.h>
  9. #endif
  10. #ifndef Py_LIMITED_API
  11. #ifndef MS_WINDOWS
  12. PyAPI_FUNC(PyObject *) _PyLong_FromUid(uid_t);
  13. PyAPI_FUNC(PyObject *) _PyLong_FromGid(gid_t);
  14. PyAPI_FUNC(int) _Py_Uid_Converter(PyObject *, uid_t *);
  15. PyAPI_FUNC(int) _Py_Gid_Converter(PyObject *, gid_t *);
  16. #endif /* MS_WINDOWS */
  17. #if defined(PYPTHREAD_SIGMASK) || defined(HAVE_SIGWAIT) || \
  18. defined(HAVE_SIGWAITINFO) || defined(HAVE_SIGTIMEDWAIT)
  19. # define HAVE_SIGSET_T
  20. #endif
  21. PyAPI_FUNC(int) _Py_Sigset_Converter(PyObject *, void *);
  22. #endif /* Py_LIMITED_API */
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif /* !Py_POSIXMODULE_H */