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

123456

/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));
/bionic/libc/upstream-openbsd/lib/libc/string/
H A Dstrndup.c29 size_t len; local
31 len = strnlen(str, maxlen);
32 copy = malloc(len + 1);
34 (void)memcpy(copy, str, len);
35 copy[len] = '\0';
H A Dstrstr.c43 size_t len; local
46 len = strlen(find);
52 } while (strncmp(s, find, len) != 0);
/bionic/libc/include/
H A Dstrings.h47 #define bcopy(b1, b2, len) \
48 (void)(__builtin___memmove_chk((b2), (b1), (len), __bos0(b2)))
49 #define bzero(b, len) \
50 (void)(__builtin___memset_chk((b), '\0', (len), __bos0(b)))
52 #define bcopy(b1, b2, len) (void)(__builtin_memmove((b2), (b1), (len)))
53 #define bzero(b, len) (void)(__builtin_memset((b), '\0', (len)))
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dfgets.c48 size_t len; local
75 len = fp->_r;
84 if (len > n)
85 len = n;
86 t = memchr((void *)p, '\n', len);
88 len = ++t - p;
89 fp->_r -= len;
91 (void)memcpy((void *)s, (void *)p, len);
92 s[len] = '\0';
96 fp->_r -= len;
[all...]
H A Dtempnam.c47 int sverrno, len; local
57 len = snprintf(name, PATH_MAX, "%s%s%sXXXXXXXXXX", f,
59 if (len < 0 || len >= PATH_MAX) {
69 len = snprintf(name, PATH_MAX, "%s%s%sXXXXXXXXXX", f,
71 if (len < 0 || len >= PATH_MAX) {
80 len = snprintf(name, PATH_MAX, "%s%sXXXXXXXXX", f, pfx);
81 if (len < 0 || len >
[all...]
H A Dfgetln.c75 size_t len; local
94 *lenp = len = p - fp->_p;
96 fp->_r -= len;
112 for (len = fp->_r, off = 0;; len += fp->_r) {
120 if (__slbexpand(fp, len + OPTIMISTIC))
123 len - off);
124 off = len;
133 len += diff;
134 if (__slbexpand(fp, len))
[all...]
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; \
85 w = (*fp->_write)(fp->_cookie, p, MIN(len, BUFSIZ));
89 len -= w;
106 (__SALC | __SSTR) && fp->_w < len) {
115 } while (_size < blen + len);
126 if (len <
[all...]
H A Dvswscanf.c46 eofread(void *cookie, char *buf, int len) argument
59 size_t len, mlen; local
67 len = wcslen(str) * MB_CUR_MAX;
68 if ((mbstr = malloc(len + 1)) == NULL)
72 if ((mlen = wcsrtombs(mbstr, &strp, len, &mbs)) == (size_t)-1) {
76 if (mlen == len)
77 mbstr[len] = '\0';
/bionic/libc/bionic/
H A Drecv.cpp32 ssize_t recv(int socket, void *buf, size_t len, int flags) { argument
33 return recvfrom(socket, buf, len, flags, NULL, 0);
H A Dsend.cpp31 ssize_t send(int socket, const void* buf, size_t len, int flags) { argument
32 return sendto(socket, buf, len, flags, NULL, 0);
H A D__strncat_chk.cpp45 size_t len, size_t dest_buf_size) {
46 if (len == 0) {
56 len--; dest_buf_size--;
63 if (len == 0) {
44 __strncat_chk(char* __restrict dest, const char* __restrict src, size_t len, size_t dest_buf_size) argument
H A D__memmove_chk.cpp47 size_t len, size_t dest_len) {
48 if (__predict_false(len > dest_len)) {
53 return memmove(dest, src, len);
46 __memmove_chk(void* dest, const void* src, size_t len, size_t dest_len) argument
H A D__recvfrom_chk.cpp36 ssize_t __recvfrom_chk(int socket, void* buf, size_t len, size_t buflen, unsigned int flags, argument
38 if (__predict_false(len > buflen)) {
42 return recvfrom(socket, buf, len, flags, src_addr, addrlen);
H A Dlibgen.cpp42 int len; local
48 len = 1;
61 len = 1;
71 len = endp - startp +1;
74 result = len;
78 if (len > static_cast<int>(buffer_size) - 1) {
79 len = buffer_size - 1;
84 if (len >= 0) {
85 memcpy(buffer, startp, len);
86 buffer[len]
93 int len; local
[all...]
H A D__cmsg_nxthdr.cpp34 size_t len = reinterpret_cast<char*>(ptr+1) - reinterpret_cast<char*>(msg->msg_control); local
35 if (len > msg->msg_controllen) {
H A Dsystem_properties_compat.c76 unsigned len = strlen(name); local
79 if (len >= PROP_NAME_MAX)
81 if (len < 1)
86 if(TOC_NAME_LEN(entry) != len) continue;
89 if(memcmp(name, pi->name, len)) continue;
99 unsigned serial, len; local
108 len = SERIAL_VALUE_LEN(serial);
109 memcpy(value, pi->value, len + 1);
114 return len;
/bionic/libc/kernel/uapi/linux/
H A Dhidraw.h39 #define HIDIOCGRAWNAME(len) _IOC(_IOC_READ, 'H', 0x04, len)
40 #define HIDIOCGRAWPHYS(len) _IOC(_IOC_READ, 'H', 0x05, len)
41 #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
42 #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
H A Dnetlink.h87 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
90 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)
91 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
95 #define NLMSG_OK(nlh,len) ((len) >
[all...]
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dnfnetlink_compat.h39 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1))
40 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) && (nfa)->nfa_len <= (len))
42 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len))
44 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len))
49 #define NFA_NEST_END(skb, start) ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); (skb)->len; })
[all...]
/bionic/libc/kernel/uapi/asm-arm/asm/
H A Dmman.h20 #define arch_mmap_check(addr, len, flags) (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0)
/bionic/libc/kernel/uapi/scsi/
H A Dscsi_netlink_fc.h24 #define FC_NL_MSGALIGN(len) (((len) + 7) & ~7)
/bionic/libc/dns/nameser/
H A Dns_print.c69 static void addlen(size_t len, char **buf, size_t *buflen);
70 static int addstr(const char *src, size_t len,
72 static int addtab(size_t len, size_t target, int spaced,
126 int len, x; local
134 len = (int)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
1228 addlen(size_t len, char **buf, size_t *buflen) argument
1235 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument
1247 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument
[all...]
/bionic/libc/upstream-netbsd/lib/libc/string/
H A Dstrcasestr.c52 size_t len; local
59 len = strlen(find);
65 } while (strncasecmp(s, find, len) != 0);

Completed in 1652 milliseconds

123456