17db96d56Sopenharmony_ci/* Declarations shared between the different POSIX-related modules */
27db96d56Sopenharmony_ci
37db96d56Sopenharmony_ci#ifndef Py_POSIXMODULE_H
47db96d56Sopenharmony_ci#define Py_POSIXMODULE_H
57db96d56Sopenharmony_ci#ifdef __cplusplus
67db96d56Sopenharmony_ciextern "C" {
77db96d56Sopenharmony_ci#endif
87db96d56Sopenharmony_ci
97db96d56Sopenharmony_ci#ifdef HAVE_SYS_TYPES_H
107db96d56Sopenharmony_ci#include <sys/types.h>
117db96d56Sopenharmony_ci#endif
127db96d56Sopenharmony_ci
137db96d56Sopenharmony_ci#ifndef Py_LIMITED_API
147db96d56Sopenharmony_ci#ifndef MS_WINDOWS
157db96d56Sopenharmony_ciPyAPI_FUNC(PyObject *) _PyLong_FromUid(uid_t);
167db96d56Sopenharmony_ciPyAPI_FUNC(PyObject *) _PyLong_FromGid(gid_t);
177db96d56Sopenharmony_ciPyAPI_FUNC(int) _Py_Uid_Converter(PyObject *, uid_t *);
187db96d56Sopenharmony_ciPyAPI_FUNC(int) _Py_Gid_Converter(PyObject *, gid_t *);
197db96d56Sopenharmony_ci#endif /* MS_WINDOWS */
207db96d56Sopenharmony_ci
217db96d56Sopenharmony_ci#if defined(PYPTHREAD_SIGMASK) || defined(HAVE_SIGWAIT) || \
227db96d56Sopenharmony_ci        defined(HAVE_SIGWAITINFO) || defined(HAVE_SIGTIMEDWAIT)
237db96d56Sopenharmony_ci# define HAVE_SIGSET_T
247db96d56Sopenharmony_ci#endif
257db96d56Sopenharmony_ci
267db96d56Sopenharmony_ciPyAPI_FUNC(int) _Py_Sigset_Converter(PyObject *, void *);
277db96d56Sopenharmony_ci#endif /* Py_LIMITED_API */
287db96d56Sopenharmony_ci
297db96d56Sopenharmony_ci#ifdef __cplusplus
307db96d56Sopenharmony_ci}
317db96d56Sopenharmony_ci#endif
327db96d56Sopenharmony_ci#endif /* !Py_POSIXMODULE_H */
33