Home
last modified time | relevance | path

Searched refs:ifc (Results 1 – 6 of 6) sorted by relevance

/glibc-2.36/sysdeps/unix/sysv/linux/
Difreq.c25 struct ifconf ifc; in __ifreq() local
39 ifc.ifc_buf = NULL; in __ifreq()
43 ifc.ifc_buf = NULL; in __ifreq()
44 ifc.ifc_len = 0; in __ifreq()
45 if (__ioctl (fd, SIOCGIFCONF, &ifc) < 0 || ifc.ifc_len == 0) in __ifreq()
48 rq_len = ifc.ifc_len; in __ifreq()
51 ifc.ifc_len = rq_len; in __ifreq()
52 void *newp = realloc (ifc.ifc_buf, ifc.ifc_len); in __ifreq()
54 || (ifc.ifc_buf = newp, __ioctl (fd, SIOCGIFCONF, &ifc)) < 0) in __ifreq()
56 free (ifc.ifc_buf); in __ifreq()
[all …]
/glibc-2.36/sysdeps/unix/
Difreq.c25 struct ifconf ifc; in __ifreq() local
39 ifc.ifc_buf = NULL; in __ifreq()
43 ifc.ifc_len = rq_len *= 2; in __ifreq()
44 void *newp = realloc (ifc.ifc_buf, ifc.ifc_len); in __ifreq()
45 if (newp == NULL || __ioctl (fd, SIOCGIFCONF, &ifc) < 0) in __ifreq()
47 free (ifc.ifc_buf); in __ifreq()
55 ifc.ifc_buf = newp; in __ifreq()
57 while (rq_len < sizeof (struct ifreq) + ifc.ifc_len); in __ifreq()
65 while ((char *) ifr < ifc.ifc_buf + ifc.ifc_len) in __ifreq()
73 nifs = ifc.ifc_len / sizeof (struct ifreq); in __ifreq()
[all …]
/glibc-2.36/sysdeps/mach/hurd/
Dif_index.c88 struct ifconf ifc; in weak_alias() local
92 ifc.ifc_buf = data; in weak_alias()
103 err = __pfinet_siocgifconf (server, -1, &ifc.ifc_buf, &len); in weak_alias()
111 err = __pfinet_siocgifconf (server, -1, &ifc.ifc_buf, &len); in weak_alias()
116 ifc.ifc_len = len; in weak_alias()
129 struct ifreq *ifr = &ifc.ifc_req[i]; in weak_alias()
156 if (data != ifc.ifc_buf) in weak_alias()
157 __vm_deallocate (__mach_task_self (), (vm_address_t) ifc.ifc_buf, in weak_alias()
158 ifc.ifc_len); in weak_alias()
/glibc-2.36/hurd/
Dhurdioctl.c311 siocgifconf (int fd, int request, struct ifconf *ifc) in siocgifconf() argument
314 size_t data_len = ifc->ifc_len; in siocgifconf()
315 char *data = ifc->ifc_buf; in siocgifconf()
320 err = HURD_DPORT_USE (fd, __pfinet_siocgifconf (port, ifc->ifc_len, in siocgifconf()
322 if (data_len < ifc->ifc_len) in siocgifconf()
323 ifc->ifc_len = data_len; in siocgifconf()
324 if (data != ifc->ifc_buf) in siocgifconf()
326 memcpy (ifc->ifc_buf, data, ifc->ifc_len); in siocgifconf()
/glibc-2.36/sysdeps/mach/
Dconfigure.ac62 for ifc in mach mach4 gnumach \
68 AC_CHECK_HEADER(mach/${ifc}.defs, [dnl
69 mach_interface_list="$mach_interface_list $ifc"],, -)
Dconfigure247 for ifc in mach mach4 gnumach \
253 as_ac_Header=`$as_echo "ac_cv_header_mach/${ifc}.defs" | $as_tr_sh`
254 ac_fn_c_check_header_preproc "$LINENO" "mach/${ifc}.defs" "$as_ac_Header"
256 mach_interface_list="$mach_interface_list $ifc"