/picolibc-latest/semihost/machine/arc/ |
D | arc_errno.c | 44 case TARGET_ERRNO_EPERM: errno = EPERM; break; in arc_semihost_errno() 45 case TARGET_ERRNO_ENOENT: errno = ENOENT; break; in arc_semihost_errno() 46 case TARGET_ERRNO_ESRCH: errno = ESRCH; break; in arc_semihost_errno() 47 case TARGET_ERRNO_EINTR: errno = EINTR; break; in arc_semihost_errno() 48 case TARGET_ERRNO_EIO: errno = EIO; break; in arc_semihost_errno() 49 case TARGET_ERRNO_ENXIO: errno = ENXIO; break; in arc_semihost_errno() 50 case TARGET_ERRNO_E2BIG: errno = E2BIG; break; in arc_semihost_errno() 51 case TARGET_ERRNO_ENOEXEC: errno = ENOEXEC; break; in arc_semihost_errno() 52 case TARGET_ERRNO_EBADF: errno = EBADF; break; in arc_semihost_errno() 53 case TARGET_ERRNO_ECHILD: errno = ECHILD; break; in arc_semihost_errno() [all …]
|
/picolibc-latest/test/libc-testsuite/ |
D | strtol.c | 66 errno = 0; in test_strtol() 69 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in test_strtol() 70 errno = 0; in test_strtol() 73 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in test_strtol() 74 errno = 0; in test_strtol() 77 TEST2(i, errno, ERANGE, "missing errno %d != %d"); in test_strtol() 78 errno = 0; in test_strtol() 81 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol() 82 errno = 0; in test_strtol() 85 TEST2(i, errno, 0, "spurious errno %d != %d"); in test_strtol() [all …]
|
/picolibc-latest/test/ |
D | malloc.c | 57 errno = 0; in main() 60 if (errno != 0) { in main() 61 printf("malloc(0) failed: %s. got %p\n", strerror(errno), r); in main() 110 errno = 0; in main() 116 if ((r && q) || errno != ENOMEM) { in main() 117 … printf("2*malloc(PTRDIFF_MAX) should have failed. got %p,%p error %s\n", r, q, strerror(errno)); in main() 123 errno = 0; in main() 126 if (r || errno != ENOMEM) { in main() 127 printf("malloc(SIZE_MAX) should have failed. got %p error %s\n", r, strerror(errno)); in main() 131 errno = 0; in main() [all …]
|
/picolibc-latest/newlib/libc/stdio/ |
D | funopen.c | 115 errno = 0; in funreader() 116 if ((result = c->readfn (c->cookie, buf, n)) < 0 && errno) in funreader() 117 _REENT_ERRNO(ptr) = errno; in funreader() 129 errno = 0; in funwriter() 130 if ((result = c->writefn (c->cookie, buf, n)) < 0 && errno) in funwriter() 131 _REENT_ERRNO(ptr) = errno; in funwriter() 144 errno = 0; in funseeker() 145 if ((result = c->seekfn (c->cookie, (fpos_t) off, whence)) < 0 && errno) in funseeker() 146 _REENT_ERRNO(ptr) = errno; in funseeker() 149 errno = 0; in funseeker() [all …]
|
D | fopencookie.c | 108 errno = 0; in fcreader() 109 if ((result = c->readfn (c->cookie, buf, n)) < 0 && errno) in fcreader() 110 _REENT_ERRNO(ptr) = errno; in fcreader() 130 errno = 0; in fcwriter() 131 if ((result = c->writefn (c->cookie, buf, n)) < 0 && errno) in fcwriter() 132 _REENT_ERRNO(ptr) = errno; in fcwriter() 149 errno = 0; in fcseeker() 150 if (c->seekfn (c->cookie, &offset, whence) < 0 && errno) in fcseeker() 151 _REENT_ERRNO(ptr) = errno; in fcseeker() 171 errno = 0; in fcseeker64() [all …]
|
/picolibc-latest/newlib/libc/ |
D | sys.tex | 37 @code{errno}. However, the Red Hat newlib C library provides a @emph{macro} 38 definition for @code{errno} in the header file @file{errno.h}, as part 41 @cindex @code{errno} global vs macro 42 The bridge between these two interpretations of @code{errno} is 44 capture the @code{errno} values returned globally, and record them in 46 them using the @code{errno} macro from @file{errno.h}). 49 interfaces. You must include @file{errno.h}, then disable the macro, 53 #include <errno.h> 54 #undef errno 55 extern int errno; [all …]
|
/picolibc-latest/newlib/libc/machine/nvptx/ |
D | misc.c | 23 #undef errno 24 extern int errno; 53 errno = ESRCH; in kill() 74 errno = EACCES; in stat()
|
/picolibc-latest/newlib/libc/include/sys/ |
D | errno.h | 55 #define errno (*__PICOLIBC_ERRNO_FUNCTION()) macro 57 extern NEWLIB_THREAD_LOCAL_ERRNO int errno; 58 #define errno errno macro 61 #define _REENT_ERRNO(r) (errno)
|
/picolibc-latest/newlib/libc/tinystdio/ |
D | mktemp.c | 121 errno = EINVAL; in _gettemp() 154 if (errno != EACCES) { in _gettemp() 155 if (errno != ENOENT) in _gettemp() 165 if (errno != EEXIST) in _gettemp()
|
/picolibc-latest/newlib/libc/search/ |
D | hash.c | 116 errno = EINVAL; 135 (stat64(file, &statbuf) && (errno == ENOENT))) { 137 (stat(file, &statbuf) && (errno == ENOENT))) { 139 if (errno == ENOENT) 140 errno = 0; /* Just in case someone looks at errno */ 145 RETURN_ERROR(errno, error0); 163 RETURN_ERROR(errno, error1); 176 RETURN_ERROR(errno, error1); 224 save_errno = errno; 226 errno = save_errno; [all …]
|
/picolibc-latest/newlib/libc/machine/amdgcn/ |
D | mlock.c | 24 #undef errno 25 extern int errno; 63 errno = ENOMEM; in sbrk()
|
/picolibc-latest/newlib/libm/test/ |
D | convert.c | 54 errno = 0; in test_strtod() 64 test_eok(errno, ERANGE); in test_strtod() 66 test_eok(errno, ERANGE); in test_strtod() 68 test_eok(errno, 0); in test_strtod() 80 errno = 0; in test_strtof() 83 int e = errno; in test_strtof() 87 test_eok(errno, ERANGE); in test_strtof() 89 test_eok(errno, 0); in test_strtof() 112 errno = 0; in test_strtold() 115 int e = errno; in test_strtold() [all …]
|
/picolibc-latest/newlib/libc/picolib/ |
D | picosbrk.c | 48 errno = ENOMEM; in sbrk() 53 errno = ENOMEM; in sbrk()
|
/picolibc-latest/newlib/libm/machine/spu/headers/ |
D | dom_chkd_less_than.h | 52 verrno = spu_splats(errno); in dom_chkd_less_than() 58 errno = spu_extract(spu_sel(verrno, fail, (vector unsigned int) domain), 0); in dom_chkd_less_than()
|
D | dom_chkd_negone_one.h | 62 verrno = spu_splats(errno); in dom_chkd_negone_one() 68 errno = spu_extract(spu_sel(verrno, fail, (vector unsigned int) domain), 0); in dom_chkd_negone_one()
|
D | dom_chkf_less_than.h | 52 verrno = spu_splats(errno); in dom_chkf_less_than() 58 errno = spu_extract(spu_sel(verrno, fail, (vector unsigned int) domain), 0); in dom_chkf_less_than()
|
D | dom_chkf_negone_one.h | 62 verrno = spu_splats(errno); in dom_chkf_negone_one() 68 errno = spu_extract(spu_sel(verrno, fail, (vector unsigned int) domain), 0); in dom_chkf_negone_one()
|
D | tgamma.h | 60 verrno = spu_splats(errno); in _tgamma() 63 errno = spu_extract(spu_sel(verrno, ferrno, (vector unsigned int) cmpres), 0); in _tgamma()
|
D | tgammaf.h | 59 verrno = spu_splats(errno); in _tgammaf() 62 errno = spu_extract(spu_sel(verrno, ferrno, (vector unsigned int) cmpres), 0); in _tgammaf()
|
/picolibc-latest/newlib/libc/posix/ |
D | nftw.c | 59 if (!(flags & FTW_PHYS) && errno==ENOENT && !lstat(path, &st)) in do_nftw() 61 else if (errno != EACCES) return -1; in do_nftw() 110 errno = ENAMETOOLONG; in do_nftw() 122 } else if (errno != EACCES) { in do_nftw() 144 errno = ENAMETOOLONG; in nftw()
|
/picolibc-latest/semihost/ |
D | lseek.c | 59 errno = EINVAL; in lseek() 66 errno = sys_semihost_errno(); in lseek()
|
/picolibc-latest/semihost/machine/m68k/ |
D | m68k_semihost.h | 125 errno = args.args[1]; in m68k_semihost1() 138 errno = args.args[1]; in m68k_semihost2() 152 errno = args.args[1]; in m68k_semihost3() 167 errno = args.args[2]; in m68k_semihost4_64() 182 errno = args.args[1]; in m68k_semihost4()
|
/picolibc-latest/semihost/machine/nios2/ |
D | nios2_semihost.h | 125 errno = args.args[1]; in nios2_semihost1() 138 errno = args.args[1]; in nios2_semihost2() 152 errno = args.args[1]; in nios2_semihost3() 167 errno = args.args[2]; in nios2_semihost4_64() 182 errno = args.args[1]; in nios2_semihost4()
|
/picolibc-latest/newlib/libc/machine/spu/ |
D | mmap_ea.c | 47 errno = ENOMEM; in mmap_ea() 63 errno = ENOMEM; in mmap_ea()
|
/picolibc-latest/newlib/libc/stdlib/ |
D | system.c | 72 errno = ENOSYS; in system() 88 errno = ENOSYS; in system()
|