Home
last modified time | relevance | path

Searched refs:namebuf (Results 1 – 14 of 14) sorted by relevance

/external/iproute2/lib/
Drt_names.c36 static int fread_id_name(FILE *fp, int *id, char *namebuf) in fread_id_name() argument
49 if (sscanf(p, "0x%x %s\n", id, namebuf) != 2 && in fread_id_name()
50 sscanf(p, "0x%x %s #", id, namebuf) != 2 && in fread_id_name()
51 sscanf(p, "%d %s\n", id, namebuf) != 2 && in fread_id_name()
52 sscanf(p, "%d %s #", id, namebuf) != 2) { in fread_id_name()
53 strcpy(namebuf, p); in fread_id_name()
67 char namebuf[NAME_MAX_LEN] = {0}; in rtnl_hash_initialize() local
74 while ((ret = fread_id_name(fp, &id, &namebuf[0]))) { in rtnl_hash_initialize()
77 file, namebuf); in rtnl_hash_initialize()
87 entry->name = strdup(namebuf); in rtnl_hash_initialize()
[all …]
Dnames.c75 char namebuf[NAME_MAX_LEN] = {0}; in db_names_load() local
82 while ((ret = read_id_name(fp, &id, &namebuf[0]))) { in db_names_load()
85 path, namebuf); in db_names_load()
97 entry->name = strdup(namebuf); in db_names_load()
/external/autotest/client/deps/fakemodem/src/
Dfakenet.c59 char namebuf[IFNAMSIZ]; in main() local
61 strcpy (namebuf, "pseudo-modem%d"); in main()
62 fd = tun_alloc (namebuf); in main()
66 printf ("%s\n", namebuf); in main()
/external/libxml2/os400/dlfcn/
Ddlfcn.c493 char * namebuf; in dlGetObjectName() local
515 namebuf = pathbuf + sizeof(Qlg_Path_Name_T); in dlGetObjectName()
527 namebuf[n++] = *dir++; in dlGetObjectName()
530 if (n && namebuf[n - 1] == '/') in dlGetObjectName()
535 namebuf[n++] = '/'; in dlGetObjectName()
538 namebuf[n++] = *link++; in dlGetObjectName()
546 namebuf[n] = '\0'; in dlGetObjectName()
547 n = dlresolveLink(namebuf, namebuf, _QP0L_DIR_NAME_LG + 1); in dlGetObjectName()
552 if (stat(namebuf, &sbuf)) in dlGetObjectName()
930 char namebuf[100]; in dl_is_srvpgm() local
[all …]
/external/openssh/
Dsshpty.c64 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) in pty_allocate() argument
76 if (ptsname_r(*ptyfd, namebuf, namebuflen)) { in pty_allocate()
88 strlcpy(namebuf, name, namebuflen); /* possible truncation */ in pty_allocate()
Dscp.c1040 static char *namebuf; local
1046 free(namebuf);
1047 namebuf = xmalloc(need);
1050 (void) snprintf(namebuf, need, "%s%s%s", targ,
1052 np = namebuf;
Dmonitor_wrap.c495 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) in mm_pty_allocate() argument
530 strlcpy(namebuf, p, namebuflen); /* Possible truncation */ in mm_pty_allocate()
/external/iproute2/tc/
Dm_ematch.c62 char namebuf[512], *p = buf; in lookup_map() local
70 if (sscanf(p, "%d %s", &id, namebuf) != 2) { in lookup_map()
78 strncpy(dst, namebuf, len - 1); in lookup_map()
100 char namebuf[512], *p = buf; in lookup_map_id() local
108 if (sscanf(p, "%d %s", &id, namebuf) != 2) { in lookup_map_id()
114 if (!strcasecmp(namebuf, kind)) { in lookup_map_id()
/external/lldb/source/Host/common/
DHost.cpp702 char *namebuf = (char *)::malloc (len + 1); in SetShortThreadName() local
712 ::strncpy (namebuf, thread_name, len); in SetShortThreadName()
713 namebuf[len] = 0; in SetShortThreadName()
715 int namebuflen = strlen(namebuf); in SetShortThreadName()
718 if (namebuf[namebuflen - 1] == '(' || namebuf[namebuflen - 1] == '>') in SetShortThreadName()
722 namebuf[namebuflen] = 0; in SetShortThreadName()
724 return Host::SetThreadName (pid, tid, namebuf); in SetShortThreadName()
/external/fsck_msdos/
Ddir.c172 static char namebuf[MAXPATHLEN + 1]; in fullpath() local
176 cp = namebuf + sizeof namebuf - 1; in fullpath()
181 if ((cp -= nl) <= namebuf + 1) in fullpath()
/external/curl/lib/vtls/
Dopenssl.c2288 char namebuf[32]; in pubkey_show() local
2290 snprintf(namebuf, sizeof(namebuf), "%s(%s)", type, name); in pubkey_show()
2294 push_certinfo(namebuf, num); in pubkey_show()
2327 char namebuf[128]; in X509V3_ext() local
2335 asn1_object_dump(obj, namebuf, sizeof(namebuf)); in X509V3_ext()
2355 Curl_ssl_push_certinfo(data, certnum, namebuf, buf); in X509V3_ext()
/external/libevent/
Devdns.c2711 char namebuf[256]; in request_new() local
2718 if (name_len >= sizeof(namebuf)) { in request_new()
2730 char randbits[(sizeof(namebuf)+7)/8]; in request_new()
2731 strlcpy(namebuf, name, sizeof(namebuf)); in request_new()
2734 if (EVUTIL_ISALPHA(namebuf[i])) { in request_new()
2736 namebuf[i] |= 0x20; in request_new()
2738 namebuf[i] &= ~0x20; in request_new()
2741 name = namebuf; in request_new()
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211.c928 char namebuf[IFNAMSIZ]; in wpa_driver_nl80211_event_rtm_newlink() local
980 namebuf[0] = '\0'; in wpa_driver_nl80211_event_rtm_newlink()
981 if (if_indextoname(ifi->ifi_index, namebuf) && in wpa_driver_nl80211_event_rtm_newlink()
982 linux_iface_up(drv->global->ioctl_sock, namebuf) > 0) { in wpa_driver_nl80211_event_rtm_newlink()
984 "event since interface %s is up", namebuf); in wpa_driver_nl80211_event_rtm_newlink()
989 namebuf, ifname); in wpa_driver_nl80211_event_rtm_newlink()
1016 if (if_indextoname(ifi->ifi_index, namebuf) && in wpa_driver_nl80211_event_rtm_newlink()
1017 linux_iface_up(drv->global->ioctl_sock, namebuf) == 0) { in wpa_driver_nl80211_event_rtm_newlink()
1020 namebuf); in wpa_driver_nl80211_event_rtm_newlink()
1082 if (!if_indextoname(brid, namebuf)) { in wpa_driver_nl80211_event_rtm_newlink()
[all …]
Ddriver_wext.c639 char namebuf[IFNAMSIZ]; in wpa_driver_wext_event_rtm_newlink() local
662 if (if_indextoname(ifi->ifi_index, namebuf) && in wpa_driver_wext_event_rtm_newlink()
666 namebuf); in wpa_driver_wext_event_rtm_newlink()