Lines Matching defs:mode

130 "access($module, /, path, mode, *, dir_fd=None, effective_ids=False,\n"
138 " mode\n"
139 " Operating-system mode bitfield. Can be F_OK to test existence,\n"
165 os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd,
172 static const char * const _keywords[] = {"path", "mode", "dir_fd", "effective_ids", "follow_symlinks", NULL};
177 int mode;
190 mode = _PyLong_AsInt(args[1]);
191 if (mode == -1 && PyErr_Occurred()) {
219 _return_value = os_access_impl(module, &path, mode, dir_fd, effective_ids, follow_symlinks);
372 "chmod($module, /, path, mode, *, dir_fd=None, follow_symlinks=True)\n"
381 " mode\n"
382 " Operating-system mode bitfield.\n"
401 os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd,
408 static const char * const _keywords[] = {"path", "mode", "dir_fd", "follow_symlinks", NULL};
413 int mode;
424 mode = _PyLong_AsInt(args[1]);
425 if (mode == -1 && PyErr_Occurred()) {
444 return_value = os_chmod_impl(module, &path, mode, dir_fd, follow_symlinks);
456 "fchmod($module, /, fd, mode)\n"
461 "Equivalent to os.chmod(fd, mode).");
467 os_fchmod_impl(PyObject *module, int fd, int mode);
473 static const char * const _keywords[] = {"fd", "mode", NULL};
477 int mode;
487 mode = _PyLong_AsInt(args[1]);
488 if (mode == -1 && PyErr_Occurred()) {
491 return_value = os_fchmod_impl(module, fd, mode);
502 "lchmod($module, /, path, mode)\n"
508 "Equivalent to chmod(path, mode, follow_symlinks=False).\"");
514 os_lchmod_impl(PyObject *module, path_t *path, int mode);
520 static const char * const _keywords[] = {"path", "mode", NULL};
524 int mode;
533 mode = _PyLong_AsInt(args[1]);
534 if (mode == -1 && PyErr_Occurred()) {
537 return_value = os_lchmod_impl(module, &path, mode);
1353 "mkdir($module, /, path, mode=511, *, dir_fd=None)\n"
1363 "The mode argument is ignored on Windows. Where it is used, the current umask\n"
1370 os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd);
1376 static const char * const _keywords[] = {"path", "mode", "dir_fd", NULL};
1381 int mode = 511;
1395 mode = _PyLong_AsInt(args[1]);
1396 if (mode == -1 && PyErr_Occurred()) {
1411 return_value = os_mkdir_impl(module, &path, mode, dir_fd);
2480 "spawnv($module, mode, path, argv, /)\n"
2485 " mode\n"
2496 os_spawnv_impl(PyObject *module, int mode, path_t *path, PyObject *argv);
2502 int mode;
2509 mode = _PyLong_AsInt(args[0]);
2510 if (mode == -1 && PyErr_Occurred()) {
2517 return_value = os_spawnv_impl(module, mode, &path, argv);
2531 "spawnve($module, mode, path, argv, env, /)\n"
2536 " mode\n"
2549 os_spawnve_impl(PyObject *module, int mode, path_t *path, PyObject *argv,
2556 int mode;
2564 mode = _PyLong_AsInt(args[0]);
2565 if (mode == -1 && PyErr_Occurred()) {
2573 return_value = os_spawnve_impl(module, mode, &path, argv, env);
4517 "open($module, /, path, flags, mode=511, *, dir_fd=None)\n"
4531 os_open_impl(PyObject *module, path_t *path, int flags, int mode, int dir_fd);
4537 static const char * const _keywords[] = {"path", "flags", "mode", "dir_fd", NULL};
4543 int mode = 511;
4562 mode = _PyLong_AsInt(args[2]);
4563 if (mode == -1 && PyErr_Occurred()) {
4578 _return_value = os_open_impl(module, &path, flags, mode, dir_fd);
5897 "mkfifo($module, /, path, mode=438, *, dir_fd=None)\n"
5911 os_mkfifo_impl(PyObject *module, path_t *path, int mode, int dir_fd);
5917 static const char * const _keywords[] = {"path", "mode", "dir_fd", NULL};
5922 int mode = 438;
5936 mode = _PyLong_AsInt(args[1]);
5937 if (mode == -1 && PyErr_Occurred()) {
5952 return_value = os_mkfifo_impl(module, &path, mode, dir_fd);
5966 "mknod($module, /, path, mode=384, device=0, *, dir_fd=None)\n"
5972 "at path. mode specifies both the permissions to use and the\n"
5974 "S_IFREG, S_IFCHR, S_IFBLK, and S_IFIFO. If S_IFCHR or S_IFBLK is set on mode,\n"
5987 os_mknod_impl(PyObject *module, path_t *path, int mode, dev_t device,
5994 static const char * const _keywords[] = {"path", "mode", "device", "dir_fd", NULL};
5999 int mode = 384;
6014 mode = _PyLong_AsInt(args[1]);
6015 if (mode == -1 && PyErr_Occurred()) {
6038 return_value = os_mknod_impl(module, &path, mode, device, dir_fd);
8241 "Get the blocking mode of the file descriptor.\n"
8280 "Set the blocking mode of the specified file descriptor.\n"