/posix/ |
A D | tst-pcre.c | 32 ssize_t len; in main() local 56 if ((len = getline (&line, &line_len, f)) <= 0 in main() 67 while ((len = getline (&line, &line_len, f)) > 0) in main() 74 if (line[len - 1] == '\n') in main() 75 line[--len] = '\0'; in main() 141 if (string_alloced < (size_t) (len - 3)) in main() 143 string = realloc (string, len - 3); in main() 150 string_alloced = len - 3; in main() 153 memcpy (string, line + 4, len - 3); in main() 222 || rm[num].rm_eo - rm[num].rm_so != len - (p + 2 - line) in main()
|
A D | tst-fnmatch.c | 249 int len; in convert_flags() local 255 len = 8; in convert_flags() 261 len = 8; in convert_flags() 267 len = 6; in convert_flags() 273 len = 11; in convert_flags() 279 len = 8; in convert_flags() 285 len = 8; in convert_flags() 290 str += len; in convert_flags() 359 size_t len = strlen (str); in escape() local 362 if (2 * len + 1 > reslen) in escape() [all …]
|
A D | tst-regex2.c | 69 size_t len = st.st_size; in do_test() local 73 if (len > 500000 + 64) in do_test() 76 len -= 500000; in do_test() 139 || pmatch[0].rm_eo > len in do_test() 140 || pmatch[0].rm_so < len - 100 in do_test() 166 int match = re_search (&rpbuf, string, len, 0, len, in do_test() 174 if (match + 13 > len in do_test() 175 || match < len - 100 in do_test()
|
A D | bug-regex24.c | 46 int len = m[i].rm_eo - m[i].rm_so; in do_test() local 48 printf ("m[%d] = \"%.*s\"\n", i, len, str + m[i].rm_so); in do_test() 50 if (strlen (expected[i]) != len in do_test() 51 || memcmp (expected[i], str + m[i].rm_so, len) != 0) in do_test()
|
A D | tst-getaddrinfo5.c | 37 size_t len = strlen (host); in test() local 42 host[len-1] = 0; in test() 53 host[len-1] = '.'; in test()
|
A D | tst-vfork3.c | 143 size_t len = strlen (test_dir) + sizeof ("/tst-vfork3.XXXXXX"); in do_prepare() local 144 tmpdirname = malloc (len); in do_prepare() 153 char script0[len + sizeof "/script0.sh"]; in do_prepare() 154 char script1[len + sizeof "/script1.sh"]; in do_prepare() 155 char script2[len + sizeof "/script2.sh"]; in do_prepare()
|
A D | bug-regex28.c | 65 size_t len = strlen (tests[i].string); in do_test() local 66 int rv = re_search (&r, tests[i].string, len, 0, len, NULL); in do_test()
|
A D | confstr.c | 32 __confstr (int name, char *buf, size_t len) in __confstr() argument 280 if (len > 0 && buf != NULL) in __confstr() 282 if (string_len <= len) in __confstr() 286 memcpy (buf, string, len - 1); in __confstr() 287 buf[len - 1] = '\0'; in __confstr()
|
A D | bug-regex31.c | 14 size_t len = 0; in main() local 17 ssize_t n = getline (&buf, &len, stdin); in main()
|
A D | regex_internal.c | 58 init_buf_len = (len + 1 < init_len) ? len + 1: init_len; in re_string_allocate() 84 if (len > 0) in re_string_construct() 185 pstr->len = len; in re_string_construct_common() 186 pstr->raw_len = len; in re_string_construct_common() 193 pstr->stop = pstr->len; in re_string_construct_common() 225 end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len; in build_wcs_buffer() 294 end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len; in build_wcs_upper_buffer() 542 end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len; in build_upper_buffer() 561 end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len; in re_string_translate_buffer() 592 pstr->len = pstr->raw_len; in re_string_reconstruct() [all …]
|
A D | tst-boost.c | 75 ssize_t len; in main() local 98 while ((len = getline (&line, &line_len, f)) > 0) in main() 103 if (line[len - 1] == '\n') in main() 104 line[--len] = '\0'; in main()
|
A D | tst-getopt_long1.c | 50 size_t len = 0; in do_test() local 51 if (getline (&line, &len, stderr) < 0) in do_test()
|
A D | glob.c | 60 # define getpwnam_r(name, bufp, buf, len, res) \ argument 61 __getpwnam_r (name, bufp, buf, len, res) 81 # define __getlogin_r(buf, len) getlogin_r (buf, len) argument 201 # define alloca_account(len, avar) ((void) (len), (void) (avar), (void *) 0) argument 202 # define extend_alloca_account(buf, len, newlen, avar) \ argument 237 glob_use_alloca (size_t alloca_used, size_t len) in glob_use_alloca() argument 240 return (!size_add_wrapv (alloca_used, len, &size) in glob_use_alloca() 1153 size_t len = strlen (pglob->gl_pathv[i]) + 2; in __glob() local 1162 strcpy (&new[len - 2], "/"); in __glob() 1408 size_t len = strlen (pattern); in glob_in_dir() local [all …]
|
A D | posix_madvise.c | 26 posix_madvise (void *addr, size_t len, int advice) in posix_madvise() argument
|
A D | getopt.c | 147 int len = middle - bottom; in exchange() local 151 for (i = 0; i < len; i++) in exchange() 158 top -= len; in exchange() 163 int len = top - middle; in exchange() local 167 for (i = 0; i < len; i++) in exchange() 174 bottom += len; in exchange()
|
A D | annexc.c | 671 size_t len = n; in xstrndup() local 672 char *new = malloc (len + 1); in xstrndup() 677 new[len] = '\0'; in xstrndup() 678 return memcpy (new, s, len); in xstrndup()
|
A D | tst-rxspencer.c | 412 ssize_t len; in main() local 438 while ((len = getline (&line, &line_len, f)) > 0) in main() 443 if (line[len - 1] == '\n') in main() 444 line[len - 1] = '\0'; in main()
|
A D | tst-dir.c | 332 size_t len = strlen (objdir) + 1 + _D_EXACT_NAMLEN (d) + 1; in main() local 333 char tmpbuf[len]; in main()
|
A D | wordexp.c | 102 size_t len) in w_addmem() argument 106 if (*actlen + len > *maxlen) in w_addmem() 110 *maxlen += MAX (2 * len, W_CHUNK); in w_addmem() 119 *((char *) __mempcpy (&buffer[*actlen], str, len)) = '\0'; in w_addmem() 120 *actlen += len; in w_addmem() 132 size_t len; in w_addstr() local 135 len = strlen (str); in w_addstr() 137 return w_addmem (buffer, actlen, maxlen, str, len); in w_addstr()
|
A D | getconf.c | 555 int len = readlink (default_name, buf, sizeof buf - 1); in main() local 556 if (len > 0) in main() 558 buf[len] = '\0'; in main()
|
A D | fnmatch_loop.c | 391 int len = weights[idx & 0xffffff]; in FCT() local 399 && len == weights[idx2 & 0xffffff]) in FCT() 406 while (cnt < len in FCT() 411 if (cnt == len) in FCT()
|
A D | regex_internal.h | 398 Idx len; member 446 #define re_string_length(pstr) ((pstr)->len) 827 findidx (table, indirect, extra, &p, pstr->len - idx); in re_string_elem_size_at()
|
A D | regexec.c | 329 Idx len; in weak_alias() local 333 || INT_ADD_WRAPV (length1, length2, &len)))) in weak_alias() 340 s = re_malloc (char, len); in weak_alias() 1108 && mctx->input.bufs_len < mctx->input.len) in check_matching() 1110 && mctx->input.valid_len < mctx->input.len)) in check_matching() 1679 && mctx->input.bufs_len < mctx->input.len) in clean_state_log_if_needed() 1681 && mctx->input.valid_len < mctx->input.len)) in clean_state_log_if_needed() 2724 if (bkref_str_off >= mctx->input.len) in get_subexp() 3660 if (str_idx + 2 > input->len) in check_node_accept_bytes() 3693 if (str_idx + char_len > input->len) in check_node_accept_bytes() [all …]
|
A D | regcomp.c | 3512 size_t len; in build_equiv_class() local 3528 len = weights[idx1 & 0xffffff]; in build_equiv_class() 3542 if (len == weights[idx2 & 0xffffff] && (idx1 >> 24) == (idx2 >> 24) in build_equiv_class() 3544 weights + (idx2 & 0xffffff) + 1, len) == 0) in build_equiv_class()
|
A D | tst-regex.input | 4539 len if not needed.
|