10000 gh-107211: No longer export internal _PyLong_FromUid() by vstinner · Pull Request #109037 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-107211: No longer export internal _PyLong_FromUid() #109037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions Modules/posixmodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,37 @@

#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>
# include <sys/types.h> // uid_t
#endif

#ifndef Py_LIMITED_API
#ifndef MS_WINDOWS
PyAPI_FUNC(PyObject *) _PyLong_FromUid(uid_t);
PyAPI_FUNC(PyObject *) _PyLong_FromGid(gid_t);
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 */
#endif // !MS_WINDOWS

#if defined(PYPTHREAD_SIGMASK) || defined(HAVE_SIGWAIT) || \
defined(HAVE_SIGWAITINFO) || defined(HAVE_SIGTIMEDWAIT)
# define HAVE_SIGSET_T
#if (defined(PYPTHREAD_SIGMASK) || defined(HAVE_SIGWAIT) \
|| defined(HAVE_SIGWAITINFO) || defined(HAVE_SIGTIMEDWAIT))
# define HAVE_SIGSET_T
#endif

PyAPI_FUNC(int) _Py_Sigset_Converter(PyObject *, void *);
#endif /* Py_LIMITED_API */
extern int _Py_Sigset_Converter(PyObject *, void *);

#ifdef __cplusplus
}
#endif
#endif /* !Py_POSIXMODULE_H */
#endif // !Py_LIMITED_API
#endif // !Py_POSIXMODULE_H
0