Home
last modified time | relevance | path

Searched refs:oflags (Results 1 – 25 of 29) sorted by relevance

12

/third_party/NuttX/fs/vfs/
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_t mode) in fp_open() argument
[all …]
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/
Dtst_safe_posix_ipc.h13 #define SAFE_MQ_OPEN(pathname, oflags, ...) \ argument
14 safe_mq_open(__FILE__, __LINE__, (pathname), (oflags), ##__VA_ARGS__)
29 const char *pathname, int oflags, ...) in safe_mq_open() argument
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()
Dtst_safe_file_at.h14 #define SAFE_OPENAT(dirfd, path, oflags, ...) \ argument
16 (dirfd), (path), (oflags), ## __VA_ARGS__)
41 const char *const path, const int oflags, ...)
Dsafe_macros_fn.h77 void (*cleanup_fn)(void), const char *pathname, int oflags, ...);
/third_party/NuttX/fs/driver/
Dfs_blockproxy.c152 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/
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 & O_SSD) in format_oflags()
[all …]
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/
Dtst_safe_file_at.c36 const int dirfd, const char *const path, const int oflags, ...) in safe_openat() argument
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()
Dsafe_macros.c238 const char *pathname, int oflags, ...) in safe_open() argument
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()
/third_party/rust/crates/rustix/src/fs/
Dopenat2.rs16 oflags: OFlags, in openat2()
21 backend::fs::syscalls::openat2(dirfd.as_fd(), path, oflags, mode, resolve) in openat2()
Dat.rs59 oflags: OFlags, in openat()
63 backend::fs::syscalls::openat(dirfd.as_fd(), path, oflags, create_mode) in openat()
/third_party/rust/crates/rustix/src/backend/linux_raw/
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 { in oflags_bits()
484 oflags.bits() in 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 { in oflags_for_open_how()
499 u64::from(oflags_bits(oflags)) in oflags_for_open_how()
/third_party/rust/crates/rustix/src/io/
Dprocfs.rs200 let oflags = OFlags::NOFOLLOW | OFlags::DIRECTORY | OFlags::CLOEXEC | OFlags::NOCTTY; in proc_opendirat() localVariable
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() localVariable
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/
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/
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/
Dopenat2.rs9 oflags: OFlags, in openat2_more()
15 match openat2(dirfd.as_fd(), &path, oflags, mode, resolve) { in openat2_more()
/third_party/rust/crates/rustix/src/backend/libc/fs/
Dsyscalls.rs179 oflags: OFlags, in openat_via_syscall()
185 let oflags = oflags.bits(); in openat_via_syscall() localVariable
191 c::c_long::from(oflags), in openat_via_syscall()
201 oflags: OFlags, in openat()
207 if oflags.contains(OFlags::TMPFILE) && crate::backend::if_glibc_is_less_than_2_25() { in openat()
208 return openat_via_syscall(dirfd, path, oflags, mode); in openat()
217 oflags.bits(), in openat()
1267 oflags: OFlags, in openat2()
1271 let oflags: i32 = oflags.bits(); in openat2() localVariable
1273 oflag: u64::from(oflags as u32), in openat2()
/third_party/ltp/testcases/kernel/syscalls/utimensat/
Dutimensat01.c50 int oflags; member
233 dfd = SAFE_OPEN(TEST_DIR, tc->oflags); in run()
/third_party/libsnd/tests/
Dutils.tpl544 int oflags = 0, omode = 0, err ;
553 oflags = O_RDONLY | O_BINARY ;
559 oflags = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY ;
565 oflags = O_RDWR | O_CREAT | O_BINARY ;
585 fd = (omode == 0) ? open (filename, oflags) : open (filename, oflags, omode) ;
/third_party/mksh/
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/ltp/include/old/
Dsafe_macros.h62 #define SAFE_OPEN(cleanup_fn, pathname, oflags, ...) \ argument
63 safe_open(__FILE__, __LINE__, (cleanup_fn), (pathname), (oflags), \
/third_party/NuttX/fs/vfs/include/
Dfile.h473 struct file *files_allocate(const struct Vnode *vnode_ptr, int oflags, off_t pos, const void *priv,…
/third_party/NuttX/fs/inode/
Dfs_files.c422 struct file *files_allocate(const struct Vnode *vnode_ptr, int oflags, off_t pos, const void *priv,… in files_allocate() argument
449 filep->f_oflags = oflags; in files_allocate()
/third_party/NuttX/include/nuttx/net/
Dnet.h426 int net_checksd(int fd, int oflags);

12