blob: 8827ce153fed8c5754a8c50757523a41a7b16d0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* Declarations shared between the different POSIX-related modules */
#ifndef Py_POSIXMODULE_H
#define Py_POSIXMODULE_H
#ifndef Py_LIMITED_API
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> // uid_t
#endif
#ifndef MS_WINDOWS
extern PyObject* _PyLong_FromUid(uid_t);
// Export for 'grp' shared extension
PyAPI_FUNC(PyObject*) _PyLong_FromGid(gid_t);
// Export for '_posixsubprocess' shared extension
PyAPI_FUNC(int) _Py_Uid_Converter(PyObject *, uid_t *);
// Export for 'grp' shared extension
PyAPI_FUNC(int) _Py_Gid_Converter(PyObject *, gid_t *);
#endif // !MS_WINDOWS
#if (defined(PYPTHREAD_SIGMASK) || defined(HAVE_SIGWAIT) \
|| defined(HAVE_SIGWAITINFO) || defined(HAVE_SIGTIMEDWAIT))
# define HAVE_SIGSET_T
#endif
extern int _Py_Sigset_Converter(PyObject *, void *);
#ifdef __cplusplus
}
#endif
#endif // !Py_LIMITED_API
#endif // !Py_POSIXMODULE_H
|