/picolibc-latest/newlib/libc/time/ |
D | strptime.c | 95 int ret = 4; in first_day() local 98 ret = (ret + 365 + is_leap_year (year)) % 7; in first_day() 99 return ret; in first_day() 166 int ret; in strptime_l() local 177 ret = match_string (&buf, _ctloc (weekday), locale); in strptime_l() 178 if (ret < 0) in strptime_l() 180 timeptr->tm_wday = ret; in strptime_l() 184 ret = match_string (&buf, _ctloc (wday), locale); in strptime_l() 185 if (ret < 0) in strptime_l() 187 timeptr->tm_wday = ret; in strptime_l() [all …]
|
/picolibc-latest/test/semihost/ |
D | semihost-tmpnam.c | 43 int ret = 0; in main() local 49 ret = sys_semihost_tmpnam(pathname, identifier, PATH_MAX); in main() 50 if (ret == 0) in main() 53 if (ret != 0) { in main() 54 printf("tmpnam fails, ret %d, errno %d\n", ret, sys_semihost_errno()); in main() 63 ret = sys_semihost_close(fd); in main() 64 if (ret != 0) { in main() 65 printf("close fails, ret %d errno %d\n", ret, sys_semihost_errno()); in main() 68 ret = sys_semihost_remove(pathname); in main() 69 if (ret != 0) { in main() [all …]
|
D | semihost-tmpname.c | 42 int ret; in main() local 47 ret = sys_semihost_tmpnam(pathname, 0, MAXPATHLEN); in main() 48 if (ret != 0) { in main() 49 printf("tmpnam fails, ret %d, errno %d\n", ret, sys_semihost_errno()); in main() 57 ret = sys_semihost_close(fd); in main() 58 if (ret != 0) { in main() 59 printf("close fails, ret %d errno %d\n", ret, sys_semihost_errno()); in main() 62 ret = sys_semihost_remove(pathname); in main() 63 if (ret != 0) { in main() 64 printf("remove fails, ret %d, errno %d\n", ret, sys_semihost_errno()); in main()
|
D | semihost-remove.c | 46 int ret; in main() local 53 ret = sys_semihost_close(fd); in main() 55 if (ret != 0) { in main() 56 printf("close failed %d %d\n", ret, sys_semihost_errno()); in main() 60 ret = sys_semihost_remove(TEST_FILE_NAME); in main() 61 if (ret != 0) { in main() 62 printf("remove %s failed %d %d\n", TEST_FILE_NAME, ret, sys_semihost_errno()); in main() 72 ret = sys_semihost_remove(TEST_FILE_NAME); in main() 73 if (ret == 0) { in main()
|
D | semihost-rename.c | 47 int ret; in main() local 54 ret = sys_semihost_close(fd); in main() 56 if (ret != 0) { in main() 57 printf("close failed %d %d\n", ret, sys_semihost_errno()); in main() 61 ret = sys_semihost_rename(TEST_FILE_NAME_1, TEST_FILE_NAME_2); in main() 62 if (ret != 0) { in main() 65 ret, sys_semihost_errno()); in main()
|
D | semihost-gettimeofday.c | 45 int ret; in main() local 47 ret = gettimeofday(&prev, NULL); in main() 48 if (ret < 0) { in main() 49 printf("gettimeofday return %d\n", ret); in main() 58 ret = gettimeofday(&cur, NULL); in main() 59 if (ret < 0) { in main() 60 printf("gettimeofday return %d\n", ret); in main()
|
/picolibc-latest/newlib/libc/machine/necv70/ |
D | fastmath.S | 23 ret #0 30 ret #0 37 ret #0 44 ret #0 51 ret #0 58 ret #0 66 ret #0 73 ret #0 80 ret #0 87 ret #0 [all …]
|
/picolibc-latest/newlib/libc/tinystdio/ |
D | bufio.c | 103 int ret; in __bufio_flush() local 106 ret = __bufio_flush_locked(f); in __bufio_flush() 108 return ret; in __bufio_flush() 116 int ret = 0; in __bufio_setdir_locked() local 119 ret = __bufio_flush_locked(f); in __bufio_setdir_locked() 122 return ret; in __bufio_setdir_locked() 129 int ret = (unsigned char) c; in __bufio_put() local 133 ret = _FDEV_ERR; in __bufio_put() 142 ret = _FDEV_ERR; in __bufio_put() 146 return ret; in __bufio_put() [all …]
|
/picolibc-latest/newlib/testsuite/newlib.string/ |
D | strcmp-1.c | 148 int ret; in main() local 186 ret = strcmp (src + sa, dest + da); in main() 193 if (ret != 0) in main() 199 testname, n, sa, da, m, len, ret); in main() 204 if (ret >= 0) in main() 209 testname, n, sa, da, m, len, ret); in main() 214 if (ret >= 0) in main() 220 testname, n, sa, da, m, len, ret); in main() 227 if (ret <= 0) in main() 232 testname, n, sa, da, m, len, ret); in main() [all …]
|
/picolibc-latest/newlib/libc/machine/spu/ |
D | strstr_ea.c | 44 __ea char *ret; in strstr_ea() local 51 ret = (__ea char *) s1; in strstr_ea() 54 while (ret < (s1 + s1_length)) { in strstr_ea() 57 ret = strchr_ea (ret, s2[0]); in strstr_ea() 59 if (ret) { in strstr_ea() 63 curr = strchr_ea (ret, s2[i]); in strstr_ea() 65 if (!curr || (curr != (ret + i))) in strstr_ea() 70 return ret; in strstr_ea() 72 ret++; in strstr_ea()
|
D | fclose.c | 43 int ret; in fclose() local 47 ret = fp->_fp; in fclose() 49 ret = __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FCLOSE, &ret); in fclose() 53 return ret; in fclose()
|
/picolibc-latest/test/ |
D | regex.c | 46 int ret; member 53 .ret = 0, .nmatch = 1, .matches = { { .rm_so = 0, .rm_eo = 1 } } 56 .ret = 0, .nmatch = 1, .matches = { { .rm_so = 0, .rm_eo = 3 } } 59 .ret = 0, .nmatch = 4, .matches = { 67 .ret = 0, .nmatch = 1, .matches = { { .rm_so = 3, .rm_eo = 10 } } 81 int ret; in main() local 85 ret = regcomp(®ex, tests[t].pattern, REG_EXTENDED); in main() 86 if (ret != 0) { in main() 87 printf("expression \"%s\" failed to compile: %d\n", tests[t].pattern, ret); in main() 91 ret = regexec(®ex, tests[t].string, MAX_MATCH, matches, 0); in main() [all …]
|
D | ungetc.c | 42 int ret; in main() local 44 ret = ungetc('u', stdin); in main() 45 if (ret != 'u') { in main() 46 printf("ungetc unexpectedly returned %d instead of %d\n", ret, 'u'); in main() 49 ret = getc(stdin); in main() 50 if (ret != 'u') { in main() 51 printf("getc unexpectedly returned %d instead of %d\n", ret, 'u'); in main()
|
D | test-put.c | 67 int ret = 0; in main() local 70 ret += check("putc", a == 'X', 'X', a); in main() 73 ret += check("putchar", a == 'Y', 'Y', a); in main() 76 ret += check("fputc", a == 'Z', 'Z', a); in main() 79 ret += check ("puts", a >= 0, 0, a); in main() 82 ret += check ("fputs", a >= 0, 0, a); in main() 85 ret += check_s ("fwrite 1", s == 9, 9, s); in main() 88 ret += check_s ("fwrite 2", s == 0, 0, s); in main() 91 ret += check_s ("fwrite 3", s == 0, 0, s); in main() 93 return ret; in main()
|
D | setjmp.c | 51 int ret; in main() local 54 ret = setjmp(env); in main() 55 printf("setjmp 1 returns %d\n", ret); in main() 56 if (!ret) { in main() 61 ret = setjmp(env); in main() 62 printf("setjmp 2 returns %d\n", ret); in main() 63 if (!ret) { in main()
|
D | ffs.c | 102 int ret = 0; in main() local 105 ret += check(0, ffs(0), slow_ffs(0), "ffs"); in main() 106 ret += check(0, ffsl(0), slow_ffsl(0), "ffsl"); in main() 107 ret += check(0, ffsll(0), slow_ffsll(0), "ffsll"); in main() 115 ret += check(x, ffs(x), slow_ffs(x), "ffs"); in main() 116 ret += check(xl, ffsl(xl), slow_ffsl(xl), "ffsl"); in main() 117 ret += check(xll, ffsll(xll), slow_ffsll(xll), "ffsll"); in main() 127 ret += check(x, ffs(x), slow_ffs(x), "ffs"); in main() 128 ret += check(xl, ffsl(xl), slow_ffsl(xl), "ffsl"); in main() 129 ret += check(xll, ffsll(xll), slow_ffsll(xll), "ffsll"); in main() [all …]
|
D | rounding-mode.c | 153 int ret = 0; in check() local 164 ret++; in check() 171 ret++; in check() 175 ret++; in check() 180 ret++; in check() 186 ret++; in check() 191 ret++; in check() 201 ret++; in check() 208 ret++; in check() 212 ret++; in check() [all …]
|
/picolibc-latest/semihost/machine/m68k/ |
D | m68k_semihost.h | 119 intptr_t ret; in m68k_semihost1() local 123 ret = args.args[0]; in m68k_semihost1() 124 if (ret < 0) in m68k_semihost1() 126 return ret; in m68k_semihost1() 131 intptr_t ret; in m68k_semihost2() local 136 ret = args.args[0]; in m68k_semihost2() 137 if (ret < 0) in m68k_semihost2() 139 return ret; in m68k_semihost2() 144 intptr_t ret; in m68k_semihost3() local 150 ret = args.args[0]; in m68k_semihost3() [all …]
|
/picolibc-latest/semihost/machine/nios2/ |
D | nios2_semihost.h | 119 intptr_t ret; in nios2_semihost1() local 123 ret = args.args[0]; in nios2_semihost1() 124 if (ret < 0) in nios2_semihost1() 126 return ret; in nios2_semihost1() 131 intptr_t ret; in nios2_semihost2() local 136 ret = args.args[0]; in nios2_semihost2() 137 if (ret < 0) in nios2_semihost2() 139 return ret; in nios2_semihost2() 144 intptr_t ret; in nios2_semihost3() local 150 ret = args.args[0]; in nios2_semihost3() [all …]
|
/picolibc-latest/newlib/libc/locale/ |
D | nl_langinfo.c | 165 char *ret, *cs; in nl_langinfo_l() local 172 ret = (char *) __locale_msgcharset(); in nl_langinfo_l() 176 ret = (char *) __get_time_locale (locale)->codeset; in nl_langinfo_l() 179 ret = (char *) __get_numeric_locale (locale)->codeset; in nl_langinfo_l() 182 ret = (char *) __get_monetary_locale (locale)->codeset; in nl_langinfo_l() 188 ret = (char *) __locale_charset (locale); in nl_langinfo_l() 194 ret = "US-ASCII"; in nl_langinfo_l() 198 ret = (char *) __get_time_locale (locale)->c_fmt; in nl_langinfo_l() 201 ret = (char *) __get_time_locale (locale)->x_fmt; in nl_langinfo_l() 204 ret = (char *) __get_time_locale (locale)->X_fmt; in nl_langinfo_l() [all …]
|
/picolibc-latest/newlib/libc/machine/riscv/ |
D | strlen.c | 41 size_t ret = str - start, sl = sizeof (long); in strlen() local 44 if (c0 == 0) return ret + 0 - sl; in strlen() 45 if (c1 == 0) return ret + 1 - sl; in strlen() 46 if (c2 == 0) return ret + 2 - sl; in strlen() 47 if (sl == 4 || c3 == 0) return ret + 3 - sl; in strlen() 50 if (c0 == 0) return ret + 4 - sl; in strlen() 51 if (c1 == 0) return ret + 5 - sl; in strlen() 52 if (c2 == 0) return ret + 6 - sl; in strlen() 54 return ret + 7 - sl; in strlen()
|
/picolibc-latest/newlib/libc/ctype/ |
D | jp2uc.c | 56 wint_t ret; in __jp2uc() local 114 ret = a2[byte2 - 0xa1]; in __jp2uc() 115 if (ret != 0) in __jp2uc() 116 return (wint_t)ret; in __jp2uc() 131 ret = 0; in __jp2uc() 133 ret = (wint_t)a6[byte2 - 0xa1]; in __jp2uc() 134 if (ret != 0) in __jp2uc() 135 return ret; in __jp2uc() 138 ret = 0; in __jp2uc() 140 ret = (wint_t)a7[byte2 - 0xa1]; in __jp2uc() [all …]
|
/picolibc-latest/newlib/libc/stdio/ |
D | flags.c | 38 register int ret, m, o; in __sflags() local 43 ret = __SRD; in __sflags() 49 ret = __SWR; in __sflags() 55 ret = __SWR | __SAPP; in __sflags() 68 ret = (ret & ~(__SRD | __SWR)) | __SRW; in __sflags() 89 return ret; in __sflags()
|
D | stdio.c | 38 register ssize_t ret; in __sread() local 46 ret = read (fp->_file, buf, n); in __sread() 55 if (ret >= 0) in __sread() 56 fp->_offset += ret; in __sread() 59 return ret; in __sread() 113 register _off_t ret; in __sseek() local 115 ret = lseek (fp->_file, (_off_t) offset, whence); in __sseek() 116 if (ret == -1L) in __sseek() 121 fp->_offset = ret; in __sseek() 123 return ret; in __sseek()
|
/picolibc-latest/newlib/libm/ld/ldd/ |
D | s_fpclassifyl.c | 40 int ret; in __fpclassifyl() local 43 ret = __fpclassifyd(u.dbits.dh); in __fpclassifyl() 44 if (ret == FP_NORMAL) { in __fpclassifyl() 46 ret = FP_SUBNORMAL; in __fpclassifyl() 48 return ret; in __fpclassifyl()
|