Home
last modified time | relevance | path

Searched refs:oflag (Results 1 - 25 of 60) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/mq_open/
H A Dmq_open01.c33 int oflag; member
54 .oflag = O_CREAT,
62 .oflag = O_CREAT,
75 .oflag = O_CREAT,
88 .oflag = O_CREAT,
96 .oflag = O_CREAT,
111 .oflag = O_CREAT | O_EXCL,
120 .oflag = O_CREAT,
129 .oflag = 0,
136 .oflag
[all...]
/third_party/curl/lib/
H A Dcurl_multibyte.c91 int curlx_win32_open(const char *filename, int oflag, ...) in curlx_win32_open() argument
101 va_start(param, oflag); in curlx_win32_open()
102 if(oflag & O_CREAT) in curlx_win32_open()
108 result = _wopen(filename_w, oflag, pmode); in curlx_win32_open()
115 return (_open)(filename, oflag, pmode); in curlx_win32_open()
/third_party/rust/crates/nix/test/
H A Dtest_mq.rs16 // in read_attr, such as those specified by oflag. Just make sure at least
64 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_getattr()
66 let r = mq_open(mq_name, oflag, mode, Some(&initial_attr)); in test_mq_getattr()
89 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_setattr()
91 let r = mq_open(mq_name, oflag, mode, Some(&initial_attr)); in test_mq_setattr()
139 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_set_nonblocking()
141 let r = mq_open(mq_name, oflag, mode, Some(&initial_attr)); in test_mq_set_nonblocking()
166 let oflag = MQ_OFlag::O_CREAT | MQ_OFlag::O_WRONLY; in test_mq_unlink()
168 let r = mq_open(mq_name_opened, oflag, mode, Some(&initial_attr)); in test_mq_unlink()
/third_party/ltp/include/lapi/
H A Dfcntl.h163 #define TST_OPEN_NEEDS_MODE(oflag) \
164 (((oflag) & O_CREAT) != 0 || ((oflag) & O_TMPFILE) == O_TMPFILE)
/third_party/musl/porting/liteos_a_newlib/kernel/src/
H A Dfs.c37 int _open(const char *path, int oflag, ...) in _open() argument
39 return open(path, oflag); in _open()
84 int _open(const char *path, int oflag, ...) in _open() argument
/third_party/ffmpeg/libavutil/
H A Dfile_open.c42 static int win32_open(const char *filename_utf8, int oflag, int pmode) in win32_open() argument
53 fd = _wsopen(filename_w, oflag, SH_DENYNO, pmode); in win32_open()
56 if (fd != -1 || (oflag & O_CREAT)) in win32_open()
61 return _sopen(filename_utf8, oflag, SH_DENYNO, pmode); in win32_open()
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/
H A D5-1-buildonly.c14 int oflag = O_RDONLY; in test_mq_open_prototype() local
17 res = mq_open(name, oflag); in test_mq_open_prototype()
/third_party/ltp/testcases/open_posix_testsuite/functional/mqueues/
H A Dsend_rev_2.c113 int oflag = O_CREAT | O_NONBLOCK | O_RDWR; in main() local
120 if ((mq1 = mq_open(MQ_NAME_1, oflag, 0777, &mqstat)) == (mqd_t)-1) { in main()
124 if ((mq2 = mq_open(MQ_NAME_2, oflag, 0777, &mqstat)) == (mqd_t)-1) { in main()
H A Dsend_rev_1.c34 int oflag = O_CREAT | O_RDWR; in main() local
49 if (((mqd_t) - 1) == (mq = mq_open(MQ_NAME, oflag, 0777, &mqstat))) { in main()
/third_party/musl/libc-test/src/functionalext/supplement/process/
H A Dposix_spawn_file_actions_addopen.c42 EXPECT_EQ("posix_spawn_file_actions_addopen_0100", ptr->oflag, O_RDWR | O_CREAT); in posix_spawn_file_actions_addopen_0100()
67 EXPECT_EQ("posix_spawn_file_actions_addopen_0200", ptr->oflag, O_RDONLY | O_CREAT); in posix_spawn_file_actions_addopen_0200()
92 EXPECT_EQ("posix_spawn_file_actions_addopen_0300", ptr->oflag, O_WRONLY | O_CREAT); in posix_spawn_file_actions_addopen_0300()
/third_party/rust/crates/nix/src/
H A Ddir.rs38 oflag: OFlag, in open()
41 let fd = fcntl::open(path, oflag, mode)?; in open()
49 oflag: OFlag, in openat()
52 let fd = fcntl::openat(dirfd, path, oflag, mode)?; in openat()
H A Dmqueue.rs146 oflag: MQ_OFlag, in mq_open()
154 oflag.bits(), in mq_open()
159 None => unsafe { libc::mq_open(name.as_ptr(), oflag.bits()) }, in mq_open()
H A Dfcntl.rs196 pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, mode: Mode) -> Result<RawFd> { in open()
198 unsafe { libc::open(cstr.as_ptr(), oflag.bits(), mode.bits() as c_uint) } in open()
210 oflag: OFlag, in openat()
214 unsafe { libc::openat(dirfd, cstr.as_ptr(), oflag.bits(), mode.bits() as c_uint) } in openat()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/
H A D2-1.c40 static mqd_t open_queue(char *qname, int oflag, int mode);
205 static mqd_t open_queue(char *qname, int oflag, int mode) in open_queue() argument
209 queue = mq_open(qname, oflag, mode, NULL); in open_queue()
/third_party/musl/src/locale/
H A Dcatopen.c28 nl_catd catopen(const char *name, int oflag) in catopen() argument
41 lang = oflag ? nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES)) : getenv("LANG"); in catopen()
/third_party/ltp/testcases/open_posix_testsuite/stress/mqueues/
H A Dmulti_send_rev_1.c90 int oflag = O_CREAT | O_NONBLOCK | O_RDWR; in main() local
114 if ((mq[i] = mq_open(MQ_NAME[i], oflag, 0777, &mqstat)) == (mqd_t)-1) { in main()
H A Dmulti_send_rev_2.c79 int oflag = O_CREAT | O_NONBLOCK | O_RDWR; in main() local
102 if ((mq = mq_open(MQ_NAME, oflag, 0777, &mqstat)) == (mqd_t)-1) { in main()
/third_party/node/deps/v8/third_party/zlib/
H A Dgzlib.c98 int oflag; local
220 oflag =
243 fd == -2 ? _wopen(path, oflag, 0666) :
245 open((const char *)path, oflag, 0666));
/third_party/node/deps/zlib/
H A Dgzlib.c91 int oflag; in gz_open() local
213 oflag = in gz_open()
236 fd == -2 ? _wopen(path, oflag, 0666) : in gz_open()
238 OPEN((const char *)path, oflag, 0666)); in gz_open()
/third_party/skia/third_party/externals/zlib/
H A Dgzlib.c98 int oflag; local
220 oflag =
243 fd == -2 ? _wopen(path, oflag, 0666) :
245 open((const char *)path, oflag, 0666));
/third_party/zlib/
H A Dgzlib.c92 int oflag; in gz_open() local
214 oflag = in gz_open()
237 fd == -2 ? _wopen(path, oflag, 0666) : in gz_open()
239 open((const char *)path, oflag, 0666)); in gz_open()
/third_party/musl/src/process/
H A Dfdop.h9 int cmd, fd, srcfd, oflag; member
H A Dposix_spawn_file_actions_addopen.c16 op->oflag = flags; in posix_spawn_file_actions_addopen()
/third_party/libsnd/src/
H A Dfile_io.c568 { int fd, oflag, mode ; in psf_open_fd() local
583 oflag = O_RDONLY | O_BINARY ; in psf_open_fd()
588 oflag = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY ; in psf_open_fd()
593 oflag = O_RDWR | O_CREAT | O_BINARY ; in psf_open_fd()
603 fd = open (pfile->path, oflag) ; in psf_open_fd()
605 fd = open (pfile->path, oflag, mode) ; in psf_open_fd()
/third_party/musl/porting/liteos_a/user/src/process/
H A Dposix_spawn_file_actions_addopen.c16 op->oflag = flags; in posix_spawn_file_actions_addopen()

Completed in 12 milliseconds

123