/picolibc-latest/newlib/libc/stdio/ |
D | fgets.c | 102 size_t len; in fgets() local 142 if ((len = fp->_r) <= 0) in fgets() 154 len = fp->_r; in fgets() 164 if (len > (size_t) n) /* n is always non-negative here */ in fgets() 165 len = (size_t) n; in fgets() 166 t = (unsigned char *) memchr ((void *) p, '\n', len); in fgets() 169 len = ++t - p; in fgets() 170 fp->_r -= len; in fgets() 172 (void) memcpy ((void *) s, (void *) p, len); in fgets() 173 s[len] = 0; in fgets() [all …]
|
D | fvwrite.c | 32 while (len == 0) \ 36 len = iov->iov_len; \ 55 register size_t len; in _sfvwrite() local 62 if ((len = uio->uio_resid) == 0) in _sfvwrite() 70 len = 0; in _sfvwrite() 83 while (len > 0) in _sfvwrite() 88 len--; in _sfvwrite() 99 while (len > 0) in _sfvwrite() 104 len--; in _sfvwrite() 124 MIN (len, INT_MAX - INT_MAX % BUFSIZ)); in _sfvwrite() [all …]
|
D | nano-vfprintf.c | 175 size_t len) in _ssputs() argument 180 if (len >= w && fp->_flags & (__SMBF | __SOPT)) in _ssputs() 193 if (newsize < curpos + len + 1) in _ssputs() 194 newsize = curpos + len + 1; in _ssputs() 222 w = len; in _ssputs() 225 if (len < w) in _ssputs() 226 w = len; in _ssputs() 246 register size_t len; in _ssprint() local 252 len = 0; in _ssprint() 262 while (len == 0) in _ssprint() [all …]
|
D | ssprint.c | 10 size_t len); 18 register size_t len; in __ssprint() local 22 if ((len = iov->iov_len) > 0) { in __ssprint() 23 if (__ssputs (fp, iov->iov_base, len) == EOF) { in __ssprint() 27 uio->uio_resid -= len; /* pretend we copied all */ in __ssprint()
|
D | ssputs.c | 12 size_t len) in __ssputs() argument 17 if (len >= w && fp->_flags & (__SMBF | __SOPT)) { in __ssputs() 29 if (newsize < curpos + len + 1) in __ssputs() 30 newsize = curpos + len + 1; in __ssputs() 53 w = len; in __ssputs() 56 if (len < w) in __ssputs() 57 w = len; in __ssputs()
|
/picolibc-latest/newlib/libc/include/ssp/ |
D | string.h | 51 #define __ssp_bos_check3(fun, dst, src, len) \ argument 53 __builtin___ ## fun ## _chk(dst, src, len, __ssp_bos0(dst)) : \ 54 __ ## fun ## _ichk(dst, src, len)) 64 __ ## fun ## _ichk(type1 __restrict dst, type2 __restrict src, size_t len) { \ 65 return __builtin___ ## fun ## _chk(dst, src, len, __ssp_bos0(dst)); \ 71 __ ## fun ## _ichk(type1 dst, type2 src, size_t len) { \ 72 return __builtin___ ## fun ## _chk(dst, src, len, __ssp_bos0(dst)); \ 97 #define memcpy(dst, src, len) __ssp_bos_check3(memcpy, dst, src, len) argument 98 #define memmove(dst, src, len) __ssp_bos_check3(memmove, dst, src, len) argument 100 #define mempcpy(dst, src, len) __ssp_bos_check3(mempcpy, dst, src, len) argument [all …]
|
D | strings.h | 39 #define bcopy(src, dst, len) \ argument 41 __builtin___memmove_chk(dst, src, len, __ssp_bos0(dst)) : \ 42 __memmove_ichk(dst, src, len)) 43 #define bzero(dst, len) \ argument 45 __builtin___memset_chk(dst, 0, len, __ssp_bos0(dst)) : \ 46 __memset_ichk(dst, 0, len))
|
/picolibc-latest/newlib/libc/search/ |
D | hash_func.c | 64 hash1(keyarg, len) 66 size_t len; 72 for (key = keyarg, h = 0; len--;) 86 hash2(keyarg, len) 88 size_t len; 95 e = key + len; 117 hash3(keyarg, len) 119 size_t len; 129 if (len > 0) { 130 loop = (len + 8 - 1) >> 3; [all …]
|
/picolibc-latest/newlib/libc/machine/aarch64/ |
D | strcpy.S | 49 #define len x4 macro 103 clz len, synd 104 add len, tmp, len, lsr 2 105 tbz len, 4, L(less16) 106 sub tmp, len, 15 111 IFSTPCPY (add result, dstin, len) 116 clz len, synd 117 lsr len, len, 2 119 tbz len, 3, L(less8) 120 sub tmp, len, 7 [all …]
|
D | strlen.S | 41 #define len x0 macro 131 mov len, 8 133 csel len, xzr, len, cc 135 add len, len, tmp1, lsr 3 157 mov len, 24 161 csel len, tmp3, len, cc 162 add len, len, tmp1, lsr 3 180 sub len, src, srcin 183 add len, len, 16 192 add len, len, tmp, lsr 2 [all …]
|
/picolibc-latest/newlib/libc/argz/ |
D | envz_remove.c | 20 size_t len = 0; in envz_remove() local 25 len = strlen(entry) + 1; in envz_remove() 28 if (*envz + *envz_len != entry + len - 1) in envz_remove() 30 memmove(entry, entry + len, *envz + *envz_len - entry - len); in envz_remove() 33 *envz = (char *)realloc(*envz, *envz_len - len); in envz_remove() 34 *envz_len -= len; in envz_remove()
|
D | envz_strip.c | 19 int len = 0; in envz_strip() local 27 len = strlen(entry) + 1; in envz_strip() 30 if(*envz + *envz_len != entry + len - 1) in envz_strip() 32 memmove(entry, entry + len, *envz + *envz_len - entry - len); in envz_strip() 34 *envz_len -= len; in envz_strip()
|
D | argz_insert.c | 21 int len = 0; in argz_insert() local 36 len = strlen(entry) + 1; in argz_insert() 38 if(!(*argz = (char *)realloc(*argz, *argz_len + len))) in argz_insert() 41 memmove(*argz + delta + len, *argz + delta, *argz_len - delta); in argz_insert() 42 memcpy(*argz + delta, entry, len); in argz_insert() 44 *argz_len += len; in argz_insert()
|
D | argz_create_sep.c | 20 size_t len = 0; in argz_create_sep() local 45 len = strlen(token); in argz_create_sep() 46 *argz_len += (len + 1); in argz_create_sep() 62 len = strlen(token) + 1; in argz_create_sep() 63 memcpy(iter, token, len); in argz_create_sep() 64 iter += len; in argz_create_sep()
|
/picolibc-latest/newlib/libc/stdlib/ |
D | wcstod.c | 155 size_t len; in wcstod_l() local 172 if ((len = _wcsnrtombs_l(NULL, &wcp, (size_t) -1, 0, &mbs, loc)) in wcstod_l() 178 if ((buf = malloc(len + 1)) == NULL) in wcstod_l() 181 _wcsnrtombs_l(buf, &wcp, (size_t) -1, len + 1, &mbs, loc); in wcstod_l() 204 len = strlen (decimal_point); in wcstod_l() 205 if (len > 1) { in wcstod_l() 208 end -= len - 1; in wcstod_l() 227 size_t len; in wcstof_l() local 244 if ((len = _wcsnrtombs_l(NULL, &wcp, (size_t) -1, 0, &mbs, loc)) in wcstof_l() 250 if ((buf = malloc(len + 1)) == NULL) in wcstof_l() [all …]
|
D | wcstold.c | 57 size_t len; in wcstold_l() 65 if ((len = _wcsnrtombs_l (NULL, &wcp, (size_t) -1, 0, &mbs, loc)) in wcstold_l() 73 if ((buf = malloc (len + 1)) == NULL) in wcstold_l() 77 _wcsnrtombs_l (buf, &wcp, (size_t) -1, len + 1, &mbs, loc); in wcstold_l() 99 len = strlen (decimal_point); in wcstold_l() 100 if (len > 1) in wcstold_l() 105 end -= len - 1; in wcstold_l()
|
/picolibc-latest/newlib/libc/tinystdio/ |
D | strtof.c | 68 int len = 0; in strtof() local 72 while (isspace(nptr[len])) in strtof() 73 len++; in strtof() 75 ret = conv_flt(nptr, &len, INT_MAX, &flt, 0); in strtof() 78 len = 0; in strtof() 81 *endptr = (char *) nptr + len; in strtof()
|
D | bufio.c | 49 while (bf->len) { in __bufio_flush_locked() 50 ssize_t this = bufio_write(bf, buf, bf->len); in __bufio_flush_locked() 52 bf->len = 0; in __bufio_flush_locked() 57 bf->len -= this; in __bufio_flush_locked() 62 backup = bf->len - bf->off; in __bufio_flush_locked() 67 bf->len = 0; in __bufio_flush_locked() 80 ssize_t len; in __bufio_fill_locked() local 84 len = bufio_read (bf, bf->buf, bf->size); in __bufio_fill_locked() 86 if (len <= 0) { in __bufio_fill_locked() 87 bf->len = 0; in __bufio_fill_locked() [all …]
|
D | strtold.c | 70 int len = 0; in strtold() local 74 while (isspace(nptr[len])) in strtold() 75 len++; in strtold() 77 ret = conv_flt(nptr, &len, INT_MAX, &flt, FL_LONG); in strtold() 80 len = 0; in strtold() 83 *endptr = (char *) nptr + len; in strtold()
|
D | strtod.c | 69 int len = 0; in strtod() local 73 while (isspace(nptr[len])) in strtod() 74 len++; in strtod() 76 ret = conv_flt(nptr, &len, INT_MAX, &flt, FL_LONG); in strtod() 79 len = 0; in strtod() 82 *endptr = (char *) nptr + len; in strtod()
|
D | fwrite.c | 62 int this_time = bf->size - bf->len; in fwrite() 72 memcpy(bf->buf + bf->len, cp, this_time); in fwrite() 73 bf->len += this_time; in fwrite() 81 ssize_t len = bufio_write(bf, cp, bytes); in fwrite() local 82 if (len <= 0) { in fwrite() 86 bytes -= len; in fwrite() 87 cp += len; in fwrite() 88 bf->pos += len; in fwrite()
|
/picolibc-latest/newlib/libc/machine/visium/ |
D | memmove.c | 35 memmove (void *dst, const void *src, size_t len) in memmove() argument 42 if (s < d && d < s + len) in memmove() 44 s += len; in memmove() 45 d += len; in memmove() 47 while (len--) in memmove() 53 return memcpy (dst, src, len); in memmove()
|
/picolibc-latest/newlib/libc/iconv/lib/ |
D | nullconv.c | 66 size_t len; in null_conversion_convert() local 72 len = *inbytesleft; in null_conversion_convert() 77 len = *outbytesleft; in null_conversion_convert() 82 memcpy (*outbuf, *inbuf, len); in null_conversion_convert() 84 *inbuf += len; in null_conversion_convert() 85 *outbuf += len; in null_conversion_convert() 86 *inbytesleft -= len; in null_conversion_convert() 87 *outbytesleft -= len; in null_conversion_convert()
|
/picolibc-latest/newlib/libc/string/ |
D | strndup.c | 14 size_t len; in strndup() local 20 len = ptr - str; in strndup() 22 copy = malloc (len + 1); in strndup() 25 memcpy (copy, str, len); in strndup() 26 copy[len] = '\0'; in strndup()
|
/picolibc-latest/newlib/libc/ssp/ |
D | stpcpy_chk.c | 44 size_t len = strlen(src); in __stpcpy_chk() local 46 if (len >= slen) in __stpcpy_chk() 49 if (__ssp_overlap(src, dst, len)) in __stpcpy_chk() 52 (void)memcpy(dst, src, len + 1); in __stpcpy_chk() 53 return dst + len; in __stpcpy_chk()
|