/third_party/node/test/parallel/ |
D | test-fs-open-flags.js | 37 O_RDWR = 0, 46 assert.strictEqual(stringToFlags('r+'), O_RDWR); 47 assert.strictEqual(stringToFlags('rs+'), O_RDWR | O_SYNC); 48 assert.strictEqual(stringToFlags('sr+'), O_RDWR | O_SYNC); 50 assert.strictEqual(stringToFlags('w+'), O_TRUNC | O_CREAT | O_RDWR); 52 assert.strictEqual(stringToFlags('a+'), O_APPEND | O_CREAT | O_RDWR); 56 assert.strictEqual(stringToFlags('wx+'), O_TRUNC | O_CREAT | O_RDWR | O_EXCL); 57 assert.strictEqual(stringToFlags('xw+'), O_TRUNC | O_CREAT | O_RDWR | O_EXCL); 62 assert.strictEqual(stringToFlags('ax+'), O_APPEND | O_CREAT | O_RDWR | O_EXCL); 63 assert.strictEqual(stringToFlags('xa+'), O_APPEND | O_CREAT | O_RDWR | O_EXCL); [all …]
|
/third_party/ltp/testcases/kernel/syscalls/openat2/ |
D | openat201.c | 27 {&dir_fd, TEST_FILE, O_RDWR, S_IRWXU, 0, &how, sizeof(*how)}, 30 {&dir_fd, TEST_FILE, O_RDWR, S_IRWXU, RESOLVE_NO_XDEV, &how, sizeof(*how)}, 31 {&dir_fd, TEST_FILE, O_RDWR, S_IRWXU, RESOLVE_NO_MAGICLINKS, &how, sizeof(*how)}, 32 {&dir_fd, TEST_FILE, O_RDWR, S_IRWXU, RESOLVE_NO_SYMLINKS, &how, sizeof(*how)}, 33 {&dir_fd, TEST_FILE, O_RDWR, S_IRWXU, RESOLVE_BENEATH, &how, sizeof(*how)}, 34 {&dir_fd, TEST_FILE, O_RDWR, S_IRWXU, RESOLVE_IN_ROOT, &how, sizeof(*how)}, 35 {&fd_atcwd, TEST_FILE, O_RDWR, S_IRWXU, 0, &how, sizeof(*how)}, 38 {&fd_atcwd, TEST_FILE, O_RDWR, S_IRWXU, RESOLVE_NO_XDEV, &how, sizeof(*how)}, 39 {&fd_atcwd, TEST_FILE, O_RDWR, S_IRWXU, RESOLVE_NO_MAGICLINKS, &how, sizeof(*how)}, 40 {&fd_atcwd, TEST_FILE, O_RDWR, S_IRWXU, RESOLVE_NO_SYMLINKS, &how, sizeof(*how)}, [all …]
|
D | openat203.c | 26 {"invalid-dfd", -1, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how), EBADF}, 29 {"invalid-mode", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, -1, 0, &how, sizeof(*how), EINVAL}, 30 …{"invalid-resolve", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, -1, &how, sizeof(*how), EINVAL… 31 {"invalid-size-zero", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, 0, EINVAL}, 32 …{"invalid-size-small", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how) - 1, … 33 …{"invalid-size-big", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how) + 1, EF… 34 …{"invalid-size-big-with-pad", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, (struct open_how …
|
/third_party/ltp/testcases/kernel/pty/ |
D | ptem01.c | 59 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test1() 74 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test1() 138 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test2() 153 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test2() 216 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test3() 231 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test3() 264 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test4() 279 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test4() 283 if ((slavefd2 = open(slavename, O_RDWR)) < 0) { in test4() 287 if ((slavefd3 = open(slavename, O_RDWR)) < 0) { in test4() [all …]
|
D | pty01.c | 79 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test1() 104 slavefd = open(slavename, O_RDWR); in test1() 113 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test1() 197 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test2() 212 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test2() 253 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test3() 274 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in test4() 289 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test4() 291 slavefd2 = open(slavename, O_RDWR); in test4() 297 slavefd3 = open(slavename, O_RDWR); in test4() [all …]
|
D | hangup01.c | 165 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child() 177 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child() 189 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child() 214 masterfd = SAFE_OPEN(NULL, MASTERCLONE, O_RDWR); in main()
|
/third_party/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 | 31 if ((TST_RET & O_ACCMODE) != O_RDWR) { in verify_fcntl() 34 TST_RET & O_ACCMODE, O_RDWR); in verify_fcntl() 45 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open11.c | 88 .flags = O_RDWR, 95 .flags = O_RDWR | O_SYNC, 102 .flags = O_RDWR | O_TRUNC, 117 .flags = O_RDWR, 146 .flags = O_RDWR, 168 .flags = O_RDWR, 189 .flags = O_RDWR, 211 .flags = O_RDWR, 219 .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()
|
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/ |
D | copy_file_range02.c | 201 fd_src = SAFE_OPEN(FILE_SRC_PATH, O_RDWR | O_CREAT, 0664); in setup() 202 fd_dest = SAFE_OPEN(FILE_DEST_PATH, O_RDWR | O_CREAT, 0664); in setup() 207 O_RDWR | O_CREAT | O_APPEND, 0664); in setup() 208 fd_immutable = SAFE_OPEN(FILE_IMMUTABLE_PATH, O_RDWR | O_CREAT, 0664); in setup() 209 fd_swapfile = SAFE_OPEN(FILE_SWAP_PATH, O_RDWR | O_CREAT, 0600); in setup() 212 fd_blkdev = SAFE_OPEN(dev_path, O_RDWR, 0600); in setup() 214 fd_chrdev = SAFE_OPEN(FILE_CHRDEV, O_RDWR, 0600); in setup() 215 fd_fifo = SAFE_OPEN(FILE_FIFO, O_RDWR, 0600); in setup() 224 fd_copy = SAFE_OPEN(FILE_COPY_PATH, O_RDWR | O_CREAT | O_TRUNC, 0664); in setup()
|
/third_party/ntfs-3g/libntfs-3g/ |
D | unix_io.c | 141 if (!NDevBlock(dev) && (flags & O_RDWR) == O_RDWR) in ntfs_device_unix_io_open() 147 if ((err == EACCES) && ((flags & O_RDWR) == O_RDWR)) in ntfs_device_unix_io_open() 153 if (NDevBlock(dev) && ((flags & O_RDWR) == O_RDWR)) { in ntfs_device_unix_io_open() 167 if ((flags & O_RDWR) != O_RDWR) in ntfs_device_unix_io_open()
|
/third_party/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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/ltp/testcases/kernel/syscalls/flock/ |
D | flock06.c | 26 fd1 = SAFE_OPEN("testfile", O_RDWR); in verify_flock() 33 fd2 = SAFE_OPEN("testfile", O_RDWR); in verify_flock() 60 fd = SAFE_OPEN("testfile", O_CREAT | O_TRUNC | O_RDWR, 0666); in setup()
|
D | flock03.c | 29 fd2 = SAFE_OPEN("testfile", O_RDWR); in childfunc() 62 fd1 = SAFE_OPEN("testfile", O_RDWR); in verify_flock() 88 fd = SAFE_OPEN("testfile", O_CREAT | O_TRUNC | O_RDWR, 0666); in setup()
|
D | flock04.c | 32 fd1 = SAFE_OPEN("testfile", O_RDWR); in child() 52 fd2 = SAFE_OPEN("testfile", O_RDWR); in verify_flock() 82 fd = SAFE_OPEN("testfile", O_CREAT | O_TRUNC | O_RDWR, 0644); in setup()
|
/third_party/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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek07.c | 61 *tc->fd = SAFE_OPEN(tc->fname, O_RDWR); in verify_lseek() 76 fd1 = SAFE_OPEN(TFILE1, O_RDWR | O_CREAT, 0644); in setup() 77 fd2 = SAFE_OPEN(TFILE2, O_RDWR | O_CREAT, 0644); in setup()
|
/third_party/skia/third_party/externals/swiftshader/src/WSI/ |
D | DisplaySurfaceKHR.cpp | 34 int fd = open("/dev/dri/card0", O_RDWR); in GetDisplayModeProperties() 51 int fd = open("/dev/dri/card0", O_RDWR); in GetDisplayPlaneCapabilities() 84 int fd = open("/dev/dri/card0", O_RDWR); in GetDisplayPlaneSupportedDisplays() 100 int fd = open("/dev/dri/card0", O_RDWR); in GetPhysicalDeviceDisplayPlaneProperties() 117 int fd = open("/dev/dri/card0", O_RDWR); in GetPhysicalDeviceDisplayProperties() 144 fd = open("/dev/dri/card0", O_RDWR); in DisplaySurfaceKHR()
|