Searched refs:ifc (Results 1 - 25 of 63) sorted by relevance

123

/external/clang/test/CoverageMapping/
H A Dcontrol-flow-macro.c3 #define ifc if macro
9 ifc(1) return 0;
12 ifc(1) return 0;
/external/tlsdate/src/
H A Drouteup.h22 int routeup_setup (struct routeup *ifc);
23 int routeup_once (struct routeup *ifc, unsigned int timeout);
25 void routeup_teardown (struct routeup *ifc);
27 static inline int routeup_setup (struct routeup *ifc) argument
31 static inline int routeup_once (struct routeup *ifc, unsigned int timeout) argument
39 static inline void routeup_teardown (struct routeup *ifc) argument
/external/llvm/test/MC/AsmParser/
H A Ddirective-err.s8 .ifc a,a
23 .ifc one, two
H A Ddirective-warning.s8 .ifc a,a
23 .ifc one, two
H A Difc.s5 .ifc foo, foo
13 .ifc "foo space", "foo space"
21 .ifc foo space, foo space
29 .ifc unequal, unEqual
/external/compiler-rt/test/msan/
H A Dioctl_custom.cc20 struct ifconf ifc; local
21 ifc.ifc_ifcu.ifcu_req = ifreqs;
23 ifc.ifc_len = sizeof(ifreqs);
25 int res = ioctl(fd, SIOCGIFCONF, (void *)&ifc);
30 for (int i = 0; i < ifc.ifc_len / sizeof(*ifc.ifc_ifcu.ifcu_req); ++i)
/external/valgrind/memcheck/tests/solaris/
H A Dioctl.c24 struct ifconf ifc; local
25 ifc.ifc_len = (n_ifs + 1) * sizeof(struct ifreq);
26 ifc.ifc_buf = malloc((n_ifs + 1) * sizeof(struct ifreq));
27 if (ifc.ifc_buf == NULL)
30 if (ioctl(fd, SIOCGIFCONF, &ifc) < 0)
33 /* Check definedness of ifc attributes ... */
35 if (ifc.ifc_len != 0) x = -1; else x = -2;
36 if (ifc.ifc_req != NULL) x = -3; else x = -4;
37 if (strcmp(ifc.ifc_req[0].ifr_name, "") != 0) x = -5; else x = -6;
39 if (strcmp(ifc
[all...]
H A Dscalar_ioctl.c224 struct ifconf ifc; local
227 ifc.ifc_len = x0 + 1;
228 ifc.ifc_buf = (void *) (x0 + buf);
231 SY(SYS_ioctl, x0 - 1, x0 + SIOCGIFCONF, &ifc + x0); FAIL;
/external/strace/
H A Dsock.c154 struct ifconf ifc; local
158 if (umove_or_printaddr(tcp, addr, &ifc))
160 if (ifc.ifc_buf) {
162 print_ifc_len(ifc.ifc_len);
167 if (syserror(tcp) || umove(tcp, addr, &ifc) < 0) {
168 if (ifc.ifc_buf)
175 if (!ifc.ifc_buf) {
177 print_ifc_len(ifc.ifc_len);
183 const unsigned int nifra = print_ifc_len(ifc.ifc_len);
191 if (umove_or_printaddr(tcp, (unsigned long) ifc
[all...]
/external/dnsmasq/src/
H A Dbpf.c35 struct ifconf ifc; local
50 ifc.ifc_len = len;
51 ifc.ifc_buf = ifconf.iov_base;
53 if (ioctl(fd, SIOCGIFCONF, &ifc) == -1)
60 if (ifc.ifc_len == lastlen)
62 lastlen = ifc.ifc_len;
66 for (ptr = ifc.ifc_buf; ptr < (char *)(ifc.ifc_buf + ifc.ifc_len); ptr += len)
/external/libcap-ng/libcap-ng-0.7/utils/
H A Dnetcap.c212 static void report_finding(int port, const char *type, const char *ifc) argument
241 if (ifc)
242 printf(" %-6s", ifc);
351 static void get_interface(unsigned int iface, char *ifc) argument
358 *ifc = 0;
374 sscanf(buf, "%16s: %256s\n", ifc, more);
375 c = strchr(ifc, ':');
393 char more[256], ifc[32]; local
412 get_interface(iface, ifc);
414 report_finding(0, "pkt", ifc);
[all...]
/external/libpcap/
H A Dfad-gifc.c141 struct ifconf ifc; local
179 ifc.ifc_len = buf_size;
180 ifc.ifc_buf = buf;
182 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0
190 if (ifc.ifc_len < buf_size &&
191 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
198 ifend = (struct ifreq *)(buf + ifc.ifc_len);
221 * doesn't update ifc.ifc_len, leaving it larger than the
H A Dfad-glifc.c84 struct lifconf ifc; local
146 ifc.lifc_len = buf_size;
147 ifc.lifc_buf = buf;
148 ifc.lifc_family = AF_UNSPEC;
149 ifc.lifc_flags = 0;
151 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) {
164 ifend = (struct lifreq *)(buf + ifc.lifc_len);
/external/ppp/pppd/
H A Dsys-solaris.c386 struct ifconf ifc; local
416 ifc.ifc_len = req_size;
417 ifc.ifc_buf = req;
418 if (ioctl(fd, SIOCGIFCONF, &ifc) < 0) {
429 pifreq = ifc.ifc_req;
431 for (i = ifc.ifc_len / sizeof(struct ifreq); i > 0; i--, pifreq++) {
2157 struct ifconf ifc; local
2167 ifc.ifc_len = nif * sizeof(struct ifreq);
2168 ifc.ifc_buf = (caddr_t) malloc(ifc
2400 struct ifconf ifc; local
[all...]
H A Dsys-linux.c1784 struct ifconf ifc; local
1790 ifc.ifc_len = sizeof(ifs);
1791 ifc.ifc_req = ifs;
1792 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) {
1802 ifend = ifs + (ifc.ifc_len / sizeof(struct ifreq));
1803 for (ifr = ifc.ifc_req; ifr < ifend; ifr++) {
1909 struct ifconf ifc; local
1926 ifc.ifc_len = sizeof(ifs);
1927 ifc.ifc_req = ifs;
1928 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) <
[all...]
/external/mdnsresponder/mDNSPosix/
H A DmDNSUNP.c230 struct ifconf ifc; local
259 ifc.ifc_len = len;
260 ifc.ifc_buf = buf;
261 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) {
266 if (ifc.ifc_len == lastlen)
268 lastlen = ifc.ifc_len;
279 for (ptr = buf; ptr < buf + ifc.ifc_len; ) {
/external/e2fsprogs/lib/uuid/
H A Dgen_uuid.c229 struct ifconf ifc; local
258 ifc.ifc_len = sizeof(buf);
259 ifc.ifc_buf = buf;
260 if (ioctl (sd, SIOCGIFCONF, (char *)&ifc) < 0) {
264 n = ifc.ifc_len;
266 ifrp = (struct ifreq *)((char *) ifc.ifc_buf+i);
/external/iputils/
H A Drarpd.c93 struct ifconf ifc; local
101 ifc.ifc_len = sizeof ibuf;
102 ifc.ifc_buf = (caddr_t)ibuf;
103 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
104 ifc.ifc_len < (int)sizeof(struct ifreq)) {
119 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
H A Darping.c843 struct ifconf ifc; local
869 ifc.ifc_buf = (char *)ifr0;
870 ifc.ifc_len = ifrsize;
872 rc = ioctl(s, SIOCGIFCONF, &ifc);
878 if (ifc.ifc_len + sizeof(*ifr0) + sizeof(struct sockaddr_storage) - sizeof(struct sockaddr) <= ifrsize)
890 ifr_end = (struct ifreq *)(((char *)ifr0) + ifc.ifc_len - sizeof(*ifr0));
H A Drdisc.c1104 struct ifconf ifc; local
1143 ifc.ifc_len = bufsize;
1144 ifc.ifc_buf = buf;
1145 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) {
1151 ifr = ifc.ifc_req;
1152 for (i = 0, n = ifc.ifc_len/sizeof (struct ifreq); n > 0; n--, ifr++) {
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors_ioctl.inc582 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;
583 COMMON_INTERCEPTOR_READ_RANGE(ctx, &ifc->ifc_len, sizeof(ifc->ifc_len));
597 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;
598 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);
/external/dhcpcd-6.8.2/
H A Ddhcpcd.h98 int ifc; /* listed interfaces */ member in struct:dhcpcd_ctx
H A Difaddrs.c33 #include <netutils/ifc.h>
H A Ddhcpcd.c963 if (ctx->ifc && action != 2) {
964 for (i = 0; i < ctx->ifc; i++)
967 if (i >= ctx->ifc)
1211 ctx->argc - ctx->ifc);
1543 ctx.ifc = argc - optind;
1703 (sig == 0 || ctx.ifc != 0))
1850 if (ctx.ifc == 1 && !(ctx.options & DHCPCD_BACKGROUND))
1877 ctx.ifaces = if_discover(&ctx, ctx.ifc, ctx.ifv);
1882 for (i = 0; i < ctx.ifc; i++) {
1898 if (ctx.ifc
[all...]
/external/webrtc/webrtc/test/channel_transport/
H A Dudp_transport_impl.cc2671 struct ifconf ifc;
2677 ifc.ifc_len = IFRSIZE;
2678 ifc.ifc_req = NULL;
2684 if (NULL == (ifc.ifc_req = (ifreq*)realloc(ifc.ifc_req, IFRSIZE))) {
2688 ifc.ifc_len = IFRSIZE;
2689 if (ioctl(sockfd, SIOCGIFCONF, &ifc))
2691 free(ifc.ifc_req);
2695 } while (IFRSIZE <= ifc.ifc_len);
2697 ifr = ifc
[all...]

Completed in 763 milliseconds

123