Home
last modified time | relevance | path

Searched refs:namebuf (Results 1 – 21 of 21) 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/syslinux/core/fs/lib/
Dsearchconfig.c21 char namebuf[FILENAME_MAX]; in search_dirs() local
27 snprintf(namebuf, sizeof namebuf, in search_dirs()
31 if (realpath(realname, namebuf, FILENAME_MAX) == (size_t)-1) in search_dirs()
/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/syslinux/com32/sysdump/
Dacpi.c156 char namebuf[64]; in dump_table() local
163 snprintf(namebuf, sizeof namebuf, "acpi/%4.4s", name); in dump_table()
164 cpio_mkdir(be, namebuf); in dump_table()
167 snprintf(namebuf, sizeof namebuf, "acpi/%4.4s/%08x", name, (uint32_t)ptr); in dump_table()
168 cpio_hdr(be, MODE_FILE, len, namebuf); in dump_table()
/external/python/cpython2/Python/
Dtraceback.c125 char namebuf[MAXPATHLEN+1]; in _Py_DisplaySourceLine() local
156 strcpy(namebuf, PyString_AsString(v)); in _Py_DisplaySourceLine()
157 if (strlen(namebuf) != len) in _Py_DisplaySourceLine()
159 if (len > 0 && namebuf[len-1] != SEP) in _Py_DisplaySourceLine()
160 namebuf[len++] = SEP; in _Py_DisplaySourceLine()
161 strcpy(namebuf+len, tail); in _Py_DisplaySourceLine()
162 xfp = fopen(namebuf, "r" PY_STDIOTEXTMODE); in _Py_DisplaySourceLine()
/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/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.c1055 static char *namebuf; local
1061 free(namebuf);
1062 namebuf = xmalloc(need);
1065 (void) snprintf(namebuf, need, "%s%s%s", targ,
1067 np = namebuf;
Dmonitor_wrap.c486 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) in mm_pty_allocate() argument
521 strlcpy(namebuf, p, namebuflen); /* Possible truncation */ in mm_pty_allocate()
/external/libpng/contrib/tools/
Dpngcp.c478 char namebuf[FILENAME_MAX]; /* output file name */ member
1633 dp->namebuf[0] = 0; in makename()
1642 if (dsize <= (sizeof dp->namebuf)-2) /* Allow for name + '/' + '\0' */ in makename()
1651 memcpy(dp->namebuf, dir, dsize); in makename()
1652 if (dsize > 0 && dp->namebuf[dsize-1] != '/') in makename()
1653 dp->namebuf[dsize++] = '/'; in makename()
1662 if (dsize+isize < (sizeof dp->namebuf)) /* dsize + infile + '\0' */ in makename()
1664 memcpy(dp->namebuf+dsize, infile, isize+1); in makename()
1666 if (isdir(dp, dp->namebuf)) in makename()
1668 dp->namebuf); in makename()
[all …]
/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.c2369 char namebuf[32]; in pubkey_show() local
2371 snprintf(namebuf, sizeof(namebuf), "%s(%s)", type, name); in pubkey_show()
2375 push_certinfo(namebuf, num); in pubkey_show()
2408 char namebuf[128]; in X509V3_ext() local
2416 asn1_object_dump(obj, namebuf, sizeof(namebuf)); in X509V3_ext()
2436 Curl_ssl_push_certinfo(data, certnum, namebuf, buf); in X509V3_ext()
/external/libcups/cups/
Ddest.c238 static char *cups_get_default(const char *filename, char *namebuf,
4117 char *namebuf, /* I - Name buffer */ argument
4128 *namebuf = '\0';
4138 strlcpy(namebuf, value, namesize);
4140 if ((nameptr = strchr(namebuf, ' ')) != NULL)
4142 if ((nameptr = strchr(namebuf, '\t')) != NULL)
4145 if ((nameptr = strchr(namebuf, '/')) != NULL)
4156 return (*namebuf ? namebuf : NULL);
/external/python/cpython2/Modules/
Dposixmodule.c2292 char namebuf[MAX_PATH+5]; /* Overallocate for \\*.*\0 */ in posix_listdir() local
2293 char *bufptr = namebuf; in posix_listdir()
2294 Py_ssize_t len = sizeof(namebuf)-5; /* only claim to have space for MAX_PATH */ in posix_listdir()
2381 char ch = namebuf[len-1]; in posix_listdir()
2383 namebuf[len++] = '/'; in posix_listdir()
2384 strcpy(namebuf + len, "*.*"); in posix_listdir()
2391 hFindFile = FindFirstFile(namebuf, &FileData); in posix_listdir()
2398 return win32_error("FindFirstFile", namebuf); in posix_listdir()
2425 win32_error("FindNextFile", namebuf); in posix_listdir()
2433 return win32_error("FindClose", namebuf); in posix_listdir()
[all …]
D_ssl.c681 char namebuf[X509_NAME_MAXLEN]; in _create_tuple_for_attribute() local
688 buflen = OBJ_obj2txt(namebuf, sizeof(namebuf), name, 0); in _create_tuple_for_attribute()
693 name_obj = PyString_FromStringAndSize(namebuf, buflen); in _create_tuple_for_attribute()
/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.c945 char namebuf[IFNAMSIZ]; in wpa_driver_nl80211_event_rtm_newlink() local
997 namebuf[0] = '\0'; in wpa_driver_nl80211_event_rtm_newlink()
998 if (if_indextoname(ifi->ifi_index, namebuf) && in wpa_driver_nl80211_event_rtm_newlink()
999 linux_iface_up(drv->global->ioctl_sock, namebuf) > 0) { in wpa_driver_nl80211_event_rtm_newlink()
1001 "event since interface %s is up", namebuf); in wpa_driver_nl80211_event_rtm_newlink()
1006 namebuf, ifname); in wpa_driver_nl80211_event_rtm_newlink()
1033 if (if_indextoname(ifi->ifi_index, namebuf) && in wpa_driver_nl80211_event_rtm_newlink()
1034 linux_iface_up(drv->global->ioctl_sock, namebuf) == 0) { in wpa_driver_nl80211_event_rtm_newlink()
1037 namebuf); in wpa_driver_nl80211_event_rtm_newlink()
1099 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()
/external/e2fsprogs/misc/
Dfuse2fs.c2755 char namebuf[EXT2_NAME_LEN + 1]; in op_readdir_iter() local
2758 memcpy(namebuf, dirent->name, dirent->name_len & 0xFF); in op_readdir_iter()
2759 namebuf[dirent->name_len & 0xFF] = 0; in op_readdir_iter()
2760 ret = i->func(i->buf, namebuf, NULL, 0); in op_readdir_iter()