/ndk/sources/host-tools/sed-4.2.1/lib/ |
H A D | strndup.c | 31 size_t len = strnlen (s, n); local 32 char *new = malloc (len + 1); 37 new[len] = '\0'; 38 return memcpy (new, s, len);
|
H A D | basename.c | 113 size_t len; local 116 for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--) 119 if (DOUBLE_SLASH_IS_DISTINCT_ROOT && len == 1 124 && len == prefix_len && ISSLASH (name[prefix_len])) 127 return len;
|
H A D | lstat.c | 56 size_t len; local 62 len = strlen (file); 63 if (len == 0 || file[len - 1] != '/')
|
H A D | error.c | 142 size_t len = strlen (message) + 1; local 151 if (__libc_use_alloca (len * sizeof (wchar_t))) 152 wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); 159 len * sizeof (wchar_t)); 173 res = mbsrtowcs (wmessage, &tmp, len, &st); 174 if (res != len) 177 if (__builtin_expect (len >= SIZE_MAX / 2, 0)) 184 len *= 2;
|
/ndk/sources/host-tools/make-3.81/ |
H A D | amiga.c | 35 int len = 0; local 40 len += strlen (*aptr) + 4; 43 buffer = AllocMem (len, MEMF_ANY); 79 FreeMem (buffer, len);
|
H A D | ansi2knr.c | 513 unsigned len = endfn - buf; local 516 { if ( strlen(kp) == len && !strncmp(kp, buf, len) ) 523 int len; local 531 len = p - id; 534 (*p == ')' && (len != 4 || strncmp(id, "void", 4)))
|
H A D | commands.c | 57 unsigned int len; 64 len = strlen (p + 1); 65 percent = (char *) alloca (len); 66 bcopy (p + 1, percent, len - 1); 67 percent[len - 1] = '\0'; 84 unsigned int len; 90 len = strlen (name) - 1; 96 len = strlen (name); 102 if (len > slen && strneq (dep_name (d), name + (len 56 unsigned int len; local 83 unsigned int len; local 147 unsigned int len; local [all...] |
H A D | expand.c | 584 restore_variable_buffer (char *buf, unsigned int len) 589 variable_buffer_length = len; 578 restore_variable_buffer(char *buf, unsigned int len) argument
|
H A D | getopt.c | 341 int len = middle - bottom; 345 for (i = 0; i < len; i++) 353 top -= len; 358 int len = top - middle; 362 for (i = 0; i < len; i++) 370 bottom += len; 427 int len = nonoption_flags_max_len = strlen (orig_str); 435 memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), 436 '\0', nonoption_flags_max_len - len); 339 int len = middle - bottom; local 356 int len = top - middle; local 425 int len = nonoption_flags_max_len = strlen (orig_str); local
|
H A D | implicit.c | 492 unsigned int len; 505 p = get_next_word (dep->name, &len); 517 for (p2 = p; p2 < p + len && *p2 != '%'; ++p2) 536 if (p2 < p + len) 541 bcopy (p2 + 1, depname + i + 2, len - i - 1); 542 depname[len + 2 - 1] = '\0'; 551 bcopy (p, depname, len); 552 depname[len] = '\0'; 568 if (p2 < p + len) 573 bcopy (p2 + 1, depname + i + stemlen, len 490 unsigned int len; local [all...] |
H A D | remote-cstms.c | 150 int len; 164 len = sizeof (sin); 165 if (getsockname (retsock, (struct sockaddr *) &sin, &len) < 0) 177 len = Customs_MakeWayBill (&permit, normalized_cwd, argv[0], argv, 194 len, (Rpc_Opaque) waybill, 148 int len; local
|
H A D | rule.c | 101 unsigned int len = strlen (dep->name); 115 if (len > max_pattern_dep_length) 116 max_pattern_dep_length = len; 169 unsigned int len; 185 len = strlen (target); 186 targname = xmalloc (1 + len + 1); 188 bcopy (target, targname + 1, len + 1); 203 len = strlen (source); 204 depname = xmalloc (1 + len + 1); 206 bcopy (source, depname + 1, len 99 unsigned int len = strlen (dep->name); local 166 unsigned int len; local [all...] |
H A D | strcache.c | 58 add_string(const char *str, int len) argument 67 if (len > bufsize) 68 bufsize = len * 2; 74 if (sp->bytesfree > len && (!best || best->bytesfree > sp->bytesfree)) 81 assert (best->bytesfree > len); 85 memcpy (best->end, str, len); 86 best->end += len; 88 best->bytesfree -= len + 1; 118 add_hash (const char *str, int len) argument 128 key = add_string (str, len); 156 strcache_add_len(const char *str, int len) argument [all...] |
/ndk/sources/host-tools/sed-4.2.1/testsuite/ |
H A D | bug-regex28.c | 65 size_t len = strlen (tests[i].string); local 66 int rv = re_search (&r, tests[i].string, len, 0, len, NULL);
|
H A D | tst-boost.c | 83 ssize_t len; local 108 while ((len = getline (&line, &line_len, f)) > 0) 113 if (line[len - 1] == '\n') 114 line[--len] = '\0';
|
H A D | tst-pcre.c | 40 ssize_t len; local 66 if ((len = getline (&line, &line_len, f)) <= 0 77 while ((len = getline (&line, &line_len, f)) > 0) 84 if (line[len - 1] == '\n') 85 line[--len] = '\0'; 151 if (string_alloced < (size_t) (len - 3)) 153 string = realloc (string, len - 3); 160 string_alloced = len - 3; 163 memcpy (string, line + 4, len - 3); 232 || rm[num].rm_eo - rm[num].rm_so != len [all...] |
H A D | tst-regex2.c | 25 size_t len; local 64 len = st.st_size; 119 || pmatch[0].rm_eo > len 147 match = re_search (&rpbuf, string, len, 0, len, 155 if (match + 11 > len
|
/ndk/sources/cxx-stl/stlport/src/ |
H A D | codecvt.cpp | 90 ptrdiff_t len = (min) (from_end - from, to_limit - to); local 91 copy(from, from + len, to); 92 from_next = from + len; 93 to_next = to + len; 105 ptrdiff_t len = (min) (from_end - from, to_limit - to); local 107 __REINTERPRET_CAST(const unsigned char*, from) + len, to); 108 from_next = from + len; 109 to_next = to + len;
|
/ndk/sources/host-tools/ndk-stack/regex/ |
H A D | regerror.c | 82 size_t len; local 106 len = strlen(s) + 1; 111 return(len);
|
/ndk/sources/host-tools/make-3.81/w32/ |
H A D | pathstuff.c | 104 getcwd_fs(char* buf, int len) argument 106 char *p = getcwd(buf, len); 110 strncpy(buf, q, len);
|
/ndk/sources/host-tools/ndk-stack/elff/ |
H A D | mapfile.c | 239 mapfile_unmap(void* mapped_at, size_t len) argument 248 return munmap(mapped_at, len);
|
/ndk/sources/android/libthread_db/gdb-6.6/ |
H A D | libthread_db.c | 60 int len; local 76 len = read(fd, buff, sizeof buff-1); 77 } while (len < 0 && errno == EINTR); 79 if (len < 0) { 84 buff[len] = 0; 90 path, len, buff);
|
/ndk/sources/android/libthread_db/gdb-7.1.x/ |
H A D | libthread_db.c | 56 int len; local 72 len = read(fd, buff, sizeof buff-1); 73 } while (len < 0 && errno == EINTR); 75 if (len < 0) { 80 buff[len] = 0; 86 path, len, buff);
|
/ndk/sources/android/libthread_db/gdb-7.3.x/ |
H A D | libthread_db.c | 56 int len; local 72 len = read(fd, buff, sizeof buff-1); 73 } while (len < 0 && errno == EINTR); 75 if (len < 0) { 80 buff[len] = 0; 86 path, len, buff);
|
/ndk/sources/cxx-stl/stlport/src/details/ |
H A D | fstream_unistd.cpp | 135 size_t pagesize, len; local 138 len = sizeof(pagesize); 139 sysctl(mib, 2, &pagesize, &len, NULL, 0); 311 // Attempts to memory-map len bytes of the current file, starting 316 void* _Filebuf_base::_M_mmap(streamoff offset, streamoff len) argument 320 base = MMAP(0, len, PROT_READ, MAP_PRIVATE, _M_file_id, offset); 322 if (LSEEK(_M_file_id, offset + len, SEEK_SET) < 0) { 323 this->_M_unmap(base, len); 330 _STLP_MARK_PARAMETER_AS_UNUSED(&len) 336 void _Filebuf_base::_M_unmap(void* base, streamoff len) argument [all...] |