Home
last modified time | relevance | path

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

12

/freebsd/contrib/wireguard-tools/
H A Dipc-uapi.h36 size_t line_buffer_len = 0, line_len; in userspace_set_device() local
99 line_len = strlen(key); in userspace_set_device()
101 if (line_len == 1 && key[0] == '\n') in userspace_set_device()
104 if (!value || line_len == 0 || key[line_len - 1] != '\n') in userspace_set_device()
106 *value++ = key[--line_len] = '\0'; in userspace_set_device()
143 size_t line_buffer_len = 0, line_len; in userspace_get_device() local
167 line_len = strlen(key); in userspace_get_device()
168 if (line_len == 1 && key[0] == '\n') in userspace_get_device()
171 if (!value || line_len == 0 || key[line_len - 1] != '\n') in userspace_get_device()
173 *value++ = key[--line_len] = '\0'; in userspace_get_device()
/freebsd/contrib/wpa/src/utils/
H A Dbase64.c32 int line_len; in base64_gen_encode() local
49 line_len = 0; in base64_gen_encode()
56 line_len += 4; in base64_gen_encode()
57 if ((add_pad & BASE64_LF) && line_len >= 72) { in base64_gen_encode()
59 line_len = 0; in base64_gen_encode()
76 line_len += 4; in base64_gen_encode()
79 if ((add_pad & BASE64_LF) && line_len) in base64_gen_encode()
H A Dwpa_debug.c402 const size_t line_len = 16; in _wpa_hexdump_ascii() local
450 llen = len > line_len ? line_len : len; in _wpa_hexdump_ascii()
454 for (i = llen; i < line_len; i++) in _wpa_hexdump_ascii()
463 for (i = llen; i < line_len; i++) in _wpa_hexdump_ascii()
486 llen = len > line_len ? line_len : len; in _wpa_hexdump_ascii()
490 for (i = llen; i < line_len; i++) in _wpa_hexdump_ascii()
499 for (i = llen; i < line_len; i++) in _wpa_hexdump_ascii()
/freebsd/contrib/less/
H A Dpattern.c301 int line_len = (int) aline_len; /*{{type-issue}}*/ in match_pattern1()
307 matched = match(tpattern, strlen(tpattern), line, line_len, &sp, &ep, nsp); in match_pattern1()
315 matched = re_search(pattern, line, line_len, 0, line_len, &search_regs) >= 0; in match_pattern1()
331 rm[0].rm_eo = line_len; in match_pattern1()
369 int mcount = pcre_exec(pattern, NULL, line, line_len, in match_pattern1()
392 int mcount = pcre2_match(pattern, (PCRE2_SPTR)line, line_len, in match_pattern1()
447 public int match_pattern(PATTERN_TYPE pattern, constant char *tpattern, constant char *line, size_t line_len, constant char **sp, constant char **ep, int nsp, int notbol, int search_type) in match_pattern()
449 int matched = match_pattern1(pattern, tpattern, line, line_len, sp, ep, nsp, notbol, search_type); in match_pattern()
297 match_pattern1(PATTERN_TYPE pattern,char * tpattern,char * line,int line_len,char ** sp,char ** ep,int nsp,int notbol,int search_type) match_pattern1() argument
445 match_pattern(PATTERN_TYPE pattern,char * tpattern,char * line,int line_len,char ** sp,char ** ep,int nsp,int notbol,int search_type) match_pattern() argument
H A Dsearch.c1018 static void hilite_line(POSITION linepos, constant char *line, size_t line_len, int *chpos, constant char **sp, constant char **ep, int nsp) in search_pos()
1021 constant char *line_end = line + line_len; in search_pos()
1203 static int matches_filters(POSITION pos, char *cline, size_t line_len, int *chpos, POSITION linepos, constant char **sp, constant char **ep, int nsp) in search_range()
1210 cline, line_len, sp, ep, nsp, 0, filter->search_type); in search_range()
1370 static osc8_match osc8_search_line1(int search_type, POSITION linepos, POSITION spos, constant char *line, size_t line_len, constant char *param, POSITION clickpos) in search_range()
1372 constant char *line_end = &line[line_len]; in search_range()
1444 static osc8_match osc8_search_line(int search_type, POSITION linepos, constant char *line, size_t line_len, constant char *param, POSITION clickpos, int *matches) in hist_pattern()
1450 size_t sline_len = line_len; in hist_pattern()
1501 size_t line_len; in search()
1563 pos = forw_raw_line(pos, &line, &line_len); in search()
926 hilite_line(POSITION linepos,char * line,int line_len,int * chpos,char ** sp,char ** ep,int nsp,int cvt_ops) hilite_line() argument
1111 matches_filters(POSITION pos,char * cline,int line_len,int * chpos,POSITION linepos,char ** sp,char ** ep,int nsp) matches_filters() argument
1179 int line_len; search_range() local
[all...]
H A Dtags.c410 size_t line_len; in ctagsearch() local
431 pos = forw_raw_line(pos, &line, &line_len); in ctagsearch()
459 size_t cvt_len = cvt_length(line_len, cvt_ops); in ctagsearch()
462 cvt_text(cline, line, chpos, &line_len, cvt_ops); in ctagsearch()
H A Dedit.c252 size_t line_len; in check_modelines()
255 pos = forw_raw_line(pos, &line, &line_len); in check_modelines()
251 int line_len; check_modelines() local
H A Dfuncs.h359 public int match_pattern(PATTERN_TYPE pattern, constant char *tpattern, constant char *line, size_t line_len, constant char **sp, constant char **ep, int nsp, int notbol, int search_type);
/freebsd/contrib/sendmail/mail.local/
H A Dmail.local.c847 size_t line_len = 0; local
851 while (line[line_len] != '\n' && line_len < sizeof(line) - 2)
852 line_len++;
853 line_len++;
861 memcpy(line, line + 1, line_len);
862 line_len--;
867 if (line_len > 0)
869 if (line[line_len - 1] == '\n')
871 if (line_len >= 2 &&
872 line[line_len - 2] == '\r')
[all …]
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_btxt.c84 size_t offset, size_t *line_len, size_t *env_len);
448 size_t line_len, env_len; in bhnd_nvram_btxt_init() local
491 &line_len, &env_len); in bhnd_nvram_btxt_init()
528 io_offset += line_len; in bhnd_nvram_btxt_init()
677 size_t line_len, env_len; in bhnd_nvram_btxt_getvar_ptr() local
690 error = bhnd_nvram_btxt_entry_len(btxt->data, io_offset, &line_len, in bhnd_nvram_btxt_getvar_ptr()
795 size_t *line_len, size_t *env_len) in bhnd_nvram_btxt_entry_len() argument
818 *line_len = p - baseptr; in bhnd_nvram_btxt_entry_len()
819 *env_len = *line_len; in bhnd_nvram_btxt_entry_len()
821 for (size_t i = 0; i < *line_len; i++) { in bhnd_nvram_btxt_entry_len()
[all …]
/freebsd/usr.bin/finger/
H A Dnet.c103 int cnt, line_len, s; in do_protocol() local
164 line_len = 0; in do_protocol()
189 if (c != '\n' && ++line_len > _POSIX2_LINE_MAX) { in do_protocol()
195 line_len = 0; in do_protocol()
/freebsd/contrib/nvi/ex/
H A Dex_script.c542 sscr_matchprompt(SCR *sp, char *lp, size_t line_len, size_t *lenp) in sscr_matchprompt() argument
549 if (line_len < (prompt_len = sc->sh_prompt_len)) in sscr_matchprompt()
553 prompt_len && line_len; --prompt_len, --line_len) { in sscr_matchprompt()
558 for (; line_len && *lp != *pp; --line_len, ++lp); in sscr_matchprompt()
559 if (!line_len) in sscr_matchprompt()
569 *lenp = line_len; in sscr_matchprompt()
/freebsd/contrib/ldns/drill/
H A Ddrill_util.c40 int line_len = 0; in read_key_file() local
56 while (line_len >= 0) { in read_key_file()
57 line_len = (int) read_line(input_file, line, sizeof(line)); in read_key_file()
59 if (line_len > 0 && line[0] != ';') { in read_key_file()
/freebsd/sys/cam/scsi/
H A Dsmp_all.c198 char *line_prefix, int first_line_len, int line_len) in smp_command_decode() argument
214 && (line_len < (strlen(line_prefix) + 3))) { in smp_command_decode()
220 cur_len = line_len - strlen(line_prefix); in smp_command_decode()
229 char *line_prefix, int first_line_len, int line_len) in smp_command_sbuf() argument
240 line_prefix, first_line_len, line_len); in smp_command_sbuf()
H A Dsmp_all.h476 char *line_prefix, int first_line_len, int line_len);
478 char *line_prefix, int first_line_len, int line_len);
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DDumpDataExtractor.cpp393 size_t line_len = offset - line_start_offset; in DumpDataExtractor() local
396 (offset - start_offset - line_len) / DE.getTargetByteSize(); in DumpDataExtractor()
397 printMemoryTags(DE, s, line_base, line_len, memory_tag_map); in DumpDataExtractor()
891 size_t line_len = offset - line_start_offset; in DumpDataExtractor() local
892 lldb::addr_t line_base = base_addr + (offset - start_offset - line_len) / in DumpDataExtractor()
894 printMemoryTags(DE, s, line_base, line_len, memory_tag_map); in DumpDataExtractor()
/freebsd/usr.sbin/gstat/
H A Dgstat.c80 int curx, cury, maxx, maxy, line_len, loop, max_flen, head_printed; in main() local
567 line = el_gets(el, &line_len); in main()
570 if (line_len > 1) in main()
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_request.c1676 int line_len; /* written length per line */ in pqisrc_print_buffer() local
1687 for (ii = 0, line_len = 0; ii < MIN(total_len, 16); ii++) in pqisrc_print_buffer()
1689 line_len += snprintf(line_buf + line_len, (LINE_BUF_LEN - line_len), "%02d ", ii); in pqisrc_print_buffer()
1690 if ((line_len + 4) >= LINE_BUF_LEN) in pqisrc_print_buffer()
1701 for (ii = 0, line_len = 0; ii < INDEX_PER_LINE; ii++) in pqisrc_print_buffer()
1704 line_len += snprintf(line_buf + line_len, (LINE_BUF_LEN - line_len), "%02x ", this_char); in pqisrc_print_buffer()
1707 if (buf_consumed >= total_len || (line_len + 4) >= LINE_BUF_LEN) in pqisrc_print_buffer()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_mtree.c919 struct mtree_option **global, const char *line, ssize_t line_len, in process_add_entry() argument
948 while (line_len > 0) { in process_add_entry()
949 char last_character = line[line_len - 1]; in process_add_entry()
954 line_len--; in process_add_entry()
961 for (i = 0; i < line_len; i++) { in process_add_entry()
969 name_len = line + line_len - name; in process_add_entry()
976 end = line + line_len; in process_add_entry()
/freebsd/contrib/bc/src/
H A Dargs.c247 vm->line_len = 0; in bc_args()
H A Dvm.c1641 vm->line_len = (uint16_t) bc_vm_envLen(env_len);
H A Dnum.c2718 if (vm->nchars >= vm->line_len - 1 && vm->line_len) in bc_num_printNewline()
/freebsd/contrib/bc/include/
H A Dvm.h623 uint16_t line_len; member
/freebsd/contrib/ntp/sntp/libevent/
H A Dhttp.c2070 size_t old_len, line_len; in evhttp_append_to_last_header() local
2082 line_len = strlen(line); in evhttp_append_to_last_header()
2084 newval = mm_realloc(header->value, old_len + line_len + 2); in evhttp_append_to_last_header()
2089 memcpy(newval + old_len + 1, line, line_len + 1); in evhttp_append_to_last_header()
/freebsd/contrib/libevent/
H A Dhttp.c2070 size_t old_len, line_len; in evhttp_append_to_last_header() local
2082 line_len = strlen(line); in evhttp_append_to_last_header()
2084 newval = mm_realloc(header->value, old_len + line_len + 2); in evhttp_append_to_last_header()
2089 memcpy(newval + old_len + 1, line, line_len + 1); in evhttp_append_to_last_header()

12