/external/ltp/testcases/kernel/pty/ |
D | ptem01.c | 62 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 …]
|
D | pty01.c | 82 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 …]
|
D | hangup01.c | 168 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/ |
D | open11.c | 124 .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,
|
D | open04.c | 60 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/ |
D | fcntl32.c | 45 {O_RDONLY, O_RDWR}, 48 {O_WRONLY, O_RDWR}, 49 {O_RDWR, O_RDONLY}, 50 {O_RDWR, O_WRONLY}, 51 {O_RDWR, O_RDWR},
|
D | fcntl04.c | 59 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/ |
D | setfsuid04.c | 91 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/ |
D | setreuid07.c | 94 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/ |
D | setresuid04.c | 113 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/ |
D | tun.c | 77 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/ |
D | tomoyo_new_test.c | 141 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/ |
D | mount03.c | 142 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/ |
D | flock05.c | 111 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()
|
D | flock06.c | 95 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/ |
D | fanotify01.c | 97 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/ |
D | pty.py | 58 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/ |
D | diotest4.c | 221 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/ |
D | genlgamma.c | 57 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/ |
D | genfrexp.c | 57 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()
|
D | genmodf.c | 71 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/ |
D | lseek07.c | 73 *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/ |
D | growfiles.c | 164 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/ |
D | openat02.c | 123 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/ |
D | setuid04.c | 96 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()
|