/picolibc-3.7.0-3.6.0/newlib/libc/stdio/ |
D | fgets.c | 103 size_t len; in fgets() local 143 if ((len = fp->_r) <= 0) in fgets() 155 len = fp->_r; in fgets() 165 if (len > (size_t) n) /* n is always non-negative here */ in fgets() 166 len = (size_t) n; in fgets() 167 t = (unsigned char *) memchr ((void *) p, '\n', len); in fgets() 170 len = ++t - p; in fgets() 171 fp->_r -= len; in fgets() 173 (void) memcpy ((void *) s, (void *) p, len); in fgets() 174 s[len] = 0; in fgets() [all …]
|
D | fvwrite.c | 33 while (len == 0) \ 37 len = iov->iov_len; \ 56 register size_t len; in _sfvwrite() local 63 if ((len = uio->uio_resid) == 0) in _sfvwrite() 71 len = 0; in _sfvwrite() 84 while (len > 0) in _sfvwrite() 89 len--; in _sfvwrite() 100 while (len > 0) in _sfvwrite() 105 len--; in _sfvwrite() 125 MIN (len, INT_MAX - INT_MAX % BUFSIZ)); in _sfvwrite() [all …]
|
D | nano-vfprintf.c | 177 size_t len) in _ssputs() argument 182 if (len >= w && fp->_flags & (__SMBF | __SOPT)) in _ssputs() 195 if (newsize < curpos + len + 1) in _ssputs() 196 newsize = curpos + len + 1; in _ssputs() 224 w = len; in _ssputs() 227 if (len < w) in _ssputs() 228 w = len; in _ssputs() 248 register size_t len; in _ssprint() local 254 len = 0; in _ssprint() 264 while (len == 0) in _ssprint() [all …]
|
D | ssprint.c | 9 size_t len); 17 register size_t len; in __ssprint() local 21 if ((len = iov->iov_len) > 0) { in __ssprint() 22 if (__ssputs (fp, iov->iov_base, len) == EOF) { in __ssprint() 26 uio->uio_resid -= len; /* pretend we copied all */ in __ssprint()
|
D | sswprint.c | 10 size_t len); 18 register size_t len; in __sswprint() local 22 if ((len = iov->iov_len) > 0) { in __sswprint() 24 len * sizeof (wchar_t)) == EOF) { in __sswprint() 28 uio->uio_resid -= len; /* pretend we copied all */ in __sswprint()
|
/picolibc-3.7.0-3.6.0/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-3.7.0-3.6.0/newlib/libc/search/ |
D | hash_func.c | 65 hash1(keyarg, len) 67 size_t len; 73 for (key = keyarg, h = 0; len--;) 87 hash2(keyarg, len) 89 size_t len; 96 e = key + len; 118 hash3(keyarg, len) 120 size_t len; 130 if (len > 0) { 131 loop = (len + 8 - 1) >> 3; [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/aarch64/ |
D | strcpy.S | 47 #define len x4 macro 101 clz len, synd 102 add len, tmp, len, lsr 2 103 tbz len, 4, L(less16) 104 sub tmp, len, 15 109 IFSTPCPY (add result, dstin, len) 114 clz len, synd 115 lsr len, len, 2 117 tbz len, 3, L(less8) 118 sub tmp, len, 7 [all …]
|
D | strlen.S | 39 #define len x0 macro 129 mov len, 8 131 csel len, xzr, len, cc 133 add len, len, tmp1, lsr 3 155 mov len, 24 159 csel len, tmp3, len, cc 160 add len, len, tmp1, lsr 3 178 sub len, src, srcin 181 add len, len, 16 190 add len, len, tmp, lsr 2 [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/ |
D | wcstod.c | 156 size_t len; in wcstod_l() local 173 if ((len = _wcsnrtombs_l(NULL, &wcp, (size_t) -1, 0, &mbs, loc)) in wcstod_l() 179 if ((buf = malloc(len + 1)) == NULL) in wcstod_l() 182 _wcsnrtombs_l(buf, &wcp, (size_t) -1, len + 1, &mbs, loc); in wcstod_l() 205 len = strlen (decimal_point); in wcstod_l() 206 if (len > 1) { in wcstod_l() 209 end -= len - 1; in wcstod_l() 228 size_t len; in wcstof_l() local 245 if ((len = _wcsnrtombs_l(NULL, &wcp, (size_t) -1, 0, &mbs, loc)) in wcstof_l() 251 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-3.7.0-3.6.0/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-3.7.0-3.6.0/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 | 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 | bufio.c | 51 while (bf->len) { in __bufio_flush_locked() 52 ssize_t this = (bf->write) (bf->fd, buf, bf->len); in __bufio_flush_locked() 54 bf->len = 0; in __bufio_flush_locked() 59 bf->len -= this; in __bufio_flush_locked() 64 backup = bf->len - bf->off; in __bufio_flush_locked() 70 bf->len = 0; in __bufio_flush_locked() 83 ssize_t len; in __bufio_fill_locked() local 87 len = (bf->read)(bf->fd, bf->buf, bf->size); in __bufio_fill_locked() 89 if (len <= 0) { in __bufio_fill_locked() 90 bf->len = 0; in __bufio_fill_locked() [all …]
|
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 = (bf->write)(bf->fd, 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-3.7.0-3.6.0/newlib/libc/machine/visium/ |
D | memmove.c | 33 memmove (void *dst, const void *src, size_t len) in memmove() argument 40 if (s < d && d < s + len) in memmove() 42 s += len; in memmove() 43 d += len; in memmove() 45 while (len--) in memmove() 51 return memcpy (dst, src, len); in memmove()
|
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/lib/ |
D | nullconv.c | 67 size_t len; in null_conversion_convert() local 73 len = *inbytesleft; in null_conversion_convert() 78 len = *outbytesleft; in null_conversion_convert() 83 memcpy (*outbuf, *inbuf, len); in null_conversion_convert() 85 *inbuf += len; in null_conversion_convert() 86 *outbuf += len; in null_conversion_convert() 87 *inbytesleft -= len; in null_conversion_convert() 88 *outbytesleft -= len; in null_conversion_convert()
|
/picolibc-3.7.0-3.6.0/newlib/libc/string/ |
D | strndup.c | 15 size_t len; in strndup() local 21 len = ptr - str; in strndup() 23 copy = malloc (len + 1); in strndup() 26 memcpy (copy, str, len); in strndup() 27 copy[len] = '\0'; in strndup()
|
/picolibc-3.7.0-3.6.0/newlib/libc/ssp/ |
D | stpcpy_chk.c | 48 size_t len = strlen(src); in __stpcpy_chk() local 50 if (len >= slen) in __stpcpy_chk() 53 if (__ssp_overlap(src, dst, len)) in __stpcpy_chk() 56 (void)memcpy(dst, src, len + 1); in __stpcpy_chk() 57 return dst + len; in __stpcpy_chk()
|