Home
last modified time | relevance | path

Searched refs:open_flags (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/libc/src/__support/File/
H A Dlinux_file.cpp122 long open_flags = 0; in openfile() local
124 open_flags = O_CREAT | O_APPEND; in openfile()
126 open_flags |= O_RDWR; in openfile()
128 open_flags |= O_WRONLY; in openfile()
130 open_flags = O_CREAT | O_TRUNC; in openfile()
132 open_flags |= O_RDWR; in openfile()
134 open_flags |= O_WRONLY; in openfile()
137 open_flags |= O_RDWR; in openfile()
139 open_flags |= O_RDONLY; in openfile()
147 int fd = __llvm_libc::syscall(SYS_open, path, open_flags, OPEN_MODE); in openfile()
[all …]
H A Dlinux_dir.cpp20 int open_flags = O_RDONLY | O_DIRECTORY | O_CLOEXEC; in platform_opendir() local
22 int fd = __llvm_libc::syscall(SYS_open, name, open_flags); in platform_opendir()
24 int fd = __llvm_libc::syscall(SYS_openat, AT_FDCWD, name, open_flags); in platform_opendir()
/llvm-project-15.0.7/lldb/source/Host/common/
H A DFileSystem.cpp385 int open_flags = 0; in GetOpenFlags() local
391 open_flags |= O_RDWR; in GetOpenFlags()
393 open_flags |= O_WRONLY; in GetOpenFlags()
396 open_flags |= O_APPEND; in GetOpenFlags()
399 open_flags |= O_TRUNC; in GetOpenFlags()
402 open_flags |= O_CREAT; in GetOpenFlags()
407 open_flags |= O_RDONLY; in GetOpenFlags()
417 open_flags |= O_NONBLOCK; in GetOpenFlags()
419 open_flags |= O_CLOEXEC; in GetOpenFlags()
421 open_flags |= O_BINARY; in GetOpenFlags()
[all …]
H A DProcessLaunchInfo.cpp215 int open_flags = O_RDWR | O_NOCTTY; in SetUpPtyRedirection() local
220 open_flags |= O_CLOEXEC; in SetUpPtyRedirection()
222 if (llvm::Error Err = m_pty->OpenFirstAvailablePrimary(open_flags)) in SetUpPtyRedirection()