Home
last modified time | relevance | path

Searched refs:wfd (Results 1 – 18 of 18) sorted by relevance

/external/libppp/src/
Dserver.c98 int ssize = sizeof ss, wfd; in server_Read() local
103 wfd = accept(s->fd, sa, &ssize); in server_Read()
104 if (wfd < 0) in server_Read()
107 close(wfd); in server_Read()
108 wfd = -1; in server_Read()
111 wfd = -1; in server_Read()
113 if (wfd >= 0) in server_Read()
125 close(wfd); in server_Read()
126 wfd = -1; in server_Read()
140 close(wfd); in server_Read()
[all …]
/external/libusb_aah/libusb/os/
Dpoll_windows.c325 struct winfd wfd = INVALID_WINFD; in usbi_create_fd() local
340 wfd.rw = RW_READ; in usbi_create_fd()
342 wfd.rw = RW_WRITE; in usbi_create_fd()
366 wfd.fd = fd; in usbi_create_fd()
372 &wfd.handle, 0, TRUE, DUPLICATE_SAME_ACCESS)) { in usbi_create_fd()
374 wfd.handle = handle; in usbi_create_fd()
381 wfd.handle = handle; in usbi_create_fd()
383 wfd.overlapped = overlapped; in usbi_create_fd()
384 memcpy(&poll_fd[i], &wfd, sizeof(struct winfd)); in usbi_create_fd()
386 return wfd; in usbi_create_fd()
[all …]
Dwindows_usb.c2555 struct winfd wfd; in winusb_submit_control_transfer() local
2575 wfd = usbi_create_fd(winusb_handle, _O_RDONLY); in winusb_submit_control_transfer()
2577 if (wfd.fd < 0) { in winusb_submit_control_transfer()
2586 usbi_free_fd(wfd.fd); in winusb_submit_control_transfer()
2589 wfd.overlapped->Internal = STATUS_COMPLETED_SYNCHRONOUSLY; in winusb_submit_control_transfer()
2590 wfd.overlapped->InternalHigh = 0; in winusb_submit_control_transfer()
2592 …if (!WinUsb_ControlTransfer(wfd.handle, *setup, transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE, size… in winusb_submit_control_transfer()
2595 usbi_free_fd(wfd.fd); in winusb_submit_control_transfer()
2599 wfd.overlapped->Internal = STATUS_COMPLETED_SYNCHRONOUSLY; in winusb_submit_control_transfer()
2600 wfd.overlapped->InternalHigh = (DWORD)size; in winusb_submit_control_transfer()
[all …]
/external/openssh/
Dchannels.c224 channel_register_fds(Channel *c, int rfd, int wfd, int efd, in channel_register_fds() argument
229 channel_max_fd = MAX(channel_max_fd, wfd); in channel_register_fds()
234 if (wfd != -1 && wfd != rfd) in channel_register_fds()
235 fcntl(wfd, F_SETFD, FD_CLOEXEC); in channel_register_fds()
236 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
240 c->wfd = wfd; in channel_register_fds()
241 c->sock = (rfd == wfd) ? rfd : -1; in channel_register_fds()
247 c->wfd_isatty = is_tty || isatty(c->wfd); in channel_register_fds()
253 if (wfd != -1) in channel_register_fds()
254 set_nonblock(wfd); in channel_register_fds()
[all …]
Dnchan.c501 if (channel_close_fd(&c->wfd) < 0) in chan_shutdown_write()
504 c->self, c->wfd, strerror(errno)); in chan_shutdown_write()
Dchannels.h98 int wfd; /* write fd */ member
/external/libxml2/
Dnanohttp.c452 fd_set wfd; in xmlNanoHTTPSend() local
486 FD_ZERO(&wfd); in xmlNanoHTTPSend()
491 FD_SET(ctxt->fd, &wfd); in xmlNanoHTTPSend()
495 (void) select(ctxt->fd + 1, NULL, &wfd, NULL, &tv); in xmlNanoHTTPSend()
847 fd_set wfd; in xmlNanoHTTPConnectAttempt() local
947 FD_ZERO(&wfd); in xmlNanoHTTPConnectAttempt()
948 FD_SET(s, &wfd); in xmlNanoHTTPConnectAttempt()
954 switch (select(s + 1, NULL, &wfd, &xfd, &tv)) in xmlNanoHTTPConnectAttempt()
956 switch (select(s + 1, NULL, &wfd, NULL, &tv)) in xmlNanoHTTPConnectAttempt()
982 if (FD_ISSET(s, &wfd) in xmlNanoHTTPConnectAttempt()
/external/qemu/
Dposix-aio-compat.c57 int rfd, wfd; member
510 ret = write(posix_aio_state->wfd, &byte, sizeof(byte)); in aio_signal_handler()
645 s->wfd = fds[1]; in paio_init()
648 fcntl(s->wfd, F_SETFL, O_NONBLOCK); in paio_init()
/external/qemu/telephony/
Dsysdeps_posix.c423 fd_set rfd, wfd, efd; in sys_single_loop() local
428 memcpy(&wfd, &_s_fdsets[1], sizeof(fd_set)); in sys_single_loop()
446 n = select( _s_maxfd+1, &rfd, &wfd, &efd, timeout); in sys_single_loop()
463 if(FD_ISSET(i, &wfd)) events |= SYS_EVENT_WRITE; in sys_single_loop()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_fd.cc201 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd) { in FdPipeCreate() argument
202 DPrintf("#%d: FdCreatePipe(%d, %d)\n", thr->tid, rfd, wfd); in FdPipeCreate()
205 init(thr, pc, wfd, ref(s)); in FdPipeCreate()
Dtsan_fd.h48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
/external/wpa_supplicant_8/src/common/
Dieee802_11_common.h40 const u8 *wfd; member
Dieee802_11_common.c102 elems->wfd = pos; in ieee802_11_parse_vendor_specific()
/external/wpa_supplicant_8/src/p2p/
Dp2p_sd.c19 static int wfd_wsd_supported(struct wpabuf *wfd) in wfd_wsd_supported() argument
25 if (wfd == NULL) in wfd_wsd_supported()
28 pos = wpabuf_head(wfd); in wfd_wsd_supported()
29 end = pos + wpabuf_len(wfd); in wfd_wsd_supported()
Dp2p_group.c433 struct wpabuf *wfd = wpabuf_dup(group->wfd_ie); in p2p_group_build_probe_resp_ie() local
434 ie = wpabuf_concat(wfd, ie); in p2p_group_build_probe_resp_ie()
Dp2p_parse.c418 if (elems.wfd) { in p2p_parse_ies()
/external/netcat/
Dnetcat.c764 int n, wfd = fileno(stdin); in readwrite() local
775 pfd[1].fd = wfd; in readwrite()
806 if ((n = read(wfd, buf, plen)) < 0) in readwrite()
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface.c3258 struct wpabuf *wfd; in print_bss_info() local
3260 wfd = ieee802_11_vendor_ie_concat(ie, bss->ie_len, in print_bss_info()
3262 if (wfd) { in print_bss_info()
3269 wpabuf_head(wfd), in print_bss_info()
3270 wpabuf_len(wfd)); in print_bss_info()
3271 wpabuf_free(wfd); in print_bss_info()