Home
last modified time | relevance | path

Searched refs:sl_str (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/contrib/mandoc/
H A Dcompat_stringlist.c54 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 Dcompat_stringlist.h39 char **sl_str; member
H A Dtest-stringlist.c33 if (sl->sl_str[0] != teststr) in main()
H A Dsoelim.c78 snprintf(path, sizeof(path), "%s/%s", includes->sl_str[i], in soelim_fopen()
/freebsd/lib/libc/gen/
H A Dstringlist.c55 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 Dgetusershell.c257 return (const char *const *)(sl->sl_str); in initshells()
/freebsd/contrib/tnftp/src/
H A Dcomplete.c98 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 Dftp_var.h293 #define margv (marg_sl->sl_str) /* args parsed from input line */
H A Dutil.c897 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 Dservices_mkdb.c199 (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 Dh_resolv.c99 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 Dresolv_test.c178 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 Dlocale.c458 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 Dstringlist.h40 char **sl_str; member
/freebsd/usr.sbin/nghook/
H A Dmain.c305 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 Dsoelim.c70 snprintf(path, sizeof(path), "%s/%s", includes->sl_str[i], in soelim_fopen()
/freebsd/usr.sbin/kbdmap/
H A Dkbdmap.c682 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 Dtnftp.h177 char **sl_str; member
/freebsd/usr.sbin/pw/
H A Dpw_conf.c496 "," : "", cnf->groups->sl_str[j]); in write_userconfig()
H A Dpw_user.c1433 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 Dgetproto_test.c252 pe->p_aliases = sl->sl_str; in protoent_read_snapshot_func()
H A Dgetrpc_test.c251 rpc->r_aliases = sl->sl_str; in rpcent_read_snapshot_func()
H A Dgetserv_test.c264 serv->s_aliases = sl->sl_str; in servent_read_snapshot_func()
H A Dgetgr_test.c273 grp->gr_mem = sl->sl_str; in group_read_snapshot_func()
H A Dgethostby_test.c644 ht->h_aliases = sl1->sl_str; in hostent_read_snapshot_func()
648 ht->h_addr_list = sl2->sl_str; in hostent_read_snapshot_func()

12