blob: 1e00562abc3370eb44631b6c065f47e2d995fdd7 [file] [log] [blame]
Serhiy Storchaka7cf55992013-02-10 21:56:49 +02001/* Declarations shared between the different POSIX-related modules */
2
3#ifndef Py_POSIXMODULE_H
4#define Py_POSIXMODULE_H
5#ifdef __cplusplus
6extern "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
15PyAPI_FUNC(PyObject *) _PyLong_FromUid(uid_t);
16PyAPI_FUNC(PyObject *) _PyLong_FromGid(gid_t);
17PyAPI_FUNC(int) _Py_Uid_Converter(PyObject *, void *);
18PyAPI_FUNC(int) _Py_Gid_Converter(PyObject *, void *);
19#endif /* MS_WINDOWS */
Serhiy Storchakad54cfb12018-05-08 07:48:50 +030020
21#if defined(PYPTHREAD_SIGMASK) || defined(HAVE_SIGWAIT) || \
22 defined(HAVE_SIGWAITINFO) || defined(HAVE_SIGTIMEDWAIT)
23# define HAVE_SIGSET_T
Serhiy Storchaka7cf55992013-02-10 21:56:49 +020024#endif
25
Serhiy Storchakad54cfb12018-05-08 07:48:50 +030026#ifdef HAVE_SIGSET_T
27PyAPI_FUNC(int) _Py_Sigset_Converter(PyObject *, void *);
28#endif /* HAVE_SIGSET_T */
29#endif /* Py_LIMITED_API */
30
Serhiy Storchaka7cf55992013-02-10 21:56:49 +020031#ifdef __cplusplus
32}
33#endif
34#endif /* !Py_POSIXMODULE_H */