Home
last modified time | relevance | path

Searched refs:oflags (Results 1 - 25 of 26) sorted by relevance

12

/third_party/NuttX/fs/vfs/
H A Dfs_open.c48 static int oflag_convert_mode(int oflags) in oflag_convert_mode() argument
53 if ((oflags & O_ACCMODE) == O_RDONLY) in oflag_convert_mode()
55 if (oflags & O_WRONLY) in oflag_convert_mode()
57 if (oflags & O_RDWR) in oflag_convert_mode()
62 if (oflags & O_CREAT) in oflag_convert_mode()
67 if (oflags & O_TRUNC) in oflag_convert_mode()
72 if (oflags & O_EXCL) in oflag_convert_mode()
74 if (oflags & O_APPEND) in oflag_convert_mode()
79 if (oflags & O_EXECVE) in oflag_convert_mode()
145 int fp_open(int dirfd, const char *path, int oflags, mode_ argument
318 do_open(int dirfd, const char *path, int oflags, mode_t mode) do_open() argument
350 open(const char *path, int oflags, ...) open() argument
[all...]
H A Dfs_fcntl.c121 int oflags = va_arg(ap, int); in file_vfcntl() local
123 if (oflags & FD_CLOEXEC) in file_vfcntl()
160 int oflags = va_arg(ap, int); in file_vfcntl() local
162 oflags &= FFCNTL; in file_vfcntl()
164 filep->f_oflags |= oflags; in file_vfcntl()
/third_party/ltp/include/
H A Dtst_safe_posix_ipc.h13 #define SAFE_MQ_OPEN(pathname, oflags, ...) \
14 safe_mq_open(__FILE__, __LINE__, (pathname), (oflags), ##__VA_ARGS__)
29 const char *pathname, int oflags, ...) in safe_mq_open()
36 va_start(ap, oflags); in safe_mq_open()
51 rval = mq_open(pathname, oflags, mode, attr); in safe_mq_open()
55 "mq_open(%s,%d,%04o,%p) failed", pathname, oflags, in safe_mq_open()
28 safe_mq_open(const char *file, const int lineno, const char *pathname, int oflags, ...) safe_mq_open() argument
H A Dtst_safe_file_at.h14 #define SAFE_OPENAT(dirfd, path, oflags, ...) \
16 (dirfd), (path), (oflags), ## __VA_ARGS__)
41 const char *const path, const int oflags, ...)
H A Dsafe_macros_fn.h77 void (*cleanup_fn)(void), const char *pathname, int oflags, ...);
H A Dtst_safe_macros.h89 #define SAFE_OPEN(pathname, oflags, ...) \
90 safe_open(__FILE__, __LINE__, NULL, (pathname), (oflags), \
/third_party/NuttX/fs/driver/
H A Dfs_blockproxy.c134 * oflags - Character driver open flags
152 int block_proxy(const char *blkdev, int oflags) in block_proxy() argument
176 readonly = (((unsigned int)oflags & O_ACCMODE) == O_RDONLY); in block_proxy()
189 oflags =(unsigned int)oflags & (~(O_CREAT | O_EXCL | O_APPEND | O_TRUNC)); in block_proxy()
190 fd = open(chardev, oflags); in block_proxy()
/third_party/ltp/testcases/kernel/fs/doio/
H A Ddoio.c318 char *format_oflags(int oflags);
416 int alloc_fd(char *file, int oflags);
417 struct fd_cache *alloc_fdcache(char *file, int oflags);
1184 char *format_oflags(int oflags) in format_oflags() argument
1189 switch (oflags & 03) { in format_oflags()
1204 if (oflags & O_EXCL) in format_oflags()
1207 if (oflags & O_SYNC) in format_oflags()
1210 if (oflags & O_RAW) in format_oflags()
1212 if (oflags & O_WELLFORMED) in format_oflags()
1215 if (oflags in format_oflags()
1406 int fd, offset, nbytes, oflags, rval; do_read() local
1601 int fd, nbytes, oflags, signo; do_write() local
2082 int fd, oflags, signo, nb, i; do_listio() local
3058 int fd, offset, nbytes, nstrides, nents, oflags; do_rw() local
3498 int fd, oflags, offset, nbytes; do_fcntl() local
3602 int fd, oflags; do_sync() local
4258 alloc_fd(char *file, int oflags) alloc_fd() argument
4270 alloc_fdcache(char *file, int oflags) alloc_fdcache() argument
[all...]
H A Dwrite_log.c116 int omask, oflags; in wlog_open() local
127 oflags = O_WRONLY | O_APPEND | O_CREAT | trunc; in wlog_open()
128 wfile->w_afd = open(wfile->w_file, oflags, mode); in wlog_open()
134 wfile->w_file, oflags, mode, strerror(errno)); in wlog_open()
142 oflags = O_RDWR; in wlog_open()
143 if ((wfile->w_rfd = open(wfile->w_file, oflags)) == -1) { in wlog_open()
146 wfile->w_file, oflags, strerror(errno)); in wlog_open()
/third_party/ltp/lib/
H A Dtst_safe_file_at.c36 const int dirfd, const char *const path, const int oflags, ...) in safe_openat()
41 if (TST_OPEN_NEEDS_MODE(oflags)) { in safe_openat()
44 va_start(ap, oflags); in safe_openat()
49 fd = openat(dirfd, path, oflags, mode); in safe_openat()
55 dirfd, tst_decode_fd(dirfd), path, oflags, mode); in safe_openat()
35 safe_openat(const char *const file, const int lineno, const int dirfd, const char *const path, const int oflags, ...) safe_openat() argument
H A Dsafe_macros.c238 const char *pathname, int oflags, ...) in safe_open()
243 if (TST_OPEN_NEEDS_MODE(oflags)) { in safe_open()
246 va_start(ap, oflags); in safe_open()
256 rval = open(pathname, oflags, mode); in safe_open()
260 "open(%s,%d,%04o) failed", pathname, oflags, mode); in safe_open()
264 oflags, mode, rval); in safe_open()
237 safe_open(const char *file, const int lineno, void (*cleanup_fn) (void), const char *pathname, int oflags, ...) safe_open() argument
/third_party/rust/crates/rustix/src/backend/linux_raw/
H A Dconv.rs470 fn oflags_bits(oflags: OFlags) -> c::c_uint { in oflags_bits()
471 let mut bits = oflags.bits(); in oflags_bits()
474 if !oflags.contains(OFlags::PATH) { in oflags_bits()
483 const fn oflags_bits(oflags: OFlags) -> c::c_uint {
484 oflags.bits()
490 fn from(oflags: OFlags) -> Self { in from()
491 pass_usize(oflags_bits(oflags) as usize) in from()
498 pub(super) fn oflags_for_open_how(oflags: OFlags) -> u64 {
499 u64::from(oflags_bits(oflags))
/third_party/rust/crates/rustix/src/fs/
H A Dopenat2.rs6 /// `openat2(dirfd, path, OpenHow { oflags, mode, resolve }, sizeof(OpenHow))`
16 oflags: OFlags, in openat2()
21 backend::fs::syscalls::openat2(dirfd.as_fd(), path, oflags, mode, resolve) in openat2()
H A Dat.rs41 /// `openat(dirfd, path, oflags, mode)`—Opens a file.
59 oflags: OFlags, in openat()
63 backend::fs::syscalls::openat(dirfd.as_fd(), path, oflags, create_mode) in openat()
/third_party/rust/crates/rustix/src/io/
H A Dprocfs.rs200 let oflags = OFlags::NOFOLLOW | OFlags::DIRECTORY | OFlags::CLOEXEC | OFlags::NOCTTY; in proc_opendirat()
201 openat(dirfd, path, oflags, Mode::empty()).map_err(|_err| io::Errno::NOTSUP) in proc_opendirat()
412 let oflags = OFlags::RDONLY | OFlags::CLOEXEC | OFlags::NOFOLLOW | OFlags::NOCTTY; in open_and_check_file()
413 let file = openat(dir, name, oflags, Mode::empty()).map_err(|_err| io::Errno::NOTSUP)?; in open_and_check_file()
/third_party/toybox/toys/pending/
H A Dstty.c100 static const struct flag oflags[] = { variable
233 !set_flag(&new->c_oflag, oflags, ARRAY_LEN(oflags), option, on) && in set_option()
444 show_flags(old.c_oflag, sane.c_oflag, oflags, ARRAY_LEN(oflags)); in do_stty()
/third_party/NuttX/fs/dirent/
H A Dfs_opendir.c154 int do_opendir(const char *path, int oflags) in do_opendir() argument
203 filep = files_allocate(vp, oflags, 0, NULL, FILE_START_FD); in do_opendir()
/third_party/rust/crates/rustix/tests/fs/
H A Dopenat2.rs9 oflags: OFlags, in openat2_more()
15 match openat2(dirfd.as_fd(), &path, oflags, mode, resolve) { in openat2_more()
/third_party/ltp/testcases/kernel/syscalls/utimensat/
H A Dutimensat01.c50 int oflags; member
233 dfd = SAFE_OPEN(TEST_DIR, tc->oflags); in run()
/third_party/NuttX/fs/vfs/include/
H A Dfile.h473 struct file *files_allocate(const struct Vnode *vnode_ptr, int oflags, off_t pos, const void *priv, int minfd);
/third_party/ltp/include/old/
H A Dsafe_macros.h62 #define SAFE_OPEN(cleanup_fn, pathname, oflags, ...) \
63 safe_open(__FILE__, __LINE__, (cleanup_fn), (pathname), (oflags), \
/third_party/mksh/
H A Dshf.c51 shf_open(const char *name, int oflags, int mode, int sflags) in shf_open() argument
67 fd = binopen3(name, oflags, mode); in shf_open()
88 sflags |= (oflags & O_ACCMODE) == O_RDONLY ? SHF_RD : in shf_open()
89 ((oflags & O_ACCMODE) == O_WRONLY ? SHF_WR : SHF_RDWR); in shf_open()
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Dsyscalls.rs179 oflags: OFlags, in openat_via_syscall()
185 let oflags = oflags.bits(); in openat_via_syscall()
191 c::c_long::from(oflags), in openat_via_syscall()
201 oflags: OFlags,
207 if oflags.contains(OFlags::TMPFILE) && crate::backend::if_glibc_is_less_than_2_25() {
208 return openat_via_syscall(dirfd, path, oflags, mode);
217 oflags.bits(),
1267 oflags: OFlags,
1271 let oflags
[all...]
/third_party/NuttX/fs/inode/
H A Dfs_files.c422 struct file *files_allocate(const struct Vnode *vnode_ptr, int oflags, off_t pos, const void *priv, int minfd) in files_allocate() argument
449 filep->f_oflags = oflags; in files_allocate()
/third_party/NuttX/include/nuttx/net/
H A Dnet.h426 int net_checksd(int fd, int oflags);

Completed in 19 milliseconds

12