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