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

12345

/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 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.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 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
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 Dpty.cpp54 int ptsname_r(int fd, char* buf, size_t len) { argument
66 if (snprintf(buf, len, "/dev/pts/%u", pty_num) >= static_cast<int>(len)) {
79 int ttyname_r(int fd, char* buf, size_t len) { argument
92 ssize_t count = readlink(path, buf, len);
96 if (static_cast<size_t>(count) == len) {
/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.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 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.h49 __u16 len; member in struct:udphdr
/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: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 6546 milliseconds

12345