Searched refs:sl_str (Results 1 - 19 of 19) sorted by relevance

/netbsd-current/external/bsd/mdocml/dist/
H A Dcompat_stringlist.c59 sl->sl_str = reallocarray(NULL, sl->sl_max, sizeof(char *));
60 if (sl->sl_str == NULL)
74 sl->sl_str = reallocarray(sl->sl_str,
76 if (sl->sl_str == NULL)
79 sl->sl_str[sl->sl_cur++] = name;
94 if (sl->sl_str) {
97 free(sl->sl_str[i]);
98 free(sl->sl_str);
113 if (strcmp(sl->sl_str[
[all...]
H A Dcompat_stringlist.h36 char **sl_str; member in struct:_stringlist
H A Dtest-stringlist.c33 if (sl->sl_str[0] != teststr)
H A Dsoelim.c78 snprintf(path, sizeof(path), "%s/%s", includes->sl_str[i],
/netbsd-current/lib/libc/gen/
H A Dstringlist.c71 sl->sl_str = NULL;
72 errno = reallocarr(&sl->sl_str, sl->sl_max, sizeof(*sl->sl_str));
93 char **new = sl->sl_str;
100 sl->sl_str = new;
102 sl->sl_str[sl->sl_cur++] = name;
117 if (sl->sl_str) {
120 free(sl->sl_str[i]);
121 free(sl->sl_str);
138 if (strcmp(sl->sl_str[
[all...]
H A Dgetnetgrent.c193 (void)fprintf(stderr, "%s ", sl->sl_str[i]);
/netbsd-current/include/
H A Dstringlist.h41 char **sl_str; member in struct:_stringlist
/netbsd-current/usr.sbin/services_mkdb/
H A Doutput_cdb.c79 len = strlen(sl->sl_str[i]);
81 errx(1, "Service alias ``%s'' invalid", sl->sl_str[i]);
94 len = strlen(sl->sl_str[i]);
96 memcpy(data_iter, sl->sl_str[i], len + 1);
120 len = strlen(sl->sl_str[i]);
123 memcpy(key + 2, sl->sl_str[i], len);
127 warnx("duplicate service: `%s/%s'", sl->sl_str[i], proto);
132 warnx("duplicate service: `%s'", sl->sl_str[i]);
H A Doutput_db.c104 sl->sl_str[0], port, proto, mkaliases(sl, abuf, sizeof(abuf))) + 1;
120 sl->sl_str[i], proto) + 1;
175 nc = strlcpy(buf + pos, sl->sl_str[i], len);
188 warn("aliases for `%s' truncated", sl->sl_str[0]);
H A Dservices_mkdb.c301 if (strcmp(sl->sl_str[i], str) == 0)
315 return sl->sl_str[i];
/netbsd-current/libexec/ftpd/
H A Dpopen.c162 isls = (strcmp(sl->sl_str[0], INTERNAL_LS) == 0);
194 exit(ls_main(sl->sl_cur - 1, sl->sl_str));
198 execv(sl->sl_str[0], sl->sl_str);
H A Dconf.c864 argv = sl->sl_str;
/netbsd-current/usr.bin/ftp/
H A Dcomplete.c91 p = words->sl_str[0] + wordlen;
102 lastmatch = words->sl_str[0];
105 for (j = wordlen; j < strlen(words->sl_str[i]); j++)
106 if (lastmatch[j] != words->sl_str[i][j])
122 qsort(words->sl_str, words->sl_cur, sizeof(char *), comparstr);
225 (void)strlcat(path, words->sl_str[0], sizeof(path));
337 cp = dirlist->sl_str[i];
H A Dftp_var.h293 #define margv (marg_sl->sl_str) /* args parsed from input line */
H A Dutil.c918 w = strlen(sl->sl_str[i]);
930 p = sl->sl_str[j * lines + i];
/netbsd-current/tests/lib/libpthread/
H A Dh_resolv.c99 char *host = hosts->sl_str[i];
203 hosts->sl_str[i], ask[i], got[i]);
/netbsd-current/usr.bin/locale/
H A Dlocale.c322 printf("%s\n", locales->sl_str[i]);
359 s = locales->sl_str[i];
372 qsort(charmaps->sl_str, charmaps->sl_cur, sizeof(char *), scmp);
376 printf("%s\n", charmaps->sl_str[i]);
437 qsort(locales->sl_str, locales->sl_cur, sizeof(char *), scmp);
/netbsd-current/usr.bin/mail/
H A Dcomplete.c101 w = strlen(sl->sl_str[i]);
114 p = sl->sl_str[j * lines + i];
259 p = words->sl_str[0] + wordlen;
271 lastmatch = words->sl_str[0];
274 for (j = wordlen; j < strlen(words->sl_str[i]); j++)
275 if (lastmatch[j] != words->sl_str[i][j])
291 qsort(words->sl_str, words->sl_cur, sizeof(char *), comparstr);
409 (void)estrlcat(path, words->sl_str[0], sizeof(path));
/netbsd-current/external/gpl2/xcvs/dist/lib/
H A Dregexec.c2699 Idx sub_last_idx, sl_str, bkref_str_off;
2704 sl_str = sub_top->str_idx;
2712 sl_str_diff = sub_last->str_idx - sl_str;
2730 if (memcmp (buf + bkref_str_off, buf + sl_str, sl_str_diff) != 0)
2734 sl_str += sl_str_diff;
2751 ++sl_str;
2753 for (; sl_str <= bkref_str_idx; ++sl_str)
2758 sl_str_off = sl_str - sub_top->str_idx;
2775 if (buf [bkref_str_off++] != buf[sl_str
2695 Idx sub_last_idx, sl_str, bkref_str_off; local
[all...]

Completed in 221 milliseconds