• Home
  • Raw
  • Download

Lines Matching refs:PyObject

33 static PyObject *
34 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks);
36 static PyObject *
37 os_stat(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_stat()
39 PyObject *return_value = NULL; in os_stat()
42 PyObject *argsbuf[3]; in os_stat()
92 static PyObject *
93 os_lstat_impl(PyObject *module, path_t *path, int dir_fd);
95 static PyObject *
96 os_lstat(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_lstat()
98 PyObject *return_value = NULL; in os_lstat()
101 PyObject *argsbuf[2]; in os_lstat()
165 os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd,
168 static PyObject *
169 os_access(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_access()
171 PyObject *return_value = NULL; in os_access()
174 PyObject *argsbuf[5]; in os_access()
246 static PyObject *
247 os_ttyname_impl(PyObject *module, int fd);
249 static PyObject *
250 os_ttyname(PyObject *module, PyObject *arg) in os_ttyname()
252 PyObject *return_value = NULL; in os_ttyname()
278 static PyObject *
279 os_ctermid_impl(PyObject *module);
281 static PyObject *
282 os_ctermid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_ctermid()
302 static PyObject *
303 os_chdir_impl(PyObject *module, path_t *path);
305 static PyObject *
306 os_chdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_chdir()
308 PyObject *return_value = NULL; in os_chdir()
311 PyObject *argsbuf[1]; in os_chdir()
344 static PyObject *
345 os_fchdir_impl(PyObject *module, int fd);
347 static PyObject *
348 os_fchdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_fchdir()
350 PyObject *return_value = NULL; in os_fchdir()
353 PyObject *argsbuf[1]; in os_fchdir()
400 static PyObject *
401 os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd,
404 static PyObject *
405 os_chmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_chmod()
407 PyObject *return_value = NULL; in os_chmod()
410 PyObject *argsbuf[4]; in os_chmod()
466 static PyObject *
467 os_fchmod_impl(PyObject *module, int fd, int mode);
469 static PyObject *
470 os_fchmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_fchmod()
472 PyObject *return_value = NULL; in os_fchmod()
475 PyObject *argsbuf[2]; in os_fchmod()
513 static PyObject *
514 os_lchmod_impl(PyObject *module, path_t *path, int mode);
516 static PyObject *
517 os_lchmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_lchmod()
519 PyObject *return_value = NULL; in os_lchmod()
522 PyObject *argsbuf[2]; in os_lchmod()
565 static PyObject *
566 os_chflags_impl(PyObject *module, path_t *path, unsigned long flags,
569 static PyObject *
570 os_chflags(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_chflags()
572 PyObject *return_value = NULL; in os_chflags()
575 PyObject *argsbuf[3]; in os_chflags()
626 static PyObject *
627 os_lchflags_impl(PyObject *module, path_t *path, unsigned long flags);
629 static PyObject *
630 os_lchflags(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_lchflags()
632 PyObject *return_value = NULL; in os_lchflags()
635 PyObject *argsbuf[2]; in os_lchflags()
673 static PyObject *
674 os_chroot_impl(PyObject *module, path_t *path);
676 static PyObject *
677 os_chroot(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_chroot()
679 PyObject *return_value = NULL; in os_chroot()
682 PyObject *argsbuf[1]; in os_chroot()
714 static PyObject *
715 os_fsync_impl(PyObject *module, int fd);
717 static PyObject *
718 os_fsync(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_fsync()
720 PyObject *return_value = NULL; in os_fsync()
723 PyObject *argsbuf[1]; in os_fsync()
752 static PyObject *
753 os_sync_impl(PyObject *module);
755 static PyObject *
756 os_sync(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_sync()
774 static PyObject *
775 os_fdatasync_impl(PyObject *module, int fd);
777 static PyObject *
778 os_fdatasync(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_fdatasync()
780 PyObject *return_value = NULL; in os_fdatasync()
783 PyObject *argsbuf[1]; in os_fdatasync()
836 static PyObject *
837 os_chown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid,
840 static PyObject *
841 os_chown(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_chown()
843 PyObject *return_value = NULL; in os_chown()
846 PyObject *argsbuf[5]; in os_chown()
907 static PyObject *
908 os_fchown_impl(PyObject *module, int fd, uid_t uid, gid_t gid);
910 static PyObject *
911 os_fchown(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_fchown()
913 PyObject *return_value = NULL; in os_fchown()
916 PyObject *argsbuf[3]; in os_fchown()
957 static PyObject *
958 os_lchown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid);
960 static PyObject *
961 os_lchown(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_lchown()
963 PyObject *return_value = NULL; in os_lchown()
966 PyObject *argsbuf[3]; in os_lchown()
1004 static PyObject *
1005 os_getcwd_impl(PyObject *module);
1007 static PyObject *
1008 os_getcwd(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getcwd()
1022 static PyObject *
1023 os_getcwdb_impl(PyObject *module);
1025 static PyObject *
1026 os_getcwdb(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getcwdb()
1053 static PyObject *
1054 os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
1057 static PyObject *
1058 os_link(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_link()
1060 PyObject *return_value = NULL; in os_link()
1063 PyObject *argsbuf[5]; in os_link()
1138 static PyObject *
1139 os_listdir_impl(PyObject *module, path_t *path);
1141 static PyObject *
1142 os_listdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_listdir()
1144 PyObject *return_value = NULL; in os_listdir()
1147 PyObject *argsbuf[1]; in os_listdir()
1181 static PyObject *
1182 os__getfullpathname_impl(PyObject *module, path_t *path);
1184 static PyObject *
1185 os__getfullpathname(PyObject *module, PyObject *arg) in os__getfullpathname()
1187 PyObject *return_value = NULL; in os__getfullpathname()
1215 static PyObject *
1216 os__getfinalpathname_impl(PyObject *module, path_t *path);
1218 static PyObject *
1219 os__getfinalpathname(PyObject *module, PyObject *arg) in os__getfinalpathname()
1221 PyObject *return_value = NULL; in os__getfinalpathname()
1249 static PyObject *
1250 os__getvolumepathname_impl(PyObject *module, path_t *path);
1252 static PyObject *
1253 os__getvolumepathname(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os__getvolumepathname()
1255 PyObject *return_value = NULL; in os__getvolumepathname()
1258 PyObject *argsbuf[1]; in os__getvolumepathname()
1290 static PyObject *
1291 os__path_splitroot_impl(PyObject *module, path_t *path);
1293 static PyObject *
1294 os__path_splitroot(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os__path_splitroot()
1296 PyObject *return_value = NULL; in os__path_splitroot()
1299 PyObject *argsbuf[1]; in os__path_splitroot()
1336 static PyObject *
1337 os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd);
1339 static PyObject *
1340 os_mkdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_mkdir()
1342 PyObject *return_value = NULL; in os_mkdir()
1345 PyObject *argsbuf[3]; in os_mkdir()
1398 static PyObject *
1399 os_nice_impl(PyObject *module, int increment);
1401 static PyObject *
1402 os_nice(PyObject *module, PyObject *arg) in os_nice()
1404 PyObject *return_value = NULL; in os_nice()
1430 static PyObject *
1431 os_getpriority_impl(PyObject *module, int which, int who);
1433 static PyObject *
1434 os_getpriority(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_getpriority()
1436 PyObject *return_value = NULL; in os_getpriority()
1439 PyObject *argsbuf[2]; in os_getpriority()
1474 static PyObject *
1475 os_setpriority_impl(PyObject *module, int which, int who, int priority);
1477 static PyObject *
1478 os_setpriority(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_setpriority()
1480 PyObject *return_value = NULL; in os_setpriority()
1483 PyObject *argsbuf[3]; in os_setpriority()
1527 static PyObject *
1528 os_rename_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
1531 static PyObject *
1532 os_rename(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_rename()
1534 PyObject *return_value = NULL; in os_rename()
1537 PyObject *argsbuf[4]; in os_rename()
1595 static PyObject *
1596 os_replace_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
1599 static PyObject *
1600 os_replace(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_replace()
1602 PyObject *return_value = NULL; in os_replace()
1605 PyObject *argsbuf[4]; in os_replace()
1662 static PyObject *
1663 os_rmdir_impl(PyObject *module, path_t *path, int dir_fd);
1665 static PyObject *
1666 os_rmdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_rmdir()
1668 PyObject *return_value = NULL; in os_rmdir()
1671 PyObject *argsbuf[2]; in os_rmdir()
1711 os_system_impl(PyObject *module, const Py_UNICODE *command);
1713 static PyObject *
1714 os_system(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_system()
1716 PyObject *return_value = NULL; in os_system()
1719 PyObject *argsbuf[1]; in os_system()
1768 os_system_impl(PyObject *module, PyObject *command);
1770 static PyObject *
1771 os_system(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_system()
1773 PyObject *return_value = NULL; in os_system()
1776 PyObject *argsbuf[1]; in os_system()
1777 PyObject *command = NULL; in os_system()
1811 static PyObject *
1812 os_umask_impl(PyObject *module, int mask);
1814 static PyObject *
1815 os_umask(PyObject *module, PyObject *arg) in os_umask()
1817 PyObject *return_value = NULL; in os_umask()
1844 static PyObject *
1845 os_unlink_impl(PyObject *module, path_t *path, int dir_fd);
1847 static PyObject *
1848 os_unlink(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_unlink()
1850 PyObject *return_value = NULL; in os_unlink()
1853 PyObject *argsbuf[2]; in os_unlink()
1895 static PyObject *
1896 os_remove_impl(PyObject *module, path_t *path, int dir_fd);
1898 static PyObject *
1899 os_remove(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_remove()
1901 PyObject *return_value = NULL; in os_remove()
1904 PyObject *argsbuf[2]; in os_remove()
1946 static PyObject *
1947 os_uname_impl(PyObject *module);
1949 static PyObject *
1950 os_uname(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_uname()
1989 static PyObject *
1990 os_utime_impl(PyObject *module, path_t *path, PyObject *times, PyObject *ns,
1993 static PyObject *
1994 os_utime(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_utime()
1996 PyObject *return_value = NULL; in os_utime()
1999 PyObject *argsbuf[5]; in os_utime()
2002 PyObject *times = Py_None; in os_utime()
2003 PyObject *ns = NULL; in os_utime()
2064 static PyObject *
2065 os__exit_impl(PyObject *module, int status);
2067 static PyObject *
2068 os__exit(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os__exit()
2070 PyObject *return_value = NULL; in os__exit()
2073 PyObject *argsbuf[1]; in os__exit()
2106 static PyObject *
2107 os_execv_impl(PyObject *module, path_t *path, PyObject *argv);
2109 static PyObject *
2110 os_execv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_execv()
2112 PyObject *return_value = NULL; in os_execv()
2114 PyObject *argv; in os_execv()
2152 static PyObject *
2153 os_execve_impl(PyObject *module, path_t *path, PyObject *argv, PyObject *env);
2155 static PyObject *
2156 os_execve(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_execve()
2158 PyObject *return_value = NULL; in os_execve()
2161 PyObject *argsbuf[3]; in os_execve()
2163 PyObject *argv; in os_execve()
2164 PyObject *env; in os_execve()
2220 static PyObject *
2221 os_posix_spawn_impl(PyObject *module, path_t *path, PyObject *argv,
2222 PyObject *env, PyObject *file_actions,
2223 PyObject *setpgroup, int resetids, int setsid,
2224 PyObject *setsigmask, PyObject *setsigdef,
2225 PyObject *scheduler);
2227 static PyObject *
2228 os_posix_spawn(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_posix_spawn()
2230 PyObject *return_value = NULL; in os_posix_spawn()
2233 PyObject *argsbuf[10]; in os_posix_spawn()
2236 PyObject *argv; in os_posix_spawn()
2237 PyObject *env; in os_posix_spawn()
2238 PyObject *file_actions = NULL; in os_posix_spawn()
2239 PyObject *setpgroup = NULL; in os_posix_spawn()
2242 PyObject *setsigmask = NULL; in os_posix_spawn()
2243 PyObject *setsigdef = NULL; in os_posix_spawn()
2244 PyObject *scheduler = NULL; in os_posix_spawn()
2347 static PyObject *
2348 os_posix_spawnp_impl(PyObject *module, path_t *path, PyObject *argv,
2349 PyObject *env, PyObject *file_actions,
2350 PyObject *setpgroup, int resetids, int setsid,
2351 PyObject *setsigmask, PyObject *setsigdef,
2352 PyObject *scheduler);
2354 static PyObject *
2355 os_posix_spawnp(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_posix_spawnp()
2357 PyObject *return_value = NULL; in os_posix_spawnp()
2360 PyObject *argsbuf[10]; in os_posix_spawnp()
2363 PyObject *argv; in os_posix_spawnp()
2364 PyObject *env; in os_posix_spawnp()
2365 PyObject *file_actions = NULL; in os_posix_spawnp()
2366 PyObject *setpgroup = NULL; in os_posix_spawnp()
2369 PyObject *setsigmask = NULL; in os_posix_spawnp()
2370 PyObject *setsigdef = NULL; in os_posix_spawnp()
2371 PyObject *scheduler = NULL; in os_posix_spawnp()
2458 static PyObject *
2459 os_spawnv_impl(PyObject *module, int mode, path_t *path, PyObject *argv);
2461 static PyObject *
2462 os_spawnv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_spawnv()
2464 PyObject *return_value = NULL; in os_spawnv()
2467 PyObject *argv; in os_spawnv()
2511 static PyObject *
2512 os_spawnve_impl(PyObject *module, int mode, path_t *path, PyObject *argv,
2513 PyObject *env);
2515 static PyObject *
2516 os_spawnve(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_spawnve()
2518 PyObject *return_value = NULL; in os_spawnve()
2521 PyObject *argv; in os_spawnve()
2522 PyObject *env; in os_spawnve()
2570 static PyObject *
2571 os_register_at_fork_impl(PyObject *module, PyObject *before,
2572 PyObject *after_in_child, PyObject *after_in_parent);
2574 static PyObject *
2575 os_register_at_fork(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_register_at_fork()
2577 PyObject *return_value = NULL; in os_register_at_fork()
2580 PyObject *argsbuf[3]; in os_register_at_fork()
2582 PyObject *before = NULL; in os_register_at_fork()
2583 PyObject *after_in_child = NULL; in os_register_at_fork()
2584 PyObject *after_in_parent = NULL; in os_register_at_fork()
2628 static PyObject *
2629 os_fork1_impl(PyObject *module);
2631 static PyObject *
2632 os_fork1(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_fork1()
2652 static PyObject *
2653 os_fork_impl(PyObject *module);
2655 static PyObject *
2656 os_fork(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_fork()
2674 static PyObject *
2675 os_sched_get_priority_max_impl(PyObject *module, int policy);
2677 static PyObject *
2678 os_sched_get_priority_max(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwna… in os_sched_get_priority_max()
2680 PyObject *return_value = NULL; in os_sched_get_priority_max()
2683 PyObject *argsbuf[1]; in os_sched_get_priority_max()
2713 static PyObject *
2714 os_sched_get_priority_min_impl(PyObject *module, int policy);
2716 static PyObject *
2717 os_sched_get_priority_min(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwna… in os_sched_get_priority_min()
2719 PyObject *return_value = NULL; in os_sched_get_priority_min()
2722 PyObject *argsbuf[1]; in os_sched_get_priority_min()
2754 static PyObject *
2755 os_sched_getscheduler_impl(PyObject *module, pid_t pid);
2757 static PyObject *
2758 os_sched_getscheduler(PyObject *module, PyObject *arg) in os_sched_getscheduler()
2760 PyObject *return_value = NULL; in os_sched_getscheduler()
2785 static PyObject *
2786 os_sched_param_impl(PyTypeObject *type, PyObject *sched_priority);
2788 static PyObject *
2789 os_sched_param(PyTypeObject *type, PyObject *args, PyObject *kwargs) in os_sched_param()
2791 PyObject *return_value = NULL; in os_sched_param()
2794 PyObject *argsbuf[1]; in os_sched_param()
2795 PyObject * const *fastargs; in os_sched_param()
2797 PyObject *sched_priority; in os_sched_param()
2826 static PyObject *
2827 os_sched_setscheduler_impl(PyObject *module, pid_t pid, int policy,
2828 PyObject *param_obj);
2830 static PyObject *
2831 os_sched_setscheduler(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_sched_setscheduler()
2833 PyObject *return_value = NULL; in os_sched_setscheduler()
2836 PyObject *param_obj; in os_sched_setscheduler()
2864 static PyObject *
2865 os_sched_getparam_impl(PyObject *module, pid_t pid);
2867 static PyObject *
2868 os_sched_getparam(PyObject *module, PyObject *arg) in os_sched_getparam()
2870 PyObject *return_value = NULL; in os_sched_getparam()
2898 static PyObject *
2899 os_sched_setparam_impl(PyObject *module, pid_t pid, PyObject *param_obj);
2901 static PyObject *
2902 os_sched_setparam(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_sched_setparam()
2904 PyObject *return_value = NULL; in os_sched_setparam()
2906 PyObject *param_obj; in os_sched_setparam()
2934 os_sched_rr_get_interval_impl(PyObject *module, pid_t pid);
2936 static PyObject *
2937 os_sched_rr_get_interval(PyObject *module, PyObject *arg) in os_sched_rr_get_interval()
2939 PyObject *return_value = NULL; in os_sched_rr_get_interval()
2969 static PyObject *
2970 os_sched_yield_impl(PyObject *module);
2972 static PyObject *
2973 os_sched_yield(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_sched_yield()
2993 static PyObject *
2994 os_sched_setaffinity_impl(PyObject *module, pid_t pid, PyObject *mask);
2996 static PyObject *
2997 os_sched_setaffinity(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_sched_setaffinity()
2999 PyObject *return_value = NULL; in os_sched_setaffinity()
3001 PyObject *mask; in os_sched_setaffinity()
3028 static PyObject *
3029 os_sched_getaffinity_impl(PyObject *module, pid_t pid);
3031 static PyObject *
3032 os_sched_getaffinity(PyObject *module, PyObject *arg) in os_sched_getaffinity()
3034 PyObject *return_value = NULL; in os_sched_getaffinity()
3062 static PyObject *
3063 os_openpty_impl(PyObject *module);
3065 static PyObject *
3066 os_openpty(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_openpty()
3089 static PyObject *
3090 os_forkpty_impl(PyObject *module);
3092 static PyObject *
3093 os_forkpty(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_forkpty()
3111 static PyObject *
3112 os_getegid_impl(PyObject *module);
3114 static PyObject *
3115 os_getegid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getegid()
3133 static PyObject *
3134 os_geteuid_impl(PyObject *module);
3136 static PyObject *
3137 os_geteuid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_geteuid()
3155 static PyObject *
3156 os_getgid_impl(PyObject *module);
3158 static PyObject *
3159 os_getgid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getgid()
3177 static PyObject *
3178 os_getpid_impl(PyObject *module);
3180 static PyObject *
3181 os_getpid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getpid()
3204 static PyObject *
3205 os_getgrouplist_impl(PyObject *module, const char *user, int basegid);
3207 static PyObject *
3208 os_getgrouplist(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_getgrouplist()
3210 PyObject *return_value = NULL; in os_getgrouplist()
3258 static PyObject *
3259 os_getgrouplist_impl(PyObject *module, const char *user, gid_t basegid);
3261 static PyObject *
3262 os_getgrouplist(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_getgrouplist()
3264 PyObject *return_value = NULL; in os_getgrouplist()
3306 static PyObject *
3307 os_getgroups_impl(PyObject *module);
3309 static PyObject *
3310 os_getgroups(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getgroups()
3332 static PyObject *
3333 os_initgroups_impl(PyObject *module, PyObject *oname, int gid);
3335 static PyObject *
3336 os_initgroups(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_initgroups()
3338 PyObject *return_value = NULL; in os_initgroups()
3339 PyObject *oname = NULL; in os_initgroups()
3378 static PyObject *
3379 os_initgroups_impl(PyObject *module, PyObject *oname, gid_t gid);
3381 static PyObject *
3382 os_initgroups(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_initgroups()
3384 PyObject *return_value = NULL; in os_initgroups()
3385 PyObject *oname = NULL; in os_initgroups()
3419 static PyObject *
3420 os_getpgid_impl(PyObject *module, pid_t pid);
3422 static PyObject *
3423 os_getpgid(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_getpgid()
3425 PyObject *return_value = NULL; in os_getpgid()
3453 static PyObject *
3454 os_getpgrp_impl(PyObject *module);
3456 static PyObject *
3457 os_getpgrp(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getpgrp()
3475 static PyObject *
3476 os_setpgrp_impl(PyObject *module);
3478 static PyObject *
3479 os_setpgrp(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_setpgrp()
3500 static PyObject *
3501 os_getppid_impl(PyObject *module);
3503 static PyObject *
3504 os_getppid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getppid()
3522 static PyObject *
3523 os_getlogin_impl(PyObject *module);
3525 static PyObject *
3526 os_getlogin(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getlogin()
3544 static PyObject *
3545 os_getuid_impl(PyObject *module);
3547 static PyObject *
3548 os_getuid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getuid()
3566 static PyObject *
3567 os_kill_impl(PyObject *module, pid_t pid, Py_ssize_t signal);
3569 static PyObject *
3570 os_kill(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_kill()
3572 PyObject *return_value = NULL; in os_kill()
3599 static PyObject *
3600 os_killpg_impl(PyObject *module, pid_t pgid, int signal);
3602 static PyObject *
3603 os_killpg(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_killpg()
3605 PyObject *return_value = NULL; in os_killpg()
3632 static PyObject *
3633 os_plock_impl(PyObject *module, int op);
3635 static PyObject *
3636 os_plock(PyObject *module, PyObject *arg) in os_plock()
3638 PyObject *return_value = NULL; in os_plock()
3664 static PyObject *
3665 os_setuid_impl(PyObject *module, uid_t uid);
3667 static PyObject *
3668 os_setuid(PyObject *module, PyObject *arg) in os_setuid()
3670 PyObject *return_value = NULL; in os_setuid()
3695 static PyObject *
3696 os_seteuid_impl(PyObject *module, uid_t euid);
3698 static PyObject *
3699 os_seteuid(PyObject *module, PyObject *arg) in os_seteuid()
3701 PyObject *return_value = NULL; in os_seteuid()
3726 static PyObject *
3727 os_setegid_impl(PyObject *module, gid_t egid);
3729 static PyObject *
3730 os_setegid(PyObject *module, PyObject *arg) in os_setegid()
3732 PyObject *return_value = NULL; in os_setegid()
3757 static PyObject *
3758 os_setreuid_impl(PyObject *module, uid_t ruid, uid_t euid);
3760 static PyObject *
3761 os_setreuid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_setreuid()
3763 PyObject *return_value = NULL; in os_setreuid()
3795 static PyObject *
3796 os_setregid_impl(PyObject *module, gid_t rgid, gid_t egid);
3798 static PyObject *
3799 os_setregid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_setregid()
3801 PyObject *return_value = NULL; in os_setregid()
3833 static PyObject *
3834 os_setgid_impl(PyObject *module, gid_t gid);
3836 static PyObject *
3837 os_setgid(PyObject *module, PyObject *arg) in os_setgid()
3839 PyObject *return_value = NULL; in os_setgid()
3880 static PyObject *
3881 os_wait3_impl(PyObject *module, int options);
3883 static PyObject *
3884 os_wait3(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_wait3()
3886 PyObject *return_value = NULL; in os_wait3()
3889 PyObject *argsbuf[1]; in os_wait3()
3922 static PyObject *
3923 os_wait4_impl(PyObject *module, pid_t pid, int options);
3925 static PyObject *
3926 os_wait4(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_wait4()
3928 PyObject *return_value = NULL; in os_wait4()
3968 static PyObject *
3969 os_waitid_impl(PyObject *module, idtype_t idtype, id_t id, int options);
3971 static PyObject *
3972 os_waitid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_waitid()
3974 PyObject *return_value = NULL; in os_waitid()
4007 static PyObject *
4008 os_waitpid_impl(PyObject *module, pid_t pid, int options);
4010 static PyObject *
4011 os_waitpid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_waitpid()
4013 PyObject *return_value = NULL; in os_waitpid()
4045 static PyObject *
4046 os_waitpid_impl(PyObject *module, intptr_t pid, int options);
4048 static PyObject *
4049 os_waitpid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_waitpid()
4051 PyObject *return_value = NULL; in os_waitpid()
4081 static PyObject *
4082 os_wait_impl(PyObject *module);
4084 static PyObject *
4085 os_wait(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_wait()
4106 static PyObject *
4107 os_pidfd_open_impl(PyObject *module, pid_t pid, unsigned int flags);
4109 static PyObject *
4110 os_pidfd_open(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_pidfd_open()
4112 PyObject *return_value = NULL; in os_pidfd_open()
4147 static PyObject *
4148 os_readlink_impl(PyObject *module, path_t *path, int dir_fd);
4150 static PyObject *
4151 os_readlink(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_readlink()
4153 PyObject *return_value = NULL; in os_readlink()
4156 PyObject *argsbuf[2]; in os_readlink()
4207 static PyObject *
4208 os_symlink_impl(PyObject *module, path_t *src, path_t *dst,
4211 static PyObject *
4212 os_symlink(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_symlink()
4214 PyObject *return_value = NULL; in os_symlink()
4217 PyObject *argsbuf[4]; in os_symlink()
4282 static PyObject *
4283 os_times_impl(PyObject *module);
4285 static PyObject *
4286 os_times(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_times()
4304 static PyObject *
4305 os_getsid_impl(PyObject *module, pid_t pid);
4307 static PyObject *
4308 os_getsid(PyObject *module, PyObject *arg) in os_getsid()
4310 PyObject *return_value = NULL; in os_getsid()
4335 static PyObject *
4336 os_setsid_impl(PyObject *module);
4338 static PyObject *
4339 os_setsid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_setsid()
4357 static PyObject *
4358 os_setpgid_impl(PyObject *module, pid_t pid, pid_t pgrp);
4360 static PyObject *
4361 os_setpgid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_setpgid()
4363 PyObject *return_value = NULL; in os_setpgid()
4390 static PyObject *
4391 os_tcgetpgrp_impl(PyObject *module, int fd);
4393 static PyObject *
4394 os_tcgetpgrp(PyObject *module, PyObject *arg) in os_tcgetpgrp()
4396 PyObject *return_value = NULL; in os_tcgetpgrp()
4422 static PyObject *
4423 os_tcsetpgrp_impl(PyObject *module, int fd, pid_t pgid);
4425 static PyObject *
4426 os_tcsetpgrp(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_tcsetpgrp()
4428 PyObject *return_value = NULL; in os_tcsetpgrp()
4459 os_open_impl(PyObject *module, path_t *path, int flags, int mode, int dir_fd);
4461 static PyObject *
4462 os_open(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_open()
4464 PyObject *return_value = NULL; in os_open()
4467 PyObject *argsbuf[4]; in os_open()
4528 static PyObject *
4529 os_close_impl(PyObject *module, int fd);
4531 static PyObject *
4532 os_close(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_close()
4534 PyObject *return_value = NULL; in os_close()
4537 PyObject *argsbuf[1]; in os_close()
4563 static PyObject *
4564 os_closerange_impl(PyObject *module, int fd_low, int fd_high);
4566 static PyObject *
4567 os_closerange(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_closerange()
4569 PyObject *return_value = NULL; in os_closerange()
4600 os_dup_impl(PyObject *module, int fd);
4602 static PyObject *
4603 os_dup(PyObject *module, PyObject *arg) in os_dup()
4605 PyObject *return_value = NULL; in os_dup()
4633 os_dup2_impl(PyObject *module, int fd, int fd2, int inheritable);
4635 static PyObject *
4636 os_dup2(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_dup2()
4638 PyObject *return_value = NULL; in os_dup2()
4641 PyObject *argsbuf[3]; in os_dup2()
4696 static PyObject *
4697 os_lockf_impl(PyObject *module, int fd, int command, Py_off_t length);
4699 static PyObject *
4700 os_lockf(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_lockf()
4702 PyObject *return_value = NULL; in os_lockf()
4742 os_lseek_impl(PyObject *module, int fd, Py_off_t position, int how);
4744 static PyObject *
4745 os_lseek(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_lseek()
4747 PyObject *return_value = NULL; in os_lseek()
4786 static PyObject *
4787 os_read_impl(PyObject *module, int fd, Py_ssize_t length);
4789 static PyObject *
4790 os_read(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_read()
4792 PyObject *return_value = NULL; in os_read()
4805 PyObject *iobj = _PyNumber_Index(args[1]); in os_read()
4841 os_readv_impl(PyObject *module, int fd, PyObject *buffers);
4843 static PyObject *
4844 os_readv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_readv()
4846 PyObject *return_value = NULL; in os_readv()
4848 PyObject *buffers; in os_readv()
4885 static PyObject *
4886 os_pread_impl(PyObject *module, int fd, Py_ssize_t length, Py_off_t offset);
4888 static PyObject *
4889 os_pread(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_pread()
4891 PyObject *return_value = NULL; in os_pread()
4905 PyObject *iobj = _PyNumber_Index(args[1]); in os_pread()
4952 os_preadv_impl(PyObject *module, int fd, PyObject *buffers, Py_off_t offset,
4955 static PyObject *
4956 os_preadv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_preadv()
4958 PyObject *return_value = NULL; in os_preadv()
4960 PyObject *buffers; in os_preadv()
5006 os_write_impl(PyObject *module, int fd, Py_buffer *data);
5008 static PyObject *
5009 os_write(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_write()
5011 PyObject *return_value = NULL; in os_write()
5057 static PyObject *
5058 os_sendfile_impl(PyObject *module, int out_fd, int in_fd, Py_off_t offset,
5059 Py_off_t sbytes, PyObject *headers, PyObject *trailers,
5062 static PyObject *
5063 os_sendfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_sendfile()
5065 PyObject *return_value = NULL; in os_sendfile()
5068 PyObject *argsbuf[7]; in os_sendfile()
5074 PyObject *headers = NULL; in os_sendfile()
5075 PyObject *trailers = NULL; in os_sendfile()
5136 static PyObject *
5137 os_sendfile_impl(PyObject *module, int out_fd, int in_fd, Py_off_t offset,
5138 Py_ssize_t count, PyObject *headers, PyObject *trailers,
5141 static PyObject *
5142 os_sendfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_sendfile()
5144 PyObject *return_value = NULL; in os_sendfile()
5147 PyObject *argsbuf[7]; in os_sendfile()
5153 PyObject *headers = NULL; in os_sendfile()
5154 PyObject *trailers = NULL; in os_sendfile()
5174 PyObject *iobj = _PyNumber_Index(args[3]); in os_sendfile()
5223 static PyObject *
5224 os_sendfile_impl(PyObject *module, int out_fd, int in_fd, PyObject *offobj,
5227 static PyObject *
5228 os_sendfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_sendfile()
5230 PyObject *return_value = NULL; in os_sendfile()
5233 PyObject *argsbuf[4]; in os_sendfile()
5236 PyObject *offobj; in os_sendfile()
5254 PyObject *iobj = _PyNumber_Index(args[3]); in os_sendfile()
5283 static PyObject *
5284 os__fcopyfile_impl(PyObject *module, int in_fd, int out_fd, int flags);
5286 static PyObject *
5287 os__fcopyfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os__fcopyfile()
5289 PyObject *return_value = NULL; in os__fcopyfile()
5329 static PyObject *
5330 os_fstat_impl(PyObject *module, int fd);
5332 static PyObject *
5333 os_fstat(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_fstat()
5335 PyObject *return_value = NULL; in os_fstat()
5338 PyObject *argsbuf[1]; in os_fstat()
5368 os_isatty_impl(PyObject *module, int fd);
5370 static PyObject *
5371 os_isatty(PyObject *module, PyObject *arg) in os_isatty()
5373 PyObject *return_value = NULL; in os_isatty()
5405 static PyObject *
5406 os_pipe_impl(PyObject *module);
5408 static PyObject *
5409 os_pipe(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_pipe()
5433 static PyObject *
5434 os_pipe2_impl(PyObject *module, int flags);
5436 static PyObject *
5437 os_pipe2(PyObject *module, PyObject *arg) in os_pipe2()
5439 PyObject *return_value = NULL; in os_pipe2()
5469 os_writev_impl(PyObject *module, int fd, PyObject *buffers);
5471 static PyObject *
5472 os_writev(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_writev()
5474 PyObject *return_value = NULL; in os_writev()
5476 PyObject *buffers; in os_writev()
5515 os_pwrite_impl(PyObject *module, int fd, Py_buffer *buffer, Py_off_t offset);
5517 static PyObject *
5518 os_pwrite(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_pwrite()
5520 PyObject *return_value = NULL; in os_pwrite()
5587 os_pwritev_impl(PyObject *module, int fd, PyObject *buffers, Py_off_t offset,
5590 static PyObject *
5591 os_pwritev(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_pwritev()
5593 PyObject *return_value = NULL; in os_pwritev()
5595 PyObject *buffers; in os_pwritev()
5657 static PyObject *
5658 os_copy_file_range_impl(PyObject *module, int src, int dst, Py_ssize_t count,
5659 PyObject *offset_src, PyObject *offset_dst);
5661 static PyObject *
5662 os_copy_file_range(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_copy_file_range()
5664 PyObject *return_value = NULL; in os_copy_file_range()
5667 PyObject *argsbuf[5]; in os_copy_file_range()
5672 PyObject *offset_src = Py_None; in os_copy_file_range()
5673 PyObject *offset_dst = Py_None; in os_copy_file_range()
5689 PyObject *iobj = _PyNumber_Index(args[2]); in os_copy_file_range()
5747 static PyObject *
5748 os_splice_impl(PyObject *module, int src, int dst, Py_ssize_t count,
5749 PyObject *offset_src, PyObject *offset_dst,
5752 static PyObject *
5753 os_splice(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_splice()
5755 PyObject *return_value = NULL; in os_splice()
5758 PyObject *argsbuf[6]; in os_splice()
5763 PyObject *offset_src = Py_None; in os_splice()
5764 PyObject *offset_dst = Py_None; in os_splice()
5781 PyObject *iobj = _PyNumber_Index(args[2]); in os_splice()
5834 static PyObject *
5835 os_mkfifo_impl(PyObject *module, path_t *path, int mode, int dir_fd);
5837 static PyObject *
5838 os_mkfifo(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_mkfifo()
5840 PyObject *return_value = NULL; in os_mkfifo()
5843 PyObject *argsbuf[3]; in os_mkfifo()
5910 static PyObject *
5911 os_mknod_impl(PyObject *module, path_t *path, int mode, dev_t device,
5914 static PyObject *
5915 os_mknod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_mknod()
5917 PyObject *return_value = NULL; in os_mknod()
5920 PyObject *argsbuf[4]; in os_mknod()
5985 os_major_impl(PyObject *module, dev_t device);
5987 static PyObject *
5988 os_major(PyObject *module, PyObject *arg) in os_major()
5990 PyObject *return_value = NULL; in os_major()
6021 os_minor_impl(PyObject *module, dev_t device);
6023 static PyObject *
6024 os_minor(PyObject *module, PyObject *arg) in os_minor()
6026 PyObject *return_value = NULL; in os_minor()
6057 os_makedev_impl(PyObject *module, int major, int minor);
6059 static PyObject *
6060 os_makedev(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_makedev()
6062 PyObject *return_value = NULL; in os_makedev()
6101 static PyObject *
6102 os_ftruncate_impl(PyObject *module, int fd, Py_off_t length);
6104 static PyObject *
6105 os_ftruncate(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_ftruncate()
6107 PyObject *return_value = NULL; in os_ftruncate()
6143 static PyObject *
6144 os_truncate_impl(PyObject *module, path_t *path, Py_off_t length);
6146 static PyObject *
6147 os_truncate(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_truncate()
6149 PyObject *return_value = NULL; in os_truncate()
6152 PyObject *argsbuf[2]; in os_truncate()
6191 static PyObject *
6192 os_posix_fallocate_impl(PyObject *module, int fd, Py_off_t offset,
6195 static PyObject *
6196 os_posix_fallocate(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_posix_fallocate()
6198 PyObject *return_value = NULL; in os_posix_fallocate()
6243 static PyObject *
6244 os_posix_fadvise_impl(PyObject *module, int fd, Py_off_t offset,
6247 static PyObject *
6248 os_posix_fadvise(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_posix_fadvise()
6250 PyObject *return_value = NULL; in os_posix_fadvise()
6292 static PyObject *
6293 os_putenv_impl(PyObject *module, PyObject *name, PyObject *value);
6295 static PyObject *
6296 os_putenv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_putenv()
6298 PyObject *return_value = NULL; in os_putenv()
6299 PyObject *name; in os_putenv()
6300 PyObject *value; in os_putenv()
6340 static PyObject *
6341 os_putenv_impl(PyObject *module, PyObject *name, PyObject *value);
6343 static PyObject *
6344 os_putenv(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_putenv()
6346 PyObject *return_value = NULL; in os_putenv()
6347 PyObject *name = NULL; in os_putenv()
6348 PyObject *value = NULL; in os_putenv()
6383 static PyObject *
6384 os_unsetenv_impl(PyObject *module, PyObject *name);
6386 static PyObject *
6387 os_unsetenv(PyObject *module, PyObject *arg) in os_unsetenv()
6389 PyObject *return_value = NULL; in os_unsetenv()
6390 PyObject *name; in os_unsetenv()
6419 static PyObject *
6420 os_unsetenv_impl(PyObject *module, PyObject *name);
6422 static PyObject *
6423 os_unsetenv(PyObject *module, PyObject *arg) in os_unsetenv()
6425 PyObject *return_value = NULL; in os_unsetenv()
6426 PyObject *name = NULL; in os_unsetenv()
6451 static PyObject *
6452 os_strerror_impl(PyObject *module, int code);
6454 static PyObject *
6455 os_strerror(PyObject *module, PyObject *arg) in os_strerror()
6457 PyObject *return_value = NULL; in os_strerror()
6482 os_WCOREDUMP_impl(PyObject *module, int status);
6484 static PyObject *
6485 os_WCOREDUMP(PyObject *module, PyObject *arg) in os_WCOREDUMP()
6487 PyObject *return_value = NULL; in os_WCOREDUMP()
6522 os_WIFCONTINUED_impl(PyObject *module, int status);
6524 static PyObject *
6525 os_WIFCONTINUED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_WIFCONTINUED()
6527 PyObject *return_value = NULL; in os_WIFCONTINUED()
6530 PyObject *argsbuf[1]; in os_WIFCONTINUED()
6566 os_WIFSTOPPED_impl(PyObject *module, int status);
6568 static PyObject *
6569 os_WIFSTOPPED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_WIFSTOPPED()
6571 PyObject *return_value = NULL; in os_WIFSTOPPED()
6574 PyObject *argsbuf[1]; in os_WIFSTOPPED()
6610 os_WIFSIGNALED_impl(PyObject *module, int status);
6612 static PyObject *
6613 os_WIFSIGNALED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_WIFSIGNALED()
6615 PyObject *return_value = NULL; in os_WIFSIGNALED()
6618 PyObject *argsbuf[1]; in os_WIFSIGNALED()
6654 os_WIFEXITED_impl(PyObject *module, int status);
6656 static PyObject *
6657 os_WIFEXITED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_WIFEXITED()
6659 PyObject *return_value = NULL; in os_WIFEXITED()
6662 PyObject *argsbuf[1]; in os_WIFEXITED()
6698 os_WEXITSTATUS_impl(PyObject *module, int status);
6700 static PyObject *
6701 os_WEXITSTATUS(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_WEXITSTATUS()
6703 PyObject *return_value = NULL; in os_WEXITSTATUS()
6706 PyObject *argsbuf[1]; in os_WEXITSTATUS()
6742 os_WTERMSIG_impl(PyObject *module, int status);
6744 static PyObject *
6745 os_WTERMSIG(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_WTERMSIG()
6747 PyObject *return_value = NULL; in os_WTERMSIG()
6750 PyObject *argsbuf[1]; in os_WTERMSIG()
6786 os_WSTOPSIG_impl(PyObject *module, int status);
6788 static PyObject *
6789 os_WSTOPSIG(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_WSTOPSIG()
6791 PyObject *return_value = NULL; in os_WSTOPSIG()
6794 PyObject *argsbuf[1]; in os_WSTOPSIG()
6831 static PyObject *
6832 os_fstatvfs_impl(PyObject *module, int fd);
6834 static PyObject *
6835 os_fstatvfs(PyObject *module, PyObject *arg) in os_fstatvfs()
6837 PyObject *return_value = NULL; in os_fstatvfs()
6867 static PyObject *
6868 os_statvfs_impl(PyObject *module, path_t *path);
6870 static PyObject *
6871 os_statvfs(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_statvfs()
6873 PyObject *return_value = NULL; in os_statvfs()
6876 PyObject *argsbuf[1]; in os_statvfs()
6908 static PyObject *
6909 os__getdiskusage_impl(PyObject *module, path_t *path);
6911 static PyObject *
6912 os__getdiskusage(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os__getdiskusage()
6914 PyObject *return_value = NULL; in os__getdiskusage()
6917 PyObject *argsbuf[1]; in os__getdiskusage()
6952 os_fpathconf_impl(PyObject *module, int fd, int name);
6954 static PyObject *
6955 os_fpathconf(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_fpathconf()
6957 PyObject *return_value = NULL; in os_fpathconf()
6999 os_pathconf_impl(PyObject *module, path_t *path, int name);
7001 static PyObject *
7002 os_pathconf(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_pathconf()
7004 PyObject *return_value = NULL; in os_pathconf()
7007 PyObject *argsbuf[2]; in os_pathconf()
7048 static PyObject *
7049 os_confstr_impl(PyObject *module, int name);
7051 static PyObject *
7052 os_confstr(PyObject *module, PyObject *arg) in os_confstr()
7054 PyObject *return_value = NULL; in os_confstr()
7080 os_sysconf_impl(PyObject *module, int name);
7082 static PyObject *
7083 os_sysconf(PyObject *module, PyObject *arg) in os_sysconf()
7085 PyObject *return_value = NULL; in os_sysconf()
7116 static PyObject *
7117 os_abort_impl(PyObject *module);
7119 static PyObject *
7120 os_abort(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_abort()
7162 static PyObject *
7163 os_startfile_impl(PyObject *module, path_t *filepath,
7167 static PyObject *
7168 os_startfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_startfile()
7170 PyObject *return_value = NULL; in os_startfile()
7173 PyObject *argsbuf[5]; in os_startfile()
7274 static PyObject *
7275 os_getloadavg_impl(PyObject *module);
7277 static PyObject *
7278 os_getloadavg(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getloadavg()
7297 static PyObject *
7298 os_device_encoding_impl(PyObject *module, int fd);
7300 static PyObject *
7301 os_device_encoding(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_device_encoding()
7303 PyObject *return_value = NULL; in os_device_encoding()
7306 PyObject *argsbuf[1]; in os_device_encoding()
7334 static PyObject *
7335 os_setresuid_impl(PyObject *module, uid_t ruid, uid_t euid, uid_t suid);
7337 static PyObject *
7338 os_setresuid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_setresuid()
7340 PyObject *return_value = NULL; in os_setresuid()
7376 static PyObject *
7377 os_setresgid_impl(PyObject *module, gid_t rgid, gid_t egid, gid_t sgid);
7379 static PyObject *
7380 os_setresgid(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_setresgid()
7382 PyObject *return_value = NULL; in os_setresgid()
7418 static PyObject *
7419 os_getresuid_impl(PyObject *module);
7421 static PyObject *
7422 os_getresuid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getresuid()
7440 static PyObject *
7441 os_getresgid_impl(PyObject *module);
7443 static PyObject *
7444 os_getresgid(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_getresgid()
7467 static PyObject *
7468 os_getxattr_impl(PyObject *module, path_t *path, path_t *attribute,
7471 static PyObject *
7472 os_getxattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_getxattr()
7474 PyObject *return_value = NULL; in os_getxattr()
7477 PyObject *argsbuf[3]; in os_getxattr()
7531 static PyObject *
7532 os_setxattr_impl(PyObject *module, path_t *path, path_t *attribute,
7535 static PyObject *
7536 os_setxattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_setxattr()
7538 PyObject *return_value = NULL; in os_setxattr()
7541 PyObject *argsbuf[5]; in os_setxattr()
7620 static PyObject *
7621 os_removexattr_impl(PyObject *module, path_t *path, path_t *attribute,
7624 static PyObject *
7625 os_removexattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_removexattr()
7627 PyObject *return_value = NULL; in os_removexattr()
7630 PyObject *argsbuf[3]; in os_removexattr()
7684 static PyObject *
7685 os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks);
7687 static PyObject *
7688 os_listxattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_listxattr()
7690 PyObject *return_value = NULL; in os_listxattr()
7693 PyObject *argsbuf[2]; in os_listxattr()
7742 static PyObject *
7743 os_urandom_impl(PyObject *module, Py_ssize_t size);
7745 static PyObject *
7746 os_urandom(PyObject *module, PyObject *arg) in os_urandom()
7748 PyObject *return_value = NULL; in os_urandom()
7753 PyObject *iobj = _PyNumber_Index(arg); in os_urandom()
7779 static PyObject *
7780 os_memfd_create_impl(PyObject *module, PyObject *name, unsigned int flags);
7782 static PyObject *
7783 os_memfd_create(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_memfd_create()
7785 PyObject *return_value = NULL; in os_memfd_create()
7788 PyObject *argsbuf[2]; in os_memfd_create()
7790 PyObject *name = NULL; in os_memfd_create()
7830 static PyObject *
7831 os_eventfd_impl(PyObject *module, unsigned int initval, int flags);
7833 static PyObject *
7834 os_eventfd(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_eventfd()
7836 PyObject *return_value = NULL; in os_eventfd()
7839 PyObject *argsbuf[2]; in os_eventfd()
7878 static PyObject *
7879 os_eventfd_read_impl(PyObject *module, int fd);
7881 static PyObject *
7882 os_eventfd_read(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_eventfd_read()
7884 PyObject *return_value = NULL; in os_eventfd_read()
7887 PyObject *argsbuf[1]; in os_eventfd_read()
7916 static PyObject *
7917 os_eventfd_write_impl(PyObject *module, int fd, unsigned long long value);
7919 static PyObject *
7920 os_eventfd_write(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_eventfd_write()
7922 PyObject *return_value = NULL; in os_eventfd_write()
7925 PyObject *argsbuf[2]; in os_eventfd_write()
7970 static PyObject *
7971 os_get_terminal_size_impl(PyObject *module, int fd);
7973 static PyObject *
7974 os_get_terminal_size(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_get_terminal_size()
7976 PyObject *return_value = NULL; in os_get_terminal_size()
8011 static PyObject *
8012 os_cpu_count_impl(PyObject *module);
8014 static PyObject *
8015 os_cpu_count(PyObject *module, PyObject *Py_UNUSED(ignored)) in os_cpu_count()
8030 os_get_inheritable_impl(PyObject *module, int fd);
8032 static PyObject *
8033 os_get_inheritable(PyObject *module, PyObject *arg) in os_get_inheritable()
8035 PyObject *return_value = NULL; in os_get_inheritable()
8062 static PyObject *
8063 os_set_inheritable_impl(PyObject *module, int fd, int inheritable);
8065 static PyObject *
8066 os_set_inheritable(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_set_inheritable()
8068 PyObject *return_value = NULL; in os_set_inheritable()
8101 os_get_handle_inheritable_impl(PyObject *module, intptr_t handle);
8103 static PyObject *
8104 os_get_handle_inheritable(PyObject *module, PyObject *arg) in os_get_handle_inheritable()
8106 PyObject *return_value = NULL; in os_get_handle_inheritable()
8136 static PyObject *
8137 os_set_handle_inheritable_impl(PyObject *module, intptr_t handle,
8140 static PyObject *
8141 os_set_handle_inheritable(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_set_handle_inheritable()
8143 PyObject *return_value = NULL; in os_set_handle_inheritable()
8173 os_get_blocking_impl(PyObject *module, int fd);
8175 static PyObject *
8176 os_get_blocking(PyObject *module, PyObject *arg) in os_get_blocking()
8178 PyObject *return_value = NULL; in os_get_blocking()
8212 static PyObject *
8213 os_set_blocking_impl(PyObject *module, int fd, int blocking);
8215 static PyObject *
8216 os_set_blocking(PyObject *module, PyObject *const *args, Py_ssize_t nargs) in os_set_blocking()
8218 PyObject *return_value = NULL; in os_set_blocking()
8253 static PyObject *
8254 …mlink(DirEntry *self, PyTypeObject *defining_class, PyObject *const *args, Py_ssize_t nargs, PyObj… in os_DirEntry_is_symlink()
8256 PyObject *return_value = NULL; in os_DirEntry_is_symlink()
8284 static PyObject *
8288 static PyObject *
8289 …_stat(DirEntry *self, PyTypeObject *defining_class, PyObject *const *args, Py_ssize_t nargs, PyObj… in os_DirEntry_stat()
8291 PyObject *return_value = NULL; in os_DirEntry_stat()
8319 static PyObject *
8320 …s_dir(DirEntry *self, PyTypeObject *defining_class, PyObject *const *args, Py_ssize_t nargs, PyObj… in os_DirEntry_is_dir()
8322 PyObject *return_value = NULL; in os_DirEntry_is_dir()
8355 static PyObject *
8356 …_file(DirEntry *self, PyTypeObject *defining_class, PyObject *const *args, Py_ssize_t nargs, PyObj… in os_DirEntry_is_file()
8358 PyObject *return_value = NULL; in os_DirEntry_is_file()
8387 static PyObject *
8390 static PyObject *
8391 os_DirEntry_inode(DirEntry *self, PyObject *Py_UNUSED(ignored)) in os_DirEntry_inode()
8405 static PyObject *
8408 static PyObject *
8409 os_DirEntry___fspath__(DirEntry *self, PyObject *Py_UNUSED(ignored)) in os_DirEntry___fspath__()
8429 static PyObject *
8430 os_scandir_impl(PyObject *module, path_t *path);
8432 static PyObject *
8433 os_scandir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_scandir()
8435 PyObject *return_value = NULL; in os_scandir()
8438 PyObject *argsbuf[1]; in os_scandir()
8475 static PyObject *
8476 os_fspath_impl(PyObject *module, PyObject *path);
8478 static PyObject *
8479 os_fspath(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_fspath()
8481 PyObject *return_value = NULL; in os_fspath()
8484 PyObject *argsbuf[1]; in os_fspath()
8485 PyObject *path; in os_fspath()
8509 static PyObject *
8510 os_getrandom_impl(PyObject *module, Py_ssize_t size, int flags);
8512 static PyObject *
8513 os_getrandom(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os_getrandom()
8515 PyObject *return_value = NULL; in os_getrandom()
8518 PyObject *argsbuf[2]; in os_getrandom()
8529 PyObject *iobj = _PyNumber_Index(args[0]); in os_getrandom()
8573 static PyObject *
8574 os__add_dll_directory_impl(PyObject *module, path_t *path);
8576 static PyObject *
8577 os__add_dll_directory(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in os__add_dll_directory()
8579 PyObject *return_value = NULL; in os__add_dll_directory()
8582 PyObject *argsbuf[1]; in os__add_dll_directory()
8618 static PyObject *
8619 os__remove_dll_directory_impl(PyObject *module, PyObject *cookie);
8621 static PyObject *
8622 os__remove_dll_directory(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnam… in os__remove_dll_directory()
8624 PyObject *return_value = NULL; in os__remove_dll_directory()
8627 PyObject *argsbuf[1]; in os__remove_dll_directory()
8628 PyObject *cookie; in os__remove_dll_directory()
8666 static PyObject *
8667 os_waitstatus_to_exitcode_impl(PyObject *module, PyObject *status_obj);
8669 static PyObject *
8670 os_waitstatus_to_exitcode(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwna… in os_waitstatus_to_exitcode()
8672 PyObject *return_value = NULL; in os_waitstatus_to_exitcode()
8675 PyObject *argsbuf[1]; in os_waitstatus_to_exitcode()
8676 PyObject *status_obj; in os_waitstatus_to_exitcode()