Searched refs:fd0 (Results 1 – 1 of 1) sorted by relevance
/tools/testing/selftests/proc/ |
D | fd-002-posix-eq.c | 27 int fd0, fd1, fd2; in main() local 32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main() 33 assert(fd0 >= 0); in main() 35 snprintf(buf, sizeof(buf), "/proc/self/fd/%u", fd0); in main() 39 snprintf(buf, sizeof(buf), "/proc/thread-self/fd/%u", fd0); in main() 43 rv = fstat(fd0, &st0); in main()
|