Home
last modified time | relevance | path

Searched refs:oflag (Results 1 – 25 of 51) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/mq_open/
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 = O_CREAT,
[all …]
/third_party/boost/boost/interprocess/sync/posix/
Dsemaphore_wrapper.hpp68 int oflag = 0; in semaphore_open() local
73 handle = ::sem_open(name.c_str(), oflag); in semaphore_open()
80 oflag = (O_CREAT | O_EXCL); in semaphore_open()
81 handle = ::sem_open(name.c_str(), oflag, perm.get_permissions(), count); in semaphore_open()
88 oflag = 0; in semaphore_open()
89 if( (handle = ::sem_open(name.c_str(), oflag)) != BOOST_INTERPROCESS_POSIX_SEM_FAILED in semaphore_open()
/third_party/curl/lib/
Dcurl_multibyte.c89 int curlx_win32_open(const char *filename, int oflag, ...) in curlx_win32_open() argument
99 va_start(param, oflag); in curlx_win32_open()
100 if(oflag & O_CREAT) in curlx_win32_open()
106 result = _wopen(filename_w, oflag, pmode); in curlx_win32_open()
113 return (_open)(filename, oflag, pmode); in curlx_win32_open()
/third_party/boost/boost/interprocess/
Dshared_memory_object.hpp298 int oflag = 0; in priv_open_or_create() local
300 oflag |= O_RDONLY; in priv_open_or_create()
303 oflag |= O_RDWR; in priv_open_or_create()
315 m_handle = shm_open(m_filename.c_str(), oflag, unix_perm); in priv_open_or_create()
320 oflag |= (O_CREAT | O_EXCL); in priv_open_or_create()
321 m_handle = shm_open(m_filename.c_str(), oflag, unix_perm); in priv_open_or_create()
333 m_handle = shm_open(m_filename.c_str(), oflag | (O_CREAT | O_EXCL), unix_perm); in priv_open_or_create()
340 m_handle = shm_open(m_filename.c_str(), oflag, unix_perm); in priv_open_or_create()
/third_party/libxml2/win32/wince/
Dwincecompat.c32 int open(const char *filename,int oflag, ...) in open() argument
36 if ( oflag==(O_WRONLY|O_CREAT) ) in open()
38 else if (oflag==O_RDONLY) in open()
/third_party/boost/libs/iostreams/test/detail/
Dfile_handle.hpp61 int oflag = O_RDWR;
64 oflag |= O_LARGEFILE;
75 int fd = BOOST_IOSTREAMS_FD_OPEN(name.c_str(), oflag, pmode);
/third_party/musl/porting/liteos_a_newlib/kernel/src/
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/
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/
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/musl/libc-test/src/functionalext/supplement/process/
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/boost/libs/iostreams/src/
Dfile_descriptor.cpp202 int oflag = 0; in open() local
210 oflag |= O_CREAT | O_APPEND | O_RDWR; in open()
212 oflag |= O_CREAT | O_TRUNC | O_RDWR; in open()
214 oflag |= O_RDWR; in open()
216 oflag |= O_RDONLY; in open()
220 oflag |= O_CREAT | O_APPEND | O_WRONLY; in open()
222 oflag |= O_CREAT | O_TRUNC | O_WRONLY; in open()
225 oflag |= O_LARGEFILE; in open()
236 int fd = BOOST_IOSTREAMS_FD_OPEN(p.c_str(), oflag, pmode); in open()
/third_party/ltp/testcases/open_posix_testsuite/functional/mqueues/
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()
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/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/
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/
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/libsnd/src/
Dfile_io.c540 { int fd, oflag, mode ; in psf_open_fd() local
555 oflag = O_RDONLY | O_BINARY ; in psf_open_fd()
560 oflag = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY ; in psf_open_fd()
565 oflag = O_RDWR | O_CREAT | O_BINARY ; in psf_open_fd()
575 fd = open (pfile->path.c, oflag) ; in psf_open_fd()
577 fd = open (pfile->path.c, oflag, mode) ; in psf_open_fd()
1212 { int oflag, mode ; in psf_fopen() local
1216 oflag = O_RDONLY | O_BINARY ; in psf_fopen()
1221 oflag = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY ; in psf_fopen()
1226 oflag = O_RDWR | O_CREAT | O_BINARY ; in psf_fopen()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/stress/mqueues/
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()
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()
/third_party/boost/libs/iostreams/test/
Dlarge_file_test.cpp301 int oflag = O_WRONLY | O_CREAT; in create_large_file() local
303 oflag |= O_LARGEFILE; in create_large_file()
309 int fd = BOOST_IOSTREAMS_FD_OPEN(BOOST_FILE_NAME, oflag, pmode); in create_large_file()
/third_party/musl/src/process/
Dfdop.h9 int cmd, fd, srcfd, oflag; member
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/
Dgzlib.c98 int oflag; local
220 oflag =
243 fd == -2 ? _wopen(path, oflag, 0666) :
245 open((const char *)path, oflag, 0666));
/third_party/zlib/
Dgzlib.c100 int oflag; local
222 oflag =
245 fd == -2 ? _wopen(path, oflag, 0666) :
247 open((const char *)path, oflag, 0666));
/third_party/node/deps/zlib/
Dgzlib.c98 int oflag; local
220 oflag =
243 fd == -2 ? _wopen(path, oflag, 0666) :
245 open((const char *)path, oflag, 0666));
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/
Dgzlib.c98 int oflag; local
220 oflag =
243 fd == -2 ? _wopen(path, oflag, 0666) :
245 open((const char *)path, oflag, 0666));
/third_party/skia/third_party/externals/zlib/
Dgzlib.c98 int oflag; local
220 oflag =
243 fd == -2 ? _wopen(path, oflag, 0666) :
245 open((const char *)path, oflag, 0666));

123