Searched refs:badfd (Results 1 – 6 of 6) sorted by relevance
/external/selinux/libsemanage/tests/ |
D | test_semanage_store.c | 311 int sourcefd, goodfd, badfd, err; in test_semanage_nc_sort() local 338 badfd = open("nc_sort_malformed", O_RDONLY); in test_semanage_nc_sort() 339 if (badfd < 0) { in test_semanage_nc_sort() 343 fstat(badfd, &sb); in test_semanage_nc_sort() 346 (char *)mmap(NULL, bad_buf_len, PROT_READ, MAP_PRIVATE, badfd, 0); in test_semanage_nc_sort() 368 close(badfd); in test_semanage_nc_sort()
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
D | dup201.c | 76 int badfd = -1; variable 90 &badfd, &goodfd, EBADF, NULL}, 96 &mystdout, &badfd, EBADF, NULL},
|
/external/ltp/testcases/kernel/syscalls/linkat/ |
D | linkat01.c | 89 static int olddirfd, newdirfd = -1, cwd_fd = AT_FDCWD, stdinfd = 0, badfd = variable 145 &badfd, TEST_DIR1 "/" TEST_FILE1, &newdirfd, TEST_FILE1, 0, 149 &olddirfd, TEST_FILE1, &badfd, TEST_DIR2 "/" TEST_FILE1, 0, 153 &badfd, spathname, &newdirfd, TEST_FILE1, 0, 0, 0, 0}, 156 &olddirfd, TEST_FILE1, &badfd, dpathname, 0,
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice03.c | 54 static int badfd = -1; variable 68 { &badfd, NULL, &pipes[1], NULL, EBADF }, 69 { &pipes[0], NULL, &badfd, NULL, EBADF },
|
/external/ltp/testcases/kernel/syscalls/renameat/ |
D | renameat01.c | 79 static int badfd = 100; variable 99 { &badfd, TESTFILE, &badfd, NEW_TESTFILE, EBADF },
|
/external/ltp/testcases/kernel/syscalls/read/ |
D | read02.c | 54 static int badfd = -1; variable 69 {&badfd, (void **)&buf, 1, EBADF},
|