Searched defs:len (Results 1 - 25 of 126) sorted by relevance

123456

/bionic/libc/upstream-freebsd/lib/libc/string/
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 Dwcsnlen.c35 size_t len; local
37 for (len = 0; len < maxlen; len++, s++) {
41 return (len);
/bionic/libc/bionic/
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 D__getcwd_chk.cpp34 extern char* __getcwd_chk(char* buf, size_t len, size_t buflen) { argument
35 if (__predict_false(len > buflen)) {
39 return getcwd(buf, len);
H A Dposix_madvise.cpp34 int posix_madvise(void* addr, size_t len, int advice) { argument
41 return (madvise(addr, len, advice) == 0 ? 0 : errno);
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__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__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 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 D__recvfrom_chk.cpp35 ssize_t __recvfrom_chk(int socket, void* buf, size_t len, size_t buflen, argument
38 if (__predict_false(len > buflen)) {
42 return recvfrom(socket, buf, len, flags, src_addr, addrlen);
H A D__stpncpy_chk.cpp47 size_t len, size_t dest_len) {
48 if (__predict_false(len > dest_len)) {
53 return stpncpy(dest, src, len);
46 __stpncpy_chk(char* __restrict dest, const char* __restrict src, size_t len, size_t dest_len) argument
H A D__strncpy_chk.cpp47 size_t len, size_t dest_len) {
48 if (__predict_false(len > dest_len)) {
53 return strncpy(dest, src, len);
46 __strncpy_chk(char* __restrict dest, const char* __restrict src, size_t len, size_t dest_len) argument
/bionic/libc/kernel/uapi/linux/tc_ematch/
H A Dtc_em_nbyte.h26 __u16 len : 12; member in struct:tcf_em_nbyte
/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/upstream-netbsd/lib/libc/string/
H A Dstrcasestr.c52 size_t len; local
59 len = strlen(find);
65 } while (strncasecmp(s, find, len) != 0);
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dtempnam.c45 int sverrno, len; local
55 len = snprintf(name, PATH_MAX, "%s%s%sXXXXXXXXXX", f,
57 if (len < 0 || len >= PATH_MAX) {
67 len = snprintf(name, PATH_MAX, "%s%s%sXXXXXXXXXX", f,
69 if (len < 0 || len >= PATH_MAX) {
78 len = snprintf(name, PATH_MAX, "%s%sXXXXXXXXX", f, pfx);
79 if (len < 0 || len >
[all...]
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 Dvsscanf.c40 eofread(void *cookie, char *buf, int len) argument
/bionic/libc/include/netinet/
H A Dudp.h47 u_int16_t len; member in struct:udphdr::__anon47::__anon49
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
H A Dgetenv.c34 char *__findenv(const char *name, int len, int *offset);
47 __findenv(const char *name, int len, int *offset) argument
57 for (np = name, i = len; i && *cp; i--)
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_NFLOG.h27 __u32 len; member in struct:xt_nflog_info
/bionic/libc/kernel/uapi/linux/netfilter_bridge/
H A Debt_nflog.h30 __u32 len; member in struct:ebt_nflog_info
/bionic/libc/kernel/uapi/linux/
H A Dudp.h26 __be16 len; member in struct:__kernel_udphdr
/bionic/libc/upstream-netbsd/lib/libc/gen/
H A Dutmp.c94 size_t len = strlen(fname); local
96 if (len >= sizeof(utfile))
100 if (fname[len - 1] == 'x')

Completed in 1661 milliseconds

123456