Searched refs:goodfd (Results 1 – 2 of 2) sorted by relevance
/external/ltp/testcases/kernel/syscalls/dup2/ |
D | dup201.c | 75 int goodfd = 5; variable 86 {&badfd, &goodfd, EBADF, NULL}, 88 {&maxfd, &goodfd, EBADF, NULL},
|
/external/selinux/libsemanage/tests/ |
D | test_semanage_store.c | 311 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()
|