Searched refs:open_flags (Results 1 – 4 of 4) sorted by relevance
122 long open_flags = 0; in openfile() local124 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 …]
20 int open_flags = O_RDONLY | O_DIRECTORY | O_CLOEXEC; in platform_opendir() local22 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()
385 int open_flags = 0; in GetOpenFlags() local391 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 …]
215 int open_flags = O_RDWR | O_NOCTTY; in SetUpPtyRedirection() local220 open_flags |= O_CLOEXEC; in SetUpPtyRedirection()222 if (llvm::Error Err = m_pty->OpenFirstAvailablePrimary(open_flags)) in SetUpPtyRedirection()