/external/ltp/include/ |
D | tst_safe_posix_ipc.h | 13 #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()
|
D | tst_safe_file_at.h | 14 #define SAFE_OPENAT(dirfd, path, oflags, ...) \ argument 16 (dirfd), (path), (oflags), ## __VA_ARGS__) 41 const char *const path, const int oflags, ...)
|
/external/iproute2/ip/ |
D | link_gre.c | 83 __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 …]
|
D | link_gre6.c | 93 __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/ |
D | scsi_inquiry.c | 64 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/ |
D | sg_tst_context.cpp | 289 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/ |
D | write_log.c | 116 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()
|
D | doio.c | 318 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/ |
D | tst_safe_file_at.c | 36 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()
|
D | safe_macros.c | 238 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/ |
D | ext4-ioc.c | 62 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/ |
D | ip6gre.c | 44 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()
|
D | ipgre.c | 47 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/ |
D | wasm32-wasi-vfs.c | 414 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/ |
D | sg_pt_solaris.c | 57 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()
|
D | sg_pt_dummy.c | 90 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()
|
D | sg_pt_haiku.c | 56 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()
|
D | sg_pt_osf1.c | 81 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/ |
D | close-opath.c | 27 const int oflags; member 74 fd = openat(AT_FDCWD, path, oflgs->oflags, 0); in open_file()
|
/external/libnl/include/netlink/route/link/ |
D | ip6gre.h | 24 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);
|
D | ipgre.h | 30 extern int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags);
|
/external/toybox/toys/pending/ |
D | stty.c | 100 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/ |
D | UnixAPIChecker.cpp | 137 NonLoc oflags = V.castAs<NonLoc>(); in CheckOpen() local 141 oflags, ocreateFlag, in CheckOpen()
|
/external/ltp/testcases/kernel/syscalls/utimensat/ |
D | utimensat01.c | 50 int oflags; member 233 dfd = SAFE_OPEN(TEST_DIR, tc->oflags); in run()
|
/external/mksh/src/ |
D | shf.c | 51 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()
|