Home
last modified time | relevance | path

Searched refs:badfd (Results 1 – 9 of 9) 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/linkat/
Dlinkat01.c87 static int olddirfd, newdirfd = -1, cwd_fd = AT_FDCWD, stdinfd = 0, badfd = variable
143 &badfd, TEST_DIR1 "/" TEST_FILE1, &newdirfd, TEST_FILE1, 0,
147 &olddirfd, TEST_FILE1, &badfd, TEST_DIR2 "/" TEST_FILE1, 0,
151 &badfd, spathname, &newdirfd, TEST_FILE1, 0, 0, 0, 0},
154 &olddirfd, TEST_FILE1, &badfd, dpathname, 0,
/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/splice/
Dsplice03.c53 static int badfd = -1; variable
67 { &badfd, NULL, &pipes[1], NULL, EBADF },
68 { &pipes[0], NULL, &badfd, NULL, EBADF },
/external/ltp/testcases/kernel/syscalls/flock/
Dflock02.c20 static int badfd = -1; variable
28 {&badfd, LOCK_SH, EBADF},
/external/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c78 static int badfd = 100; variable
98 { &badfd, TESTFILE, &badfd, NEW_TESTFILE, EBADF },
/external/ltp/testcases/kernel/syscalls/read/
Dread02.c51 static int badfd = -1; variable
66 {&badfd, &bufaddr, 1, EBADF},
/external/python/cpython2/Modules/_io/
Dfileio.c176 goto badfd; in check_fd()
184 goto badfd; in check_fd()
189 badfd: in check_fd()
/external/python/cpython3/Lib/test/
Dtest_socket.py3038 badfd = -0x5555 variable in SCMRightsTest
3250 array.array("i", [self.badfd]).tobytes()[:-1])])
3278 array.array("i", [fd0, self.badfd]).tobytes()[:-1]),