blob: 6f9d4d3b9997b97cc15654e2703dca072ed8cf2f [file] [log] [blame]
Serhiy Storchakada5c2a02013-02-12 09:27:53 +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
Serhiy Storchakada5c2a02013-02-12 09:27:53 +020013#ifndef MS_WINDOWS
14PyAPI_FUNC(PyObject *) _PyInt_FromUid(uid_t);
15PyAPI_FUNC(PyObject *) _PyInt_FromGid(gid_t);
16PyAPI_FUNC(int) _Py_Uid_Converter(PyObject *, void *);
17PyAPI_FUNC(int) _Py_Gid_Converter(PyObject *, void *);
18#endif /* MS_WINDOWS */
Serhiy Storchakada5c2a02013-02-12 09:27:53 +020019
20#ifdef __cplusplus
21}
22#endif
23#endif /* !Py_POSIXMODULE_H */