Home
last modified time | relevance | path

Searched refs:badfd (Results 1 – 6 of 6) sorted by relevance

/external/selinux/libsemanage/tests/
Dtest_semanage_store.c311 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/
Ddup201.c76 int badfd = -1; variable
90 &badfd, &goodfd, EBADF, NULL},
96 &mystdout, &badfd, EBADF, NULL},
/external/ltp/testcases/kernel/syscalls/linkat/
Dlinkat01.c89 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/
Dsplice03.c54 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/
Drenameat01.c79 static int badfd = 100; variable
99 { &badfd, TESTFILE, &badfd, NEW_TESTFILE, EBADF },
/external/ltp/testcases/kernel/syscalls/read/
Dread02.c54 static int badfd = -1; variable
69 {&badfd, (void **)&buf, 1, EBADF},