Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 25 of 1002) sorted by relevance

12345678910>>...41

/external/ltp/testcases/kernel/pty/
Dptem01.c62 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test1()
77 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test1()
141 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test2()
156 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test2()
219 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test3()
234 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test3()
267 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test4()
282 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test4()
286 if ((slavefd2 = open(slavename, O_RDWR)) < 0) { in test4()
290 if ((slavefd3 = open(slavename, O_RDWR)) < 0) { in test4()
[all …]
Dpty01.c82 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test1()
107 slavefd = open(slavename, O_RDWR); in test1()
116 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test1()
200 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test2()
215 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test2()
256 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test3()
277 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test4()
292 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test4()
294 slavefd2 = open(slavename, O_RDWR); in test4()
300 slavefd3 = open(slavename, O_RDWR); in test4()
[all …]
Dhangup01.c168 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
180 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
192 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
217 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in main()
/external/ltp/testcases/kernel/syscalls/open/
Dopen11.c124 .flags = O_RDWR,
131 .flags = O_RDWR | O_SYNC,
138 .flags = O_RDWR | O_TRUNC,
155 .flags = O_RDWR,
186 .flags = O_RDWR,
210 .flags = O_RDWR,
231 .flags = O_RDWR,
255 .flags = O_RDWR,
265 .flags = O_RDWR | O_CREAT,
Dopen04.c60 TEST(open(fname, O_RDWR | O_CREAT, 0777)); in main()
92 first = fd = open(fname, O_RDWR | O_CREAT, 0777); in setup()
107 fd = open(fname, O_RDWR | O_CREAT, 0777); in setup()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl32.c45 {O_RDONLY, O_RDWR},
48 {O_WRONLY, O_RDWR},
49 {O_RDWR, O_RDONLY},
50 {O_RDWR, O_WRONLY},
51 {O_RDWR, O_RDWR},
Dfcntl04.c59 if ((TEST_RETURN & O_ACCMODE) != O_RDWR) { in verify_fcntl()
62 TEST_RETURN & O_ACCMODE, O_RDWR); in verify_fcntl()
73 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700); in setup()
/external/ltp/testcases/kernel/syscalls/setfsuid/
Dsetfsuid04.c91 TEST(open(testfile, O_RDWR)); in do_master_child()
117 TEST(open(testfile, O_RDWR)); in do_master_child()
152 TEST(open(testfile, O_RDWR)); in do_master_child()
178 fd = SAFE_OPEN(cleanup, testfile, O_CREAT | O_RDWR, 0644); in setup()
/external/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid07.c94 TEST(tst_fd = open(testfile, O_RDWR)); in do_master_child()
120 TEST(tst_fd2 = open(testfile, O_RDWR)); in do_master_child()
154 TEST(tst_fd = open(testfile, O_RDWR)); in do_master_child()
180 fd = SAFE_OPEN(cleanup, testfile, O_CREAT | O_RDWR, 0644); in setup()
/external/ltp/testcases/kernel/syscalls/setresuid/
Dsetresuid04.c113 TEST(tst_fd = open(testfile, O_RDWR)); in do_master_child()
139 TEST(tst_fd2 = open(testfile, O_RDWR)); in do_master_child()
177 TEST(tst_fd = open(testfile, O_RDWR)); in do_master_child()
206 fd = SAFE_OPEN(cleanup, testfile, O_CREAT | O_RDWR, 0644); in setup()
/external/honggfuzz/examples/linux_kernel_ip/
Dtun.c77 int fd = open("/dev/net/tun", O_RDWR); in main()
158 if (fcntl(fd, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
161 if (fcntl(tcp_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
164 if (fcntl(udp_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
167 if (fcntl(sctp_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
170 if (fcntl(udp_lite_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_new_test.c141 int fd = open("/dev/null", O_RDWR); in test_ioctl_dev_null()
282 result = open("/tmp/testfile16", O_RDWR, 0600); in test_file_open_16()
287 result = open("/tmp/testfile17", O_CREAT | O_RDWR, 0600); in test_file_open_17()
292 result = open("/tmp/testfile18", O_TRUNC | O_RDWR, 0600); in test_file_open_18()
297 result = open("/tmp/testfile19", O_TRUNC | O_CREAT | O_RDWR, 0600); in test_file_open_19()
302 result = open("/tmp/testfile20", O_APPEND | O_RDWR, 0600); in test_file_open_20()
307 result = open("/tmp/testfile21", O_APPEND | O_CREAT | O_RDWR, 0600); in test_file_open_21()
312 result = open("/tmp/testfile22", O_APPEND | O_TRUNC | O_RDWR, 0600); in test_file_open_22()
317 result = open("/tmp/testfile23", O_APPEND | O_TRUNC | O_CREAT | O_RDWR, in test_file_open_23()
/external/ltp/testcases/kernel/syscalls/mount/
Dmount03.c142 fd = open(file, O_CREAT | O_RDWR, S_IRWXU); in test_rwflag()
160 fd = open(file, O_RDWR, S_IRWXU); in test_rwflag()
181 fd = open(file, O_CREAT | O_RDWR, S_IRWXU); in test_rwflag()
201 fildes = open(file, O_RDWR | O_CREAT, FILE_MODE); in test_rwflag()
251 fd = open(file, O_CREAT | O_RDWR, S_IRWXU); in test_rwflag()
293 fd = open(file, O_CREAT | O_RDWR, S_IRWXU); in test_rwflag()
/external/ltp/testcases/kernel/syscalls/flock/
Dflock05.c111 fd1 = open(filename, O_RDWR); in main()
132 fd1 = open(filename, O_RDWR); in main()
185 fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0666); in setup()
Dflock06.c95 fd1 = open(filename, O_RDWR); in main()
107 fd2 = open(filename, O_RDWR); in main()
162 fd = SAFE_OPEN(tst_rmdir, filename, O_CREAT | O_TRUNC | O_RDWR, 0666); in setup()
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify01.c97 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700); in test01()
130 fd = SAFE_OPEN(fname, O_RDWR); in test01()
183 fd = SAFE_OPEN(fname, O_RDWR); in test01()
193 fd = SAFE_OPEN(fname, O_RDWR); in test01()
315 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700); in setup()
/external/python/cpython2/Lib/
Dpty.py58 tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0)
66 fd = os.open(pty_name, os.O_RDWR)
78 result = os.open(tty_name, os.O_RDWR)
122 tmp_fd = os.open(os.ttyname(STDOUT_FILENO), os.O_RDWR)
/external/ltp/testcases/kernel/io/direct_io/
Ddiotest4.c221 if ((fd = open(filename, O_DIRECT | O_RDWR | O_CREAT, 0666)) < 0) { in main()
241 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) { in main()
344 if ((newfd = open("/dev/null", O_DIRECT | O_RDWR)) < 0) { in main()
361 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) { in main()
442 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) { in main()
465 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) { in main()
510 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) { in main()
524 if ((fd = open(filename, O_DIRECT | O_RDWR | O_SYNC)) < 0) { in main()
/external/ltp/testcases/misc/math/float/bessel/
Dgenlgamma.c57 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
58 fpsi = open(F_namesign, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
92 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
/external/ltp/testcases/misc/math/float/exp_log/
Dgenfrexp.c57 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
58 fp1 = open(F_name1, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
91 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
Dgenmodf.c71 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
72 fp1 = open(F_name1, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Result_file()
105 fp = open(F_name, O_RDWR | O_CREAT | O_TRUNC, 0777); in create_Data_file()
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek07.c73 *tc->fd = SAFE_OPEN(tc->fname, O_RDWR); in verify_lseek()
88 fd1 = SAFE_OPEN(TFILE1, O_RDWR | O_CREAT, 0644); in setup()
89 fd2 = SAFE_OPEN(TFILE2, O_RDWR | O_CREAT, 0644); in setup()
/external/ltp/testcases/kernel/fs/doio/
Dgrowfiles.c164 int open_flags = O_RDWR | O_CREAT | O_LARGEFILE; /* open flags */
167 int open_flags = O_RDWR | O_CREAT; /* open flags */
279 O_RDWR | O_CREAT,
280 O_RDWR | O_CREAT | O_RAW,
281 O_RDWR | O_CREAT | O_BIG,
282 O_RDWR | O_CREAT | O_APPEND,
283 O_RDWR | O_CREAT | O_NDELAY,
284 O_RDWR | O_CREAT | O_PLACE,
285 O_RDWR | O_CREAT | O_SYNC,
286 O_RDWR | O_CREAT | O_RAW | O_SYNC,
[all …]
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat02.c123 TEST(openat(AT_FDCWD, TEST_FILE, O_APPEND | O_RDWR, 0777)); in testfunc_append()
154 TEST(openat(AT_FDCWD, TEST_FILE, O_CLOEXEC | O_RDWR, 0777)); in testfunc_cloexec()
200 O_LARGEFILE | O_RDWR | O_CREAT, 0777); in testfunc_largefile()
280 TEST(openat(AT_FDCWD, TEST_FILE, O_TRUNC | O_RDWR, 0777)); in testfunc_trunc()
/external/ltp/testcases/kernel/syscalls/setuid/
Dsetuid04.c96 TEST(tst_fd = open(testfile, O_RDWR)); in do_master_child()
119 TEST(tst_fd2 = open(testfile, O_RDWR)); in do_master_child()
159 fd = SAFE_OPEN(cleanup, testfile, O_CREAT | O_RDWR, 0644); in setup()

12345678910>>...41