Lines Matching defs:mode

370 /* declare ctermid_r if compiling with MIPSPro 7.x in ANSI C mode
2119 (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)\n\
2945 mode: int
2946 Operating-system mode bitfield. Can be F_OK to test existence,
2979 os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd,
3019 (!(mode & 2) ||
3036 result = faccessat(dir_fd, path->narrow, mode, flags);
3043 result = access(path->narrow, mode);
3223 mode: int
3224 Operating-system mode bitfield.
3248 os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd,
3268 if (PySys_Audit("os.chmod", "Oii", path->object, mode,
3279 if (mode & _S_IWRITE)
3294 result = fchmod(path->fd, mode);
3299 result = lchmod(path->narrow, mode);
3315 result = fchmodat(dir_fd, path->narrow, mode,
3336 result = chmod(path->narrow, mode);
3380 mode: int
3384 Equivalent to os.chmod(fd, mode).
3388 os_fchmod_impl(PyObject *module, int fd, int mode)
3394 if (PySys_Audit("os.chmod", "iii", fd, mode, -1) < 0) {
3400 res = fchmod(fd, mode);
3416 mode: int
3421 Equivalent to chmod(path, mode, follow_symlinks=False)."
3425 os_lchmod_impl(PyObject *module, path_t *path, int mode)
3429 if (PySys_Audit("os.chmod", "Oii", path->object, mode, -1) < 0) {
3433 res = lchmod(path->narrow, mode);
4385 0, /* share mode */
4572 mode: int = 0o777
4578 # "mkdir(path, mode=0o777, *, dir_fd=None)\n\n\
4587 The mode argument is ignored on Windows. Where it is used, the current umask
4592 os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd)
4606 if (PySys_Audit("os.mkdir", "Oii", path->object, mode,
4613 if (mode == 0700 /* 0o700 */) {
4650 result = mkdirat(dir_fd, path->narrow, mode);
4660 result = mkdir(path->narrow, mode);
6200 unsigned long mode;
6204 &oflag, &mode))
6213 fd, PyBytes_AS_STRING(path), oflag, (mode_t)mode);
6490 _rtp_spawn(int mode, const char *rtpFileName, const char *argv[],
6509 if ((rtpid != RTP_ID_ERROR) && (mode == _P_WAIT)) {
6526 mode: int
6538 os_spawnv_impl(PyObject *module, int mode, path_t *path, PyObject *argv)
6547 /* spawnv has three arguments: (mode, path, argv), where
6593 if (mode == _OLD_P_OVERLAY)
6594 mode = _P_OVERLAY;
6597 if (PySys_Audit("os.spawn", "iOOO", mode, path->object, argv,
6606 spawnval = _wspawnv(mode, path->wide, argvlist);
6608 spawnval = _rtp_spawn(mode, path->narrow, (const char **)argvlist, NULL);
6610 spawnval = _spawnv(mode, path->narrow, argvlist);
6626 mode: int
6640 os_spawnve_impl(PyObject *module, int mode, path_t *path, PyObject *argv,
6652 /* spawnve has four arguments: (mode, path, argv, env), where
6708 if (mode == _OLD_P_OVERLAY)
6709 mode = _P_OVERLAY;
6712 if (PySys_Audit("os.spawn", "iOOO", mode, path->object, argv, env) < 0) {
6719 spawnval = _wspawnve(mode, path->wide, argvlist, envlist);
6721 spawnval = _rtp_spawn(mode, path->narrow, (const char **)argvlist,
6724 spawnval = _spawnve(mode, path->narrow, argvlist, envlist);
9265 mode: int = 0o777
9269 # "open(path, flags, mode=0o777, *, dir_fd=None)\n\n\
9280 os_open_impl(PyObject *module, path_t *path, int flags, int mode, int dir_fd)
9309 fd = _wopen(path->wide, flags, mode);
9314 fd = openat(dir_fd, path->narrow, flags, mode);
9322 fd = open(path->narrow, flags, mode);
10691 mode: int=0o666
10704 os_mkfifo_impl(PyObject *module, path_t *path, int mode, int dir_fd)
10718 result = mkfifoat(dir_fd, path->narrow, mode);
10726 result = mkfifo(path->narrow, mode);
10751 mode: int=0o600
10759 at path. mode specifies both the permissions to use and the
10761 S_IFREG, S_IFCHR, S_IFBLK, and S_IFIFO. If S_IFCHR or S_IFBLK is set on mode,
10772 os_mknod_impl(PyObject *module, path_t *path, int mode, dev_t device,
10787 result = mknodat(dir_fd, path->narrow, mode, device);
10795 result = mknod(path->narrow, mode, device);
13556 Get the blocking mode of the file descriptor.
13579 Set the blocking mode of the specified file descriptor.
13791 long mode;
13827 mode = PyLong_AsLong(st_mode);
13828 if (mode == -1 && PyErr_Occurred())
13832 result = (mode & S_IFMT) == mode_bits;