blob: 5452ffbf17acfc227f4daa6a651a8616d3bee6a2 [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);
Jakub KulĂ­k0159e5e2020-12-29 13:58:27 +010017PyAPI_FUNC(int) _Py_Uid_Converter(PyObject *, uid_t *);
18PyAPI_FUNC(int) _Py_Gid_Converter(PyObject *, gid_t *);
Serhiy Storchaka7cf55992013-02-10 21:56:49 +020019#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 +030026PyAPI_FUNC(int) _Py_Sigset_Converter(PyObject *, void *);
Serhiy Storchakad54cfb12018-05-08 07:48:50 +030027#endif /* Py_LIMITED_API */
28
Serhiy Storchaka7cf55992013-02-10 21:56:49 +020029#ifdef __cplusplus
30}
31#endif
32#endif /* !Py_POSIXMODULE_H */