Home
last modified time | relevance | path

Searched refs:linesize (Results 1 – 25 of 28) sorted by relevance

12

/freebsd-14.2/usr.sbin/setfmac/
H A Dsetfmac.c195 chomp_line(char **line, size_t *linesize) in chomp_line() argument
206 *linesize = 0; in chomp_line()
210 *linesize -= s - *line; in chomp_line()
215 if (s != &(*line)[*linesize - 1]) { in chomp_line()
216 *linesize = s - *line + 1; in chomp_line()
218 s = malloc(*linesize + 1); in chomp_line()
221 strncpy(s, *line, *linesize); in chomp_line()
225 (*line)[*linesize] = '\0'; in chomp_line()
235 size_t nlines = 0, linesize; in add_specs() local
259 line = fgetln(fp, &linesize); in add_specs()
[all …]
/freebsd-14.2/lib/libc/gen/
H A Dgetgrent.c847 size_t bufsize, linesize; in files_group() local
890 linesize--; in files_group()
904 buffer[linesize] = '\0'; in files_group()
906 &buffer[linesize + 1], bufsize - linesize - 1, errnop); in files_group()
1037 if (linesize >= adjsize) { in dns_group()
1045 &buffer[linesize + 1], bufsize - linesize - 1, errnop); in dns_group()
1430 linesize--; in compat_group()
1463 buffer[linesize] = '\0'; in compat_group()
1465 &buffer[linesize + 1], bufsize - linesize - 1, errnop); in compat_group()
1500 if (linesize == 0 || is_comment_line(line, linesize)) in __gr_match_entry()
[all …]
H A Dgetpwent.c1099 size_t bufsize, linesize; in dns_passwd() local
1167 linesize = strlcpy(buffer, hes[0], bufsize); in dns_passwd()
1168 if (linesize >= bufsize) { in dns_passwd()
/freebsd-14.2/sys/arm/arm/
H A Didentcpu-v6.c192 uint32_t type, val, size, sets, ways, linesize; in print_v7_cache() local
211 linesize = 1 << (CPUV7_CT_xSIZE_LEN(val) + 4); in print_v7_cache()
212 size = (ways * sets * linesize) / 1024; in print_v7_cache()
216 size, linesize,ways); in print_v7_cache()
219 size, linesize, ways); in print_v7_cache()
236 linesize = 1 << (CPUV7_CT_xSIZE_LEN(val) + 4); in print_v7_cache()
237 size = (ways * sets * linesize) / 1024; in print_v7_cache()
239 size, linesize, ways); in print_v7_cache()
/freebsd-14.2/crypto/openssh/
H A Ddh.c163 size_t linesize = 0; in choose_dh() local
175 while (getline(&line, &linesize, f) != -1) { in choose_dh()
195 linesize = 0; in choose_dh()
208 while (getline(&line, &linesize, f) != -1) { in choose_dh()
H A Dauth2-pubkeyfile.c226 size_t linesize = 0; in auth_process_principals() local
233 while (getline(&line, &linesize, f) != -1) { in auth_process_principals()
411 size_t linesize = 0; in auth_check_authkeys_file() local
418 while (getline(&line, &linesize, f) != -1) { in auth_check_authkeys_file()
H A Dauthfile.c210 size_t linesize = 0; in sshkey_try_load_public() local
225 while (getline(&line, &linesize, f) != -1) { in sshkey_try_load_public()
383 size_t linesize = 0; in sshkey_in_file() local
393 while (getline(&line, &linesize, f) != -1) { in sshkey_in_file()
H A Dsshsig.c990 size_t linesize = 0; in sshsig_check_allowed_keys() local
1003 while (getline(&line, &linesize, f) != -1) { in sshsig_check_allowed_keys()
1009 linesize = 0; in sshsig_check_allowed_keys()
1031 size_t linesize = 0; in sshsig_find_principals() local
1043 while (getline(&line, &linesize, f) != -1) { in sshsig_find_principals()
1049 linesize = 0; in sshsig_find_principals()
1079 size_t i, nprincipals = 0, linesize = 0; in sshsig_match_principals() local
1097 while (getline(&line, &linesize, f) != -1) { in sshsig_match_principals()
1118 linesize = 0; in sshsig_match_principals()
H A Dssh-keyscan.c723 size_t linesize = 0; in main() local
859 while (getline(&line, &linesize, fp) != -1) { in main()
H A Dssh-keygen.c969 size_t linesize = 0; in do_fingerprint() local
984 while (getline(&line, &linesize, f) != -1) { in do_fingerprint()
2186 size_t linesize = 0; in do_show_cert() local
2202 while (getline(&line, &linesize, f) != -1) { in do_show_cert()
2292 size_t blen = 0, linesize = 0; in update_krl_from_file() local
2307 while (getline(&line, &linesize, krl_spec) != -1) { in update_krl_from_file()
2308 if (linesize >= INT_MAX) { in update_krl_from_file()
2310 path, linesize); in update_krl_from_file()
H A Dhostfile.c770 size_t linesize = 0, l; in hostkeys_foreach_file() local
776 while (getline(&line, &linesize, f) != -1) { in hostkeys_foreach_file()
H A Dssh-add.c139 size_t linesize = 0; in delete_stdin() local
143 while (getline(&line, &linesize, stdin) != -1) { in delete_stdin()
H A Dsession.c849 size_t linesize = 0; in read_environment_file() local
856 while (getline(&line, &linesize, f) != -1) { in read_environment_file()
/freebsd-14.2/contrib/libfido2/tools/
H A Dbase64.c115 size_t linesize = 0; in base64_read() local
121 if ((n = getline(&line, &linesize, f)) <= 0 || in base64_read()
H A Dutil.c145 size_t linesize = 0; in string_read() local
150 if ((n = getline(&line, &linesize, f)) <= 0 || in string_read()
/freebsd-14.2/contrib/ncurses/ncurses/base/
H A Dlib_window.c204 size_t linesize; in dupwin() local
244 linesize = (unsigned) (win->_maxx + 1) * sizeof(NCURSES_CH_T); in dupwin()
246 memcpy(nwin->_line[i].text, win->_line[i].text, linesize); in dupwin()
H A Dlib_screen.c560 size_t linesize = sizeof(NCURSES_CH_T) * (size_t) (tmp._maxx + 1); in NCURSES_SP_NAME() local
594 if (read_block(nwin->_line[n].text, linesize, filep) < 0) { in NCURSES_SP_NAME()
/freebsd-14.2/lib/libc/rpc/
H A Dgetrpcent.c217 size_t linesize; in files_rpcent() local
264 if ((line = fgetln(st->fp, &linesize)) == NULL) { in files_rpcent()
270 if (bufsize <= linesize + _ALIGNBYTES + sizeof(char *)) { in files_rpcent()
276 aliases = (char **)_ALIGN(&buffer[linesize+1]); in files_rpcent()
285 memcpy(buffer, line, linesize); in files_rpcent()
286 buffer[linesize] = '\0'; in files_rpcent()
/freebsd-14.2/sys/netinet/
H A Dtcp_hostcache.c630 const int linesize = 128; in sysctl_tcp_hc_list() local
645 linesize; in sysctl_tcp_hc_list()
656 linesize, req); in sysctl_tcp_hc_list()
716 const int linesize = 50; in sysctl_tcp_hc_histo() local
739 sbuf_new_for_sysctl(&sb, NULL, 16 * linesize, req); in sysctl_tcp_hc_histo()
H A Dtcp_fastopen.c1152 const int linesize = 128; in sysctl_net_inet_tcp_fastopen_ccache_list() local
1176 sbuf_new(&sb, NULL, linesize * (num_entries + 1), SBUF_INCLUDENUL); in sysctl_net_inet_tcp_fastopen_ccache_list()
/freebsd-14.2/usr.bin/mail/
H A Dfio.c185 readline(FILE *ibuf, char *linebuf, int linesize) in readline() argument
190 if (fgets(linebuf, linesize, ibuf) == NULL) in readline()
/freebsd-14.2/contrib/byacc/
H A Dreader.c48 static int linesize; variable
289 if (line == NULL || linesize != (LINESIZE + 1)) in get_line()
293 linesize = LINESIZE + 1; in get_line()
294 line = TMALLOC(char, linesize); in get_line()
305 if ((i + 3) >= linesize) in get_line()
307 linesize += LINESIZE; in get_line()
308 line = TREALLOC(char, line, linesize); in get_line()
1151 buf_size = (size_t)linesize; in copy_param()
1163 buf_size += (size_t)linesize; in copy_param()
/freebsd-14.2/usr.bin/sort/
H A Dsort.c221 size_t linesize = 0; in read_fns_from_file0() local
231 while ((linelen = getdelim(&line, &linesize, '\0', f)) != -1) { in read_fns_from_file0()
245 linesize = 0; in read_fns_from_file0()
/freebsd-14.2/lib/libc/net/
H A Dgetservent.c302 size_t linesize; in files_servent() local
351 if ((line = fgetln(st->fp, &linesize)) == NULL) { in files_servent()
389 rv = parse_result(serv, buffer, bufsize, line, linesize, in files_servent()
/freebsd-14.2/usr.sbin/mountd/
H A Dmountd.c1552 static size_t linesize; variable
3595 if (linesize < len + totlen + 1) { in get_line()
3596 linesize = len + totlen + 1; in get_line()
3597 line = realloc(line, linesize); in get_line()

12