Home
last modified time | relevance | path

Searched refs:sfd (Results 1 – 15 of 15) sorted by relevance

/external/toybox/toys/pending/
Dtftpd.c30 long sfd;
83 if (sendto(TT.sfd, g_errpkt, strlen(errmsg)+5, 0, dstaddr, socklen) < 0) in send_errpkt()
100 pollfds[0].fd = TT.sfd; in do_action()
160 if (sendto(TT.sfd, spkt, (ptr - spkt), 0, dstaddr, socklen) <0) in do_action()
167 pollfds[0].fd = TT.sfd; in do_action()
252 TT.sfd = xsocket(dstaddr.ss_family, SOCK_DGRAM, 0); in tftpd_main()
253 if (setsockopt(TT.sfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&set, in tftpd_main()
255 if (bind(TT.sfd, (void *)&srcaddr, socklen)) perror_exit("bind"); in tftpd_main()
256 if (connect(TT.sfd, (void *)&dstaddr, socklen) < 0) in tftpd_main()
Dtelnet.c28 int sfd;
73 int wlen = write(TT.sfd, TT.iac, TT.piac); in flush_iac()
284 if(i) xwrite(TT.sfd, toybuf, i); in write_server()
309 TT.sfd = xconnect(*toys.optargs, port, 0, SOCK_STREAM, IPPROTO_TCP, 0); in telnet_main()
310 setsockopt(TT.sfd, SOL_SOCKET, SO_REUSEADDR, &set, sizeof(set)); in telnet_main()
311 setsockopt(TT.sfd, SOL_SOCKET, SO_KEEPALIVE, &set, sizeof(set)); in telnet_main()
315 pfds[1].fd = TT.sfd; in telnet_main()
333 len = read(TT.sfd, TT.buff, DATABUFSIZE); in telnet_main()
/external/dnsmasq/src/
Dnetwork.c777 struct serverfd *sfd; in allocate_sfd() local
800 for (sfd = daemon->sfds; sfd; sfd = sfd->next ) in allocate_sfd()
801 if (sockaddr_isequal(&sfd->source_addr, addr) && in allocate_sfd()
802 mark == sfd->mark && in allocate_sfd()
803 strcmp(intname, sfd->interface) == 0) in allocate_sfd()
804 return sfd; in allocate_sfd()
808 if (!(sfd = whine_malloc(sizeof(struct serverfd)))) in allocate_sfd()
811 if ((sfd->fd = socket(addr->sa.sa_family, SOCK_DGRAM, 0)) == -1) in allocate_sfd()
813 free(sfd); in allocate_sfd()
817 if (!local_bind(sfd->fd, addr, intname, mark, 0) || !fix_fd(sfd->fd)) in allocate_sfd()
[all …]
Dnetlink.c288 if (daemon->srv_save->sfd) in nl_routechange()
289 fd = daemon->srv_save->sfd->fd; in nl_routechange()
Dforward.c299 if (start->sfd) in forward_query()
300 fd = start->sfd->fd; in forward_query()
Ddnsmasq.h335 struct serverfd *sfd; member
/external/curl/lib/
Deasy.c1050 curl_socket_t *sfd, in easy_connection() argument
1062 *sfd = Curl_getconnectinfo(data, connp); in easy_connection()
1064 if(*sfd == CURL_SOCKET_BAD) { in easy_connection()
1079 curl_socket_t sfd; in curl_easy_recv() local
1085 result = easy_connection(data, &sfd, &c); in curl_easy_recv()
1090 result = Curl_read(c, sfd, buffer, buflen, &n1); in curl_easy_recv()
1107 curl_socket_t sfd; in curl_easy_send() local
1113 result = easy_connection(data, &sfd, &c); in curl_easy_send()
1118 result = Curl_write(c, sfd, buffer, buflen, &n1); in curl_easy_send()
/external/strace/test/
D.gitignore8 sfd
DMakefile6 mtd ubi seccomp sfd mmap_offset_decode x32_lseek x32_mmap \
/external/ppp/pppd/
Dsys-linux.c2618 int i, mfd, sfd = -1; local
2637 if ((sfd = open(pty_name, O_RDWR | O_NOCTTY)) < 0)
2643 if (sfd < 0) {
2651 sfd = open(pty_name, O_RDWR | O_NOCTTY, 0);
2652 if (sfd >= 0) {
2653 fchown(sfd, uid, -1);
2654 fchmod(sfd, S_IRUSR | S_IWUSR);
2662 if (sfd < 0)
2667 *slave_fdp = sfd;
2668 if (tcgetattr(sfd, &tios) == 0) {
[all …]
Dsys-solaris.c2748 int mfd, sfd; local
2770 sfd = open(pty_name, O_RDWR);
2771 if (sfd < 0) {
2776 if (ioctl(sfd, I_PUSH, "ptem") < 0)
2782 *slave_fdp = sfd;
/external/toybox/generated/
Dglobals.h789 int sfd; member
833 long sfd; member
/external/elfutils/src/
Dreadelf.c593 int sfd = mkstemp (tempname); in open_input_section() local
594 if (sfd == -1) in open_input_section()
603 if (write_retry (sfd, data->d_buf, size) != size) in open_input_section()
616 if (lseek (sfd, 0, SEEK_SET) == -1) in open_input_section()
622 return sfd; in open_input_section()
/external/deqp/data/gles2/shaders/
Dpreprocessor.test34 /*sfd*/ # /* */
/external/deqp/data/gles3/shaders/
Dpreprocessor.test43 /*sfd*/ # /* */