/bionic/libc/wchar/ |
H A D | wcsdup.c | 37 size_t len; local 39 len = wcslen(s) + 1; 40 if ((copy = malloc(len * sizeof(wchar_t))) == NULL) 42 return (wmemcpy(copy, s, len));
|
H A D | wcsnlen.c | 35 size_t len; local 37 for (len = 0; len < maxlen; len++, s++) { 41 return (len);
|
H A D | wcsstr.c | 50 size_t len; local 53 len = wcslen(find); 59 } while (wcsncmp(s, find, len) != 0);
|
H A D | wcswidth.c | 47 int len, l; local 49 len = 0; 53 len += l; 55 return (len);
|
/bionic/libc/string/ |
H A D | __memmove_chk.c | 45 size_t len, size_t dest_len) 47 if (len > dest_len) { 54 return memmove(dest, src, len); 44 __memmove_chk(void *dest, const void *src, size_t len, size_t dest_len) argument
|
H A D | __strncpy_chk.c | 45 size_t len, size_t dest_len) 47 if (len > dest_len) { 54 return strncpy(dest, src, len); 44 __strncpy_chk(char *dest, const char *src, size_t len, size_t dest_len) argument
|
H A D | strcasestr.c | 46 size_t len; local 50 len = strlen(find); 56 } while (strncasecmp(s, find, len) != 0);
|
H A D | strstr.c | 43 size_t len; local 46 len = strlen(find); 52 } while (strncmp(s, find, len) != 0);
|
H A D | __strncat_chk.c | 46 size_t len, size_t dest_buf_size) 51 if (src_len > len) { 52 src_len = len; 71 return strncat(dest, src, len); 45 __strncat_chk(char *dest, const char *src, size_t len, size_t dest_buf_size) argument
|
/bionic/libc/bionic/ |
H A D | dirname_r.c | 37 int result, len; local 42 len = 1; 58 len = 1; 66 len = endp - path +1; 69 result = len; 70 if (len+1 > MAXPATHLEN) { 77 if (len > (int)bufflen-1) { 78 len = (int)bufflen-1; 83 if (len >= 0) { 84 memcpy( buffer, path, len ); [all...] |
H A D | basename_r.c | 37 int len, result; local 43 len = 1; 55 len = 1; 64 len = endp - startp +1; 67 result = len; 71 if (len > (int)bufflen-1) { 72 len = (int)bufflen-1; 77 if (len >= 0) { 78 memcpy( buffer, startp, len ); 79 buffer[len] [all...] |
H A D | utmp.c | 81 size_t len = strlen(fname); local 83 if (len >= sizeof(utfile)) 87 if (fname[len - 1] == 'x')
|
H A D | malloc_debug_check_mapinfo.cpp | 41 int len = strlen(line); local 43 if (len < 1) return 0; 44 line[--len] = 0; 46 if (len < 50) return 0; 49 mapinfo* mi = static_cast<mapinfo*>(dlmalloc(sizeof(mapinfo) + (len - 47)));
|
H A D | ssp.c | 48 ssize_t len = read(fd, &__stack_chk_guard, local 51 if (len == sizeof(__stack_chk_guard))
|
/bionic/libc/unistd/ |
H A D | ptsname_r.c | 39 int len; local 51 len = snprintf( buff, sizeof(buff), "/dev/pts/%u", pty_num ); 52 if (len+1 > (int)buflen) { 56 memcpy( buf, buff, len+1 );
|
/bionic/libc/include/netinet/ |
H A D | udp.h | 49 __u16 len; member in struct:udphdr
|
/bionic/libc/kernel/common/linux/ |
H A D | udp.h | 26 __u16 len; member in struct:udphdr
|
H A D | msm_hw3d.h | 45 unsigned long len; member in struct:hw3d_region
|
/bionic/libc/stdio/ |
H A D | fgets.c | 47 size_t len; local 72 len = fp->_r; 81 if ((int)len > n) 82 len = n; 83 t = memchr((void *)p, '\n', len); 85 len = ++t - p; 86 fp->_r -= len; 88 (void)memcpy((void *)s, (void *)p, len); 89 s[len] = '\0'; 93 fp->_r -= len; [all...] |
H A D | vsscanf.c | 40 eofread(void *cookie, char *buf, int len) argument
|
H A D | fgetln.c | 75 size_t len; local 93 *lenp = len = p - fp->_p; 95 fp->_r -= len; 111 for (len = fp->_r, off = 0;; len += fp->_r) { 119 if (__slbexpand(fp, len + OPTIMISTIC)) 122 len - off); 123 off = len; 132 len += diff; 133 if (__slbexpand(fp, len)) [all...] |
H A D | fread.c | 136 int len = (*fp->_read)(fp->_cookie, p, resid ); local 138 if (len <= 0) { 139 if (len == 0) 147 p += len; 148 resid -= len;
|
H A D | sscanf.c | 41 eofread(void *cookie, char *buf, int len) argument
|
/bionic/libc/stdlib/ |
H A D | getenv.c | 49 int len, i; local 57 len = np - name; 59 for (np = name, i = len; i && *cp; i--)
|
/bionic/libc/netbsd/inet/ |
H A D | nsap_addr.c | 53 u_int len = 0; local 62 while ((c = *ascii++) != '\0' && len < (u_int)maxlen) { 76 len++; 86 return (len);
|