Home
last modified time | relevance | path

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

123

/third_party/NuttX/fs/vfs/
Dfs_open.c45 static int oflag_convert_mode(int oflags) in oflag_convert_mode() argument
50 if ((oflags & O_ACCMODE) == O_RDONLY) in oflag_convert_mode()
52 if (oflags & O_WRONLY) in oflag_convert_mode()
54 if (oflags & O_RDWR) in oflag_convert_mode()
59 if (oflags & O_CREAT) in oflag_convert_mode()
64 if (oflags & O_TRUNC) in oflag_convert_mode()
69 if (oflags & O_EXCL) in oflag_convert_mode()
71 if (oflags & O_APPEND) in oflag_convert_mode()
76 if (oflags & O_EXECVE) in oflag_convert_mode()
142 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.h12 #define SAFE_MQ_OPEN(pathname, oflags, ...) \ argument
13 safe_mq_open(__FILE__, __LINE__, (pathname), (oflags), ##__VA_ARGS__)
16 const char *pathname, int oflags, ...) in safe_mq_open() argument
23 va_start(ap, oflags); in safe_mq_open()
38 rval = mq_open(pathname, oflags, mode, attr); in safe_mq_open()
42 "mq_open(%s,%d,%04o,%p) failed", pathname, oflags, in safe_mq_open()
Dtst_safe_file_at.h12 #define SAFE_OPENAT(dirfd, path, oflags, ...) \ argument
14 (dirfd), (path), (oflags), ## __VA_ARGS__)
32 const char *const path, const int oflags, ...)
/third_party/ejdb/src/bindings/ejdb2_jni/src/main/java/com/softmotions/ejdb2/
DIWKVOptions.java15 private long oflags; field in IWKVOptions
28 return (oflags & 0x4) != 0; in isTruncate()
32 return (oflags & 0x4) != 0; in isReadOnly()
52 oflags |= 0x4; in truncate()
57 oflags |= 0x2; in readonly()
99 ….add("oflags=" + oflags).add("file_lock_fail_fast=" + file_lock_fail_fast).add("random_seed=" + ra… in toString()
/third_party/ejdb/src/bindings/ejdb2_jni/src/android/java/com/softmotions/ejdb2/
DIWKVOptions.java14 private long oflags; field in IWKVOptions
27 return (oflags & 0x4) != 0; in isTruncate()
31 return (oflags & 0x4) != 0; in isReadOnly()
51 oflags |= 0x4; in truncate()
56 oflags |= 0x2; in readonly()
100 .append("oflags=").append(oflags).append(", ") in toString()
/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/
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()
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 …]
/third_party/e2fsprogs/contrib/
Dext4-ioc.c62 int oflags = O_RDONLY; in do_single_cmd() local
65 oflags = O_RDWR; in do_single_cmd()
66 fd = open(fn, oflags, 0); in do_single_cmd()
/third_party/ltp/lib/
Dtst_safe_file_at.c36 const int dirfd, const char *const path, const int oflags, ...) in safe_openat() argument
42 va_start(ap, oflags); in safe_openat()
46 fd = openat(dirfd, path, oflags, mode); in safe_openat()
52 dirfd, tst_decode_fd(dirfd), path, oflags, mode); in safe_openat()
/third_party/ejdb/src/tests/
Dejdb_test1.c19 .oflags = IWKV_TRUNC in ejdb_test1_3()
61 .oflags = IWKV_TRUNC in ejdb_test1_2()
176 opts.kv.oflags &= ~IWKV_TRUNC; in ejdb_test1_2()
238 .oflags = IWKV_TRUNC in ejdb_test1_1()
278 opts.kv.oflags &= ~IWKV_TRUNC; in ejdb_test1_1()
Dejdb_test3.c17 .oflags = IWKV_TRUNC in ejdb_test3_1()
345 .oflags = IWKV_TRUNC in ejdb_test3_2()
525 .oflags = IWKV_TRUNC in ejdb_test3_3()
696 .oflags = IWKV_TRUNC in ejdb_test3_4()
842 .oflags = IWKV_TRUNC in ejdb_test3_5()
937 .oflags = IWKV_TRUNC in ejdb_test3_6()
993 .oflags = IWKV_TRUNC in ejdb_test3_7()
1020 opts.kv.oflags = 0; in ejdb_test3_7()
1037 .oflags = IWKV_TRUNC in ejdb_test3_8()
/third_party/libnl/lib/route/link/
Dipgre.c52 uint16_t oflags; member
121 ipgre->oflags = nla_get_u16(tb[IFLA_GRE_OFLAGS]); in ipgre_parse()
182 NLA_PUT_U16(msg, IFLA_GRE_OFLAGS, ipgre->oflags); in ipgre_put_attrs()
252 nl_dump_line(p, "%x\n", ipgre->oflags); in ipgre_dump_details()
556 int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags) in rtnl_link_ipgre_set_oflags() argument
562 ipgre->oflags = oflags; in rtnl_link_ipgre_set_oflags()
580 return ipgre->oflags; in rtnl_link_ipgre_get_oflags()
/third_party/iowow/src/kv/tests/
Diwkv_test8.c39 .oflags = IWKV_TRUNC, in iwkv_test8_1()
65 opts.oflags &= ~IWKV_TRUNC; in iwkv_test8_1()
113 .oflags = IWKV_TRUNC, in t82()
178 .oflags = IWKV_TRUNC, in iwkv_test8_2()
212 opts.oflags &= ~IWKV_TRUNC; in iwkv_test8_2()
Diwkv_test4.c52 .oflags = IWKV_TRUNC, in iwkv_test4_4()
90 .oflags = IWKV_TRUNC | IWKV_NO_TRIM_ON_CLOSE, in iwkv_test4_3_impl()
140 opts.oflags &= ~IWKV_TRUNC; in iwkv_test4_3_impl()
190 .oflags = IWKV_TRUNC, in iwkv_test2_impl()
251 .oflags = IWKV_TRUNC, in iwkv_test1_impl()
Diwkv_test10.c26 .oflags = IWKV_TRUNC, in iwkv_test10_1_impl()
65 opts.oflags = 0; in iwkv_test10_1_impl()
Diwkv_test1.c77 .oflags = IWKV_TRUNC, in iwkv_test3_impl()
146 .oflags = IWKV_TRUNC, in iwkv_test2_impl()
267 .oflags = IWKV_TRUNC, in iwkv_test1_impl()
285 opts.oflags = 0; in iwkv_test1_impl()
306 opts.oflags = IWKV_RDONLY; in iwkv_test1_impl()
336 opts.oflags = 0; in iwkv_test1_impl()
695 .oflags = IWKV_TRUNC, in iwkv_test8_impl()
787 .oflags = IWKV_TRUNC, in iwkv_test7_impl()
842 .oflags = IWKV_TRUNC, in iwkv_test6_impl()
Diwkv_test6.c27 .oflags = IWKV_TRUNC, in iwkv_test6_1_impl()
93 .oflags = IWKV_TRUNC, in iwkv_test6_2_impl()
/third_party/iowow/src/rdb/
Diwrdb.c17 iwrdb_oflags_t oflags; member
42 if (db->oflags & IWRDB_NOLOCKS) { in _initlocks()
117 iwrc iwrdb_open(const char *path, iwrdb_oflags_t oflags, size_t bufsz, IWRDB *odb) { in iwrdb_open() argument
143 db->oflags = oflags; in iwrdb_open()
/third_party/ejdb/src/bindings/ejdb2_node/
Dindex.js464 let oflags = 0;
467 oflags |= 0x02;
470 oflags |= 0x04;
472 ret.push(oflags);
/third_party/NuttX/fs/dirent/
Dfs_opendir.c151 int do_opendir(const char *path, int oflags) in do_opendir() argument
200 filep = files_allocate(vp, oflags, 0, NULL, FILE_START_FD); in do_opendir()
/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/iowow/src/fs/
Diwfsmfile.h162 iwfs_fsm_openflags oflags; /**< Operation mode flags */ member
175 iwfs_fsm_openflags oflags; /**< Operation mode flags. */ member
/third_party/iowow/src/fs/tests/
Diwfs_test2.c230 .oflags = IWFSM_STRICT in test_fsm_open_close()
256 CU_ASSERT_EQUAL(state1.state.oflags, state2.state.oflags); in test_fsm_open_close()
288 .oflags = IWFSM_STRICT, in test_fsm_uniform_alloc_impl()
548 .oflags = IWFSM_STRICT, in test_block_allocation_impl()
609 .oflags = IWFSM_STRICT, in test_block_allocation1_impl()

123