Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/select/
Dselect01.c29 int *writefd; member
47 if (tc->writefd) { in run()
48 SAFE_WRITE(0, *tc->writefd, &buf, sizeof(buf)); in run()
77 if (!tc->writefd) in run()
80 if (FD_ISSET(*tc->writefd, tc->writefds)) in run()
81 tst_res(TPASS, "writefds bit %i is set", *tc->writefd); in run()
83 tst_res(TPASS, "writefds bit %i is not set", *tc->writefd); in run()
/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev03.c37 static int mapfd = -1, writefd = -1, readfd = -1; variable
59 writefd = SAFE_OPEN(TEMPFILE, O_CREAT|O_WRONLY|O_TRUNC, 0644); in thread_run()
76 tst_atomic_store(writev(writefd, iov, ARRAY_SIZE(iov)), in thread_run()
82 SAFE_CLOSE(writefd); in thread_run()
134 if (writefd >= 0) in cleanup()
135 SAFE_CLOSE(writefd); in cleanup()
/third_party/ltp/testcases/kernel/mem/thp/
Dthp04.c38 static int writefd = -1, readfd = -1; variable
95 writefd = SAFE_OPEN("/proc/self/mem", O_RDWR); in setup()
129 SAFE_LSEEK(writefd, (off_t)write_ptr, SEEK_SET); in run()
131 SAFE_WRITE(1, writefd, &c, sizeof(int)); in run()
153 if (writefd >= 0) in cleanup()
154 SAFE_CLOSE(writefd); in cleanup()
/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()
396 (int)(sizeof(i) + sizeof(buflen)), buflen, writefd); in main()
397 write (writefd, &i, sizeof (i)); in main()
398 write (writefd, &buflen, sizeof (buflen)); in main()
399 write (writefd, buf, buflen); in main()
413 g_debug ("gio-test: child exiting, closing %d", writefd); in main()
414 close (writefd); in main()
/third_party/openssl/engines/
De_dasync.c421 OSSL_ASYNC_FD *writefd; in dummy_pause_job() local
435 (void **)&writefd)) { in dummy_pause_job()
436 pipefds[1] = *writefd; in dummy_pause_job()
438 writefd = OPENSSL_malloc(sizeof(*writefd)); in dummy_pause_job()
439 if (writefd == NULL) in dummy_pause_job()
443 OPENSSL_free(writefd); in dummy_pause_job()
448 OPENSSL_free(writefd); in dummy_pause_job()
452 *writefd = pipefds[1]; in dummy_pause_job()
455 writefd, wait_cleanup)) { in dummy_pause_job()
456 wait_cleanup(waitctx, engine_dasync_id, pipefds[0], writefd); in dummy_pause_job()
/third_party/curl/lib/
Dselect.c248 curl_socket_t writefd, /* socket to write to */ in Curl_socket_check() argument
256 (writefd == CURL_SOCKET_BAD)) { in Curl_socket_check()
279 if(writefd != CURL_SOCKET_BAD) { in Curl_socket_check()
280 pfd[num].fd = writefd; in Curl_socket_check()
306 if(writefd != CURL_SOCKET_BAD) { in Curl_socket_check()
Dselect.h76 curl_socket_t writefd,
/third_party/pulseaudio/src/pulsecore/
Dsrbchannel.c312 sr->sem_write = pa_fdsem_open_shm(&srh->write_semdata, t->writefd); in pa_srbchannel_new_from_template()
317 temp = t->readfd; t->readfd = t->writefd; t->writefd = temp; in pa_srbchannel_new_from_template()
337 t->writefd = pa_fdsem_get(sr->sem_write); in pa_srbchannel_export()
Dsrbchannel.h33 int readfd, writefd; member
Dprotocol-native.c2526 fdlist[1] = srbt.writefd; in setup_srbchannel()
/third_party/weston/compositor/
Dcms-colord.c53 int writefd; member
157 rc = write(cms->writefd, &tmp, 1); in update_device_with_profile_in_idle()
463 if (cms->writefd) in colord_module_destroy()
464 close(cms->writefd); in colord_module_destroy()
576 cms->writefd = fd[1]; in wet_module_init()
/third_party/weston/remoting/
Dremoting-plugin.c66 int writefd; member
178 ret = write(pipe->writefd, &msg, sizeof(msg)); in remoting_gst_bus_sync_handler()
407 output->gstpipe.writefd = fd[1]; in remoting_gstpipe_init()
427 close(pipe->writefd); in remoting_gstpipe_release()
501 ret = write(pipe->writefd, &msg, sizeof(msg)); in remoting_gst_mem_free_cb()
/third_party/curl/lib/vtls/
Drustls.c395 curl_socket_t writefd; in cr_connect_nonblocking() local
433 writefd = wants_write?sockfd:CURL_SOCKET_BAD; in cr_connect_nonblocking()
436 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, 0); in cr_connect_nonblocking()
Dmesalink.c546 curl_socket_t writefd = in mesalink_connect_common() local
553 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in mesalink_connect_common()
Dwolfssl.c976 curl_socket_t writefd = ssl_connect_2_writing == in wolfssl_connect_common() local
981 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in wolfssl_connect_common()
Dmbedtls.c954 curl_socket_t writefd = ssl_connect_2_writing == in mbed_connect_common() local
959 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in mbed_connect_common()
Dbearssl.c685 curl_socket_t writefd = ssl_connect_2_writing == in bearssl_connect_common() local
690 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in bearssl_connect_common()
Dgtls.c225 curl_socket_t writefd = ssl_connect_2_writing == in handshake() local
230 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in handshake()
Dschannel.c1553 curl_socket_t writefd = ssl_connect_2_writing == in schannel_connect_common() local
1558 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in schannel_connect_common()
Dsectransp.c3036 curl_socket_t writefd = ssl_connect_2_writing == local
3041 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd,
Dopenssl.c4090 curl_socket_t writefd = ssl_connect_2_writing == in ossl_connect_common() local
4095 what = Curl_socket_check(readfd, CURL_SOCKET_BAD, writefd, in ossl_connect_common()
/third_party/pulseaudio/src/pulse/
Dcontext.c177 c->srb_template.writefd = -1; in pa_context_new_with_proplist()
384 c->srb_template.writefd = -1; in handle_srbchannel_memblock()
1499 c->srb_template.writefd = ancil->fds[1];
1532 c->srb_template.writefd = -1;
/third_party/gstreamer/gstplugins_base/
DChangeLog124188 rtsp: Removed duplicate initialization of conn->writefd.