/external/ltp/testcases/kernel/fs/fs_di/ |
H A D | frag.c | 48 int bytes_read = 0, bytes_written = 0, fd1 = -1, fd2 = -1; local 96 fd1 = fileno(fp_frag1); 99 fsync(fd1);
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
H A D | fchmod06.c | 46 static int fd1; variable 58 {"EPERM", &fd1, 0644, EPERM}, 151 fd1 = SAFE_OPEN(cleanup, "tfile_1", O_RDWR | O_CREAT, 0666); 167 if (fd1 > 0 && close(fd1)) 168 tst_resm(TWARN | TERRNO, "close(fd1) failed"); 171 tst_resm(TWARN | TERRNO, "close(fd1) failed");
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
H A D | fchown02.c | 51 static int fd1; variable 62 {&fd1, TESTFILE1, "Setuid/Setgid bits cleared", 700, 701, 1}, 143 fd1 = SAFE_OPEN(cleanup, TESTFILE1, O_RDWR | O_CREAT, FILE_MODE); 151 if (fd1 > 0 && close(fd1)) 152 tst_resm(TWARN | TERRNO, "Failed to close fd1");
|
H A D | fchown04.c | 52 static int fd1; variable 62 {&fd1, EPERM}, 114 fd1 = SAFE_OPEN(cleanup, "tfile_1", O_RDWR | O_CREAT, 0666); 161 if (fd1 > 0 && close(fd1)) 162 tst_resm(TWARN | TERRNO, "Failed to close fd1");
|
/external/ltp/testcases/kernel/syscalls/llseek/ |
H A D | llseek02.c | 98 int fd1; /* file handle for testfile1 */ variable 141 fildes = fd1; 221 if ((fd1 = open(TEMP_FILE1, O_RDWR | O_CREAT, FILE_MODE)) == -1) { 228 if (write(fd1, write_buff, sizeof(write_buff)) <= 0) { 270 if (close(fd1) < 0) {
|
/external/ltp/testcases/kernel/io/direct_io/ |
H A D | diotest_routines.c | 114 int fd1, fd2; local 119 if ((fd1 = open(f1, O_RDONLY)) == -1) { 127 close(fd1); 132 while ((ret1 = read(fd1, buf1, BUFSIZ)) > 0) { 138 close(fd1); 151 close(fd1); 157 close(fd1);
|
H A D | diotest2.c | 72 int fd1 = -1; variable 254 if ((fd1 = open(filename, O_CREAT | O_EXCL, 0600)) == -1) 257 close(fd1); 260 if ((fd1 = open(filename, O_DIRECT, 0600)) == -1) 263 close(fd1); 269 if (fd1 != -1)
|
H A D | diotest3.c | 228 static int fd1 = -1; variable 347 if ((fd1 = open(filename, O_CREAT | O_EXCL, 0600)) < 0) 350 close(fd1); 353 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) 356 close(fd1); 361 if (fd1 != -1)
|
H A D | diotest5.c | 80 static int fd1 = -1; variable 295 if ((fd1 = open(filename, O_CREAT | O_EXCL, 0600)) < 0) { 299 close(fd1); 302 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) { 307 close(fd1); 312 if (fd1 != -1)
|
H A D | diotest6.c | 68 static int fd1 = -1; variable 373 if ((fd1 = open(filename, O_CREAT | O_EXCL, 0600)) < 0) { 377 close(fd1); 380 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) { 385 close(fd1); 390 if (fd1 != -1)
|
/external/valgrind/none/tests/ |
H A D | fdleak_cmsg.c | 38 int s, fd1, fd2; local 41 fd1 = DO( open(filea, O_RDWR | O_CREAT | O_TRUNC, 0750) ); 71 ((int *)CMSG_DATA(cmsg))[0] = fd1; 86 int s, fd1 = -1, fd2 = -1, size, count = 0, ret; local 135 fd1 = ((int *)CMSG_DATA(cmsg))[0]; 142 if (fd1 != -1) write(fd1, "Yeah 1\n", 8);
|
/external/ltp/testcases/kernel/syscalls/pread/ |
H A D | pread03.c | 91 int fd1; variable 117 TEST(pread(fd1, read_buf[0], nbytes, offset)); 170 if ((fd1 = open(PREAD_TEMPDIR, O_RDONLY)) < 0) {
|
H A D | pread02.c | 86 int fd1; variable 136 fildes = fd1; 241 if ((fd1 = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) { 293 if (close(fd1) < 0) {
|
/external/valgrind/memcheck/tests/ |
H A D | file_locking.c | 79 int fd1; local 89 if ((fd1 = open_lock_and_map("parent", filename)) >= 0) 122 close(fd1);
|
/external/ltp/testcases/kernel/syscalls/rename/ |
H A D | rename10.c | 83 char *fd1; member in struct:test_case_t 120 TEST(rename(TC[i].fd1, TC[i].fd2));
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
H A D | lseek10.c | 100 int fd1; /* file handle for testfile1 */ variable 145 fildes = fd1; 228 if ((fd1 = open(TEMP_FILE1, O_RDWR)) < 0) { 302 if (close(fd1) < 0) {
|
/external/ltp/testcases/kernel/syscalls/open/ |
H A D | open07.c | 80 static int fd1, fd2; variable 165 fd1 = creat(file1, 00700); 166 if (fd1 < 0) 258 close(fd1);
|
/external/ltp/testcases/kernel/syscalls/remap_file_pages/ |
H A D | remap_file_pages01.c | 109 int fd1, fd2; /* File descriptors used at the test */ variable 133 test_nonlinear(fd1); 246 if ((fd1 = open(fname, O_RDWR | O_CREAT | O_TRUNC, S_IRWXU)) < 0) { 267 close(fd1);
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
H A D | dup201.c | 78 int fd, fd1; variable 141 for (j = fd1; j < maxfd; j++) {
|
/external/mesa3d/src/gallium/winsys/freedreno/drm/ |
H A D | freedreno_drm_winsys.c | 78 int fd1 = pointer_to_intptr(key1); local 81 fstat(fd1, &stat1);
|
/external/ltp/testcases/kernel/fs/dmapi/ |
H A D | event_am.c | 306 int fd1, fd2; local 314 } else if ((fd1 = open(DummySubdir, O_DIRECTORY)) == -1) { 317 close(fd1); 320 if (fd1 == -1 || fd2 == -1 || fd1 == fd2) { 330 DMLOG_PRINT(DMLVL_DEBUG, "close(%d) #1\n", fd1); 331 rc = close(fd1); 333 fd1, rc); 531 int fd1, fd2; local 537 if ((fd1 804 int fd1, fd2; local 1064 int fd1, fd2; local 1228 int fd1, fd2; local 1385 int fd1, fd2; local [all...] |
/external/ltp/testcases/kernel/syscalls/ppoll/ |
H A D | ppoll01.c | 68 static int fd1 = -1; variable 189 fd1 = SAFE_OPEN("testfile1", O_CREAT | O_EXCL | O_RDWR, 191 fds_good[0].fd = fd1; 205 if (fd1 != -1) 206 SAFE_CLOSE(fd1);
|
/external/linux-kselftest/tools/testing/selftests/net/ |
H A D | reuseport_bpf.c | 307 int fd1, fd2, opt; local 310 fd1 = socket(p.recv_family, p.protocol, 0); 311 if (fd1 < 0) 318 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) 323 attach_ebpf(fd1, 10); 326 if (bind(fd1, addr, sockaddr_size())) 388 int fd1, fd2, opt = 1; local 391 fd1 = socket(AF_INET, SOCK_DGRAM, 0); 392 if (fd1 < 0) 397 if (setsockopt(fd1, SOL_SOCKE [all...] |
/external/mesa3d/src/gallium/winsys/etnaviv/drm/ |
H A D | etnaviv_drm_winsys.c | 106 int fd1 = pointer_to_intptr(key1); local 110 fstat(fd1, &stat1);
|
/external/mesa3d/src/gallium/winsys/nouveau/drm/ |
H A D | nouveau_drm_winsys.c | 50 int fd1 = pointer_to_intptr(key1); local 53 fstat(fd1, &stat1);
|