Home
last modified time | relevance | path

Searched refs:readfd (Results 1 – 23 of 23) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev03.c37 static int mapfd = -1, writefd = -1, readfd = -1; variable
97 readfd = SAFE_OPEN(TEMPFILE, O_RDONLY); in run()
101 total_read += SAFE_READ(0, readfd, readbuf+total_read, in run()
106 SAFE_CLOSE(readfd); in run()
131 if (readfd >= 0) in cleanup()
132 SAFE_CLOSE(readfd); in cleanup()
/third_party/ltp/testcases/kernel/mem/thp/
Dthp04.c38 static int writefd = -1, readfd = -1; variable
96 readfd = SAFE_OPEN("/proc/self/mem", O_RDWR); in setup()
110 SAFE_LSEEK(readfd, (off_t)write_ptr, SEEK_SET); in thread_run()
111 SAFE_READ(1, readfd, &c, sizeof(int)); in thread_run()
150 if (readfd >= 0) in cleanup()
151 SAFE_CLOSE(readfd); in cleanup()
/third_party/pulseaudio/src/pulsecore/
Dsrbchannel.c226 int readfd; in pa_srbchannel_new() local
264 readfd = pa_fdsem_get(sr->sem_read); in pa_srbchannel_new()
267 pa_log("Enabling io event on fd %d", readfd); in pa_srbchannel_new()
270 sr->read_event = m->io_new(m, readfd, PA_IO_EVENT_INPUT, semread_cb, sr); in pa_srbchannel_new()
308 sr->sem_read = pa_fdsem_open_shm(&srh->read_semdata, t->readfd); in pa_srbchannel_new_from_template()
317 temp = t->readfd; t->readfd = t->writefd; t->writefd = temp; in pa_srbchannel_new_from_template()
320 pa_log("Enabling io event on fd %d", t->readfd); in pa_srbchannel_new_from_template()
323 sr->read_event = m->io_new(m, t->readfd, PA_IO_EVENT_INPUT, semread_cb, sr); in pa_srbchannel_new_from_template()
336 t->readfd = pa_fdsem_get(sr->sem_read); in pa_srbchannel_export()
Dsrbchannel.h33 int readfd, writefd; member
Dprotocol-native.c2525 fdlist[0] = srbt.readfd; in setup_srbchannel()
/third_party/ltp/testcases/kernel/syscalls/select/
Dselect01.c28 int *readfd; member
72 if (FD_ISSET(*tc->readfd, tc->readfds)) in run()
73 tst_res(TPASS, "readfds bit %i is set", *tc->readfd); in run()
75 tst_res(TFAIL, "readfds bit %i is not set", *tc->readfd); in run()
/third_party/weston/compositor/
Dcms-colord.c52 int readfd; member
391 rc = read(cms->readfd, &tmp, 1); in colord_dispatch_all_pending()
461 if (cms->readfd) in colord_module_destroy()
462 close(cms->readfd); in colord_module_destroy()
575 cms->readfd = fd[0]; in wet_module_init()
579 cms->readfd, in wet_module_init()
/third_party/libuv/test/
Dtest-pipe-getsockname.c214 int readfd; in TEST_IMPL() local
224 readfd = _open_osfhandle((intptr_t)readh, _O_RDONLY); in TEST_IMPL()
226 r = uv_pipe_open(&pipe_client, readfd); in TEST_IMPL()
/third_party/glib/tests/
Dgio-test.c369 int readfd, writefd; in main() local
381 sscanf (argv[2], "%d:%d%n", &readfd, &writefd, &n); in main()
387 srand (tv.tv_sec ^ (tv.tv_usec / 1000) ^ readfd ^ (writefd << 4)); in main()
/third_party/curl/lib/vtls/
Drustls.c396 curl_socket_t readfd; in cr_connect_nonblocking() local
434 readfd = wants_read?sockfd:CURL_SOCKET_BAD; in cr_connect_nonblocking()
436 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, 0); in cr_connect_nonblocking()
Dmesalink.c549 curl_socket_t readfd = ssl_connect_2_reading == connssl->connecting_state in mesalink_connect_common() local
553 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in mesalink_connect_common()
Dwolfssl.c978 curl_socket_t readfd = ssl_connect_2_reading == in wolfssl_connect_common() local
981 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in wolfssl_connect_common()
Dmbedtls.c956 curl_socket_t readfd = ssl_connect_2_reading == in mbed_connect_common() local
959 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in mbed_connect_common()
Dbearssl.c687 curl_socket_t readfd = ssl_connect_2_reading == in bearssl_connect_common() local
690 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in bearssl_connect_common()
Dgtls.c227 curl_socket_t readfd = ssl_connect_2_reading == in handshake() local
230 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in handshake()
Dschannel.c1555 curl_socket_t readfd = ssl_connect_2_reading == in schannel_connect_common() local
1558 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in schannel_connect_common()
Dsectransp.c3038 curl_socket_t readfd = ssl_connect_2_reading == local
3041 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd,
Dopenssl.c4092 curl_socket_t readfd = ssl_connect_2_reading == in ossl_connect_common() local
4095 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in ossl_connect_common()
/third_party/curl/lib/
Dselect.h75 int Curl_socket_check(curl_socket_t readfd, curl_socket_t readfd2,
/third_party/weston/remoting/
Dremoting-plugin.c65 int readfd; member
406 output->gstpipe.readfd = fd[0]; in remoting_gstpipe_init()
410 wl_event_loop_add_fd(loop, output->gstpipe.readfd, in remoting_gstpipe_init()
426 close(pipe->readfd); in remoting_gstpipe_release()
/third_party/openssl/engines/
De_dasync.c402 OSSL_ASYNC_FD readfd, void *pvwritefd) in wait_cleanup() argument
406 CloseHandle(readfd); in wait_cleanup()
409 close(readfd); in wait_cleanup()
/third_party/pulseaudio/src/pulse/
Dcontext.c176 c->srb_template.readfd = -1; in pa_context_new_with_proplist()
383 c->srb_template.readfd = -1; in handle_srbchannel_memblock()
412 if (c->srb_template.readfd != -1 && c->srb_template.memblock == NULL) { in pstream_memblock_callback()
1490 if (c->srb_template.readfd != -1)
1498 c->srb_template.readfd = ancil->fds[0];
1531 c->srb_template.readfd = -1;
/third_party/gstreamer/gstreamer/
DChangeLog73171 poll: make sure we remove the readfd messages