Home
last modified time | relevance | path

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

12

/freebsd/usr.sbin/setfmac/
H A Dsetfmac.c195 chomp_line(char **line, size_t *linesize) in chomp_line() argument
200 for (s = *line; (unsigned)(s - *line) < *linesize; s++) { in chomp_line()
206 *linesize = 0; in chomp_line()
209 memmove(*line, s, *linesize - (s - *line)); in chomp_line()
210 *linesize -= s - *line; in chomp_line()
211 for (s = &(*line)[*linesize - 1]; s >= *line; s--) { 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()
[all …]
/freebsd/lib/libc/gen/
H A Dgetgrent.c847 size_t bufsize, linesize; in files_group() local
888 while ((line = fgetln(st->fp, &linesize)) != NULL) { in files_group()
889 if (line[linesize-1] == '\n') in files_group()
890 linesize--; in files_group()
891 rv = __gr_match_entry(line, linesize, how, name, gid); in files_group()
898 if (bufsize <= linesize + _ALIGNBYTES + sizeof(char *)) { in files_group()
903 memcpy(buffer, line, linesize); in files_group()
904 buffer[linesize] = '\0'; in files_group()
905 rv = __gr_parse_entry(buffer, linesize, grp, in files_group()
906 &buffer[linesize + 1], bufsize - linesize - 1, errnop); in files_group()
[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/sys/arm/arm/
H A Didentcpu-v6.c191 uint32_t type, val, size, sets, ways, linesize; in print_v7_cache() local
210 linesize = 1 << (CPUV7_CT_xSIZE_LEN(val) + 4); in print_v7_cache()
211 size = (ways * sets * linesize) / 1024; in print_v7_cache()
215 size, linesize,ways); in print_v7_cache()
218 size, linesize, ways); in print_v7_cache()
235 linesize = 1 << (CPUV7_CT_xSIZE_LEN(val) + 4); in print_v7_cache()
236 size = (ways * sets * linesize) / 1024; in print_v7_cache()
238 size, linesize, ways); in print_v7_cache()
/freebsd/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.c989 size_t linesize = 0; in sshsig_check_allowed_keys() local
1002 while (getline(&line, &linesize, f) != -1) { in sshsig_check_allowed_keys()
1008 linesize = 0; in sshsig_check_allowed_keys()
1030 size_t linesize = 0; in sshsig_find_principals() local
1042 while (getline(&line, &linesize, f) != -1) { in sshsig_find_principals()
1048 linesize = 0; in sshsig_find_principals()
1078 size_t i, nprincipals = 0, linesize = 0; in sshsig_match_principals() local
1096 while (getline(&line, &linesize, f) != -1) { in sshsig_match_principals()
1117 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.c965 size_t linesize = 0; in do_fingerprint() local
980 while (getline(&line, &linesize, f) != -1) { in do_fingerprint()
2182 size_t linesize = 0; in do_show_cert() local
2198 while (getline(&line, &linesize, f) != -1) { in do_show_cert()
2288 size_t blen = 0, linesize = 0; in update_krl_from_file() local
2303 while (getline(&line, &linesize, krl_spec) != -1) { in update_krl_from_file()
2304 if (linesize >= INT_MAX) { in update_krl_from_file()
2306 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/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/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/lib/libc/rpc/
H A Dgetrpcent.c214 size_t linesize; in files_rpcent() local
261 if ((line = fgetln(st->fp, &linesize)) == NULL) { in files_rpcent()
267 if (bufsize <= linesize + _ALIGNBYTES + sizeof(char *)) { in files_rpcent()
273 aliases = (char **)_ALIGN(&buffer[linesize+1]); in files_rpcent()
282 memcpy(buffer, line, linesize); in files_rpcent()
283 buffer[linesize] = '\0'; in files_rpcent()
/freebsd/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/contrib/byacc/
H A Dreader.c66 static size_t linesize; /* length of current input-line */ variable
317 linesize = save_area.line_size; in restore_line()
336 save_area.line_data = TMALLOC(char, linesize); in get_line()
338 save_area.line_size = linesize; in get_line()
340 memcpy(save_area.line_data, line, linesize); in get_line()
363 if (line == NULL || linesize != (LINESIZE + 1)) in get_line()
367 linesize = LINESIZE + 1; in get_line()
368 line = TMALLOC(char, linesize); in get_line()
379 if ((i + 3) >= linesize) in get_line()
381 linesize += LINESIZE; in get_line()
[all …]
/freebsd/usr.bin/mail/
H A Dfio.c179 readline(FILE *ibuf, char *linebuf, int linesize) in readline() argument
184 if (fgets(linebuf, linesize, ibuf) == NULL) in readline()
/freebsd/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/lib/libc/net/
H A Dgetservent.c299 size_t linesize; in files_servent() local
348 if ((line = fgetln(st->fp, &linesize)) == NULL) { in files_servent()
386 rv = parse_result(serv, buffer, bufsize, line, linesize, in files_servent()
/freebsd/usr.sbin/mountd/
H A Dmountd.c1575 static size_t linesize; variable
3622 if (linesize < len + totlen + 1) { in get_line()
3623 linesize = len + totlen + 1; in get_line()
3624 line = realloc(line, linesize); in get_line()

12