/external/linux-kselftest/tools/testing/selftests/proc/ |
fd-002-posix-eq.c | 27 int fd0, fd1, fd2; local 32 fd0 = open("/", O_DIRECTORY|O_RDONLY); 33 assert(fd0 >= 0); 35 snprintf(buf, sizeof(buf), "/proc/self/fd/%u", fd0); 39 snprintf(buf, sizeof(buf), "/proc/thread-self/fd/%u", fd0); 43 rv = fstat(fd0, &st0);
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
dup203.c | 62 int fd0, fd1, fd2, rval; local 84 if ((fd0 = creat(filename0, 0666)) == -1) 86 if (write(fd0, filename0, strlen(filename0)) == -1) 94 SAFE_CLOSE(cleanup, fd0); 95 if ((fd0 = open(filename0, O_RDONLY)) == -1) 102 TEST(dup2(fd0, fd1)); 120 close(fd0); 135 if ((fd0 = creat(filename0, 0666)) == -1) { 138 if (fcntl(fd0, F_SETFD, 1) == -1) { 140 "on fd0 failed") [all...] |
/frameworks/av/media/codec2/sfplugin/ |
C2OMXNode.cpp | 62 android::base::unique_fd &&fd0, 67 std::move(work), fenceFd, std::move(fd0), std::move(fd1)); 97 uniqueFds.push_back(std::move(queue.workList.front().fd0)); 137 fd0(std::move(uniqueFd0)), 142 android::base::unique_fd fd0; member in struct:android::C2OMXNode::QueueThread::WorkFence 341 android::base::unique_fd fd0, fd1; local 359 fd0.reset(nativeHandle->numFds > 0 ? nativeHandle->data[0] : -1); 364 (void)fd0.release(); 411 mQueueThread->queue(comp, fenceFd, std::move(work), std::move(fd0), std::move(fd1));
|
/external/openssh/ |
monitor.c | 1440 int res, fd0; local [all...] |