Lines Matching defs:flags
523 * linux/memfd.h defines additional flags
1904 DWORD flags = FILE_FLAG_BACKUP_SEMANTICS; /* Allow opening directories. */
1906 flags |= FILE_FLAG_OPEN_REPARSE_POINT;
1909 hFile = CreateFileW(path, access, 0, NULL, OPEN_EXISTING, flags, NULL);
1946 OPEN_EXISTING, flags, NULL);
1959 flags | FILE_FLAG_OPEN_REPARSE_POINT, NULL);
2155 {"st_flags", "user defined flags for file"},
3031 int flags = 0;
3033 flags |= AT_SYMLINK_NOFOLLOW;
3035 flags |= AT_EACCESS;
3036 result = faccessat(dir_fd, path->narrow, mode, flags);
3449 flags: unsigned_long(bitwise=True)
3452 Set file flags.
3455 link, chflags will change flags on the symbolic link itself instead of the
3463 os_chflags_impl(PyObject *module, path_t *path, unsigned long flags,
3474 if (PySys_Audit("os.chflags", "Ok", path->object, flags) < 0) {
3481 result = lchflags(path->narrow, flags);
3484 result = chflags(path->narrow, flags);
3500 flags: unsigned_long(bitwise=True)
3502 Set file flags.
3505 Equivalent to chflags(path, flags, follow_symlinks=False).
3509 os_lchflags_impl(PyObject *module, path_t *path, unsigned long flags)
3513 if (PySys_Audit("os.chflags", "Ok", path->object, flags) < 0) {
3517 res = lchflags(path->narrow, flags);
4786 int flags = is_replace ? MOVEFILE_REPLACE_EXISTING : 0;
4808 result = MoveFileExW(src->wide, dst->wide, flags);
5306 int flags = follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW;
5308 return utimensat(dir_fd, path, time, flags);
5314 int flags = follow_symlinks ? 0 : AT_SYMLINK_NOFOLLOW;
5316 return utimensat(dir_fd, path, time, flags);
8667 flags: unsigned_int = 0
8676 os_pidfd_open_impl(PyObject *module, pid_t pid, unsigned int flags)
8679 int fd = syscall(__NR_pidfd_open, pid, flags);
8925 DWORD flags = 0;
8945 flags |= SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE;
8950 /* if src is a directory, ensure flags==1 (target_is_directory bit) */
8952 flags |= SYMBOLIC_LINK_FLAG_DIRECTORY;
8955 result = CreateSymbolicLinkW(dst->wide, src->wide, flags);
8974 flags &= ~(SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE);
8975 result = CreateSymbolicLinkW(dst->wide, src->wide, flags);
9264 flags: int
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)
9296 flags |= O_NOINHERIT;
9298 flags |= O_CLOEXEC;
9301 if (PySys_Audit("open", "OOi", path->object, Py_None, flags) < 0) {
9309 fd = _wopen(path->wide, flags, mode);
9314 fd = openat(dir_fd, path->narrow, flags, mode);
9322 fd = open(path->narrow, flags, mode);
9811 flags: int = 0
9823 The flags argument contains a bitwise OR of zero or more of the following flags:
9828 Using non-zero flags requires Linux 4.6 or newer.
9833 int flags)
9853 if(flags != 0) {
9854 argument_unavailable_error("preadv2", "flags");
9866 n = preadv2(fd, iov, cnt, offset, flags);
9934 flags: int = 0
9942 int flags)
9954 flags: int = 0
9962 int flags)
10056 ret = sendfile(in_fd, out_fd, offset, &sbytes, &sf, flags);
10058 ret = sendfile(in_fd, out_fd, offset, count, &sf, &sbytes, flags);
10161 flags: int
10168 os__fcopyfile_impl(PyObject *module, int in_fd, int out_fd, int flags)
10174 ret = fcopyfile(in_fd, out_fd, NULL, flags);
10329 flags: int
10332 Create a pipe with flags set atomically.
10337 flags can be constructed by ORing together one or more of these values:
10342 os_pipe2_impl(PyObject *module, int flags)
10348 res = pipe2(fds, flags);
10451 flags: int = 0
10463 The flags argument contains a bitwise OR of zero or more of the following flags:
10469 Using non-zero flags requires Linux 4.7 or newer.
10474 int flags)
10495 if(flags != 0) {
10496 argument_unavailable_error("pwritev2", "flags");
10508 result = pwritev2(fd, iov, cnt, offset, flags);
10579 /* The flags argument is provided to allow
10581 int flags = 0;
10605 ret = copy_file_range(src, p_offset_src, dst, p_offset_dst, count, flags);
10631 flags: unsigned_int = 0
10644 unsigned int flags)
10674 ret = splice(src, p_offset_src, dst, p_offset_dst, count, flags);
12975 flags: int = 0
12990 Py_buffer *value, int flags, int follow_symlinks)
12999 value->buf, value->len, flags) < 0) {
13006 value->buf, value->len, flags);
13009 value->buf, value->len, flags);
13012 value->buf, value->len, flags);
13214 flags: unsigned_int(bitwise=True, c_default="MFD_CLOEXEC") = MFD_CLOEXEC
13219 os_memfd_create_impl(PyObject *module, PyObject *name, unsigned int flags)
13225 fd = memfd_create(bytes, flags);
13239 flags: int(c_default="EFD_CLOEXEC") = EFD_CLOEXEC
13245 os_eventfd_impl(PyObject *module, unsigned int initval, int flags)
13252 fd = eventfd(initval, flags);
13516 DWORD flags;
13518 if (!GetHandleInformation((HANDLE)handle, &flags)) {
13523 return flags & HANDLE_FLAG_INHERIT;
13541 DWORD flags = inheritable ? HANDLE_FLAG_INHERIT : 0;
13542 if (!SetHandleInformation((HANDLE)handle, HANDLE_FLAG_INHERIT, flags)) {
14628 flags: int=0
14634 os_getrandom_impl(PyObject *module, Py_ssize_t size, int flags)
14655 flags);