Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/libc/src/__support/File/linux/
H A Dfile.cpp72 long open_flags = 0; in openfile() local
74 open_flags = O_CREAT | O_APPEND; in openfile()
76 open_flags |= O_RDWR; in openfile()
78 open_flags |= O_WRONLY; in openfile()
80 open_flags = O_CREAT | O_TRUNC; in openfile()
82 open_flags |= O_RDWR; in openfile()
84 open_flags |= O_WRONLY; in openfile()
87 open_flags |= O_RDWR; in openfile()
89 open_flags |= O_RDONLY; in openfile()
98 LIBC_NAMESPACE::syscall_impl<int>(SYS_open, path, open_flags, OPEN_MODE); in openfile()
[all …]
H A Ddir.cpp21 int open_flags = O_RDONLY | O_DIRECTORY | O_CLOEXEC; in platform_opendir() local
23 int fd = LIBC_NAMESPACE::syscall_impl<int>(SYS_open, name, open_flags); in platform_opendir()
26 LIBC_NAMESPACE::syscall_impl<int>(SYS_openat, AT_FDCWD, name, open_flags); in platform_opendir()
/freebsd/contrib/kyua/utils/sqlite/
H A Ddatabase.cpp193 sqlite::database::open(const fs::path& file, int open_flags) in open() argument
199 if (open_flags & open_readonly) { in open()
201 open_flags &= ~open_readonly; in open()
203 if (open_flags & open_readwrite) { in open()
205 open_flags &= ~open_readwrite; in open()
207 if (open_flags & open_create) { in open()
209 open_flags &= ~open_create; in open()
211 PRE(open_flags == 0); in open()
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DFileSystem.cpp373 int open_flags = 0; in GetOpenFlags()
379 open_flags |= O_RDWR; in GetOpenFlags()
381 open_flags |= O_WRONLY; in GetOpenFlags()
384 open_flags |= O_APPEND; in GetOpenFlags()
387 open_flags |= O_TRUNC; in GetOpenFlags()
390 open_flags |= O_CREAT; in GetOpenFlags()
393 open_flags |= O_CREAT | O_EXCL; in GetOpenFlags()
395 open_flags |= O_RDONLY; in GetOpenFlags()
399 open_flags |= O_NOFOLLOW; in GetOpenFlags()
405 open_flags | in GetOpenFlags()
374 int open_flags = 0; GetOpenFlags() local
442 const int open_flags = GetOpenFlags(options); Open() local
[all...]
H A DProcessLaunchInfo.cpp211 int open_flags = O_RDWR | O_NOCTTY; in SetUpPtyRedirection() local
216 open_flags |= O_CLOEXEC; in SetUpPtyRedirection()
218 if (llvm::Error Err = m_pty->OpenFirstAvailablePrimary(open_flags)) in SetUpPtyRedirection()
/freebsd/tools/test/stress2/misc/
H A Dsyzkaller99.sh47 // flags: open_flags = 0x80000 (4 bytes)
60 // flags: open_flags = 0x400000 (4 bytes)
72 // flags: open_flags = 0x400000 (4 bytes)
84 // flags: open_flags = 0x2000000 (4 bytes)
H A Dsyzkaller92.sh131 // flags: open_flags = 0x8408 (4 bytes)
199 // flags: open_flags = 0x800 (4 bytes)
238 // flags: open_flags = 0x2 (4 bytes)
H A Dsyzkaller88.sh119 // flags: open_flags = 0x200 (8 bytes)
223 // flags: open_flags = 0x40 (8 bytes)
H A Dsyzkaller93.sh68 // flags: open_flags = 0x2 (4 bytes)
H A Dsyzkaller96.sh47 // flags: open_flags = 0x2 (4 bytes)
H A Dsyzkaller94.sh158 // flags: open_flags = 0x2 (4 bytes)
H A Dsyzkaller91.sh115 // flags: open_flags = 0x2 (4 bytes)
H A Dsyzkaller89.sh110 // flags: open_flags = 0x200 (8 bytes)
H A Dsyzkaller97.sh73 // flags: open_flags = 0x2 (4 bytes)
H A Dsyzkaller90.sh92 // flags: open_flags = 0x2 (4 bytes)
H A Dsyzkaller98.sh161 // flags: open_flags = 0x8 (4 bytes)
H A Dsyzkaller87.sh245 // flags: open_flags = 0x100 (8 bytes)
H A Dsyzkaller95.sh339 // flags: open_flags = 0x2 (4 bytes)
/freebsd/sys/fs/fuse/
H A Dfuse_file.c128 .open_flags = FOPEN_KEEP_CACHE, in fuse_filehandle_open()
178 fuse_vnode_open(vp, foo->open_flags, td); in fuse_filehandle_open()
369 fufh->fuse_open_flags = foo->open_flags; in fuse_filehandle_init()
379 if (foo->open_flags & FOPEN_DIRECT_IO) { in fuse_filehandle_init()
384 if ((foo->open_flags & FOPEN_KEEP_CACHE) == 0) in fuse_filehandle_init()
H A Dfuse_kernel.h644 uint32_t open_flags; /* FUSE_OPEN_... */ member
651 uint32_t open_flags; /* FUSE_OPEN_... */ member
656 uint32_t open_flags; member
/freebsd/usr.sbin/nfsdumpstate/
H A Dnfsdumpstate.c57 static char *open_flags(uint32_t);
203 open_flags(lp[cnt].ndlck_flags), in dump_lockstate()
255 open_flags(uint32_t flags) in open_flags() function
/freebsd/usr.sbin/zonectl/
H A Dzonectl.c392 int open_flags = O_RDONLY; in main() local
508 open_flags = O_RDWR; in main()
540 fd = open(filename, open_flags); in main()
/freebsd/contrib/pjdfstest/
H A Dpjdfstest.c280 static struct flag open_flags[] = { variable
748 flags = str2flags(open_flags, STR(1)); in call_syscall()
767 flags = str2flags(open_flags, STR(2)); in call_syscall()
/freebsd/tests/sys/fs/fusefs/
H A Dutils.cc347 out.body.open.open_flags = flags; in expect_open()
H A Dcopy_file_range.cc73 out.body.open.open_flags = flags; in expect_open()

12