Home
last modified time | relevance | path

Searched refs:goodfd (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/syscalls/dup2/
Ddup201.c75 int goodfd = 5; variable
86 {&badfd, &goodfd, EBADF, NULL},
88 {&maxfd, &goodfd, EBADF, NULL},
/external/selinux/libsemanage/tests/
Dtest_semanage_store.c311 int sourcefd, goodfd, badfd, err; in test_semanage_nc_sort() local
327 goodfd = open("nc_sort_sorted", O_RDONLY); in test_semanage_nc_sort()
328 if (goodfd < 0) { in test_semanage_nc_sort()
332 fstat(goodfd, &sb); in test_semanage_nc_sort()
335 (char *)mmap(NULL, good_buf_len, PROT_READ, MAP_PRIVATE, goodfd, 0); in test_semanage_nc_sort()
371 close(goodfd); in test_semanage_nc_sort()