Searched refs:pathstr (Results 1 – 1 of 1) sorted by relevance
/external/libpcap/ |
D | pcap-linux.c | 546 char *pathstr; in get_mac80211_phydev() local 552 if (asprintf(&pathstr, "/sys/class/net/%s/phy80211", device) == -1) { in get_mac80211_phydev() 558 bytes_read = readlink(pathstr, phydev_path, phydev_max_pathlen); in get_mac80211_phydev() 565 free(pathstr); in get_mac80211_phydev() 569 "%s: Can't readlink %s: %s", device, pathstr, in get_mac80211_phydev() 571 free(pathstr); in get_mac80211_phydev() 574 free(pathstr); in get_mac80211_phydev() 2654 char *pathstr; local 2664 if (asprintf(&pathstr, "/sys/class/net/%s/wireless", device) == -1) { 2670 if (stat(pathstr, &statb) == 0) { [all …]
|