Home
last modified time | relevance | path

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

12

/external/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, ...)
/external/iproute2/ip/
Dlink_gre.c83 __u16 oflags = 0; in gre_parse_opt() local
138 oflags = rta_getattr_u16(greinfo[IFLA_GRE_OFLAGS]); in gre_parse_opt()
188 oflags |= GRE_KEY; in gre_parse_opt()
220 oflags |= GRE_KEY; in gre_parse_opt()
233 oflags |= GRE_SEQ; in gre_parse_opt()
237 oflags |= GRE_SEQ; in gre_parse_opt()
240 oflags |= GRE_CSUM; in gre_parse_opt()
244 oflags |= GRE_CSUM; in gre_parse_opt()
353 oflags |= GRE_KEY; in gre_parse_opt()
364 addattr_l(n, 1024, IFLA_GRE_OFLAGS, &oflags, 2); in gre_parse_opt()
[all …]
Dlink_gre6.c93 __u16 oflags = 0; in gre_parse_opt() local
146 oflags = rta_getattr_u16(greinfo[IFLA_GRE_OFLAGS]); in gre_parse_opt()
191 oflags |= GRE_KEY; in gre_parse_opt()
223 oflags |= GRE_KEY; in gre_parse_opt()
236 oflags |= GRE_SEQ; in gre_parse_opt()
240 oflags |= GRE_SEQ; in gre_parse_opt()
243 oflags |= GRE_CSUM; in gre_parse_opt()
247 oflags |= GRE_CSUM; in gre_parse_opt()
380 addattr_l(n, 1024, IFLA_GRE_OFLAGS, &oflags, 2); in gre_parse_opt()
405 unsigned int oflags = 0; in gre_print_opt() local
[all …]
/external/sg3_utils/examples/
Dscsi_inquiry.c64 int oflags = 0; in main() local
87 oflags = O_NONBLOCK; in main()
88 s_fd = open(file_name, oflags | O_RDWR); in main()
91 s_fd = open(file_name, oflags | O_RDONLY); in main()
/external/sg3_utils/testing/
Dsg_tst_context.cpp289 int oflags = O_RDWR; in work_thread() local
293 oflags |= O_NONBLOCK; in work_thread()
295 oflags |= O_EXCL; in work_thread()
296 while (((pt_fd = scsi_pt_open_flags(dev_name, oflags, verbose)) < 0) in work_thread()
437 int oflags = O_RDWR; in main() local
440 oflags |= O_NONBLOCK; in main()
442 oflags |= O_EXCL; in main()
443 while (((pt_fd = scsi_pt_open_flags(dev_name, oflags, verbose)) in main()
/external/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 …]
/external/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()
/external/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()
/external/libnl/lib/route/link/
Dip6gre.c44 uint16_t oflags; member
118 ip6gre->oflags = nla_get_u16(tb[IFLA_GRE_OFLAGS]); in ip6gre_parse()
189 NLA_PUT_U16(msg, IFLA_GRE_OFLAGS, ip6gre->oflags); in ip6gre_put_attrs()
260 nl_dump_line(p, "%x\n", ip6gre->oflags); in ip6gre_dump_details()
495 int rtnl_link_ip6gre_set_oflags(struct rtnl_link *link, uint16_t oflags) in rtnl_link_ip6gre_set_oflags() argument
501 ip6gre->oflags = oflags; in rtnl_link_ip6gre_set_oflags()
514 int rtnl_link_ip6gre_get_oflags(struct rtnl_link *link, uint16_t *oflags) in rtnl_link_ip6gre_get_oflags() argument
522 *oflags = ip6gre->oflags; in rtnl_link_ip6gre_get_oflags()
Dipgre.c47 uint16_t oflags; member
118 ipgre->oflags = nla_get_u16(tb[IFLA_GRE_OFLAGS]); in ipgre_parse()
184 NLA_PUT_U16(msg, IFLA_GRE_OFLAGS, ipgre->oflags); in ipgre_put_attrs()
257 nl_dump_line(p, "%x\n", ipgre->oflags); in ipgre_dump_details()
566 int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags) in rtnl_link_ipgre_set_oflags() argument
572 ipgre->oflags = oflags; in rtnl_link_ipgre_set_oflags()
590 return ipgre->oflags; in rtnl_link_ipgre_get_oflags()
/external/rust/crates/libsqlite3-sys/sqlite3/
Dwasm32-wasi-vfs.c414 int oflags = 0; /* flags to pass to open() call */ in demoOpen() local
428 if( flags&SQLITE_OPEN_EXCLUSIVE ) oflags |= O_EXCL; in demoOpen()
429 if( flags&SQLITE_OPEN_CREATE ) oflags |= O_CREAT; in demoOpen()
430 if( flags&SQLITE_OPEN_READONLY ) oflags |= O_RDONLY; in demoOpen()
431 if( flags&SQLITE_OPEN_READWRITE ) oflags |= O_RDWR; in demoOpen()
434 p->fd = open(zName, oflags, 0600); in demoOpen()
/external/sg3_utils/lib/
Dsg_pt_solaris.c57 int oflags = 0 /* O_NONBLOCK*/ ; in scsi_pt_open_device() local
59 oflags |= (read_only ? O_RDONLY : O_RDWR); in scsi_pt_open_device()
60 return scsi_pt_open_flags(device_name, oflags, verbose); in scsi_pt_open_device()
69 int oflags = O_NONBLOCK | O_RDWR; in scsi_pt_open_flags() local
75 "open %s with flags=0x%x\n", device_name, oflags); in scsi_pt_open_flags()
77 fd = open(device_name, oflags); in scsi_pt_open_flags()
Dsg_pt_dummy.c90 int oflags = 0 /* O_NONBLOCK*/ ; in scsi_pt_open_device() local
92 oflags |= (read_only ? O_RDONLY : O_RDWR); in scsi_pt_open_device()
93 return scsi_pt_open_flags(device_name, oflags, verbose); in scsi_pt_open_device()
Dsg_pt_haiku.c56 int oflags = O_NONBLOCK; in scsi_pt_open_device() local
58 oflags |= (read_only ? O_RDONLY : O_RDWR); in scsi_pt_open_device()
59 return scsi_pt_open_flags(device_name, oflags, verbose); in scsi_pt_open_device()
Dsg_pt_osf1.c81 int oflags = 0 /* O_NONBLOCK*/ ; in scsi_pt_open_device() local
83 oflags |= (read_only ? O_RDONLY : O_RDWR); in scsi_pt_open_device()
84 return scsi_pt_open_flags(device_name, oflags, verbose); in scsi_pt_open_device()
/external/liburing/test/
Dclose-opath.c27 const int oflags; member
74 fd = openat(AT_FDCWD, path, oflgs->oflags, 0); in open_file()
/external/libnl/include/netlink/route/link/
Dip6gre.h24 extern int rtnl_link_ip6gre_set_oflags(struct rtnl_link *link, uint16_t oflags);
25 extern int rtnl_link_ip6gre_get_oflags(struct rtnl_link *link, uint16_t *oflags);
Dipgre.h30 extern int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags);
/external/toybox/toys/pending/
Dstty.c100 static const struct flag oflags[] = { variable
236 !set_flag(&new->c_oflag, oflags, ARRAY_LEN(oflags), option, on) && in set_option()
456 show_flags(old.c_oflag, sane.c_oflag, oflags, ARRAY_LEN(oflags)); in stty_main()
/external/clang/lib/StaticAnalyzer/Checkers/
DUnixAPIChecker.cpp137 NonLoc oflags = V.castAs<NonLoc>(); in CheckOpen() local
141 oflags, ocreateFlag, in CheckOpen()
/external/ltp/testcases/kernel/syscalls/utimensat/
Dutimensat01.c50 int oflags; member
233 dfd = SAFE_OPEN(TEST_DIR, tc->oflags); in run()
/external/mksh/src/
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()

12