Home
last modified time | relevance | path

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

123

/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/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/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, ...)
/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()
/kernel/linux/linux-5.10/fs/cifs/
H A Ddir.c227 struct tcon_link *tlink, unsigned oflags, umode_t mode, in cifs_do_create()
254 oflags, oplock, &fid->netfid, xid); in cifs_do_create()
320 if (OPEN_FMODE(oflags) & FMODE_READ) in cifs_do_create()
322 if (OPEN_FMODE(oflags) & FMODE_WRITE) in cifs_do_create()
326 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_do_create()
328 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) in cifs_do_create()
330 else if ((oflags & O_CREAT) == O_CREAT) in cifs_do_create()
463 struct file *file, unsigned oflags, umode_t mode) in cifs_atomic_open()
486 if (!(oflags & O_CREAT)) { in cifs_atomic_open()
527 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mod in cifs_atomic_open()
226 cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid, struct tcon_link *tlink, unsigned oflags, umode_t mode, __u32 *oplock, struct cifs_fid *fid) cifs_do_create() argument
462 cifs_atomic_open(struct inode *inode, struct dentry *direntry, struct file *file, unsigned oflags, umode_t mode) cifs_atomic_open() argument
581 unsigned oflags = O_EXCL | O_CREAT | O_RDWR; cifs_create() local
[all...]
/kernel/linux/linux-6.6/fs/smb/client/
H A Ddir.c178 struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock,
208 oflags, oplock, &fid->netfid, xid);
275 if (OPEN_FMODE(oflags) & FMODE_READ)
277 if (OPEN_FMODE(oflags) & FMODE_WRITE)
281 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
283 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
285 else if ((oflags & O_CREAT) == O_CREAT)
419 struct file *file, unsigned oflags, umode_t mode)
446 if (!(oflags & O_CREAT)) {
487 rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mod
177 cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid, struct tcon_link *tlink, unsigned int oflags, umode_t mode, __u32 *oplock, struct cifs_fid *fid, struct cifs_open_info_data *buf) global() argument
418 cifs_atomic_open(struct inode *inode, struct dentry *direntry, struct file *file, unsigned oflags, umode_t mode) global() argument
545 unsigned oflags = O_EXCL | O_CREAT | O_RDWR; global() local
[all...]
/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
/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/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))
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dstep.c114 unsigned long oflags; in enable_single_step() local
136 oflags = regs->flags; in enable_single_step()
159 if (oflags & X86_EFLAGS_TF) in enable_single_step()
/kernel/linux/linux-5.10/kernel/
H A Dirq_work.c32 int oflags; in irq_work_claim() local
34 oflags = atomic_fetch_or(IRQ_WORK_CLAIMED | CSD_TYPE_IRQ_WORK, &work->flags); in irq_work_claim()
40 if (oflags & IRQ_WORK_PENDING) in irq_work_claim()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dstep.c114 unsigned long oflags; in enable_single_step() local
141 oflags = regs->flags; in enable_single_step()
164 if (oflags & X86_EFLAGS_TF) in enable_single_step()
/kernel/liteos_a/fs/vfs/operation/
H A Dvfs_fcntl.c89 int oflags = va_arg(ap, int); in VfsFcntl() local
90 if (oflags & FD_CLOEXEC) { in VfsFcntl()
/kernel/linux/linux-5.10/drivers/char/ipmi/
H A Dipmi_ssif.c398 unsigned long oflags; in check_start_send() local
400 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in check_start_send()
552 unsigned long oflags, *flags; in retry_timeout() local
558 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in retry_timeout()
576 unsigned long oflags, *flags; in watch_timeout() local
581 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in watch_timeout()
598 unsigned long oflags, *flags; in ssif_alert() local
606 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in ssif_alert()
623 unsigned long oflags, *flags; in msg_done_handler() local
635 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in msg_done_handler()
979 unsigned long oflags, *flags; msg_written_handler() local
1050 unsigned long oflags; start_next_msg() local
1084 unsigned long oflags, *flags; sender() local
1121 unsigned long oflags, *flags; request_events() local
1138 unsigned long oflags, *flags; ssif_set_need_watch() local
[all...]
/kernel/linux/linux-6.6/drivers/char/ipmi/
H A Dipmi_ssif.c392 unsigned long oflags; in check_start_send() local
394 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in check_start_send()
545 unsigned long oflags, *flags; in retry_timeout() local
551 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in retry_timeout()
569 unsigned long oflags, *flags; in watch_timeout() local
574 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in watch_timeout()
591 unsigned long oflags, *flags; in ssif_alert() local
599 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in ssif_alert()
616 unsigned long oflags, *flags; in msg_done_handler() local
628 flags = ipmi_ssif_lock_cond(ssif_info, &oflags); in msg_done_handler()
971 unsigned long oflags, *flags; msg_written_handler() local
1041 unsigned long oflags; start_next_msg() local
1075 unsigned long oflags, *flags; sender() local
1112 unsigned long oflags, *flags; request_events() local
1129 unsigned long oflags, *flags; ssif_set_need_watch() local
[all...]
/kernel/liteos_m/components/fs/littlefs/
H A Dlfs_adapter.c111 static int ConvertFlagToLfsOpenFlag (int oflags) in ConvertFlagToLfsOpenFlag() argument
115 if (oflags & O_CREAT) { in ConvertFlagToLfsOpenFlag()
119 if (oflags & O_EXCL) { in ConvertFlagToLfsOpenFlag()
123 if (oflags & O_TRUNC) { in ConvertFlagToLfsOpenFlag()
127 if (oflags & O_APPEND) { in ConvertFlagToLfsOpenFlag()
131 if (oflags & O_RDWR) { in ConvertFlagToLfsOpenFlag()
135 if (oflags & O_WRONLY) { in ConvertFlagToLfsOpenFlag()
139 if (oflags == O_RDONLY) { in ConvertFlagToLfsOpenFlag()
/kernel/uniproton/src/fs/littlefs/
H A Dlfs_adapter.c89 static S32 OsConvertFlagToLfsOpenFlag(S32 oflags) in OsConvertFlagToLfsOpenFlag() argument
93 if (oflags & O_CREAT) { in OsConvertFlagToLfsOpenFlag()
97 if (oflags & O_EXCL) { in OsConvertFlagToLfsOpenFlag()
101 if (oflags & O_TRUNC) { in OsConvertFlagToLfsOpenFlag()
105 if (oflags & O_APPEND) { in OsConvertFlagToLfsOpenFlag()
109 if (oflags & O_RDWR) { in OsConvertFlagToLfsOpenFlag()
113 if (oflags & O_WRONLY) { in OsConvertFlagToLfsOpenFlag()
117 if (oflags == O_RDONLY) { in OsConvertFlagToLfsOpenFlag()
/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()
/kernel/linux/linux-6.6/kernel/
H A Dirq_work.c59 int oflags; in irq_work_claim() local
61 oflags = atomic_fetch_or(IRQ_WORK_CLAIMED | CSD_TYPE_IRQ_WORK, &work->node.a_flags); in irq_work_claim()
67 if (oflags & IRQ_WORK_PENDING) in irq_work_claim()
/kernel/liteos_a/syscall/
H A Dlos_syscall.h215 extern int fp_open(char *fullpath, int oflags, mode_t mode);
216 extern int do_open(int dirfd, const char *path, int oflags, mode_t mode);
231 extern int SysOpen(const char *path, int oflags, ...);
303 extern int SysOpenat(int dirfd, const char *path, int oflags, ...);
313 extern int do_opendir(const char *path, int oflags);
/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()

Completed in 17 milliseconds

123