/freebsd/contrib/mandoc/ |
H A D | compat_stringlist.c | 54 sl->sl_str = reallocarray(NULL, sl->sl_max, sizeof(char *)); in sl_init() 55 if (sl->sl_str == NULL) { in sl_init() 72 new = reallocarray(sl->sl_str, (sl->sl_max + _SL_CHUNKSIZE), in sl_add() 77 sl->sl_str = new; in sl_add() 79 sl->sl_str[sl->sl_cur++] = name; in sl_add() 94 if (sl->sl_str) { in sl_free() 97 free(sl->sl_str[i]); in sl_free() 98 free(sl->sl_str); in sl_free() 113 if (strcmp(sl->sl_str[i], name) == 0) in sl_find() 114 return sl->sl_str[i]; in sl_find() [all …]
|
H A D | compat_stringlist.h | 39 char **sl_str; member
|
H A D | test-stringlist.c | 33 if (sl->sl_str[0] != teststr) in main()
|
H A D | soelim.c | 78 snprintf(path, sizeof(path), "%s/%s", includes->sl_str[i], in soelim_fopen()
|
/freebsd/lib/libc/gen/ |
H A D | stringlist.c | 55 sl->sl_str = malloc(sl->sl_max * sizeof(char *)); in sl_init() 56 if (sl->sl_str == NULL) in sl_init() 70 sl->sl_str = reallocf(sl->sl_str, sl->sl_max * sizeof(char *)); in sl_add() 71 if (sl->sl_str == NULL) in sl_add() 74 sl->sl_str[sl->sl_cur++] = name; in sl_add() 89 if (sl->sl_str) { in sl_free() 92 free(sl->sl_str[i]); in sl_free() 93 free(sl->sl_str); in sl_free() 108 if (strcmp(sl->sl_str[i], name) == 0) in sl_find() 109 return sl->sl_str[i]; in sl_find()
|
H A D | getusershell.c | 257 return (const char *const *)(sl->sl_str); in initshells()
|
/freebsd/contrib/tnftp/src/ |
H A D | complete.c | 98 p = words->sl_str[0] + wordlen; in complete_ambiguous() 110 lastmatch = words->sl_str[0]; in complete_ambiguous() 113 for (j = wordlen ; j < strlen(words->sl_str[i]); j++) in complete_ambiguous() 114 if (lastmatch[j] != words->sl_str[i][j]) in complete_ambiguous() 130 qsort(words->sl_str, words->sl_cur, sizeof(char *), comparstr); in complete_ambiguous() 233 (void)strlcat(path, words->sl_str[0], sizeof(path)); in complete_local() 345 cp = dirlist->sl_str[i]; in complete_remote()
|
H A D | ftp_var.h | 293 #define margv (marg_sl->sl_str) /* args parsed from input line */
|
H A D | util.c | 897 w = strlen(sl->sl_str[i]); in list_vertical() 909 p = sl->sl_str[j * lines + i]; in list_vertical()
|
/freebsd/usr.sbin/services_mkdb/ |
H A D | services_mkdb.c | 199 (void)printf("add %s %zu %s [ ", sl->sl_str[0], port, proto); in add() 201 (void)printf("%s ", sl->sl_str[i]); in add() 208 sl->sl_str[0], port, proto, mkaliases(sl, abuf, sizeof(abuf))) + 1; in add() 224 sl->sl_str[i], proto) + 1; in add() 411 if (strcmp(sl->sl_str[i], str) == 0) in getprotoindex() 427 return sl->sl_str[i]; in getprotostr() 437 nc = strlcpy(buf + pos, sl->sl_str[i], len); in mkaliases() 450 warn("aliases for `%s' truncated", sl->sl_str[0]); in mkaliases()
|
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | h_resolv.c | 99 char *host = hosts->sl_str[i]; in resolvone() 199 hosts->sl_str[i], ask[i], got[i]); in main()
|
/freebsd/lib/libc/tests/resolv/ |
H A D | resolv_test.c | 178 char *host = hosts->sl_str[i]; in resolvone() 205 threadnum, hosts->sl_str[i], error, errstr); in resolvone() 293 "Error: host %s ask %d got %d", hosts->sl_str[i], in run_tests()
|
/freebsd/usr.bin/locale/ |
H A D | locale.c | 458 printf("%s\n", locales->sl_str[i]); in list_locales() 495 s = locales->sl_str[i]; in list_charmaps() 508 qsort(charmaps->sl_str, charmaps->sl_cur, sizeof(char *), scmp); in list_charmaps() 512 printf("%s\n", charmaps->sl_str[i]); in list_charmaps() 570 qsort(locales->sl_str, locales->sl_cur, sizeof(char *), scmp); in init_locales_list()
|
/freebsd/include/ |
H A D | stringlist.h | 40 char **sl_str; member
|
/freebsd/usr.sbin/nghook/ |
H A D | main.c | 305 if (NgSendAsciiMsg(cs, path, "%s", msgs->sl_str[i]) == -1) in send_msgs() 306 err(EX_OSERR, "sending message '%s'", msgs->sl_str[i]); in send_msgs()
|
/freebsd/usr.bin/soelim/ |
H A D | soelim.c | 70 snprintf(path, sizeof(path), "%s/%s", includes->sl_str[i], in soelim_fopen()
|
/freebsd/usr.sbin/kbdmap/ |
H A D | kbdmap.c | 682 qsort(lang_list->sl_str, lang_list->sl_cur, sizeof(char*), in menu_read() 686 printf("%s ", lang_list->sl_str[i]); in menu_read()
|
/freebsd/contrib/tnftp/ |
H A D | tnftp.h | 177 char **sl_str; member
|
/freebsd/usr.sbin/pw/ |
H A D | pw_conf.c | 496 "," : "", cnf->groups->sl_str[j]); in write_userconfig()
|
H A D | pw_user.c | 1433 grp = GETGRNAM(cmdcnf->groups->sl_str[i]); in pw_user_add() 1792 grp = GETGRNAM(groups->sl_str[i]); in pw_user_mod()
|
/freebsd/lib/libc/tests/nss/ |
H A D | getproto_test.c | 252 pe->p_aliases = sl->sl_str; in protoent_read_snapshot_func()
|
H A D | getrpc_test.c | 251 rpc->r_aliases = sl->sl_str; in rpcent_read_snapshot_func()
|
H A D | getserv_test.c | 264 serv->s_aliases = sl->sl_str; in servent_read_snapshot_func()
|
H A D | getgr_test.c | 273 grp->gr_mem = sl->sl_str; in group_read_snapshot_func()
|
H A D | gethostby_test.c | 644 ht->h_aliases = sl1->sl_str; in hostent_read_snapshot_func() 648 ht->h_addr_list = sl2->sl_str; in hostent_read_snapshot_func()
|