diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-07-07 15:20:03 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-07-07 15:20:03 (GMT) |
commit | 2954f8399914c77e048f9e3358abfadb7a3f76e9 (patch) | |
tree | c8398eb8aa516e897bbafe9e43cb115d0365bcb0 /Modules/clinic/posixmodule.c.h | |
parent | 50600a78cb6b0e4ea47033a2fd5e982c20a5d946 (diff) | |
parent | 1a2b24f02dfd4eb3383f6ae2b59e5a4eb66fd5bb (diff) | |
download | cpython-2954f8399914c77e048f9e3358abfadb7a3f76e9.zip cpython-2954f8399914c77e048f9e3358abfadb7a3f76e9.tar.gz cpython-2954f8399914c77e048f9e3358abfadb7a3f76e9.tar.bz2 |
- Issue #27332: Fixed the type of the first argument of module-level functions
generated by Argument Clinic. Patch by Petr Viktorin.
Diffstat (limited to 'Modules/clinic/posixmodule.c.h')
-rw-r--r-- | Modules/clinic/posixmodule.c.h | 636 |
1 files changed, 316 insertions, 320 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h index 33621d8..c550b9d 100644 --- a/Modules/clinic/posixmodule.c.h +++ b/Modules/clinic/posixmodule.c.h @@ -30,11 +30,10 @@ PyDoc_STRVAR(os_stat__doc__, {"stat", (PyCFunction)os_stat, METH_VARARGS|METH_KEYWORDS, os_stat__doc__}, static PyObject * -os_stat_impl(PyModuleDef *module, path_t *path, int dir_fd, - int follow_symlinks); +os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks); static PyObject * -os_stat(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_stat(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", "follow_symlinks", NULL}; @@ -68,10 +67,10 @@ PyDoc_STRVAR(os_lstat__doc__, {"lstat", (PyCFunction)os_lstat, METH_VARARGS|METH_KEYWORDS, os_lstat__doc__}, static PyObject * -os_lstat_impl(PyModuleDef *module, path_t *path, int dir_fd); +os_lstat_impl(PyObject *module, path_t *path, int dir_fd); static PyObject * -os_lstat(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_lstat(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", NULL}; @@ -127,11 +126,11 @@ PyDoc_STRVAR(os_access__doc__, {"access", (PyCFunction)os_access, METH_VARARGS|METH_KEYWORDS, os_access__doc__}, static int -os_access_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd, +os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd, int effective_ids, int follow_symlinks); static PyObject * -os_access(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_access(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "dir_fd", "effective_ids", "follow_symlinks", NULL}; @@ -174,10 +173,10 @@ PyDoc_STRVAR(os_ttyname__doc__, {"ttyname", (PyCFunction)os_ttyname, METH_O, os_ttyname__doc__}, static char * -os_ttyname_impl(PyModuleDef *module, int fd); +os_ttyname_impl(PyObject *module, int fd); static PyObject * -os_ttyname(PyModuleDef *module, PyObject *arg) +os_ttyname(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -210,10 +209,10 @@ PyDoc_STRVAR(os_ctermid__doc__, {"ctermid", (PyCFunction)os_ctermid, METH_NOARGS, os_ctermid__doc__}, static PyObject * -os_ctermid_impl(PyModuleDef *module); +os_ctermid_impl(PyObject *module); static PyObject * -os_ctermid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_ctermid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_ctermid_impl(module); } @@ -234,10 +233,10 @@ PyDoc_STRVAR(os_chdir__doc__, {"chdir", (PyCFunction)os_chdir, METH_VARARGS|METH_KEYWORDS, os_chdir__doc__}, static PyObject * -os_chdir_impl(PyModuleDef *module, path_t *path); +os_chdir_impl(PyObject *module, path_t *path); static PyObject * -os_chdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -271,10 +270,10 @@ PyDoc_STRVAR(os_fchdir__doc__, {"fchdir", (PyCFunction)os_fchdir, METH_VARARGS|METH_KEYWORDS, os_fchdir__doc__}, static PyObject * -os_fchdir_impl(PyModuleDef *module, int fd); +os_fchdir_impl(PyObject *module, int fd); static PyObject * -os_fchdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fchdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -322,11 +321,11 @@ PyDoc_STRVAR(os_chmod__doc__, {"chmod", (PyCFunction)os_chmod, METH_VARARGS|METH_KEYWORDS, os_chmod__doc__}, static PyObject * -os_chmod_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd, +os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd, int follow_symlinks); static PyObject * -os_chmod(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chmod(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "dir_fd", "follow_symlinks", NULL}; @@ -362,10 +361,10 @@ PyDoc_STRVAR(os_fchmod__doc__, {"fchmod", (PyCFunction)os_fchmod, METH_VARARGS|METH_KEYWORDS, os_fchmod__doc__}, static PyObject * -os_fchmod_impl(PyModuleDef *module, int fd, int mode); +os_fchmod_impl(PyObject *module, int fd, int mode); static PyObject * -os_fchmod(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fchmod(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", "mode", NULL}; @@ -399,10 +398,10 @@ PyDoc_STRVAR(os_lchmod__doc__, {"lchmod", (PyCFunction)os_lchmod, METH_VARARGS|METH_KEYWORDS, os_lchmod__doc__}, static PyObject * -os_lchmod_impl(PyModuleDef *module, path_t *path, int mode); +os_lchmod_impl(PyObject *module, path_t *path, int mode); static PyObject * -os_lchmod(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_lchmod(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", NULL}; @@ -442,11 +441,11 @@ PyDoc_STRVAR(os_chflags__doc__, {"chflags", (PyCFunction)os_chflags, METH_VARARGS|METH_KEYWORDS, os_chflags__doc__}, static PyObject * -os_chflags_impl(PyModuleDef *module, path_t *path, unsigned long flags, +os_chflags_impl(PyObject *module, path_t *path, unsigned long flags, int follow_symlinks); static PyObject * -os_chflags(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chflags(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "flags", "follow_symlinks", NULL}; @@ -484,10 +483,10 @@ PyDoc_STRVAR(os_lchflags__doc__, {"lchflags", (PyCFunction)os_lchflags, METH_VARARGS|METH_KEYWORDS, os_lchflags__doc__}, static PyObject * -os_lchflags_impl(PyModuleDef *module, path_t *path, unsigned long flags); +os_lchflags_impl(PyObject *module, path_t *path, unsigned long flags); static PyObject * -os_lchflags(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_lchflags(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "flags", NULL}; @@ -521,10 +520,10 @@ PyDoc_STRVAR(os_chroot__doc__, {"chroot", (PyCFunction)os_chroot, METH_VARARGS|METH_KEYWORDS, os_chroot__doc__}, static PyObject * -os_chroot_impl(PyModuleDef *module, path_t *path); +os_chroot_impl(PyObject *module, path_t *path); static PyObject * -os_chroot(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chroot(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -557,10 +556,10 @@ PyDoc_STRVAR(os_fsync__doc__, {"fsync", (PyCFunction)os_fsync, METH_VARARGS|METH_KEYWORDS, os_fsync__doc__}, static PyObject * -os_fsync_impl(PyModuleDef *module, int fd); +os_fsync_impl(PyObject *module, int fd); static PyObject * -os_fsync(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fsync(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -590,10 +589,10 @@ PyDoc_STRVAR(os_sync__doc__, {"sync", (PyCFunction)os_sync, METH_NOARGS, os_sync__doc__}, static PyObject * -os_sync_impl(PyModuleDef *module); +os_sync_impl(PyObject *module); static PyObject * -os_sync(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_sync(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_sync_impl(module); } @@ -612,10 +611,10 @@ PyDoc_STRVAR(os_fdatasync__doc__, {"fdatasync", (PyCFunction)os_fdatasync, METH_VARARGS|METH_KEYWORDS, os_fdatasync__doc__}, static PyObject * -os_fdatasync_impl(PyModuleDef *module, int fd); +os_fdatasync_impl(PyObject *module, int fd); static PyObject * -os_fdatasync(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fdatasync(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -669,11 +668,11 @@ PyDoc_STRVAR(os_chown__doc__, {"chown", (PyCFunction)os_chown, METH_VARARGS|METH_KEYWORDS, os_chown__doc__}, static PyObject * -os_chown_impl(PyModuleDef *module, path_t *path, uid_t uid, gid_t gid, +os_chown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid, int dir_fd, int follow_symlinks); static PyObject * -os_chown(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_chown(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "uid", "gid", "dir_fd", "follow_symlinks", NULL}; @@ -712,10 +711,10 @@ PyDoc_STRVAR(os_fchown__doc__, {"fchown", (PyCFunction)os_fchown, METH_VARARGS|METH_KEYWORDS, os_fchown__doc__}, static PyObject * -os_fchown_impl(PyModuleDef *module, int fd, uid_t uid, gid_t gid); +os_fchown_impl(PyObject *module, int fd, uid_t uid, gid_t gid); static PyObject * -os_fchown(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fchown(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", "uid", "gid", NULL}; @@ -750,10 +749,10 @@ PyDoc_STRVAR(os_lchown__doc__, {"lchown", (PyCFunction)os_lchown, METH_VARARGS|METH_KEYWORDS, os_lchown__doc__}, static PyObject * -os_lchown_impl(PyModuleDef *module, path_t *path, uid_t uid, gid_t gid); +os_lchown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid); static PyObject * -os_lchown(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_lchown(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "uid", "gid", NULL}; @@ -786,10 +785,10 @@ PyDoc_STRVAR(os_getcwd__doc__, {"getcwd", (PyCFunction)os_getcwd, METH_NOARGS, os_getcwd__doc__}, static PyObject * -os_getcwd_impl(PyModuleDef *module); +os_getcwd_impl(PyObject *module); static PyObject * -os_getcwd(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getcwd(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getcwd_impl(module); } @@ -804,10 +803,10 @@ PyDoc_STRVAR(os_getcwdb__doc__, {"getcwdb", (PyCFunction)os_getcwdb, METH_NOARGS, os_getcwdb__doc__}, static PyObject * -os_getcwdb_impl(PyModuleDef *module); +os_getcwdb_impl(PyObject *module); static PyObject * -os_getcwdb(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getcwdb(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getcwdb_impl(module); } @@ -835,11 +834,11 @@ PyDoc_STRVAR(os_link__doc__, {"link", (PyCFunction)os_link, METH_VARARGS|METH_KEYWORDS, os_link__doc__}, static PyObject * -os_link_impl(PyModuleDef *module, path_t *src, path_t *dst, int src_dir_fd, +os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd, int follow_symlinks); static PyObject * -os_link(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_link(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"src", "dst", "src_dir_fd", "dst_dir_fd", "follow_symlinks", NULL}; @@ -887,10 +886,10 @@ PyDoc_STRVAR(os_listdir__doc__, {"listdir", (PyCFunction)os_listdir, METH_VARARGS|METH_KEYWORDS, os_listdir__doc__}, static PyObject * -os_listdir_impl(PyModuleDef *module, path_t *path); +os_listdir_impl(PyObject *module, path_t *path); static PyObject * -os_listdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_listdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -920,10 +919,10 @@ PyDoc_STRVAR(os__getfullpathname__doc__, {"_getfullpathname", (PyCFunction)os__getfullpathname, METH_O, os__getfullpathname__doc__}, static PyObject * -os__getfullpathname_impl(PyModuleDef *module, path_t *path); +os__getfullpathname_impl(PyObject *module, path_t *path); static PyObject * -os__getfullpathname(PyModuleDef *module, PyObject *arg) +os__getfullpathname(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; path_t path = PATH_T_INITIALIZE("_getfullpathname", "path", 0, 0); @@ -954,10 +953,10 @@ PyDoc_STRVAR(os__getfinalpathname__doc__, {"_getfinalpathname", (PyCFunction)os__getfinalpathname, METH_O, os__getfinalpathname__doc__}, static PyObject * -os__getfinalpathname_impl(PyModuleDef *module, PyObject *path); +os__getfinalpathname_impl(PyObject *module, PyObject *path); static PyObject * -os__getfinalpathname(PyModuleDef *module, PyObject *arg) +os__getfinalpathname(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; PyObject *path; @@ -984,10 +983,10 @@ PyDoc_STRVAR(os__isdir__doc__, {"_isdir", (PyCFunction)os__isdir, METH_O, os__isdir__doc__}, static PyObject * -os__isdir_impl(PyModuleDef *module, path_t *path); +os__isdir_impl(PyObject *module, path_t *path); static PyObject * -os__isdir(PyModuleDef *module, PyObject *arg) +os__isdir(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; path_t path = PATH_T_INITIALIZE("_isdir", "path", 0, 0); @@ -1018,10 +1017,10 @@ PyDoc_STRVAR(os__getvolumepathname__doc__, {"_getvolumepathname", (PyCFunction)os__getvolumepathname, METH_VARARGS|METH_KEYWORDS, os__getvolumepathname__doc__}, static PyObject * -os__getvolumepathname_impl(PyModuleDef *module, PyObject *path); +os__getvolumepathname_impl(PyObject *module, PyObject *path); static PyObject * -os__getvolumepathname(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os__getvolumepathname(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -1056,10 +1055,10 @@ PyDoc_STRVAR(os_mkdir__doc__, {"mkdir", (PyCFunction)os_mkdir, METH_VARARGS|METH_KEYWORDS, os_mkdir__doc__}, static PyObject * -os_mkdir_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd); +os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd); static PyObject * -os_mkdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_mkdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "dir_fd", NULL}; @@ -1092,10 +1091,10 @@ PyDoc_STRVAR(os_nice__doc__, {"nice", (PyCFunction)os_nice, METH_O, os_nice__doc__}, static PyObject * -os_nice_impl(PyModuleDef *module, int increment); +os_nice_impl(PyObject *module, int increment); static PyObject * -os_nice(PyModuleDef *module, PyObject *arg) +os_nice(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int increment; @@ -1123,10 +1122,10 @@ PyDoc_STRVAR(os_getpriority__doc__, {"getpriority", (PyCFunction)os_getpriority, METH_VARARGS|METH_KEYWORDS, os_getpriority__doc__}, static PyObject * -os_getpriority_impl(PyModuleDef *module, int which, int who); +os_getpriority_impl(PyObject *module, int which, int who); static PyObject * -os_getpriority(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_getpriority(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"which", "who", NULL}; @@ -1157,10 +1156,10 @@ PyDoc_STRVAR(os_setpriority__doc__, {"setpriority", (PyCFunction)os_setpriority, METH_VARARGS|METH_KEYWORDS, os_setpriority__doc__}, static PyObject * -os_setpriority_impl(PyModuleDef *module, int which, int who, int priority); +os_setpriority_impl(PyObject *module, int which, int who, int priority); static PyObject * -os_setpriority(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_setpriority(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"which", "who", "priority", NULL}; @@ -1196,11 +1195,11 @@ PyDoc_STRVAR(os_rename__doc__, {"rename", (PyCFunction)os_rename, METH_VARARGS|METH_KEYWORDS, os_rename__doc__}, static PyObject * -os_rename_impl(PyModuleDef *module, path_t *src, path_t *dst, int src_dir_fd, +os_rename_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd); static PyObject * -os_rename(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_rename(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"src", "dst", "src_dir_fd", "dst_dir_fd", NULL}; @@ -1240,11 +1239,11 @@ PyDoc_STRVAR(os_replace__doc__, {"replace", (PyCFunction)os_replace, METH_VARARGS|METH_KEYWORDS, os_replace__doc__}, static PyObject * -os_replace_impl(PyModuleDef *module, path_t *src, path_t *dst, - int src_dir_fd, int dst_dir_fd); +os_replace_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, + int dst_dir_fd); static PyObject * -os_replace(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_replace(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"src", "dst", "src_dir_fd", "dst_dir_fd", NULL}; @@ -1283,10 +1282,10 @@ PyDoc_STRVAR(os_rmdir__doc__, {"rmdir", (PyCFunction)os_rmdir, METH_VARARGS|METH_KEYWORDS, os_rmdir__doc__}, static PyObject * -os_rmdir_impl(PyModuleDef *module, path_t *path, int dir_fd); +os_rmdir_impl(PyObject *module, path_t *path, int dir_fd); static PyObject * -os_rmdir(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_rmdir(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", NULL}; @@ -1318,10 +1317,10 @@ PyDoc_STRVAR(os_system__doc__, {"system", (PyCFunction)os_system, METH_VARARGS|METH_KEYWORDS, os_system__doc__}, static long -os_system_impl(PyModuleDef *module, Py_UNICODE *command); +os_system_impl(PyObject *module, Py_UNICODE *command); static PyObject * -os_system(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_system(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"command", NULL}; @@ -1356,10 +1355,10 @@ PyDoc_STRVAR(os_system__doc__, {"system", (PyCFunction)os_system, METH_VARARGS|METH_KEYWORDS, os_system__doc__}, static long -os_system_impl(PyModuleDef *module, PyObject *command); +os_system_impl(PyObject *module, PyObject *command); static PyObject * -os_system(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_system(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"command", NULL}; @@ -1395,10 +1394,10 @@ PyDoc_STRVAR(os_umask__doc__, {"umask", (PyCFunction)os_umask, METH_O, os_umask__doc__}, static PyObject * -os_umask_impl(PyModuleDef *module, int mask); +os_umask_impl(PyObject *module, int mask); static PyObject * -os_umask(PyModuleDef *module, PyObject *arg) +os_umask(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int mask; @@ -1427,10 +1426,10 @@ PyDoc_STRVAR(os_unlink__doc__, {"unlink", (PyCFunction)os_unlink, METH_VARARGS|METH_KEYWORDS, os_unlink__doc__}, static PyObject * -os_unlink_impl(PyModuleDef *module, path_t *path, int dir_fd); +os_unlink_impl(PyObject *module, path_t *path, int dir_fd); static PyObject * -os_unlink(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_unlink(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", NULL}; @@ -1465,10 +1464,10 @@ PyDoc_STRVAR(os_remove__doc__, {"remove", (PyCFunction)os_remove, METH_VARARGS|METH_KEYWORDS, os_remove__doc__}, static PyObject * -os_remove_impl(PyModuleDef *module, path_t *path, int dir_fd); +os_remove_impl(PyObject *module, path_t *path, int dir_fd); static PyObject * -os_remove(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_remove(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "dir_fd", NULL}; @@ -1503,10 +1502,10 @@ PyDoc_STRVAR(os_uname__doc__, {"uname", (PyCFunction)os_uname, METH_NOARGS, os_uname__doc__}, static PyObject * -os_uname_impl(PyModuleDef *module); +os_uname_impl(PyObject *module); static PyObject * -os_uname(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_uname(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_uname_impl(module); } @@ -1546,11 +1545,11 @@ PyDoc_STRVAR(os_utime__doc__, {"utime", (PyCFunction)os_utime, METH_VARARGS|METH_KEYWORDS, os_utime__doc__}, static PyObject * -os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times, - PyObject *ns, int dir_fd, int follow_symlinks); +os_utime_impl(PyObject *module, path_t *path, PyObject *times, PyObject *ns, + int dir_fd, int follow_symlinks); static PyObject * -os_utime(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_utime(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "times", "ns", "dir_fd", "follow_symlinks", NULL}; @@ -1583,10 +1582,10 @@ PyDoc_STRVAR(os__exit__doc__, {"_exit", (PyCFunction)os__exit, METH_VARARGS|METH_KEYWORDS, os__exit__doc__}, static PyObject * -os__exit_impl(PyModuleDef *module, int status); +os__exit_impl(PyObject *module, int status); static PyObject * -os__exit(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os__exit(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -1619,10 +1618,10 @@ PyDoc_STRVAR(os_execv__doc__, {"execv", (PyCFunction)os_execv, METH_VARARGS, os_execv__doc__}, static PyObject * -os_execv_impl(PyModuleDef *module, PyObject *path, PyObject *argv); +os_execv_impl(PyObject *module, PyObject *path, PyObject *argv); static PyObject * -os_execv(PyModuleDef *module, PyObject *args) +os_execv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; PyObject *path = NULL; @@ -1662,11 +1661,10 @@ PyDoc_STRVAR(os_execve__doc__, {"execve", (PyCFunction)os_execve, METH_VARARGS|METH_KEYWORDS, os_execve__doc__}, static PyObject * -os_execve_impl(PyModuleDef *module, path_t *path, PyObject *argv, - PyObject *env); +os_execve_impl(PyObject *module, path_t *path, PyObject *argv, PyObject *env); static PyObject * -os_execve(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_execve(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "argv", "env", NULL}; @@ -1708,10 +1706,10 @@ PyDoc_STRVAR(os_spawnv__doc__, {"spawnv", (PyCFunction)os_spawnv, METH_VARARGS, os_spawnv__doc__}, static PyObject * -os_spawnv_impl(PyModuleDef *module, int mode, PyObject *path, PyObject *argv); +os_spawnv_impl(PyObject *module, int mode, PyObject *path, PyObject *argv); static PyObject * -os_spawnv(PyModuleDef *module, PyObject *args) +os_spawnv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int mode; @@ -1754,11 +1752,11 @@ PyDoc_STRVAR(os_spawnve__doc__, {"spawnve", (PyCFunction)os_spawnve, METH_VARARGS, os_spawnve__doc__}, static PyObject * -os_spawnve_impl(PyModuleDef *module, int mode, PyObject *path, - PyObject *argv, PyObject *env); +os_spawnve_impl(PyObject *module, int mode, PyObject *path, PyObject *argv, + PyObject *env); static PyObject * -os_spawnve(PyModuleDef *module, PyObject *args) +os_spawnve(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int mode; @@ -1795,10 +1793,10 @@ PyDoc_STRVAR(os_fork1__doc__, {"fork1", (PyCFunction)os_fork1, METH_NOARGS, os_fork1__doc__}, static PyObject * -os_fork1_impl(PyModuleDef *module); +os_fork1_impl(PyObject *module); static PyObject * -os_fork1(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_fork1(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_fork1_impl(module); } @@ -1819,10 +1817,10 @@ PyDoc_STRVAR(os_fork__doc__, {"fork", (PyCFunction)os_fork, METH_NOARGS, os_fork__doc__}, static PyObject * -os_fork_impl(PyModuleDef *module); +os_fork_impl(PyObject *module); static PyObject * -os_fork(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_fork(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_fork_impl(module); } @@ -1841,10 +1839,10 @@ PyDoc_STRVAR(os_sched_get_priority_max__doc__, {"sched_get_priority_max", (PyCFunction)os_sched_get_priority_max, METH_VARARGS|METH_KEYWORDS, os_sched_get_priority_max__doc__}, static PyObject * -os_sched_get_priority_max_impl(PyModuleDef *module, int policy); +os_sched_get_priority_max_impl(PyObject *module, int policy); static PyObject * -os_sched_get_priority_max(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_sched_get_priority_max(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"policy", NULL}; @@ -1874,10 +1872,10 @@ PyDoc_STRVAR(os_sched_get_priority_min__doc__, {"sched_get_priority_min", (PyCFunction)os_sched_get_priority_min, METH_VARARGS|METH_KEYWORDS, os_sched_get_priority_min__doc__}, static PyObject * -os_sched_get_priority_min_impl(PyModuleDef *module, int policy); +os_sched_get_priority_min_impl(PyObject *module, int policy); static PyObject * -os_sched_get_priority_min(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_sched_get_priority_min(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"policy", NULL}; @@ -1909,10 +1907,10 @@ PyDoc_STRVAR(os_sched_getscheduler__doc__, {"sched_getscheduler", (PyCFunction)os_sched_getscheduler, METH_O, os_sched_getscheduler__doc__}, static PyObject * -os_sched_getscheduler_impl(PyModuleDef *module, pid_t pid); +os_sched_getscheduler_impl(PyObject *module, pid_t pid); static PyObject * -os_sched_getscheduler(PyModuleDef *module, PyObject *arg) +os_sched_getscheduler(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -1976,11 +1974,11 @@ PyDoc_STRVAR(os_sched_setscheduler__doc__, {"sched_setscheduler", (PyCFunction)os_sched_setscheduler, METH_VARARGS, os_sched_setscheduler__doc__}, static PyObject * -os_sched_setscheduler_impl(PyModuleDef *module, pid_t pid, int policy, +os_sched_setscheduler_impl(PyObject *module, pid_t pid, int policy, struct sched_param *param); static PyObject * -os_sched_setscheduler(PyModuleDef *module, PyObject *args) +os_sched_setscheduler(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -2014,10 +2012,10 @@ PyDoc_STRVAR(os_sched_getparam__doc__, {"sched_getparam", (PyCFunction)os_sched_getparam, METH_O, os_sched_getparam__doc__}, static PyObject * -os_sched_getparam_impl(PyModuleDef *module, pid_t pid); +os_sched_getparam_impl(PyObject *module, pid_t pid); static PyObject * -os_sched_getparam(PyModuleDef *module, PyObject *arg) +os_sched_getparam(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -2048,11 +2046,11 @@ PyDoc_STRVAR(os_sched_setparam__doc__, {"sched_setparam", (PyCFunction)os_sched_setparam, METH_VARARGS, os_sched_setparam__doc__}, static PyObject * -os_sched_setparam_impl(PyModuleDef *module, pid_t pid, +os_sched_setparam_impl(PyObject *module, pid_t pid, struct sched_param *param); static PyObject * -os_sched_setparam(PyModuleDef *module, PyObject *args) +os_sched_setparam(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -2084,10 +2082,10 @@ PyDoc_STRVAR(os_sched_rr_get_interval__doc__, {"sched_rr_get_interval", (PyCFunction)os_sched_rr_get_interval, METH_O, os_sched_rr_get_interval__doc__}, static double -os_sched_rr_get_interval_impl(PyModuleDef *module, pid_t pid); +os_sched_rr_get_interval_impl(PyObject *module, pid_t pid); static PyObject * -os_sched_rr_get_interval(PyModuleDef *module, PyObject *arg) +os_sched_rr_get_interval(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -2120,10 +2118,10 @@ PyDoc_STRVAR(os_sched_yield__doc__, {"sched_yield", (PyCFunction)os_sched_yield, METH_NOARGS, os_sched_yield__doc__}, static PyObject * -os_sched_yield_impl(PyModuleDef *module); +os_sched_yield_impl(PyObject *module); static PyObject * -os_sched_yield(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_sched_yield(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_sched_yield_impl(module); } @@ -2144,10 +2142,10 @@ PyDoc_STRVAR(os_sched_setaffinity__doc__, {"sched_setaffinity", (PyCFunction)os_sched_setaffinity, METH_VARARGS, os_sched_setaffinity__doc__}, static PyObject * -os_sched_setaffinity_impl(PyModuleDef *module, pid_t pid, PyObject *mask); +os_sched_setaffinity_impl(PyObject *module, pid_t pid, PyObject *mask); static PyObject * -os_sched_setaffinity(PyModuleDef *module, PyObject *args) +os_sched_setaffinity(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -2179,10 +2177,10 @@ PyDoc_STRVAR(os_sched_getaffinity__doc__, {"sched_getaffinity", (PyCFunction)os_sched_getaffinity, METH_O, os_sched_getaffinity__doc__}, static PyObject * -os_sched_getaffinity_impl(PyModuleDef *module, pid_t pid); +os_sched_getaffinity_impl(PyObject *module, pid_t pid); static PyObject * -os_sched_getaffinity(PyModuleDef *module, PyObject *arg) +os_sched_getaffinity(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -2213,10 +2211,10 @@ PyDoc_STRVAR(os_openpty__doc__, {"openpty", (PyCFunction)os_openpty, METH_NOARGS, os_openpty__doc__}, static PyObject * -os_openpty_impl(PyModuleDef *module); +os_openpty_impl(PyObject *module); static PyObject * -os_openpty(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_openpty(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_openpty_impl(module); } @@ -2240,10 +2238,10 @@ PyDoc_STRVAR(os_forkpty__doc__, {"forkpty", (PyCFunction)os_forkpty, METH_NOARGS, os_forkpty__doc__}, static PyObject * -os_forkpty_impl(PyModuleDef *module); +os_forkpty_impl(PyObject *module); static PyObject * -os_forkpty(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_forkpty(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_forkpty_impl(module); } @@ -2262,10 +2260,10 @@ PyDoc_STRVAR(os_getegid__doc__, {"getegid", (PyCFunction)os_getegid, METH_NOARGS, os_getegid__doc__}, static PyObject * -os_getegid_impl(PyModuleDef *module); +os_getegid_impl(PyObject *module); static PyObject * -os_getegid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getegid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getegid_impl(module); } @@ -2284,10 +2282,10 @@ PyDoc_STRVAR(os_geteuid__doc__, {"geteuid", (PyCFunction)os_geteuid, METH_NOARGS, os_geteuid__doc__}, static PyObject * -os_geteuid_impl(PyModuleDef *module); +os_geteuid_impl(PyObject *module); static PyObject * -os_geteuid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_geteuid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_geteuid_impl(module); } @@ -2306,10 +2304,10 @@ PyDoc_STRVAR(os_getgid__doc__, {"getgid", (PyCFunction)os_getgid, METH_NOARGS, os_getgid__doc__}, static PyObject * -os_getgid_impl(PyModuleDef *module); +os_getgid_impl(PyObject *module); static PyObject * -os_getgid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getgid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getgid_impl(module); } @@ -2326,10 +2324,10 @@ PyDoc_STRVAR(os_getpid__doc__, {"getpid", (PyCFunction)os_getpid, METH_NOARGS, os_getpid__doc__}, static PyObject * -os_getpid_impl(PyModuleDef *module); +os_getpid_impl(PyObject *module); static PyObject * -os_getpid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getpid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getpid_impl(module); } @@ -2346,10 +2344,10 @@ PyDoc_STRVAR(os_getgroups__doc__, {"getgroups", (PyCFunction)os_getgroups, METH_NOARGS, os_getgroups__doc__}, static PyObject * -os_getgroups_impl(PyModuleDef *module); +os_getgroups_impl(PyObject *module); static PyObject * -os_getgroups(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getgroups(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getgroups_impl(module); } @@ -2368,10 +2366,10 @@ PyDoc_STRVAR(os_getpgid__doc__, {"getpgid", (PyCFunction)os_getpgid, METH_VARARGS|METH_KEYWORDS, os_getpgid__doc__}, static PyObject * -os_getpgid_impl(PyModuleDef *module, pid_t pid); +os_getpgid_impl(PyObject *module, pid_t pid); static PyObject * -os_getpgid(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_getpgid(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"pid", NULL}; @@ -2401,10 +2399,10 @@ PyDoc_STRVAR(os_getpgrp__doc__, {"getpgrp", (PyCFunction)os_getpgrp, METH_NOARGS, os_getpgrp__doc__}, static PyObject * -os_getpgrp_impl(PyModuleDef *module); +os_getpgrp_impl(PyObject *module); static PyObject * -os_getpgrp(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getpgrp(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getpgrp_impl(module); } @@ -2423,10 +2421,10 @@ PyDoc_STRVAR(os_setpgrp__doc__, {"setpgrp", (PyCFunction)os_setpgrp, METH_NOARGS, os_setpgrp__doc__}, static PyObject * -os_setpgrp_impl(PyModuleDef *module); +os_setpgrp_impl(PyObject *module); static PyObject * -os_setpgrp(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_setpgrp(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_setpgrp_impl(module); } @@ -2448,10 +2446,10 @@ PyDoc_STRVAR(os_getppid__doc__, {"getppid", (PyCFunction)os_getppid, METH_NOARGS, os_getppid__doc__}, static PyObject * -os_getppid_impl(PyModuleDef *module); +os_getppid_impl(PyObject *module); static PyObject * -os_getppid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getppid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getppid_impl(module); } @@ -2470,10 +2468,10 @@ PyDoc_STRVAR(os_getlogin__doc__, {"getlogin", (PyCFunction)os_getlogin, METH_NOARGS, os_getlogin__doc__}, static PyObject * -os_getlogin_impl(PyModuleDef *module); +os_getlogin_impl(PyObject *module); static PyObject * -os_getlogin(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getlogin(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getlogin_impl(module); } @@ -2492,10 +2490,10 @@ PyDoc_STRVAR(os_getuid__doc__, {"getuid", (PyCFunction)os_getuid, METH_NOARGS, os_getuid__doc__}, static PyObject * -os_getuid_impl(PyModuleDef *module); +os_getuid_impl(PyObject *module); static PyObject * -os_getuid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getuid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getuid_impl(module); } @@ -2514,10 +2512,10 @@ PyDoc_STRVAR(os_kill__doc__, {"kill", (PyCFunction)os_kill, METH_VARARGS, os_kill__doc__}, static PyObject * -os_kill_impl(PyModuleDef *module, pid_t pid, Py_ssize_t signal); +os_kill_impl(PyObject *module, pid_t pid, Py_ssize_t signal); static PyObject * -os_kill(PyModuleDef *module, PyObject *args) +os_kill(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -2547,10 +2545,10 @@ PyDoc_STRVAR(os_killpg__doc__, {"killpg", (PyCFunction)os_killpg, METH_VARARGS, os_killpg__doc__}, static PyObject * -os_killpg_impl(PyModuleDef *module, pid_t pgid, int signal); +os_killpg_impl(PyObject *module, pid_t pgid, int signal); static PyObject * -os_killpg(PyModuleDef *module, PyObject *args) +os_killpg(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pgid; @@ -2580,10 +2578,10 @@ PyDoc_STRVAR(os_plock__doc__, {"plock", (PyCFunction)os_plock, METH_O, os_plock__doc__}, static PyObject * -os_plock_impl(PyModuleDef *module, int op); +os_plock_impl(PyObject *module, int op); static PyObject * -os_plock(PyModuleDef *module, PyObject *arg) +os_plock(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int op; @@ -2611,10 +2609,10 @@ PyDoc_STRVAR(os_setuid__doc__, {"setuid", (PyCFunction)os_setuid, METH_O, os_setuid__doc__}, static PyObject * -os_setuid_impl(PyModuleDef *module, uid_t uid); +os_setuid_impl(PyObject *module, uid_t uid); static PyObject * -os_setuid(PyModuleDef *module, PyObject *arg) +os_setuid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; uid_t uid; @@ -2642,10 +2640,10 @@ PyDoc_STRVAR(os_seteuid__doc__, {"seteuid", (PyCFunction)os_seteuid, METH_O, os_seteuid__doc__}, static PyObject * -os_seteuid_impl(PyModuleDef *module, uid_t euid); +os_seteuid_impl(PyObject *module, uid_t euid); static PyObject * -os_seteuid(PyModuleDef *module, PyObject *arg) +os_seteuid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; uid_t euid; @@ -2673,10 +2671,10 @@ PyDoc_STRVAR(os_setegid__doc__, {"setegid", (PyCFunction)os_setegid, METH_O, os_setegid__doc__}, static PyObject * -os_setegid_impl(PyModuleDef *module, gid_t egid); +os_setegid_impl(PyObject *module, gid_t egid); static PyObject * -os_setegid(PyModuleDef *module, PyObject *arg) +os_setegid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; gid_t egid; @@ -2704,10 +2702,10 @@ PyDoc_STRVAR(os_setreuid__doc__, {"setreuid", (PyCFunction)os_setreuid, METH_VARARGS, os_setreuid__doc__}, static PyObject * -os_setreuid_impl(PyModuleDef *module, uid_t ruid, uid_t euid); +os_setreuid_impl(PyObject *module, uid_t ruid, uid_t euid); static PyObject * -os_setreuid(PyModuleDef *module, PyObject *args) +os_setreuid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; uid_t ruid; @@ -2737,10 +2735,10 @@ PyDoc_STRVAR(os_setregid__doc__, {"setregid", (PyCFunction)os_setregid, METH_VARARGS, os_setregid__doc__}, static PyObject * -os_setregid_impl(PyModuleDef *module, gid_t rgid, gid_t egid); +os_setregid_impl(PyObject *module, gid_t rgid, gid_t egid); static PyObject * -os_setregid(PyModuleDef *module, PyObject *args) +os_setregid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; gid_t rgid; @@ -2770,10 +2768,10 @@ PyDoc_STRVAR(os_setgid__doc__, {"setgid", (PyCFunction)os_setgid, METH_O, os_setgid__doc__}, static PyObject * -os_setgid_impl(PyModuleDef *module, gid_t gid); +os_setgid_impl(PyObject *module, gid_t gid); static PyObject * -os_setgid(PyModuleDef *module, PyObject *arg) +os_setgid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; gid_t gid; @@ -2817,10 +2815,10 @@ PyDoc_STRVAR(os_wait3__doc__, {"wait3", (PyCFunction)os_wait3, METH_VARARGS|METH_KEYWORDS, os_wait3__doc__}, static PyObject * -os_wait3_impl(PyModuleDef *module, int options); +os_wait3_impl(PyObject *module, int options); static PyObject * -os_wait3(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_wait3(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"options", NULL}; @@ -2853,10 +2851,10 @@ PyDoc_STRVAR(os_wait4__doc__, {"wait4", (PyCFunction)os_wait4, METH_VARARGS|METH_KEYWORDS, os_wait4__doc__}, static PyObject * -os_wait4_impl(PyModuleDef *module, pid_t pid, int options); +os_wait4_impl(PyObject *module, pid_t pid, int options); static PyObject * -os_wait4(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_wait4(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"pid", "options", NULL}; @@ -2898,10 +2896,10 @@ PyDoc_STRVAR(os_waitid__doc__, {"waitid", (PyCFunction)os_waitid, METH_VARARGS, os_waitid__doc__}, static PyObject * -os_waitid_impl(PyModuleDef *module, idtype_t idtype, id_t id, int options); +os_waitid_impl(PyObject *module, idtype_t idtype, id_t id, int options); static PyObject * -os_waitid(PyModuleDef *module, PyObject *args) +os_waitid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; idtype_t idtype; @@ -2937,10 +2935,10 @@ PyDoc_STRVAR(os_waitpid__doc__, {"waitpid", (PyCFunction)os_waitpid, METH_VARARGS, os_waitpid__doc__}, static PyObject * -os_waitpid_impl(PyModuleDef *module, pid_t pid, int options); +os_waitpid_impl(PyObject *module, pid_t pid, int options); static PyObject * -os_waitpid(PyModuleDef *module, PyObject *args) +os_waitpid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -2975,10 +2973,10 @@ PyDoc_STRVAR(os_waitpid__doc__, {"waitpid", (PyCFunction)os_waitpid, METH_VARARGS, os_waitpid__doc__}, static PyObject * -os_waitpid_impl(PyModuleDef *module, Py_intptr_t pid, int options); +os_waitpid_impl(PyObject *module, Py_intptr_t pid, int options); static PyObject * -os_waitpid(PyModuleDef *module, PyObject *args) +os_waitpid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; Py_intptr_t pid; @@ -3011,10 +3009,10 @@ PyDoc_STRVAR(os_wait__doc__, {"wait", (PyCFunction)os_wait, METH_NOARGS, os_wait__doc__}, static PyObject * -os_wait_impl(PyModuleDef *module); +os_wait_impl(PyObject *module); static PyObject * -os_wait(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_wait(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_wait_impl(module); } @@ -3043,11 +3041,11 @@ PyDoc_STRVAR(os_symlink__doc__, {"symlink", (PyCFunction)os_symlink, METH_VARARGS|METH_KEYWORDS, os_symlink__doc__}, static PyObject * -os_symlink_impl(PyModuleDef *module, path_t *src, path_t *dst, +os_symlink_impl(PyObject *module, path_t *src, path_t *dst, int target_is_directory, int dir_fd); static PyObject * -os_symlink(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_symlink(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"src", "dst", "target_is_directory", "dir_fd", NULL}; @@ -3089,10 +3087,10 @@ PyDoc_STRVAR(os_times__doc__, {"times", (PyCFunction)os_times, METH_NOARGS, os_times__doc__}, static PyObject * -os_times_impl(PyModuleDef *module); +os_times_impl(PyObject *module); static PyObject * -os_times(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_times(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_times_impl(module); } @@ -3111,10 +3109,10 @@ PyDoc_STRVAR(os_getsid__doc__, {"getsid", (PyCFunction)os_getsid, METH_O, os_getsid__doc__}, static PyObject * -os_getsid_impl(PyModuleDef *module, pid_t pid); +os_getsid_impl(PyObject *module, pid_t pid); static PyObject * -os_getsid(PyModuleDef *module, PyObject *arg) +os_getsid(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; pid_t pid; @@ -3142,10 +3140,10 @@ PyDoc_STRVAR(os_setsid__doc__, {"setsid", (PyCFunction)os_setsid, METH_NOARGS, os_setsid__doc__}, static PyObject * -os_setsid_impl(PyModuleDef *module); +os_setsid_impl(PyObject *module); static PyObject * -os_setsid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_setsid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_setsid_impl(module); } @@ -3164,10 +3162,10 @@ PyDoc_STRVAR(os_setpgid__doc__, {"setpgid", (PyCFunction)os_setpgid, METH_VARARGS, os_setpgid__doc__}, static PyObject * -os_setpgid_impl(PyModuleDef *module, pid_t pid, pid_t pgrp); +os_setpgid_impl(PyObject *module, pid_t pid, pid_t pgrp); static PyObject * -os_setpgid(PyModuleDef *module, PyObject *args) +os_setpgid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; pid_t pid; @@ -3197,10 +3195,10 @@ PyDoc_STRVAR(os_tcgetpgrp__doc__, {"tcgetpgrp", (PyCFunction)os_tcgetpgrp, METH_O, os_tcgetpgrp__doc__}, static PyObject * -os_tcgetpgrp_impl(PyModuleDef *module, int fd); +os_tcgetpgrp_impl(PyObject *module, int fd); static PyObject * -os_tcgetpgrp(PyModuleDef *module, PyObject *arg) +os_tcgetpgrp(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -3228,10 +3226,10 @@ PyDoc_STRVAR(os_tcsetpgrp__doc__, {"tcsetpgrp", (PyCFunction)os_tcsetpgrp, METH_VARARGS, os_tcsetpgrp__doc__}, static PyObject * -os_tcsetpgrp_impl(PyModuleDef *module, int fd, pid_t pgid); +os_tcsetpgrp_impl(PyObject *module, int fd, pid_t pgid); static PyObject * -os_tcsetpgrp(PyModuleDef *module, PyObject *args) +os_tcsetpgrp(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3264,11 +3262,10 @@ PyDoc_STRVAR(os_open__doc__, {"open", (PyCFunction)os_open, METH_VARARGS|METH_KEYWORDS, os_open__doc__}, static int -os_open_impl(PyModuleDef *module, path_t *path, int flags, int mode, - int dir_fd); +os_open_impl(PyObject *module, path_t *path, int flags, int mode, int dir_fd); static PyObject * -os_open(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_open(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "flags", "mode", "dir_fd", NULL}; @@ -3305,10 +3302,10 @@ PyDoc_STRVAR(os_close__doc__, {"close", (PyCFunction)os_close, METH_VARARGS|METH_KEYWORDS, os_close__doc__}, static PyObject * -os_close_impl(PyModuleDef *module, int fd); +os_close_impl(PyObject *module, int fd); static PyObject * -os_close(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_close(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -3334,10 +3331,10 @@ PyDoc_STRVAR(os_closerange__doc__, {"closerange", (PyCFunction)os_closerange, METH_VARARGS, os_closerange__doc__}, static PyObject * -os_closerange_impl(PyModuleDef *module, int fd_low, int fd_high); +os_closerange_impl(PyObject *module, int fd_low, int fd_high); static PyObject * -os_closerange(PyModuleDef *module, PyObject *args) +os_closerange(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd_low; @@ -3363,10 +3360,10 @@ PyDoc_STRVAR(os_dup__doc__, {"dup", (PyCFunction)os_dup, METH_O, os_dup__doc__}, static int -os_dup_impl(PyModuleDef *module, int fd); +os_dup_impl(PyObject *module, int fd); static PyObject * -os_dup(PyModuleDef *module, PyObject *arg) +os_dup(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -3395,10 +3392,10 @@ PyDoc_STRVAR(os_dup2__doc__, {"dup2", (PyCFunction)os_dup2, METH_VARARGS|METH_KEYWORDS, os_dup2__doc__}, static PyObject * -os_dup2_impl(PyModuleDef *module, int fd, int fd2, int inheritable); +os_dup2_impl(PyObject *module, int fd, int fd2, int inheritable); static PyObject * -os_dup2(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_dup2(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", "fd2", "inheritable", NULL}; @@ -3435,10 +3432,10 @@ PyDoc_STRVAR(os_lockf__doc__, {"lockf", (PyCFunction)os_lockf, METH_VARARGS, os_lockf__doc__}, static PyObject * -os_lockf_impl(PyModuleDef *module, int fd, int command, Py_off_t length); +os_lockf_impl(PyObject *module, int fd, int command, Py_off_t length); static PyObject * -os_lockf(PyModuleDef *module, PyObject *args) +os_lockf(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3470,10 +3467,10 @@ PyDoc_STRVAR(os_lseek__doc__, {"lseek", (PyCFunction)os_lseek, METH_VARARGS, os_lseek__doc__}, static Py_off_t -os_lseek_impl(PyModuleDef *module, int fd, Py_off_t position, int how); +os_lseek_impl(PyObject *module, int fd, Py_off_t position, int how); static PyObject * -os_lseek(PyModuleDef *module, PyObject *args) +os_lseek(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3505,10 +3502,10 @@ PyDoc_STRVAR(os_read__doc__, {"read", (PyCFunction)os_read, METH_VARARGS, os_read__doc__}, static PyObject * -os_read_impl(PyModuleDef *module, int fd, Py_ssize_t length); +os_read_impl(PyObject *module, int fd, Py_ssize_t length); static PyObject * -os_read(PyModuleDef *module, PyObject *args) +os_read(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3544,10 +3541,10 @@ PyDoc_STRVAR(os_readv__doc__, {"readv", (PyCFunction)os_readv, METH_VARARGS, os_readv__doc__}, static Py_ssize_t -os_readv_impl(PyModuleDef *module, int fd, PyObject *buffers); +os_readv_impl(PyObject *module, int fd, PyObject *buffers); static PyObject * -os_readv(PyModuleDef *module, PyObject *args) +os_readv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3585,10 +3582,10 @@ PyDoc_STRVAR(os_pread__doc__, {"pread", (PyCFunction)os_pread, METH_VARARGS, os_pread__doc__}, static PyObject * -os_pread_impl(PyModuleDef *module, int fd, int length, Py_off_t offset); +os_pread_impl(PyObject *module, int fd, int length, Py_off_t offset); static PyObject * -os_pread(PyModuleDef *module, PyObject *args) +os_pread(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3617,10 +3614,10 @@ PyDoc_STRVAR(os_write__doc__, {"write", (PyCFunction)os_write, METH_VARARGS, os_write__doc__}, static Py_ssize_t -os_write_impl(PyModuleDef *module, int fd, Py_buffer *data); +os_write_impl(PyObject *module, int fd, Py_buffer *data); static PyObject * -os_write(PyModuleDef *module, PyObject *args) +os_write(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3659,10 +3656,10 @@ PyDoc_STRVAR(os_fstat__doc__, {"fstat", (PyCFunction)os_fstat, METH_VARARGS|METH_KEYWORDS, os_fstat__doc__}, static PyObject * -os_fstat_impl(PyModuleDef *module, int fd); +os_fstat_impl(PyObject *module, int fd); static PyObject * -os_fstat(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fstat(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -3691,10 +3688,10 @@ PyDoc_STRVAR(os_isatty__doc__, {"isatty", (PyCFunction)os_isatty, METH_O, os_isatty__doc__}, static int -os_isatty_impl(PyModuleDef *module, int fd); +os_isatty_impl(PyObject *module, int fd); static PyObject * -os_isatty(PyModuleDef *module, PyObject *arg) +os_isatty(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -3728,10 +3725,10 @@ PyDoc_STRVAR(os_pipe__doc__, {"pipe", (PyCFunction)os_pipe, METH_NOARGS, os_pipe__doc__}, static PyObject * -os_pipe_impl(PyModuleDef *module); +os_pipe_impl(PyObject *module); static PyObject * -os_pipe(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_pipe(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_pipe_impl(module); } @@ -3756,10 +3753,10 @@ PyDoc_STRVAR(os_pipe2__doc__, {"pipe2", (PyCFunction)os_pipe2, METH_O, os_pipe2__doc__}, static PyObject * -os_pipe2_impl(PyModuleDef *module, int flags); +os_pipe2_impl(PyObject *module, int flags); static PyObject * -os_pipe2(PyModuleDef *module, PyObject *arg) +os_pipe2(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int flags; @@ -3790,10 +3787,10 @@ PyDoc_STRVAR(os_writev__doc__, {"writev", (PyCFunction)os_writev, METH_VARARGS, os_writev__doc__}, static Py_ssize_t -os_writev_impl(PyModuleDef *module, int fd, PyObject *buffers); +os_writev_impl(PyObject *module, int fd, PyObject *buffers); static PyObject * -os_writev(PyModuleDef *module, PyObject *args) +os_writev(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3832,11 +3829,10 @@ PyDoc_STRVAR(os_pwrite__doc__, {"pwrite", (PyCFunction)os_pwrite, METH_VARARGS, os_pwrite__doc__}, static Py_ssize_t -os_pwrite_impl(PyModuleDef *module, int fd, Py_buffer *buffer, - Py_off_t offset); +os_pwrite_impl(PyObject *module, int fd, Py_buffer *buffer, Py_off_t offset); static PyObject * -os_pwrite(PyModuleDef *module, PyObject *args) +os_pwrite(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -3882,10 +3878,10 @@ PyDoc_STRVAR(os_mkfifo__doc__, {"mkfifo", (PyCFunction)os_mkfifo, METH_VARARGS|METH_KEYWORDS, os_mkfifo__doc__}, static PyObject * -os_mkfifo_impl(PyModuleDef *module, path_t *path, int mode, int dir_fd); +os_mkfifo_impl(PyObject *module, path_t *path, int mode, int dir_fd); static PyObject * -os_mkfifo(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_mkfifo(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "dir_fd", NULL}; @@ -3932,11 +3928,11 @@ PyDoc_STRVAR(os_mknod__doc__, {"mknod", (PyCFunction)os_mknod, METH_VARARGS|METH_KEYWORDS, os_mknod__doc__}, static PyObject * -os_mknod_impl(PyModuleDef *module, path_t *path, int mode, dev_t device, +os_mknod_impl(PyObject *module, path_t *path, int mode, dev_t device, int dir_fd); static PyObject * -os_mknod(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_mknod(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "mode", "device", "dir_fd", NULL}; @@ -3972,10 +3968,10 @@ PyDoc_STRVAR(os_major__doc__, {"major", (PyCFunction)os_major, METH_O, os_major__doc__}, static unsigned int -os_major_impl(PyModuleDef *module, dev_t device); +os_major_impl(PyObject *module, dev_t device); static PyObject * -os_major(PyModuleDef *module, PyObject *arg) +os_major(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; dev_t device; @@ -4008,10 +4004,10 @@ PyDoc_STRVAR(os_minor__doc__, {"minor", (PyCFunction)os_minor, METH_O, os_minor__doc__}, static unsigned int -os_minor_impl(PyModuleDef *module, dev_t device); +os_minor_impl(PyObject *module, dev_t device); static PyObject * -os_minor(PyModuleDef *module, PyObject *arg) +os_minor(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; dev_t device; @@ -4044,10 +4040,10 @@ PyDoc_STRVAR(os_makedev__doc__, {"makedev", (PyCFunction)os_makedev, METH_VARARGS, os_makedev__doc__}, static dev_t -os_makedev_impl(PyModuleDef *module, int major, int minor); +os_makedev_impl(PyObject *module, int major, int minor); static PyObject * -os_makedev(PyModuleDef *module, PyObject *args) +os_makedev(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int major; @@ -4082,10 +4078,10 @@ PyDoc_STRVAR(os_ftruncate__doc__, {"ftruncate", (PyCFunction)os_ftruncate, METH_VARARGS, os_ftruncate__doc__}, static PyObject * -os_ftruncate_impl(PyModuleDef *module, int fd, Py_off_t length); +os_ftruncate_impl(PyObject *module, int fd, Py_off_t length); static PyObject * -os_ftruncate(PyModuleDef *module, PyObject *args) +os_ftruncate(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -4118,10 +4114,10 @@ PyDoc_STRVAR(os_truncate__doc__, {"truncate", (PyCFunction)os_truncate, METH_VARARGS|METH_KEYWORDS, os_truncate__doc__}, static PyObject * -os_truncate_impl(PyModuleDef *module, path_t *path, Py_off_t length); +os_truncate_impl(PyObject *module, path_t *path, Py_off_t length); static PyObject * -os_truncate(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_truncate(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "length", NULL}; @@ -4158,11 +4154,11 @@ PyDoc_STRVAR(os_posix_fallocate__doc__, {"posix_fallocate", (PyCFunction)os_posix_fallocate, METH_VARARGS, os_posix_fallocate__doc__}, static PyObject * -os_posix_fallocate_impl(PyModuleDef *module, int fd, Py_off_t offset, +os_posix_fallocate_impl(PyObject *module, int fd, Py_off_t offset, Py_off_t length); static PyObject * -os_posix_fallocate(PyModuleDef *module, PyObject *args) +os_posix_fallocate(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -4201,11 +4197,11 @@ PyDoc_STRVAR(os_posix_fadvise__doc__, {"posix_fadvise", (PyCFunction)os_posix_fadvise, METH_VARARGS, os_posix_fadvise__doc__}, static PyObject * -os_posix_fadvise_impl(PyModuleDef *module, int fd, Py_off_t offset, +os_posix_fadvise_impl(PyObject *module, int fd, Py_off_t offset, Py_off_t length, int advice); static PyObject * -os_posix_fadvise(PyModuleDef *module, PyObject *args) +os_posix_fadvise(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -4237,10 +4233,10 @@ PyDoc_STRVAR(os_putenv__doc__, {"putenv", (PyCFunction)os_putenv, METH_VARARGS, os_putenv__doc__}, static PyObject * -os_putenv_impl(PyModuleDef *module, PyObject *name, PyObject *value); +os_putenv_impl(PyObject *module, PyObject *name, PyObject *value); static PyObject * -os_putenv(PyModuleDef *module, PyObject *args) +os_putenv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; PyObject *name; @@ -4270,10 +4266,10 @@ PyDoc_STRVAR(os_putenv__doc__, {"putenv", (PyCFunction)os_putenv, METH_VARARGS, os_putenv__doc__}, static PyObject * -os_putenv_impl(PyModuleDef *module, PyObject *name, PyObject *value); +os_putenv_impl(PyObject *module, PyObject *name, PyObject *value); static PyObject * -os_putenv(PyModuleDef *module, PyObject *args) +os_putenv(PyObject *module, PyObject *args) { PyObject *return_value = NULL; PyObject *name = NULL; @@ -4308,10 +4304,10 @@ PyDoc_STRVAR(os_unsetenv__doc__, {"unsetenv", (PyCFunction)os_unsetenv, METH_O, os_unsetenv__doc__}, static PyObject * -os_unsetenv_impl(PyModuleDef *module, PyObject *name); +os_unsetenv_impl(PyObject *module, PyObject *name); static PyObject * -os_unsetenv(PyModuleDef *module, PyObject *arg) +os_unsetenv(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; PyObject *name = NULL; @@ -4340,10 +4336,10 @@ PyDoc_STRVAR(os_strerror__doc__, {"strerror", (PyCFunction)os_strerror, METH_O, os_strerror__doc__}, static PyObject * -os_strerror_impl(PyModuleDef *module, int code); +os_strerror_impl(PyObject *module, int code); static PyObject * -os_strerror(PyModuleDef *module, PyObject *arg) +os_strerror(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int code; @@ -4369,10 +4365,10 @@ PyDoc_STRVAR(os_WCOREDUMP__doc__, {"WCOREDUMP", (PyCFunction)os_WCOREDUMP, METH_O, os_WCOREDUMP__doc__}, static int -os_WCOREDUMP_impl(PyModuleDef *module, int status); +os_WCOREDUMP_impl(PyObject *module, int status); static PyObject * -os_WCOREDUMP(PyModuleDef *module, PyObject *arg) +os_WCOREDUMP(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int status; @@ -4408,10 +4404,10 @@ PyDoc_STRVAR(os_WIFCONTINUED__doc__, {"WIFCONTINUED", (PyCFunction)os_WIFCONTINUED, METH_VARARGS|METH_KEYWORDS, os_WIFCONTINUED__doc__}, static int -os_WIFCONTINUED_impl(PyModuleDef *module, int status); +os_WIFCONTINUED_impl(PyObject *module, int status); static PyObject * -os_WIFCONTINUED(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WIFCONTINUED(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4446,10 +4442,10 @@ PyDoc_STRVAR(os_WIFSTOPPED__doc__, {"WIFSTOPPED", (PyCFunction)os_WIFSTOPPED, METH_VARARGS|METH_KEYWORDS, os_WIFSTOPPED__doc__}, static int -os_WIFSTOPPED_impl(PyModuleDef *module, int status); +os_WIFSTOPPED_impl(PyObject *module, int status); static PyObject * -os_WIFSTOPPED(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WIFSTOPPED(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4484,10 +4480,10 @@ PyDoc_STRVAR(os_WIFSIGNALED__doc__, {"WIFSIGNALED", (PyCFunction)os_WIFSIGNALED, METH_VARARGS|METH_KEYWORDS, os_WIFSIGNALED__doc__}, static int -os_WIFSIGNALED_impl(PyModuleDef *module, int status); +os_WIFSIGNALED_impl(PyObject *module, int status); static PyObject * -os_WIFSIGNALED(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WIFSIGNALED(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4522,10 +4518,10 @@ PyDoc_STRVAR(os_WIFEXITED__doc__, {"WIFEXITED", (PyCFunction)os_WIFEXITED, METH_VARARGS|METH_KEYWORDS, os_WIFEXITED__doc__}, static int -os_WIFEXITED_impl(PyModuleDef *module, int status); +os_WIFEXITED_impl(PyObject *module, int status); static PyObject * -os_WIFEXITED(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WIFEXITED(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4560,10 +4556,10 @@ PyDoc_STRVAR(os_WEXITSTATUS__doc__, {"WEXITSTATUS", (PyCFunction)os_WEXITSTATUS, METH_VARARGS|METH_KEYWORDS, os_WEXITSTATUS__doc__}, static int -os_WEXITSTATUS_impl(PyModuleDef *module, int status); +os_WEXITSTATUS_impl(PyObject *module, int status); static PyObject * -os_WEXITSTATUS(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WEXITSTATUS(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4598,10 +4594,10 @@ PyDoc_STRVAR(os_WTERMSIG__doc__, {"WTERMSIG", (PyCFunction)os_WTERMSIG, METH_VARARGS|METH_KEYWORDS, os_WTERMSIG__doc__}, static int -os_WTERMSIG_impl(PyModuleDef *module, int status); +os_WTERMSIG_impl(PyObject *module, int status); static PyObject * -os_WTERMSIG(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WTERMSIG(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4636,10 +4632,10 @@ PyDoc_STRVAR(os_WSTOPSIG__doc__, {"WSTOPSIG", (PyCFunction)os_WSTOPSIG, METH_VARARGS|METH_KEYWORDS, os_WSTOPSIG__doc__}, static int -os_WSTOPSIG_impl(PyModuleDef *module, int status); +os_WSTOPSIG_impl(PyObject *module, int status); static PyObject * -os_WSTOPSIG(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_WSTOPSIG(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"status", NULL}; @@ -4676,10 +4672,10 @@ PyDoc_STRVAR(os_fstatvfs__doc__, {"fstatvfs", (PyCFunction)os_fstatvfs, METH_O, os_fstatvfs__doc__}, static PyObject * -os_fstatvfs_impl(PyModuleDef *module, int fd); +os_fstatvfs_impl(PyObject *module, int fd); static PyObject * -os_fstatvfs(PyModuleDef *module, PyObject *arg) +os_fstatvfs(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -4711,10 +4707,10 @@ PyDoc_STRVAR(os_statvfs__doc__, {"statvfs", (PyCFunction)os_statvfs, METH_VARARGS|METH_KEYWORDS, os_statvfs__doc__}, static PyObject * -os_statvfs_impl(PyModuleDef *module, path_t *path); +os_statvfs_impl(PyObject *module, path_t *path); static PyObject * -os_statvfs(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_statvfs(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -4747,10 +4743,10 @@ PyDoc_STRVAR(os__getdiskusage__doc__, {"_getdiskusage", (PyCFunction)os__getdiskusage, METH_VARARGS|METH_KEYWORDS, os__getdiskusage__doc__}, static PyObject * -os__getdiskusage_impl(PyModuleDef *module, Py_UNICODE *path); +os__getdiskusage_impl(PyObject *module, Py_UNICODE *path); static PyObject * -os__getdiskusage(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os__getdiskusage(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -4782,10 +4778,10 @@ PyDoc_STRVAR(os_fpathconf__doc__, {"fpathconf", (PyCFunction)os_fpathconf, METH_VARARGS, os_fpathconf__doc__}, static long -os_fpathconf_impl(PyModuleDef *module, int fd, int name); +os_fpathconf_impl(PyObject *module, int fd, int name); static PyObject * -os_fpathconf(PyModuleDef *module, PyObject *args) +os_fpathconf(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -4824,10 +4820,10 @@ PyDoc_STRVAR(os_pathconf__doc__, {"pathconf", (PyCFunction)os_pathconf, METH_VARARGS|METH_KEYWORDS, os_pathconf__doc__}, static long -os_pathconf_impl(PyModuleDef *module, path_t *path, int name); +os_pathconf_impl(PyObject *module, path_t *path, int name); static PyObject * -os_pathconf(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_pathconf(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "name", NULL}; @@ -4866,10 +4862,10 @@ PyDoc_STRVAR(os_confstr__doc__, {"confstr", (PyCFunction)os_confstr, METH_O, os_confstr__doc__}, static PyObject * -os_confstr_impl(PyModuleDef *module, int name); +os_confstr_impl(PyObject *module, int name); static PyObject * -os_confstr(PyModuleDef *module, PyObject *arg) +os_confstr(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int name; @@ -4897,10 +4893,10 @@ PyDoc_STRVAR(os_sysconf__doc__, {"sysconf", (PyCFunction)os_sysconf, METH_O, os_sysconf__doc__}, static long -os_sysconf_impl(PyModuleDef *module, int name); +os_sysconf_impl(PyObject *module, int name); static PyObject * -os_sysconf(PyModuleDef *module, PyObject *arg) +os_sysconf(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int name; @@ -4934,10 +4930,10 @@ PyDoc_STRVAR(os_abort__doc__, {"abort", (PyCFunction)os_abort, METH_NOARGS, os_abort__doc__}, static PyObject * -os_abort_impl(PyModuleDef *module); +os_abort_impl(PyObject *module); static PyObject * -os_abort(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_abort(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_abort_impl(module); } @@ -4958,10 +4954,10 @@ PyDoc_STRVAR(os_getloadavg__doc__, {"getloadavg", (PyCFunction)os_getloadavg, METH_NOARGS, os_getloadavg__doc__}, static PyObject * -os_getloadavg_impl(PyModuleDef *module); +os_getloadavg_impl(PyObject *module); static PyObject * -os_getloadavg(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getloadavg(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getloadavg_impl(module); } @@ -4981,10 +4977,10 @@ PyDoc_STRVAR(os_device_encoding__doc__, {"device_encoding", (PyCFunction)os_device_encoding, METH_VARARGS|METH_KEYWORDS, os_device_encoding__doc__}, static PyObject * -os_device_encoding_impl(PyModuleDef *module, int fd); +os_device_encoding_impl(PyObject *module, int fd); static PyObject * -os_device_encoding(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_device_encoding(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"fd", NULL}; @@ -5012,10 +5008,10 @@ PyDoc_STRVAR(os_setresuid__doc__, {"setresuid", (PyCFunction)os_setresuid, METH_VARARGS, os_setresuid__doc__}, static PyObject * -os_setresuid_impl(PyModuleDef *module, uid_t ruid, uid_t euid, uid_t suid); +os_setresuid_impl(PyObject *module, uid_t ruid, uid_t euid, uid_t suid); static PyObject * -os_setresuid(PyModuleDef *module, PyObject *args) +os_setresuid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; uid_t ruid; @@ -5046,10 +5042,10 @@ PyDoc_STRVAR(os_setresgid__doc__, {"setresgid", (PyCFunction)os_setresgid, METH_VARARGS, os_setresgid__doc__}, static PyObject * -os_setresgid_impl(PyModuleDef *module, gid_t rgid, gid_t egid, gid_t sgid); +os_setresgid_impl(PyObject *module, gid_t rgid, gid_t egid, gid_t sgid); static PyObject * -os_setresgid(PyModuleDef *module, PyObject *args) +os_setresgid(PyObject *module, PyObject *args) { PyObject *return_value = NULL; gid_t rgid; @@ -5080,10 +5076,10 @@ PyDoc_STRVAR(os_getresuid__doc__, {"getresuid", (PyCFunction)os_getresuid, METH_NOARGS, os_getresuid__doc__}, static PyObject * -os_getresuid_impl(PyModuleDef *module); +os_getresuid_impl(PyObject *module); static PyObject * -os_getresuid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getresuid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getresuid_impl(module); } @@ -5102,10 +5098,10 @@ PyDoc_STRVAR(os_getresgid__doc__, {"getresgid", (PyCFunction)os_getresgid, METH_NOARGS, os_getresgid__doc__}, static PyObject * -os_getresgid_impl(PyModuleDef *module); +os_getresgid_impl(PyObject *module); static PyObject * -os_getresgid(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_getresgid(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_getresgid_impl(module); } @@ -5129,11 +5125,11 @@ PyDoc_STRVAR(os_getxattr__doc__, {"getxattr", (PyCFunction)os_getxattr, METH_VARARGS|METH_KEYWORDS, os_getxattr__doc__}, static PyObject * -os_getxattr_impl(PyModuleDef *module, path_t *path, path_t *attribute, +os_getxattr_impl(PyObject *module, path_t *path, path_t *attribute, int follow_symlinks); static PyObject * -os_getxattr(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_getxattr(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "attribute", "follow_symlinks", NULL}; @@ -5176,11 +5172,11 @@ PyDoc_STRVAR(os_setxattr__doc__, {"setxattr", (PyCFunction)os_setxattr, METH_VARARGS|METH_KEYWORDS, os_setxattr__doc__}, static PyObject * -os_setxattr_impl(PyModuleDef *module, path_t *path, path_t *attribute, +os_setxattr_impl(PyObject *module, path_t *path, path_t *attribute, Py_buffer *value, int flags, int follow_symlinks); static PyObject * -os_setxattr(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_setxattr(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "attribute", "value", "flags", "follow_symlinks", NULL}; @@ -5228,11 +5224,11 @@ PyDoc_STRVAR(os_removexattr__doc__, {"removexattr", (PyCFunction)os_removexattr, METH_VARARGS|METH_KEYWORDS, os_removexattr__doc__}, static PyObject * -os_removexattr_impl(PyModuleDef *module, path_t *path, path_t *attribute, +os_removexattr_impl(PyObject *module, path_t *path, path_t *attribute, int follow_symlinks); static PyObject * -os_removexattr(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_removexattr(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "attribute", "follow_symlinks", NULL}; @@ -5275,10 +5271,10 @@ PyDoc_STRVAR(os_listxattr__doc__, {"listxattr", (PyCFunction)os_listxattr, METH_VARARGS|METH_KEYWORDS, os_listxattr__doc__}, static PyObject * -os_listxattr_impl(PyModuleDef *module, path_t *path, int follow_symlinks); +os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks); static PyObject * -os_listxattr(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_listxattr(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", "follow_symlinks", NULL}; @@ -5310,10 +5306,10 @@ PyDoc_STRVAR(os_urandom__doc__, {"urandom", (PyCFunction)os_urandom, METH_O, os_urandom__doc__}, static PyObject * -os_urandom_impl(PyModuleDef *module, Py_ssize_t size); +os_urandom_impl(PyObject *module, Py_ssize_t size); static PyObject * -os_urandom(PyModuleDef *module, PyObject *arg) +os_urandom(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; Py_ssize_t size; @@ -5341,10 +5337,10 @@ PyDoc_STRVAR(os_cpu_count__doc__, {"cpu_count", (PyCFunction)os_cpu_count, METH_NOARGS, os_cpu_count__doc__}, static PyObject * -os_cpu_count_impl(PyModuleDef *module); +os_cpu_count_impl(PyObject *module); static PyObject * -os_cpu_count(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) +os_cpu_count(PyObject *module, PyObject *Py_UNUSED(ignored)) { return os_cpu_count_impl(module); } @@ -5359,10 +5355,10 @@ PyDoc_STRVAR(os_get_inheritable__doc__, {"get_inheritable", (PyCFunction)os_get_inheritable, METH_O, os_get_inheritable__doc__}, static int -os_get_inheritable_impl(PyModuleDef *module, int fd); +os_get_inheritable_impl(PyObject *module, int fd); static PyObject * -os_get_inheritable(PyModuleDef *module, PyObject *arg) +os_get_inheritable(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; int fd; @@ -5391,10 +5387,10 @@ PyDoc_STRVAR(os_set_inheritable__doc__, {"set_inheritable", (PyCFunction)os_set_inheritable, METH_VARARGS, os_set_inheritable__doc__}, static PyObject * -os_set_inheritable_impl(PyModuleDef *module, int fd, int inheritable); +os_set_inheritable_impl(PyObject *module, int fd, int inheritable); static PyObject * -os_set_inheritable(PyModuleDef *module, PyObject *args) +os_set_inheritable(PyObject *module, PyObject *args) { PyObject *return_value = NULL; int fd; @@ -5422,10 +5418,10 @@ PyDoc_STRVAR(os_get_handle_inheritable__doc__, {"get_handle_inheritable", (PyCFunction)os_get_handle_inheritable, METH_O, os_get_handle_inheritable__doc__}, static int -os_get_handle_inheritable_impl(PyModuleDef *module, Py_intptr_t handle); +os_get_handle_inheritable_impl(PyObject *module, Py_intptr_t handle); static PyObject * -os_get_handle_inheritable(PyModuleDef *module, PyObject *arg) +os_get_handle_inheritable(PyObject *module, PyObject *arg) { PyObject *return_value = NULL; Py_intptr_t handle; @@ -5458,11 +5454,11 @@ PyDoc_STRVAR(os_set_handle_inheritable__doc__, {"set_handle_inheritable", (PyCFunction)os_set_handle_inheritable, METH_VARARGS, os_set_handle_inheritable__doc__}, static PyObject * -os_set_handle_inheritable_impl(PyModuleDef *module, Py_intptr_t handle, +os_set_handle_inheritable_impl(PyObject *module, Py_intptr_t handle, int inheritable); static PyObject * -os_set_handle_inheritable(PyModuleDef *module, PyObject *args) +os_set_handle_inheritable(PyObject *module, PyObject *args) { PyObject *return_value = NULL; Py_intptr_t handle; @@ -5494,10 +5490,10 @@ PyDoc_STRVAR(os_fspath__doc__, {"fspath", (PyCFunction)os_fspath, METH_VARARGS|METH_KEYWORDS, os_fspath__doc__}, static PyObject * -os_fspath_impl(PyModuleDef *module, PyObject *path); +os_fspath_impl(PyObject *module, PyObject *path); static PyObject * -os_fspath(PyModuleDef *module, PyObject *args, PyObject *kwargs) +os_fspath(PyObject *module, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; static char *_keywords[] = {"path", NULL}; @@ -5984,4 +5980,4 @@ exit: #ifndef OS_SET_HANDLE_INHERITABLE_METHODDEF #define OS_SET_HANDLE_INHERITABLE_METHODDEF #endif /* !defined(OS_SET_HANDLE_INHERITABLE_METHODDEF) */ -/*[clinic end generated code: output=1b91c3a100e75a4d input=a9049054013a1b77]*/ +/*[clinic end generated code: output=e91e62d8e8f1b6ac input=a9049054013a1b77]*/ |