Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/picolibc-3.7.0-3.6.0/newlib/libc/locale/
Dnl_langinfo.c175 char *ret, *cs; in nl_langinfo_l() local
182 ret = (char *) __locale_msgcharset(); in nl_langinfo_l()
186 ret = (char *) __get_time_locale (locale)->codeset; in nl_langinfo_l()
189 ret = (char *) __get_numeric_locale (locale)->codeset; in nl_langinfo_l()
192 ret = (char *) __get_monetary_locale (locale)->codeset; in nl_langinfo_l()
197 ret = (char *) __get_collate_locale (locale)->codeset; in nl_langinfo_l()
205 ret = (char *) __locale_charset (locale); in nl_langinfo_l()
212 if (ret[0] == 'A'/*SCII*/) in nl_langinfo_l()
213 ret = "ANSI_X3.4-1968"; in nl_langinfo_l()
214 else if (ret[0] == 'E') in nl_langinfo_l()
[all …]
Dlnumeric.c50 int ret= -1; in __numeric_load_locale() local
58 ret = __set_lc_numeric_from_win (name, &_C_numeric_locale, &nm, &bufp, in __numeric_load_locale()
61 if (ret >= 0) in __numeric_load_locale()
65 if (ret > 0) in __numeric_load_locale()
76 locale->lc_cat[LC_NUMERIC].ptr = ret == 0 ? &_C_numeric_locale : nmp; in __numeric_load_locale()
84 ret = 0; in __numeric_load_locale()
86 return ret; in __numeric_load_locale()
/picolibc-3.7.0-3.6.0/newlib/libc/time/
Dstrptime.c95 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-3.7.0-3.6.0/test/semihost/
Dsemihost-tmpnam.c43 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 …]
Dsemihost-tmpname.c42 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()
Dsemihost-remove.c46 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()
Dsemihost-rename.c47 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()
Dsemihost-gettimeofday.c45 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-3.7.0-3.6.0/newlib/libc/machine/necv70/
Dfastmath.S21 ret #0
28 ret #0
35 ret #0
42 ret #0
49 ret #0
56 ret #0
64 ret #0
71 ret #0
78 ret #0
85 ret #0
[all …]
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.string/
Dstrcmp-1.c146 int ret; in main() local
184 ret = strcmp (src + sa, dest + da); in main()
191 if (ret != 0) in main()
197 testname, n, sa, da, m, len, ret); in main()
202 if (ret >= 0) in main()
207 testname, n, sa, da, m, len, ret); in main()
212 if (ret >= 0) in main()
218 testname, n, sa, da, m, len, ret); in main()
225 if (ret <= 0) in main()
230 testname, n, sa, da, m, len, ret); in main()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dstrstr_ea.c42 __ea char *ret; in strstr_ea() local
49 ret = (__ea char *) s1; in strstr_ea()
52 while (ret < (s1 + s1_length)) { in strstr_ea()
55 ret = strchr_ea (ret, s2[0]); in strstr_ea()
57 if (ret) { in strstr_ea()
61 curr = strchr_ea (ret, s2[i]); in strstr_ea()
63 if (!curr || (curr != (ret + i))) in strstr_ea()
68 return ret; in strstr_ea()
70 ret++; in strstr_ea()
Dfclose.c42 int ret; in fclose() local
46 ret = fp->_fp; in fclose()
48 ret = __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FCLOSE, &ret); in fclose()
52 return ret; in fclose()
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dbufio.c106 int ret; in __bufio_flush() local
109 ret = __bufio_flush_locked(f); in __bufio_flush()
111 return ret; in __bufio_flush()
119 int ret = 0; in __bufio_setdir_locked() local
122 ret = __bufio_flush_locked(f); in __bufio_setdir_locked()
125 return ret; in __bufio_setdir_locked()
132 int ret = (unsigned char) c; in __bufio_put() local
136 ret = _FDEV_ERR; in __bufio_put()
145 ret = _FDEV_ERR; in __bufio_put()
149 return ret; in __bufio_put()
[all …]
/picolibc-3.7.0-3.6.0/test/
Dregex.c46 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(&regex, 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(&regex, tests[t].string, MAX_MATCH, matches, 0); in main()
[all …]
Dungetc.c42 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()
Dtest-put.c67 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()
Dsetjmp.c51 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()
Dffs.c102 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 …]
Drounding-mode.c140 int ret = 0; in check() local
151 ret++; in check()
156 ret++; in check()
162 ret++; in check()
167 ret++; in check()
177 ret++; in check()
182 ret++; in check()
188 ret++; in check()
193 ret++; in check()
196 if (ret) in check()
[all …]
/picolibc-3.7.0-3.6.0/semihost/machine/m68k/
Dm68k_semihost.h119 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-3.7.0-3.6.0/semihost/machine/nios2/
Dnios2_semihost.h119 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-3.7.0-3.6.0/newlib/libc/machine/riscv/
Dstrlen.c38 size_t ret = str - start, sl = sizeof (long); in strlen() local
41 if (c0 == 0) return ret + 0 - sl; in strlen()
42 if (c1 == 0) return ret + 1 - sl; in strlen()
43 if (c2 == 0) return ret + 2 - sl; in strlen()
44 if (sl == 4 || c3 == 0) return ret + 3 - sl; in strlen()
47 if (c0 == 0) return ret + 4 - sl; in strlen()
48 if (c1 == 0) return ret + 5 - sl; in strlen()
49 if (c2 == 0) return ret + 6 - sl; in strlen()
51 return ret + 7 - sl; in strlen()
/picolibc-3.7.0-3.6.0/newlib/libc/ctype/
Djp2uc.c58 wint_t ret; in __jp2uc() local
116 ret = a2[byte2 - 0xa1]; in __jp2uc()
117 if (ret != 0) in __jp2uc()
118 return (wint_t)ret; in __jp2uc()
133 ret = 0; in __jp2uc()
135 ret = (wint_t)a6[byte2 - 0xa1]; in __jp2uc()
136 if (ret != 0) in __jp2uc()
137 return ret; in __jp2uc()
140 ret = 0; in __jp2uc()
142 ret = (wint_t)a7[byte2 - 0xa1]; in __jp2uc()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dflags.c39 register int ret, m, o; in __sflags() local
44 ret = __SRD; in __sflags()
50 ret = __SWR; in __sflags()
56 ret = __SWR | __SAPP; in __sflags()
69 ret = (ret & ~(__SRD | __SWR)) | __SRW; in __sflags()
95 return ret; in __sflags()
Dstdio.c39 register ssize_t ret; in __sread() local
47 ret = read (fp->_file, buf, n); in __sread()
56 if (ret >= 0) in __sread()
57 fp->_offset += ret; in __sread()
60 return ret; in __sread()
114 register _off_t ret; in __sseek() local
116 ret = lseek (fp->_file, (_off_t) offset, whence); in __sseek()
117 if (ret == -1L) in __sseek()
122 fp->_offset = ret; in __sseek()
124 return ret; in __sseek()

12345678910>>...12