Searched refs:len (Results 1 - 25 of 116) sorted by relevance

12345

/bionic/libc/upstream-freebsd/lib/libc/string/
H A Dwcsnlen.c35 size_t len; local
37 for (len = 0; len < maxlen; len++, s++) {
41 return (len);
H A Dwcsdup.c37 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 Dwcsstr.c50 size_t len; local
53 len = wcslen(find);
59 } while (wcsncmp(s, find, len) != 0);
/bionic/libc/bionic/
H A D__memmove_chk.cpp45 size_t len, size_t dest_len)
47 if (__predict_false(len > dest_len)) {
52 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.cpp45 size_t len, size_t dest_len)
47 if (__predict_false(len > dest_len)) {
52 return strncpy(dest, src, len);
44 __strncpy_chk(char *dest, const char *src, size_t len, size_t dest_len) argument
H A Dname_mem.c49 int __bionic_name_mem(void *addr, size_t len, const char *name) argument
52 addr, len, name);
H A D__strncat_chk.cpp47 size_t len, size_t dest_buf_size)
49 if (len == 0) {
59 len--; dest_buf_size--;
66 if (len == 0) {
44 __strncat_chk( char* __restrict dest, const char* __restrict src, size_t len, size_t dest_buf_size) argument
H A Dlibgen.cpp57 int len; local
63 len = 1;
76 len = 1;
86 len = endp - startp +1;
89 result = len;
93 if (len > static_cast<int>(buffer_size) - 1) {
94 len = buffer_size - 1;
99 if (len >= 0) {
100 memcpy(buffer, startp, len);
101 buffer[len]
108 int len; local
[all...]
H A Dptsname_r.c39 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 );
H A Dsystem_properties_compat.c74 unsigned len = strlen(name); local
77 if (len >= PROP_NAME_MAX)
79 if (len < 1)
84 if(TOC_NAME_LEN(entry) != len) continue;
87 if(memcmp(name, pi->name, len)) continue;
97 unsigned serial, len; local
106 len = SERIAL_VALUE_LEN(serial);
107 memcpy(value, pi->value, len + 1);
112 return len;
/bionic/libc/wchar/
H A Dwcswidth.c47 int len, l; local
49 len = 0;
53 len += l;
55 return (len);
H A Dwcsxfrm.c35 wcsxfrm(wchar_t * __restrict dest, const wchar_t * __restrict src, size_t len) argument
42 if (len != 0)
48 if (len > 0) {
49 if (slen < len)
52 wcsncpy(dest, src, len - 1);
53 dest[len - 1] = L'\0';
/bionic/libc/upstream-freebsd/lib/libc/stdio/
H A Dfgets.c54 size_t len; local
69 if ((len = fp->_r) <= 0) {
78 len = fp->_r;
88 if (len > n)
89 len = n;
90 t = memchr((void *)p, '\n', len);
92 len = ++t - p;
93 fp->_r -= len;
95 (void)memcpy((void *)s, (void *)p, len);
96 s[len]
[all...]
H A Dfgetln.c82 size_t len; local
105 *lenp = len = p - fp->_p;
107 fp->_r -= len;
123 for (len = fp->_r, off = 0;; len += fp->_r) {
131 if (__slbexpand(fp, len + OPTIMISTIC))
134 len - off);
135 off = len;
144 len += diff;
145 if (__slbexpand(fp, len))
[all...]
/bionic/libc/string/
H A Dstrstr.c43 size_t len; local
46 len = strlen(find);
52 } while (strncmp(s, find, len) != 0);
/bionic/libc/kernel/common/linux/
H A Dhidraw.h39 #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len)
40 #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len)
H A Dnetlink.h84 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
86 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN))
87 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
90 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
91 #define NLMSG_OK(nlh,len) ((len) >
[all...]
H A Dudp.h26 __u16 len; member in struct:udphdr
/bionic/libc/private/
H A Dbionic_name_mem.h36 int __bionic_name_mem(void *addr, size_t len, const char *name);
/bionic/libc/stdio/
H A Dfvwrite.c50 size_t len; local
57 if ((len = uio->uio_resid) == 0)
70 len = iov->iov_len;
73 while (len == 0) { \
76 len = iov->iov_len; \
86 w = (*fp->_write)(fp->_cookie, p, len);
88 w = (*fp->_write)(fp->_cookie, p, MIN(len, BUFSIZ2));
93 len -= w;
110 (__SALC | __SSTR) && fp->_w < (int)len) {
119 } while (_size < (int)(blen + len));
[all...]
/bionic/libc/kernel/arch-x86/asm/
H A Dcacheflush.h35 #define flush_icache_user_range(vma,pg,adr,len) do { } while (0)
39 #define copy_to_user_page(vma, page, vaddr, dst, src, len) memcpy(dst, src, len)
40 #define copy_from_user_page(vma, page, vaddr, dst, src, len) memcpy(dst, src, len)
/bionic/libc/netbsd/nameser/
H A Dns_print.c68 static void addlen(size_t len, char **buf, size_t *buflen);
69 static int addstr(const char *src, size_t len,
71 static int addtab(size_t len, size_t target, int spaced,
126 int len, x; local
134 len = prune_origin(name, origin);
137 } else if (len == 0) {
140 T(addstr(name, (size_t)len, &buf, &buflen));
144 name[len] == '\0')) && name[len - 1] != '.') {
147 len
878 addlen(size_t len, char **buf, size_t *buflen) argument
885 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument
897 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument
[all...]
/bionic/libc/kernel/common/linux/sunrpc/
H A Dgss_asn1.h42 #define g_OID_equal(o1,o2) (((o1)->len == (o2)->len) && (memcmp((o1)->data,(o2)->data,(int) (o1)->len) == 0))
/bionic/libc/upstream-netbsd/libc/string/
H A Dstrcasestr.c52 size_t len; local
59 len = strlen(find);
65 } while (strncasecmp(s, find, len) != 0);
/bionic/libc/upstream-netbsd/libc/inet/
H A Dinet_ntop.c135 struct { int base, len; } best, cur; member in struct:__anon673
152 best.len = 0;
154 cur.len = 0;
158 cur.base = i, cur.len = 1;
160 cur.len++;
163 if (best.base == -1 || cur.len > best.len)
170 if (best.base == -1 || cur.len > best.len)
173 if (best.base != -1 && best.len <
[all...]

Completed in 419 milliseconds

12345