Home
last modified time | relevance | path

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

/external/iproute2/lib/
Drt_names.c49 char namebuf[512]; in rtnl_hash_initialize() local
55 if (sscanf(p, "0x%x %s\n", &id, namebuf) != 2 && in rtnl_hash_initialize()
56 sscanf(p, "0x%x %s #", &id, namebuf) != 2 && in rtnl_hash_initialize()
57 sscanf(p, "%d %s\n", &id, namebuf) != 2 && in rtnl_hash_initialize()
58 sscanf(p, "%d %s #", &id, namebuf) != 2) { in rtnl_hash_initialize()
69 entry->name = strdup(namebuf); in rtnl_hash_initialize()
87 char namebuf[512]; in rtnl_tab_initialize() local
93 if (sscanf(p, "0x%x %s\n", &id, namebuf) != 2 && in rtnl_tab_initialize()
94 sscanf(p, "0x%x %s #", &id, namebuf) != 2 && in rtnl_tab_initialize()
95 sscanf(p, "%d %s\n", &id, namebuf) != 2 && in rtnl_tab_initialize()
[all …]
/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/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/openssh/
Dsshpty.c64 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) in pty_allocate() argument
84 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.c494 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) in mm_pty_allocate() argument
529 strlcpy(namebuf, p, namebuflen); /* Possible truncation */ in mm_pty_allocate()
/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/wpa_supplicant_8/src/drivers/
Ddriver_nl80211.c901 char namebuf[IFNAMSIZ]; in wpa_driver_nl80211_event_rtm_newlink() local
956 namebuf[0] = '\0'; in wpa_driver_nl80211_event_rtm_newlink()
957 if (if_indextoname(ifi->ifi_index, namebuf) && in wpa_driver_nl80211_event_rtm_newlink()
958 linux_iface_up(drv->global->ioctl_sock, namebuf) > 0) { in wpa_driver_nl80211_event_rtm_newlink()
960 "event since interface %s is up", namebuf); in wpa_driver_nl80211_event_rtm_newlink()
965 namebuf, ifname); in wpa_driver_nl80211_event_rtm_newlink()
992 if (if_indextoname(ifi->ifi_index, namebuf) && in wpa_driver_nl80211_event_rtm_newlink()
993 linux_iface_up(drv->global->ioctl_sock, namebuf) == 0) { in wpa_driver_nl80211_event_rtm_newlink()
996 namebuf); in wpa_driver_nl80211_event_rtm_newlink()
1056 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()