Home
last modified time | relevance | path

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

/system/bt/osi/test/
Deager_reader_test.cpp75 pipe(pipefd); in SetUp()
84 int pipefd[2]; member in EagerReaderTest
118 …eager_reader_t *reader = eager_reader_new(pipefd[0], &allocator_malloc, BUFFER_SIZE, SIZE_MAX, "te… in TEST_F()
124 …eager_reader_t *reader = eager_reader_new(pipefd[0], &allocator_malloc, BUFFER_SIZE, SIZE_MAX, "te… in TEST_F()
129 TEMP_FAILURE_RETRY(write(pipefd[1], small_data, strlen(small_data))); in TEST_F()
137 …eager_reader_t *reader = eager_reader_new(pipefd[0], &allocator_malloc, BUFFER_SIZE, SIZE_MAX, "te… in TEST_F()
142 TEMP_FAILURE_RETRY(write(pipefd[1], large_data, strlen(large_data))); in TEST_F()
/system/netd/server/
DTetherController.cpp134 int pipefd[2]; in startTethering() local
136 if (pipe(pipefd) < 0) { in startTethering()
147 close(pipefd[0]); in startTethering()
148 close(pipefd[1]); in startTethering()
153 close(pipefd[1]); in startTethering()
154 if (pipefd[0] != STDIN_FILENO) { in startTethering()
155 if (dup2(pipefd[0], STDIN_FILENO) != STDIN_FILENO) { in startTethering()
159 close(pipefd[0]); in startTethering()
190 close(pipefd[0]); in startTethering()
192 mDaemonFd = pipefd[1]; in startTethering()