├── libgloss ├── xc16x │ └── sys │ │ └── syscall.h ├── ChangeLog ├── mcore │ ├── pe-cmb.specs │ └── elf-cmb.specs ├── mips │ ├── lsipmon.S │ └── test.c ├── m32r │ ├── raise.c │ ├── getpid.c │ ├── mon.specs │ ├── unlink.c │ ├── exit.c │ ├── kill.c │ ├── close.c │ ├── isatty.c │ ├── fstat.c │ ├── open.c │ ├── read.c │ ├── chmod.c │ ├── lseek.c │ ├── write.c │ ├── stat.c │ └── utime.c ├── moxie │ ├── qemu.ld │ └── sim.ld ├── testsuite │ └── config │ │ ├── mips.mt │ │ ├── m68k.mt │ │ └── hppa.mt ├── ChangeLog-2015 ├── microblaze │ ├── linux-outbyte.c │ ├── linux-inbyte.c │ └── linux-syscalls-wrap.c ├── xstormy16 │ ├── crtn.s │ ├── crti.s │ └── sim_malloc_start.s ├── libnosys │ ├── errno.c │ └── environ.c ├── mt │ ├── trap.h │ ├── getpid.c │ ├── unlink.c │ ├── exit.c │ ├── isatty.c │ ├── kill.c │ ├── close.c │ ├── time.c │ ├── chmod.c │ ├── open.c │ ├── read.c │ ├── times.c │ ├── write.c │ ├── stat.c │ ├── fstat.c │ ├── utime.c │ ├── gettime.c │ └── lseek.c ├── iq2000 │ ├── trap.h │ ├── getpid.c │ ├── unlink.c │ ├── isatty.c │ ├── fork.c │ ├── kill.c │ ├── pipe.c │ ├── close.c │ ├── time.c │ ├── wait.c │ ├── chmod.c │ ├── creat.c │ ├── open.c │ ├── stat.c │ ├── execv.c │ ├── read.c │ ├── times.c │ ├── write.c │ ├── chown.c │ ├── execve.c │ ├── fstat.c │ ├── utime.c │ ├── gettime.c │ └── lseek.c ├── mn10200 │ ├── trap.h │ ├── trap.S │ ├── getpid.c │ ├── unlink.c │ ├── isatty.c │ ├── fork.c │ ├── kill.c │ ├── pipe.c │ ├── close.c │ ├── time.c │ ├── wait.c │ ├── chmod.c │ ├── creat.c │ ├── open.c │ ├── execv.c │ ├── stat.c │ ├── read.c │ ├── times.c │ ├── write.c │ ├── chown.c │ ├── execve.c │ ├── fstat.c │ ├── utime.c │ ├── gettime.c │ └── lseek.c ├── mn10300 │ ├── trap.h │ ├── trap.S │ ├── getpid.c │ ├── unlink.c │ ├── isatty.c │ ├── fork.c │ ├── kill.c │ ├── pipe.c │ ├── close.c │ ├── wait.c │ ├── chmod.c │ ├── creat.c │ ├── open.c │ ├── execv.c │ ├── stat.c │ ├── read.c │ ├── write.c │ ├── chown.c │ ├── times.c │ ├── execve.c │ ├── fstat.c │ ├── utime.c │ ├── gettime.c │ ├── lseek.c │ └── time.c ├── riscv │ ├── sys_chdir.c │ ├── sys_utime.c │ ├── sys_chmod.c │ ├── sys_chown.c │ ├── sys_getcwd.c │ ├── sys_close.c │ ├── sim.specs │ ├── sys_ftime.c │ ├── sys_open.c │ ├── sys_unlink.c │ ├── sys_access.c │ ├── sys_exit.c │ ├── sys_link.c │ ├── sys_read.c │ ├── sys_fork.c │ ├── sys_wait.c │ ├── sys_lseek.c │ ├── sys_openat.c │ ├── sys_write.c │ └── sys_kill.c ├── arm │ ├── coff-rdpmon.specs │ ├── coff-pid.specs │ ├── coff-redboot.specs │ ├── elf-linux.specs │ ├── elf-rdpmon.specs │ ├── coff-iq80310.specs │ ├── elf-pid.specs │ ├── elf-iq80310.specs │ └── elf-redboot.specs ├── v850 │ └── trap.S ├── config │ ├── xc16x.mt │ ├── mn10200.mt │ └── mn10300.mt ├── rs6000 │ └── mbx.specs ├── cris │ └── outbyte.c ├── i960 │ └── mon-write.c └── sparc │ └── libsys │ └── _exit.S ├── newlib ├── libc │ ├── machine │ │ ├── meson.build │ │ ├── spu │ │ │ ├── viscanf.c │ │ │ ├── vfiprintf.c │ │ │ ├── vfiscanf.c │ │ │ ├── viprintf.c │ │ │ ├── vsiprintf.c │ │ │ ├── vsiscanf.c │ │ │ ├── vsniprintf.c │ │ │ └── sys │ │ │ │ ├── sched.h │ │ │ │ └── syscall.h │ │ ├── h8500 │ │ │ ├── negsi2.c │ │ │ └── mulhi3.c │ │ ├── w65 │ │ │ ├── umodhi3.S │ │ │ ├── smulhi3.S │ │ │ └── mulsi3.c │ │ ├── arm │ │ │ └── machine │ │ │ │ └── param.h │ │ ├── z8k │ │ │ └── args.h │ │ ├── rx │ │ │ └── memset.S │ │ └── powerpc │ │ │ └── vec_free.c │ ├── stdlib │ │ ├── strtoll_r.c │ │ ├── strtoull_r.c │ │ ├── wcstoll_r.c │ │ ├── wcstoull_r.c │ │ ├── atoff.c │ │ └── mbsinit.c │ ├── include │ │ ├── fcntl.h │ │ ├── sys │ │ │ ├── file.h │ │ │ ├── custom_file.h │ │ │ ├── fcntl.h │ │ │ ├── string.h │ │ │ └── dir.h │ │ ├── machine │ │ │ ├── termios.h │ │ │ ├── ansi.h │ │ │ ├── param.h │ │ │ ├── _arc4random.h │ │ │ ├── _time.h │ │ │ ├── _types.h │ │ │ ├── malloc.h │ │ │ ├── stdlib.h │ │ │ └── types.h │ │ ├── memory.h │ │ ├── newlib.h │ │ ├── _newlib_version.h │ │ ├── unistd.h │ │ ├── utmp.h │ │ ├── termios.h │ │ ├── errno.h │ │ ├── paths.h │ │ ├── utime.h │ │ ├── regdef.h │ │ └── fastmath.h │ ├── sys │ │ ├── h8300hms │ │ │ ├── sys │ │ │ │ └── syscall.h │ │ │ └── stat.S │ │ ├── linux │ │ │ ├── dl │ │ │ │ ├── libintl.h │ │ │ │ ├── abi-tag.h │ │ │ │ └── trusted-dirs.h │ │ │ ├── confstr.h │ │ │ ├── hp-timing.h │ │ │ ├── machine │ │ │ │ └── i386 │ │ │ │ │ ├── sysdep.h │ │ │ │ │ ├── include │ │ │ │ │ ├── termios.h │ │ │ │ │ └── setjmp.h │ │ │ │ │ ├── getpagesize.c │ │ │ │ │ └── sigstack.h │ │ │ ├── include │ │ │ │ ├── semaphore.h │ │ │ │ ├── mcheck.h │ │ │ │ ├── bp-sym.h │ │ │ │ └── netinet6 │ │ │ │ │ ├── ip6.h │ │ │ │ │ └── icmp6.h │ │ │ ├── sethostid.c │ │ │ ├── free.c │ │ │ ├── msize.c │ │ │ ├── mtrim.c │ │ │ ├── raise.c │ │ │ ├── shlib-compat.h │ │ │ ├── calloc.c │ │ │ ├── malign.c │ │ │ ├── mstats.c │ │ │ ├── net │ │ │ │ ├── issetugid-stub.c │ │ │ │ ├── herrno.c │ │ │ │ └── etherent.h │ │ │ ├── realloc.c │ │ │ ├── sys │ │ │ │ ├── link.h │ │ │ │ ├── string.h │ │ │ │ ├── file.h │ │ │ │ ├── resource.h │ │ │ │ └── ioctl.h │ │ │ ├── strverscmp.c │ │ │ ├── fclean.c │ │ │ ├── freer.c │ │ │ ├── mallstatsr.c │ │ │ ├── cfreer.c │ │ │ ├── mtrimr.c │ │ │ ├── mallinfor.c │ │ │ ├── mallocr.c │ │ │ ├── vallocr.c │ │ │ ├── pvallocr.c │ │ │ ├── crt1.c │ │ │ ├── callocr.c │ │ │ ├── msizer.c │ │ │ ├── reallocr.c │ │ │ ├── malloptr.c │ │ │ ├── malignr.c │ │ │ ├── getlogin.c │ │ │ ├── libintl.h │ │ │ ├── intl │ │ │ │ └── lcl_stpcpy.c │ │ │ ├── flockfile.c │ │ │ ├── funlockfile.c │ │ │ ├── sethostname.c │ │ │ ├── rename.c │ │ │ ├── linuxthreads │ │ │ │ └── getreent.c │ │ │ ├── systat.c │ │ │ └── ctermid.c │ │ ├── rtems │ │ │ ├── include │ │ │ │ ├── syslog.h │ │ │ │ └── machine │ │ │ │ │ └── limits.h │ │ │ └── dummysys.c │ │ ├── sparc64 │ │ │ ├── _main.c │ │ │ ├── sys │ │ │ │ ├── file.h │ │ │ │ └── utime.h │ │ │ ├── lstat.S │ │ │ ├── stat.S │ │ │ ├── dup2.S │ │ │ ├── utime.S │ │ │ └── creat.c │ │ ├── sun4 │ │ │ ├── _main.c │ │ │ └── sys │ │ │ │ ├── file.h │ │ │ │ └── utime.h │ │ ├── decstation │ │ │ └── _main.c │ │ ├── sysvi386 │ │ │ ├── _exit.S │ │ │ ├── alarm.S │ │ │ ├── pause.S │ │ │ ├── dup.c │ │ │ ├── sysconf.S │ │ │ ├── getdents.S │ │ │ ├── pathconf.S │ │ │ ├── fpathconf.S │ │ │ ├── brk.S │ │ │ ├── read.S │ │ │ ├── sys │ │ │ │ ├── setjmp.h │ │ │ │ └── utime.h │ │ │ ├── execve.S │ │ │ ├── time.S │ │ │ ├── write.S │ │ │ ├── lseek.S │ │ │ ├── times.S │ │ │ ├── utime.S │ │ │ ├── access.S │ │ │ ├── getgid.S │ │ │ ├── getuid.S │ │ │ ├── open.S │ │ │ ├── tcgetattr.c │ │ │ ├── fcntl.S │ │ │ ├── ioctl.S │ │ │ ├── getgroups.S │ │ │ ├── getpid.S │ │ │ ├── cerror.S │ │ │ ├── kill.S │ │ │ ├── link.S │ │ │ ├── stat.S │ │ │ ├── chdir.S │ │ │ ├── chmod.S │ │ │ ├── close.S │ │ │ ├── fstat.S │ │ │ ├── mkdir.S │ │ │ ├── rmdir.S │ │ │ ├── tcsetattr.c │ │ │ ├── dup2.c │ │ │ ├── setgid.S │ │ │ ├── setuid.S │ │ │ ├── unlink.S │ │ │ ├── getegid.S │ │ │ ├── geteuid.S │ │ │ ├── rename.S │ │ │ ├── isatty.c │ │ │ ├── fork.S │ │ │ ├── pipe.S │ │ │ ├── wait.S │ │ │ └── sleep.c │ │ ├── sysvnecv70 │ │ │ ├── exit.S │ │ │ ├── read.S │ │ │ ├── sysv60.S │ │ │ ├── ioctl.S │ │ │ ├── lseek.S │ │ │ ├── write.S │ │ │ ├── cerror.S │ │ │ ├── open.S │ │ │ ├── close.S │ │ │ └── fstat.S │ │ ├── sh │ │ │ ├── creat.c │ │ │ ├── ftruncate.c │ │ │ └── truncate.c │ │ ├── d10v │ │ │ └── creat.c │ │ ├── phoenix │ │ │ ├── regenerate.sh │ │ │ └── machine │ │ │ │ ├── regenerate.sh │ │ │ │ └── arm │ │ │ │ └── regenerate.sh │ │ ├── netware │ │ │ └── crt0.c │ │ ├── w65 │ │ │ ├── trap.c │ │ │ └── crt0.c │ │ ├── rdos │ │ │ ├── isatty.c │ │ │ ├── fork.c │ │ │ ├── getpid.c │ │ │ ├── wait.c │ │ │ ├── kill.c │ │ │ ├── unlink.c │ │ │ ├── link.c │ │ │ ├── execve.c │ │ │ ├── symlink.c │ │ │ ├── times.c │ │ │ ├── chown.c │ │ │ └── readlink.c │ │ ├── sysnecv850 │ │ │ └── trap.S │ │ ├── sysmec │ │ │ ├── trap.S │ │ │ └── getpid.c │ │ ├── sysnec810 │ │ │ └── sbrk.c │ │ ├── a29khif │ │ │ └── getpid.c │ │ └── m88kbug │ │ │ └── sys │ │ │ └── systraps.h │ ├── stdio │ │ ├── svfscanf.c │ │ ├── vfiscanf.c │ │ ├── svfprintf.c │ │ ├── svfwprintf.c │ │ ├── svfwscanf.c │ │ ├── vfiprintf.c │ │ ├── vfiwscanf.c │ │ ├── svfiscanf.c │ │ ├── svfiprintf.c │ │ ├── svfiwscanf.c │ │ ├── vfiwprintf.c │ │ └── svfiwprintf.c │ ├── search │ │ └── bsd_qsort_r.c │ ├── argz │ │ └── dummy.c │ ├── xdr │ │ └── dummy.c │ ├── stdio64 │ │ └── dummy.c │ ├── time │ │ ├── strptime.c │ │ ├── tzvars.c │ │ └── ctime_r.c │ ├── tinystdio │ │ └── sys │ │ │ ├── meson.build │ │ │ └── custom_file.h │ ├── iconv │ │ └── ccs │ │ │ └── binary │ │ │ ├── big5.cct │ │ │ ├── cp775.cct │ │ │ ├── cp850.cct │ │ │ ├── cp852.cct │ │ │ ├── cp855.cct │ │ │ ├── cp866.cct │ │ │ ├── koi8_r.cct │ │ │ ├── koi8_u.cct │ │ │ ├── koi8_ru.cct │ │ │ ├── koi8_uni.cct │ │ │ ├── ksx1001.cct │ │ │ ├── win_1250.cct │ │ │ ├── win_1251.cct │ │ │ ├── win_1252.cct │ │ │ ├── win_1253.cct │ │ │ ├── win_1254.cct │ │ │ ├── win_1255.cct │ │ │ ├── win_1256.cct │ │ │ ├── win_1257.cct │ │ │ ├── win_1258.cct │ │ │ ├── iso_8859_1.cct │ │ │ ├── iso_8859_10.cct │ │ │ ├── iso_8859_11.cct │ │ │ ├── iso_8859_13.cct │ │ │ ├── iso_8859_14.cct │ │ │ ├── iso_8859_15.cct │ │ │ ├── iso_8859_2.cct │ │ │ ├── iso_8859_3.cct │ │ │ ├── iso_8859_4.cct │ │ │ ├── iso_8859_5.cct │ │ │ ├── iso_8859_6.cct │ │ │ ├── iso_8859_7.cct │ │ │ ├── iso_8859_8.cct │ │ │ ├── iso_8859_9.cct │ │ │ ├── iso_ir_111.cct │ │ │ ├── cns11643_plane1.cct │ │ │ ├── cns11643_plane14.cct │ │ │ ├── cns11643_plane2.cct │ │ │ ├── jis_x0201_1976.cct │ │ │ ├── jis_x0208_1990.cct │ │ │ └── jis_x0212_1990.cct │ ├── ctype │ │ ├── categories.h │ │ ├── wctype_l.c │ │ ├── iswdigit_l.c │ │ ├── toascii_l.c │ │ ├── isascii_l.c │ │ ├── iscntrl_l.c │ │ ├── isdigit_l.c │ │ ├── isalnum_l.c │ │ ├── isalpha_l.c │ │ ├── ispunct_l.c │ │ ├── isspace_l.c │ │ ├── islower_l.c │ │ ├── isblank_l.c │ │ ├── isxdigit_l.c │ │ └── isupper_l.c │ ├── posix │ │ ├── isatty.c │ │ └── creat.c │ ├── syscalls │ │ ├── sysgetpid.c │ │ ├── sysclose.c │ │ ├── syswait.c │ │ ├── systimes.c │ │ ├── sysunlink.c │ │ ├── syskill.c │ │ ├── syslink.c │ │ ├── syslseek.c │ │ ├── sysfstat.c │ │ ├── sysread.c │ │ ├── sysstat.c │ │ ├── syswrite.c │ │ ├── sysexecve.c │ │ ├── sysisatty.c │ │ └── syssbrk.c │ ├── unix │ │ └── ttyname.h │ └── string │ │ └── strdup.c ├── stamp-h.in ├── ChangeLog ├── meson.build ├── iconvdata │ ├── EUC-JP.irreversible │ ├── dummy.c │ └── SJIS.irreversible ├── libm │ ├── common │ │ └── local.h │ ├── config.h.in │ ├── machine │ │ ├── spu │ │ │ ├── fegetenv.c │ │ │ ├── fegetround.c │ │ │ ├── fesetenv.c │ │ │ ├── w_exp.c │ │ │ ├── w_log.c │ │ │ ├── s_atan.c │ │ │ ├── s_cbrt.c │ │ │ ├── s_ceil.c │ │ │ ├── s_fabs.c │ │ │ ├── s_ilogb.c │ │ │ ├── s_rint.c │ │ │ ├── s_tanh.c │ │ │ ├── sf_logb.c │ │ │ ├── sf_rint.c │ │ │ ├── sf_tanh.c │ │ │ ├── w_acos.c │ │ │ ├── w_asin.c │ │ │ ├── w_cosh.c │ │ │ ├── w_exp2.c │ │ │ ├── w_sinh.c │ │ │ ├── wf_acos.c │ │ │ ├── wf_asin.c │ │ │ ├── wf_cosh.c │ │ │ ├── wf_exp.c │ │ │ ├── wf_log.c │ │ │ ├── wf_sinh.c │ │ │ ├── s_asinh.c │ │ │ ├── s_cos.c │ │ │ ├── s_expm1.c │ │ │ ├── s_floor.c │ │ │ ├── s_log1p.c │ │ │ ├── s_lrint.c │ │ │ ├── s_round.c │ │ │ ├── s_sin.c │ │ │ ├── s_tan.c │ │ │ ├── s_trunc.c │ │ │ ├── sf_asinh.c │ │ │ ├── sf_atan.c │ │ │ ├── sf_cbrt.c │ │ │ ├── sf_cos.c │ │ │ ├── sf_expm1.c │ │ │ ├── sf_ilogb.c │ │ │ ├── sf_log1p.c │ │ │ ├── sf_round.c │ │ │ ├── sf_sin.c │ │ │ ├── sf_tan.c │ │ │ ├── sf_trunc.c │ │ │ ├── w_acosh.c │ │ │ ├── w_atanh.c │ │ │ ├── w_lgamma.c │ │ │ ├── w_log10.c │ │ │ ├── w_sqrt.c │ │ │ ├── w_tgamma.c │ │ │ ├── wf_acosh.c │ │ │ ├── wf_atanh.c │ │ │ ├── wf_exp2.c │ │ │ ├── wf_log10.c │ │ │ ├── wf_sqrt.c │ │ │ ├── fe_dfl_env.c │ │ │ ├── feupdateenv.c │ │ │ ├── s_lround.c │ │ │ ├── sf_ceil.c │ │ │ ├── sf_fabs.c │ │ │ ├── sf_lrint.c │ │ │ ├── w_pow.c │ │ │ ├── wf_lgamma.c │ │ │ ├── wf_pow.c │ │ │ ├── wf_tgamma.c │ │ │ ├── feclearexcept.c │ │ │ ├── feholdexcept.c │ │ │ ├── feraiseexcept.c │ │ │ ├── fetestexcept.c │ │ │ ├── llrint.c │ │ │ ├── llrintf.c │ │ │ ├── log2.c │ │ │ ├── s_fdim.c │ │ │ ├── s_fmax.c │ │ │ ├── s_fmin.c │ │ │ ├── s_isnan.c │ │ │ ├── sf_fdim.c │ │ │ ├── sf_floor.c │ │ │ ├── sf_fmax.c │ │ │ ├── sf_fmin.c │ │ │ ├── sf_lround.c │ │ │ ├── w_atan2.c │ │ │ ├── w_fmod.c │ │ │ ├── w_hypot.c │ │ │ ├── wf_atan2.c │ │ │ ├── wf_fmod.c │ │ │ ├── wf_hypot.c │ │ │ ├── fesetround.c │ │ │ ├── llround.c │ │ │ ├── llroundf.c │ │ │ ├── log2f.c │ │ │ ├── s_frexp.c │ │ │ ├── s_ldexp.c │ │ │ ├── s_nearbyint.c │ │ │ ├── sf_ldexp.c │ │ │ ├── sf_nearbyint.c │ │ │ ├── s_fma.c │ │ │ ├── s_scalbn.c │ │ │ ├── sf_fma.c │ │ │ ├── sf_frexp.c │ │ │ ├── sf_scalbn.c │ │ │ ├── headers │ │ │ │ ├── erf.h │ │ │ │ ├── erff.h │ │ │ │ ├── exp.h │ │ │ │ ├── atan.h │ │ │ │ ├── cosh.h │ │ │ │ ├── coshf.h │ │ │ │ ├── erfc.h │ │ │ │ ├── erfcf.h │ │ │ │ ├── isnan.h │ │ │ │ ├── logbf.h │ │ │ │ ├── rintf.h │ │ │ │ ├── sinh.h │ │ │ │ ├── sinhf.h │ │ │ │ ├── tanh.h │ │ │ │ ├── tanhf.h │ │ │ │ ├── asinh.h │ │ │ │ ├── asinhf.h │ │ │ │ ├── cos.h │ │ │ │ ├── cosf.h │ │ │ │ ├── exp2.h │ │ │ │ ├── expm1.h │ │ │ │ ├── expm1f.h │ │ │ │ ├── sin.h │ │ │ │ ├── sinf.h │ │ │ │ ├── tan.h │ │ │ │ ├── tanf.h │ │ │ │ ├── isnanf.h │ │ │ │ ├── lgamma.h │ │ │ │ ├── lgammaf.h │ │ │ │ ├── nearbyintf.h │ │ │ │ ├── pow.h │ │ │ │ ├── powf.h │ │ │ │ ├── signbit.h │ │ │ │ ├── atan2.h │ │ │ │ ├── atan2f.h │ │ │ │ ├── hypot.h │ │ │ │ ├── hypotf.h │ │ │ │ ├── nextafter.h │ │ │ │ └── nextafterf.h │ │ │ ├── s_copysign.c │ │ │ ├── s_nextafter.c │ │ │ ├── sf_copysign.c │ │ │ ├── s_remquo.c │ │ │ ├── sf_nextafter.c │ │ │ ├── w_remainder.c │ │ │ ├── wf_remainder.c │ │ │ ├── sf_remquo.c │ │ │ ├── fegetexceptflag.c │ │ │ ├── fesetexceptflag.c │ │ │ ├── w_sincos.c │ │ │ └── wf_sincos.c │ │ └── riscv │ │ │ └── configure.in │ └── complex │ │ ├── cephes_subrf.h │ │ └── cephes_subr.h ├── doc │ └── .gitignore ├── ChangeLog-2015 └── testsuite │ ├── config │ └── default.exp │ └── include │ └── check.h ├── scripts ├── dummy.c └── README.md ├── winsup ├── cygwin │ ├── include │ │ ├── icmp.h │ │ ├── cygwin │ │ │ ├── icmp.h │ │ │ └── sockios.h │ │ ├── sys │ │ │ ├── ttychars.h │ │ │ ├── statfs.h │ │ │ └── termio.h │ │ └── poll.h │ ├── math │ │ ├── log2l.S │ │ ├── log10l.S │ │ ├── log1pl.S │ │ ├── exp10l.c │ │ ├── pow10l.c │ │ └── isnan.c │ ├── autogen.sh │ ├── lib │ │ └── pseudo-reloc-dummy.c │ └── release │ │ ├── 1.7.24 │ │ ├── 1.7.20 │ │ ├── 2.11.1 │ │ └── 1.7.13 ├── testsuite │ └── winsup.api │ │ ├── samples │ │ ├── sample-miscompile.c │ │ ├── sample-fail.c │ │ └── sample-pass.c │ │ └── known_bugs.tcl ├── utils │ └── autogen.sh ├── cygserver │ └── autogen.sh ├── CVSChangeLogs.old │ └── cygwin │ │ └── ChangeLog-2001 ├── c++wrap ├── doc │ ├── README │ └── .gitignore └── lsaauth │ └── cyglsa64.def ├── config ├── mt-gnu ├── mt-mips-elfoabi ├── bootstrap-O1.mk ├── bootstrap-O3.mk ├── mt-mips-gnu ├── bootstrap-time.mk ├── mt-alphaieee ├── mt-spu ├── mh-alpha-linux ├── mt-ospace ├── mt-d30v ├── mh-cygwin ├── mh-pa ├── mt-nios2-elf ├── mh-pa-hpux10 └── bootstrap-lto-noplugin.mk ├── include ├── newlib-force.h ├── coff │ └── ChangeLog └── MAINTAINERS └── cross-arm-none-eabi.txt /libgloss/xc16x/sys/syscall.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /newlib/libc/machine/meson.build: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /newlib/stamp-h.in: -------------------------------------------------------------------------------- 1 | timestamp 2 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/strtoll_r.c: -------------------------------------------------------------------------------- 1 | /* dummy */ 2 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/strtoull_r.c: -------------------------------------------------------------------------------- 1 | /* dummy */ 2 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/wcstoll_r.c: -------------------------------------------------------------------------------- 1 | /* dummy */ 2 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/wcstoull_r.c: -------------------------------------------------------------------------------- 1 | /* dummy */ 2 | -------------------------------------------------------------------------------- /scripts/dummy.c: -------------------------------------------------------------------------------- 1 | // Dummy file for build 2 | -------------------------------------------------------------------------------- /winsup/cygwin/include/icmp.h: -------------------------------------------------------------------------------- 1 | /* icmp.h */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/include/cygwin/icmp.h: -------------------------------------------------------------------------------- 1 | /* icmp.h */ 2 | -------------------------------------------------------------------------------- /config/mt-gnu: -------------------------------------------------------------------------------- 1 | CXXFLAGS_FOR_TARGET += -D_GNU_SOURCE 2 | -------------------------------------------------------------------------------- /libgloss/ChangeLog: -------------------------------------------------------------------------------- 1 | Deprecated. See git log instead. 2 | -------------------------------------------------------------------------------- /newlib/ChangeLog: -------------------------------------------------------------------------------- 1 | Deprecated. See git log instead. 2 | -------------------------------------------------------------------------------- /newlib/libc/include/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /newlib/meson.build: -------------------------------------------------------------------------------- 1 | subdir('libc') 2 | subdir('libm') 3 | -------------------------------------------------------------------------------- /winsup/cygwin/include/cygwin/sockios.h: -------------------------------------------------------------------------------- 1 | /* sockios.h */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/include/sys/ttychars.h: -------------------------------------------------------------------------------- 1 | /* ttychars.h */ 2 | -------------------------------------------------------------------------------- /libgloss/mcore/pe-cmb.specs: -------------------------------------------------------------------------------- 1 | *endfile: 2 | -Tcmb.ld 3 | 4 | -------------------------------------------------------------------------------- /libgloss/mips/lsipmon.S: -------------------------------------------------------------------------------- 1 | #define LSI 1 2 | #include "pmon.S" 3 | -------------------------------------------------------------------------------- /newlib/libc/include/sys/file.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | -------------------------------------------------------------------------------- /newlib/libc/sys/h8300hms/sys/syscall.h: -------------------------------------------------------------------------------- 1 | #define SYS_read 4 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/dl/libintl.h: -------------------------------------------------------------------------------- 1 | #define N_(x) x 2 | 3 | -------------------------------------------------------------------------------- /config/mt-mips-elfoabi: -------------------------------------------------------------------------------- 1 | include $(srcdir)/config/mt-mips16-compat 2 | -------------------------------------------------------------------------------- /include/newlib-force.h: -------------------------------------------------------------------------------- 1 | // Force newlib library to be included. 2 | -------------------------------------------------------------------------------- /newlib/iconvdata/EUC-JP.irreversible: -------------------------------------------------------------------------------- 1 | 0x5C 0x00A5 2 | 0x7E 0x203E 3 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/confstr.h: -------------------------------------------------------------------------------- 1 | #define CS_PATH "/bin:/usr/bin" 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/hp-timing.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/rtems/include/syslog.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /newlib/libm/common/local.h: -------------------------------------------------------------------------------- 1 | /* placeholder for future usage. */ 2 | -------------------------------------------------------------------------------- /newlib/doc/.gitignore: -------------------------------------------------------------------------------- 1 | # PLY artefacts 2 | parser.out 3 | parsetab.py 4 | -------------------------------------------------------------------------------- /newlib/libc/include/machine/termios.h: -------------------------------------------------------------------------------- 1 | #define __MAX_BAUD B4000000 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/machine/i386/sysdep.h: -------------------------------------------------------------------------------- 1 | #define NO_UNDERSCORES 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/_main.c: -------------------------------------------------------------------------------- 1 | 2 | __main() 3 | { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sun4/_main.c: -------------------------------------------------------------------------------- 1 | 2 | __main() 3 | { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /winsup/testsuite/winsup.api/samples/sample-miscompile.c: -------------------------------------------------------------------------------- 1 | foo bar grill 2 | -------------------------------------------------------------------------------- /libgloss/m32r/raise.c: -------------------------------------------------------------------------------- 1 | /* ??? Needed? */ 2 | 3 | _raise () 4 | { 5 | } 6 | -------------------------------------------------------------------------------- /libgloss/moxie/qemu.ld: -------------------------------------------------------------------------------- 1 | GROUP(-lc -lgcc -lqemu) 2 | INCLUDE moxie-elf-common.ld -------------------------------------------------------------------------------- /libgloss/moxie/sim.ld: -------------------------------------------------------------------------------- 1 | GROUP(-lc -lgcc -lsim) 2 | INCLUDE moxie-elf-common.ld -------------------------------------------------------------------------------- /newlib/libc/stdio/svfscanf.c: -------------------------------------------------------------------------------- 1 | #define STRING_ONLY 2 | #include "vfscanf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/stdio/vfiscanf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vfscanf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/sys/decstation/_main.c: -------------------------------------------------------------------------------- 1 | 2 | __main() 3 | { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/rtems/dummysys.c: -------------------------------------------------------------------------------- 1 | void not_required_by_rtems( void ) {} 2 | -------------------------------------------------------------------------------- /config/bootstrap-O1.mk: -------------------------------------------------------------------------------- 1 | BOOT_CFLAGS := -O1 $(filter-out -O%, $(BOOT_CFLAGS)) 2 | -------------------------------------------------------------------------------- /config/bootstrap-O3.mk: -------------------------------------------------------------------------------- 1 | BOOT_CFLAGS := -O3 $(filter-out -O%, $(BOOT_CFLAGS)) 2 | -------------------------------------------------------------------------------- /libgloss/m32r/getpid.c: -------------------------------------------------------------------------------- 1 | 2 | int 3 | _getpid (int n) 4 | { 5 | return 1; 6 | } 7 | -------------------------------------------------------------------------------- /libgloss/mcore/elf-cmb.specs: -------------------------------------------------------------------------------- 1 | *endfile: 2 | -Tcmb.ld crtend.o%s crtn.o%s 3 | 4 | -------------------------------------------------------------------------------- /libgloss/testsuite/config/mips.mt: -------------------------------------------------------------------------------- 1 | MULTILIB= 2 | GLOSSDIR=mips 3 | SCRIPTS=array 4 | -------------------------------------------------------------------------------- /newlib/iconvdata/dummy.c: -------------------------------------------------------------------------------- 1 | /* empty file to force proper Makefile creation */ 2 | -------------------------------------------------------------------------------- /newlib/libc/machine/spu/viscanf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vscanf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/search/bsd_qsort_r.c: -------------------------------------------------------------------------------- 1 | #define I_AM_QSORT_R 2 | #include "qsort.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/stdio/svfprintf.c: -------------------------------------------------------------------------------- 1 | #define STRING_ONLY 2 | #include "vfprintf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/stdio/svfwprintf.c: -------------------------------------------------------------------------------- 1 | #define STRING_ONLY 2 | #include "vfwprintf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/stdio/svfwscanf.c: -------------------------------------------------------------------------------- 1 | #define STRING_ONLY 2 | #include "vfwscanf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/stdio/vfiprintf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vfprintf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/stdio/vfiwscanf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vfwscanf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/include/semaphore.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /newlib/libc/argz/dummy.c: -------------------------------------------------------------------------------- 1 | /* empty stub to allow objectlist.awk.in to be created */ 2 | -------------------------------------------------------------------------------- /newlib/libc/include/machine/ansi.h: -------------------------------------------------------------------------------- 1 | /* dummy header file to support BSD compiler */ 2 | -------------------------------------------------------------------------------- /newlib/libc/machine/spu/vfiprintf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vfprintf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/machine/spu/vfiscanf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vfscanf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/machine/spu/viprintf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vprintf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/machine/spu/vsiprintf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vsprintf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/machine/spu/vsiscanf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vsscanf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/machine/spu/vsniprintf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #include "vsnprintf.c" 3 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/machine/i386/include/termios.h: -------------------------------------------------------------------------------- 1 | #define __MAX_BAUD B4000000 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/sethostid.c: -------------------------------------------------------------------------------- 1 | #define SET_PROCEDURE 1 2 | #include "gethostid.c" 3 | -------------------------------------------------------------------------------- /libgloss/testsuite/config/m68k.mt: -------------------------------------------------------------------------------- 1 | MULTILIB= 2 | GLOSSDIR=m68k 3 | SCRIPTS=mvme135 idp 4 | -------------------------------------------------------------------------------- /newlib/ChangeLog-2015: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/ChangeLog-2015 -------------------------------------------------------------------------------- /newlib/libc/include/machine/param.h: -------------------------------------------------------------------------------- 1 | /* Place holder for machine-specific param.h. */ 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/free.c: -------------------------------------------------------------------------------- 1 | /* dummy file to override one object in stdlib directory */ 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/msize.c: -------------------------------------------------------------------------------- 1 | /* dummy file to override one object in stdlib directory */ 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/mtrim.c: -------------------------------------------------------------------------------- 1 | /* dummy file to override one object in stdlib directory */ 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/raise.c: -------------------------------------------------------------------------------- 1 | /* empty file so we override regular raise */ 2 | 3 | 4 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/shlib-compat.h: -------------------------------------------------------------------------------- 1 | #define SHLIB_COMPAT(libc, introduced, obsoleted) 0 2 | -------------------------------------------------------------------------------- /include/coff/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/include/coff/ChangeLog -------------------------------------------------------------------------------- /libgloss/ChangeLog-2015: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/libgloss/ChangeLog-2015 -------------------------------------------------------------------------------- /newlib/libc/include/machine/_arc4random.h: -------------------------------------------------------------------------------- 1 | /* Use default implementation, see arc4random.h */ 2 | -------------------------------------------------------------------------------- /newlib/libc/include/sys/custom_file.h: -------------------------------------------------------------------------------- 1 | #error System-specific custom_file.h is missing. 2 | 3 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/calloc.c: -------------------------------------------------------------------------------- 1 | /* dummy file to override one object in stdlib directory */ 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/malign.c: -------------------------------------------------------------------------------- 1 | /* dummy file to override one object in stdlib directory */ 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/mstats.c: -------------------------------------------------------------------------------- 1 | /* dummy file to override one object in stdlib directory */ 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/net/issetugid-stub.c: -------------------------------------------------------------------------------- 1 | int 2 | issetugid(void) 3 | { 4 | return 0; 5 | } 6 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/realloc.c: -------------------------------------------------------------------------------- 1 | /* dummy file to override one object in stdlib directory */ 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/sun4/sys/file.h: -------------------------------------------------------------------------------- 1 | /* FIXME: really fcntl.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /winsup/testsuite/winsup.api/samples/sample-fail.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | return 1; 5 | } 6 | -------------------------------------------------------------------------------- /winsup/testsuite/winsup.api/samples/sample-pass.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | return 0; 5 | } 6 | -------------------------------------------------------------------------------- /config/mt-mips-gnu: -------------------------------------------------------------------------------- 1 | include $(srcdir)/config/mt-gnu 2 | include $(srcdir)/config/mt-mips16-compat 3 | -------------------------------------------------------------------------------- /libgloss/testsuite/config/hppa.mt: -------------------------------------------------------------------------------- 1 | MULTILIB=-msoft-float 2 | GLOSSDIR=pa 3 | SCRIPTS=w89k op50n 4 | 5 | -------------------------------------------------------------------------------- /newlib/libc/stdio/svfiscanf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #define STRING_ONLY 3 | #include "vfscanf.c" 4 | -------------------------------------------------------------------------------- /newlib/libc/xdr/dummy.c: -------------------------------------------------------------------------------- 1 | /* empty stub so there's at least one file to put in objectlist.awk.in */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/math/log2l.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/winsup/cygwin/math/log2l.S -------------------------------------------------------------------------------- /libgloss/m32r/mon.specs: -------------------------------------------------------------------------------- 1 | *endfile_cpu: 2 | -lmon %{m32rx:m32rx/crtfini.o%s} %{!m32rx:crtfini.o%s} 3 | 4 | -------------------------------------------------------------------------------- /libgloss/microblaze/linux-outbyte.c: -------------------------------------------------------------------------------- 1 | void outbyte (unsigned char c) 2 | { 3 | _write(1, &c, 1); 4 | } 5 | -------------------------------------------------------------------------------- /newlib/libc/machine/h8500/negsi2.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | long 4 | __negsi2(long x) 5 | { 6 | return ~x+1; 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/stdio/svfiprintf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #define STRING_ONLY 3 | #include "vfprintf.c" 4 | -------------------------------------------------------------------------------- /newlib/libc/stdio/svfiwscanf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #define STRING_ONLY 3 | #include "vfwscanf.c" 4 | -------------------------------------------------------------------------------- /newlib/libc/stdio/vfiwprintf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #define STRING_ONLY 3 | #include "vfprintf.c" 4 | -------------------------------------------------------------------------------- /newlib/libc/stdio64/dummy.c: -------------------------------------------------------------------------------- 1 | /* empty stub so there's at least one file to put in objectlist.awk.in */ 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/sys/link.h: -------------------------------------------------------------------------------- 1 | struct link_map_machine 2 | { 3 | /* empty by default */ 4 | }; 5 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/_exit.S: -------------------------------------------------------------------------------- 1 | 2 | .globl _exit 3 | _exit: 4 | movl $1, %eax 5 | lcall $7,$0 6 | 7 | -------------------------------------------------------------------------------- /newlib/libc/time/strptime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/time/strptime.c -------------------------------------------------------------------------------- /newlib/libc/tinystdio/sys/meson.build: -------------------------------------------------------------------------------- 1 | install_headers( 2 | 'custom_file.h', 3 | subdir: 'sys' 4 | ) 5 | -------------------------------------------------------------------------------- /newlib/libm/config.h.in: -------------------------------------------------------------------------------- 1 | /* config.h.in. Generated automatically from configure.in by autoheader. */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/math/log10l.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/winsup/cygwin/math/log10l.S -------------------------------------------------------------------------------- /winsup/cygwin/math/log1pl.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/winsup/cygwin/math/log1pl.S -------------------------------------------------------------------------------- /config/bootstrap-time.mk: -------------------------------------------------------------------------------- 1 | BOOT_CFLAGS += -time=$(shell pwd)/time.log 2 | TFLAGS += -time=$(shell pwd)/time.log 3 | -------------------------------------------------------------------------------- /libgloss/xstormy16/crtn.s: -------------------------------------------------------------------------------- 1 | .section .init,"ax" 2 | ret 3 | 4 | .section .fini,"ax" 5 | ret 6 | -------------------------------------------------------------------------------- /newlib/libc/stdio/svfiwprintf.c: -------------------------------------------------------------------------------- 1 | #define INTEGER_ONLY 2 | #define STRING_ONLY 3 | 4 | #include "vfwprintf.c" 5 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/alarm.S: -------------------------------------------------------------------------------- 1 | .globl _alarm 2 | _alarm: 3 | movl $0x1b, %eax 4 | lcall $7,$0 5 | ret 6 | -------------------------------------------------------------------------------- /scripts/README.md: -------------------------------------------------------------------------------- 1 | # scripts 2 | 3 | This folder contains build scripts for codal-libopencm3 and MakeCode. 4 | -------------------------------------------------------------------------------- /libgloss/libnosys/errno.c: -------------------------------------------------------------------------------- 1 | /* Supply a definition of errno if one not already provided. */ 2 | 3 | int errno; 4 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/strverscmp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/sys/linux/strverscmp.c -------------------------------------------------------------------------------- /newlib/libc/sys/rtems/include/machine/limits.h: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | */ 4 | 5 | /* intentionally empty file */ 6 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/sys/file.h: -------------------------------------------------------------------------------- 1 | /* This is the same as sys/fcntl.h for now. */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /config/mt-alphaieee: -------------------------------------------------------------------------------- 1 | CFLAGS_FOR_TARGET += -mieee 2 | CXXFLAGS_FOR_TARGET += -mieee 3 | GOCFLAGS_FOR_TARGET += -mieee 4 | -------------------------------------------------------------------------------- /config/mt-spu: -------------------------------------------------------------------------------- 1 | # spu ld makefile invokes as-new and bin2c in maintainer mode. 2 | all-ld: $(MAINT) all-gas all-binutils 3 | -------------------------------------------------------------------------------- /libgloss/microblaze/linux-inbyte.c: -------------------------------------------------------------------------------- 1 | int inbyte(void) 2 | { 3 | char ch = 0; 4 | read(0, &ch, 1); 5 | return ch; 6 | } 7 | -------------------------------------------------------------------------------- /newlib/iconvdata/SJIS.irreversible: -------------------------------------------------------------------------------- 1 | 0x5C 0x005C 2 | 0x7E 0x007E 3 | 0x8191 0xFFE0 4 | 0x8192 0xFFE1 5 | 0x81CA 0xFFE2 6 | -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/big5.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/big5.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/cp775.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/cp775.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/cp850.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/cp850.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/cp852.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/cp852.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/cp855.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/cp855.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/cp866.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/cp866.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/koi8_r.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/koi8_r.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/koi8_u.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/koi8_u.cct -------------------------------------------------------------------------------- /newlib/libc/include/memory.h: -------------------------------------------------------------------------------- 1 | #ifndef _MEMORY_H 2 | #define _MEMORY_H 3 | #include 4 | #endif /* !_MEMORY_H */ 5 | -------------------------------------------------------------------------------- /newlib/libc/machine/w65/umodhi3.S: -------------------------------------------------------------------------------- 1 | .global ___umodhi3 2 | 3 | ___umodhi3: 4 | jsr >___udivhi3 5 | stx 2 | 3 | int 4 | fclean (FILE *fp) 5 | { 6 | return fflush (fp); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/include/mcheck.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/sys/linux/include/mcheck.h -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/pause.S: -------------------------------------------------------------------------------- 1 | .globl _pause 2 | _pause: 3 | movl $0x1d, %eax 4 | lcall $7,$0 5 | jb _cerror 6 | ret 7 | -------------------------------------------------------------------------------- /config/mh-alpha-linux: -------------------------------------------------------------------------------- 1 | # Prevent GPREL16 relocation truncation 2 | LDFLAGS += -Wl,--no-relax 3 | BOOT_LDFLAGS += -Wl,--no-relax 4 | -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/koi8_ru.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/koi8_ru.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/koi8_uni.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/koi8_uni.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/ksx1001.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/ksx1001.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/win_1250.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/win_1250.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/win_1251.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/win_1251.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/win_1252.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/win_1252.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/win_1253.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/win_1253.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/win_1254.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/win_1254.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/win_1255.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/win_1255.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/win_1256.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/win_1256.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/win_1257.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/win_1257.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/win_1258.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/win_1258.cct -------------------------------------------------------------------------------- /newlib/libc/include/newlib.h: -------------------------------------------------------------------------------- 1 | /* dummy file for external tools to use. Real file is created by 2 | newlib configuration. */ 3 | -------------------------------------------------------------------------------- /newlib/libc/include/sys/fcntl.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_FCNTL_H_ 2 | #define _SYS_FCNTL_H_ 3 | #include 4 | #endif 5 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/dup.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | dup (int fd1) { 5 | return (fcntl (fd1, F_DUPFD, 0)); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/sysconf.S: -------------------------------------------------------------------------------- 1 | .globl sysconf 2 | sysconf: 3 | movl $0x2d28, %eax 4 | lcall $7,$0 5 | jb _cerror 6 | ret 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/exit.S: -------------------------------------------------------------------------------- 1 | 2 | .globl __exit 3 | __exit: chlvl #0,#1 4 | jnl ok 5 | jmp cerror 6 | ok: ret #0 7 | 8 | -------------------------------------------------------------------------------- /winsup/utils/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | /usr/bin/aclocal --acdir=.. 3 | /usr/bin/autoconf -f 4 | exec /bin/rm -rf autom4te.cache 5 | -------------------------------------------------------------------------------- /libgloss/mt/trap.h: -------------------------------------------------------------------------------- 1 | #include "syscall.h" 2 | 3 | int __trap0 (); 4 | 5 | #define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) 6 | -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_1.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_1.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_10.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_10.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_11.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_11.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_13.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_13.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_14.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_14.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_15.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_15.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_2.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_2.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_3.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_3.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_4.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_4.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_5.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_5.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_6.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_6.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_7.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_7.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_8.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_8.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_8859_9.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_8859_9.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/iso_ir_111.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/iso_ir_111.cct -------------------------------------------------------------------------------- /newlib/libc/include/machine/_time.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIME_H_ 2 | #error "must be included via " 3 | #endif /* !_SYS_TIME_H_ */ 4 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/machine/i386/getpagesize.c: -------------------------------------------------------------------------------- 1 | /* default pagesize */ 2 | int __getpagesize () 3 | { 4 | return 4096; 5 | } 6 | 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/lstat.S: -------------------------------------------------------------------------------- 1 | ! lstat() system call 2 | 3 | #include "sys/syscallasm.h" 4 | 5 | defsyscall (lstat, SYS_lstat) 6 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/getdents.S: -------------------------------------------------------------------------------- 1 | .globl _getdents 2 | _getdents: 3 | movl $0x51, %eax 4 | lcall $7,$0 5 | jb _cerror 6 | ret 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/pathconf.S: -------------------------------------------------------------------------------- 1 | .globl pathconf 2 | pathconf: 3 | movl $0x2e28, %eax 4 | lcall $7,$0 5 | jb _cerror 6 | ret 7 | -------------------------------------------------------------------------------- /winsup/cygserver/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | /usr/bin/aclocal --acdir=.. 3 | /usr/bin/autoconf -f 4 | exec /bin/rm -rf autom4te.cache 5 | -------------------------------------------------------------------------------- /winsup/cygwin/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | /usr/bin/aclocal --acdir=.. 3 | /usr/bin/autoconf -f 4 | exec /bin/rm -rf autom4te.cache 5 | -------------------------------------------------------------------------------- /config/mt-ospace: -------------------------------------------------------------------------------- 1 | # Build libraries optimizing for space, not speed. 2 | CFLAGS_FOR_TARGET += -g -Os 3 | CXXFLAGS_FOR_TARGET += -g -Os 4 | -------------------------------------------------------------------------------- /libgloss/iq2000/trap.h: -------------------------------------------------------------------------------- 1 | #include "syscall.h" 2 | 3 | int __trap0 (); 4 | 5 | #define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) 6 | -------------------------------------------------------------------------------- /libgloss/libnosys/environ.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Version of environ for no OS. 3 | */ 4 | 5 | char *__env[1] = { 0 }; 6 | char **environ = __env; 7 | -------------------------------------------------------------------------------- /libgloss/mn10200/trap.h: -------------------------------------------------------------------------------- 1 | #include "syscall.h" 2 | 3 | int __trap0 (); 4 | 5 | #define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) 6 | -------------------------------------------------------------------------------- /libgloss/mn10300/trap.h: -------------------------------------------------------------------------------- 1 | #include "syscall.h" 2 | 3 | int __trap0 (); 4 | 5 | #define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) 6 | -------------------------------------------------------------------------------- /newlib/libc/include/_newlib_version.h: -------------------------------------------------------------------------------- 1 | /* dummy file for external tools to use. Real file is created by 2 | newlib configuration. */ 3 | -------------------------------------------------------------------------------- /newlib/libc/include/unistd.h: -------------------------------------------------------------------------------- 1 | #ifndef _UNISTD_H_ 2 | #define _UNISTD_H_ 3 | 4 | # include 5 | 6 | #endif /* _UNISTD_H_ */ 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/dl/abi-tag.h: -------------------------------------------------------------------------------- 1 | #define __ABI_TAG_OS 0 2 | #ifndef __ABI_TAG_VERSION 3 | # define __ABI_TAG_VERSION 2,0,0 4 | #endif 5 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/freer.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void 4 | _free_r (struct _reent *ptr, void *addr) 5 | { 6 | free (addr); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/include/bp-sym.h: -------------------------------------------------------------------------------- 1 | #ifndef __BP_SYM_H__ 2 | #define __BP_SYM_H__ 3 | 4 | #define BP_SYM(NAME) NAME 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/fpathconf.S: -------------------------------------------------------------------------------- 1 | .globl fpathconf 2 | fpathconf: 3 | movl $0x2f28, %eax 4 | lcall $7,$0 5 | jb _cerror 6 | ret 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/fegetenv.c: -------------------------------------------------------------------------------- 1 | #include "headers/fegetenv.h" 2 | 3 | void fegetenv(fenv_t *envp) 4 | { 5 | _fegetenv(envp); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/fegetround.c: -------------------------------------------------------------------------------- 1 | #include "headers/fegetround.h" 2 | 3 | int fegetround() 4 | { 5 | return _fegetround(); 6 | } 7 | -------------------------------------------------------------------------------- /winsup/CVSChangeLogs.old/cygwin/ChangeLog-2001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/winsup/CVSChangeLogs.old/cygwin/ChangeLog-2001 -------------------------------------------------------------------------------- /libgloss/riscv/sys_chdir.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* Stub. */ 4 | int 5 | _chdir(const char *path) 6 | { 7 | return -1; 8 | } 9 | -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/cns11643_plane1.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/cns11643_plane1.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/cns11643_plane14.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/cns11643_plane14.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/cns11643_plane2.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/cns11643_plane2.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/jis_x0201_1976.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/jis_x0201_1976.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/jis_x0208_1990.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/jis_x0208_1990.cct -------------------------------------------------------------------------------- /newlib/libc/iconv/ccs/binary/jis_x0212_1990.cct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lupyuen/newlib/HEAD/newlib/libc/iconv/ccs/binary/jis_x0212_1990.cct -------------------------------------------------------------------------------- /newlib/libc/include/utmp.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | #include 5 | #ifdef __cplusplus 6 | } 7 | #endif 8 | 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/mallstatsr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void 4 | _malloc_stats_r (struct _reent *ptr) 5 | { 6 | malloc_stats (); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/sh/creat.c: -------------------------------------------------------------------------------- 1 | int 2 | creat(path, mode) 3 | const char *path; 4 | int mode; 5 | { 6 | return _creat (path, mode); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/brk.S: -------------------------------------------------------------------------------- 1 | 2 | .globl _brk 3 | _brk: 4 | movl $0x11, %eax 5 | lcall $7,$0 6 | jb _cerror 7 | xor %eax,%eax 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/read.S: -------------------------------------------------------------------------------- 1 | .globl _read 2 | .globl read 3 | _read: 4 | read: 5 | movl $3, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/sys/setjmp.h: -------------------------------------------------------------------------------- 1 | #ifndef _JBLEN 2 | # define _JBLEN 36 3 | 4 | typedef char jmp_buf[_JBLEN]; 5 | 6 | #endif /* _JBLEN */ 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/fesetenv.c: -------------------------------------------------------------------------------- 1 | #include "headers/fesetenv.h" 2 | 3 | void fesetenv(const fenv_t *envp) 4 | { 5 | _fesetenv(envp); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_exp.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/exp.h" 3 | 4 | double exp(double x) 5 | { 6 | return _exp(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_log.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/log.h" 3 | 4 | double log(double x) 5 | { 6 | return _log(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/include/termios.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | #include 5 | #ifdef __cplusplus 6 | } 7 | #endif 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/d10v/creat.c: -------------------------------------------------------------------------------- 1 | int 2 | creat(path, mode) 3 | const char *path; 4 | int mode; 5 | { 6 | return _creat (path, mode); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/cfreer.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void 4 | _cfree_r (struct _reent *ptr, void *mem) 5 | { 6 | return cfree (mem); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/mtrimr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void * 4 | _malloc_trim_r (struct _reent *ptr, size_t pad) 5 | { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/net/herrno.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int *__h_errno_location() { 4 | return &(_REENT->_new._reent._h_errno); 5 | } 6 | 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/execve.S: -------------------------------------------------------------------------------- 1 | .globl _execve 2 | .globl execve 3 | _execve: 4 | execve: 5 | movl $0x3b, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/time.S: -------------------------------------------------------------------------------- 1 | .globl _time 2 | .globl time 3 | _time: 4 | time: 5 | movl $0xd, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/write.S: -------------------------------------------------------------------------------- 1 | .globl _write 2 | .globl write 3 | _write: 4 | write: 5 | movl $4, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_atan.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/atan.h" 3 | 4 | double atan(double x) 5 | { 6 | return _atan(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_cbrt.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/cbrt.h" 3 | 4 | double cbrt(double x) 5 | { 6 | return _cbrt(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_ceil.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/ceil.h" 3 | 4 | double ceil(double x) 5 | { 6 | return _ceil(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_fabs.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fabs.h" 3 | 4 | double fabs(double x) 5 | { 6 | return _fabs(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_ilogb.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/ilogb.h" 3 | 4 | int ilogb(double x) 5 | { 6 | return _ilogb(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_rint.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/rint.h" 3 | 4 | double rint(double x) 5 | { 6 | return _rint(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_tanh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/tanh.h" 3 | 4 | double tanh(double x) 5 | { 6 | return _tanh(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_logb.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/logbf.h" 3 | 4 | float logbf(float x) 5 | { 6 | return _logbf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_rint.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/rintf.h" 3 | 4 | float rintf(float x) 5 | { 6 | return _rintf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_tanh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/tanhf.h" 3 | 4 | float tanhf(float x) 5 | { 6 | return _tanhf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_acos.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/acos.h" 3 | 4 | double acos(double x) 5 | { 6 | return _acos(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_asin.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/asin.h" 3 | 4 | double asin(double x) 5 | { 6 | return _asin(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_cosh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/cosh.h" 3 | 4 | double cosh(double x) 5 | { 6 | return _cosh(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_exp2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/exp2.h" 3 | 4 | double exp2(double vx) 5 | { 6 | return _exp2(vx); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_sinh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/sinh.h" 3 | 4 | double sinh(double x) 5 | { 6 | return _sinh(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_acos.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/acosf.h" 3 | 4 | float acosf(float x) 5 | { 6 | return _acosf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_asin.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/asinf.h" 3 | 4 | float asinf(float x) 5 | { 6 | return _asinf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_cosh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/coshf.h" 3 | 4 | float coshf(float x) 5 | { 6 | return _coshf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_exp.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/expf.h" 3 | 4 | float expf(float x) 5 | { 6 | return _expf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_log.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/logf.h" 3 | 4 | float logf(float x) 5 | { 6 | return _logf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_sinh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/sinhf.h" 3 | 4 | float sinhf(float x) 5 | { 6 | return _sinhf(x); 7 | } 8 | -------------------------------------------------------------------------------- /libgloss/arm/coff-rdpmon.specs: -------------------------------------------------------------------------------- 1 | %rename link old_link 2 | 3 | *link: 4 | %(old_link) -lrdpmon 5 | 6 | *startfile: 7 | rdpmon-crt0%O%s 8 | 9 | -------------------------------------------------------------------------------- /newlib/libc/include/sys/string.h: -------------------------------------------------------------------------------- 1 | /* This is a dummy used as a placeholder for 2 | systems that need to have a special header file. */ 3 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/atoff.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include <_ansi.h> 3 | 4 | float 5 | atoff (const char *s) 6 | { 7 | return strtof (s, NULL); 8 | } 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/mallinfor.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | struct mallinfo 4 | _mallinfo_r (struct _reent *ptr) 5 | { 6 | return mallinfo (); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/lseek.S: -------------------------------------------------------------------------------- 1 | .globl _lseek 2 | .globl lseek 3 | _lseek: 4 | lseek: 5 | movl $0x13, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/times.S: -------------------------------------------------------------------------------- 1 | .globl _times 2 | .globl times 3 | _times: 4 | times: 5 | movl $0x2b, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/utime.S: -------------------------------------------------------------------------------- 1 | .globl _utime 2 | .globl utime 3 | _utime: 4 | utime: 5 | movl $0x1e, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_asinh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/asinh.h" 3 | 4 | double asinh(double x) 5 | { 6 | return _asinh(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_cos.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/cos.h" 3 | 4 | double cos(double angle) 5 | { 6 | return _cos(angle); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_expm1.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/expm1.h" 3 | 4 | double expm1(double x) 5 | { 6 | return _expm1(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_floor.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/floor.h" 3 | 4 | double floor(double x) 5 | { 6 | return _floor(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_log1p.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/log1p.h" 3 | 4 | double log1p(double x) 5 | { 6 | return _log1p(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_lrint.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/lrint.h" 3 | 4 | long int lrint(double x) 5 | { 6 | return _lrint(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_round.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/round.h" 3 | 4 | double round(double x) 5 | { 6 | return _round(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_sin.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/sin.h" 3 | 4 | double sin(double angle) 5 | { 6 | return _sin(angle); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_tan.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/tan.h" 3 | 4 | double tan(double angle) 5 | { 6 | return _tan(angle); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_trunc.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/trunc.h" 3 | 4 | double trunc(double x) 5 | { 6 | return _trunc(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_asinh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/asinhf.h" 3 | 4 | float asinhf(float x) 5 | { 6 | return _asinhf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_atan.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/atanf.h" 3 | 4 | float atanf(float x) 5 | { 6 | return _atanf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_cbrt.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/cbrtf.h" 3 | 4 | float cbrtf(float x) 5 | { 6 | return _cbrtf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_cos.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/cosf.h" 3 | 4 | float cosf(float angle) 5 | { 6 | return _cosf(angle); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_expm1.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/expm1f.h" 3 | 4 | float expm1f(float vx) 5 | { 6 | return _expm1f(vx); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_ilogb.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/ilogbf.h" 3 | 4 | int ilogbf(float x) 5 | { 6 | return _ilogbf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_log1p.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/log1pf.h" 3 | 4 | float log1pf(float x) 5 | { 6 | return _log1pf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_round.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/roundf.h" 3 | 4 | float roundf(float x) 5 | { 6 | return _roundf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_sin.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/sinf.h" 3 | 4 | float sinf(float angle) 5 | { 6 | return _sinf(angle); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_tan.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/tanf.h" 3 | 4 | float tanf(float angle) 5 | { 6 | return _tanf(angle); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_trunc.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/truncf.h" 3 | 4 | float truncf(float x) 5 | { 6 | return _truncf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_acosh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/acosh.h" 3 | 4 | double acosh(double x) 5 | { 6 | return _acosh(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_atanh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/atanh.h" 3 | 4 | double atanh(double x) 5 | { 6 | return _atanh(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_lgamma.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/lgamma.h" 3 | 4 | double lgamma(double x) 5 | { 6 | return _lgamma(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_log10.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/log10.h" 3 | 4 | double log10(double x) 5 | { 6 | return _log10(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_sqrt.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/sqrt.h" 3 | 4 | double sqrt(double in) 5 | { 6 | return _sqrt(in); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_tgamma.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/tgamma.h" 3 | 4 | double tgamma(double x) 5 | { 6 | return _tgamma(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_acosh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/acoshf.h" 3 | 4 | float acoshf(float x) 5 | { 6 | return _acoshf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_atanh.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/atanhf.h" 3 | 4 | float atanhf(float x) 5 | { 6 | return _atanhf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_exp2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/exp2f.h" 3 | 4 | float exp2f(float x) 5 | { 6 | return _exp2f(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_log10.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/log10f.h" 3 | 4 | float log10f(float x) 5 | { 6 | return _log10f(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_sqrt.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/sqrtf.h" 3 | 4 | float sqrtf(float in) 5 | { 6 | return _sqrtf(in); 7 | } 8 | -------------------------------------------------------------------------------- /winsup/cygwin/math/exp10l.c: -------------------------------------------------------------------------------- 1 | #undef exp10l 2 | #include 3 | 4 | long double 5 | exp10l (long double x) 6 | { 7 | return powl (10.0L, x); 8 | } 9 | -------------------------------------------------------------------------------- /winsup/cygwin/math/pow10l.c: -------------------------------------------------------------------------------- 1 | #undef pow10l 2 | #include 3 | 4 | long double 5 | pow10l (long double x) 6 | { 7 | return powl (10.0L, x); 8 | } 9 | -------------------------------------------------------------------------------- /libgloss/mn10200/trap.S: -------------------------------------------------------------------------------- 1 | .text 2 | .global ___trap0 3 | ___trap0: 4 | syscall 5 | cmp 0,d0 6 | beq noerr 7 | mov d0,(_errno) 8 | noerr: 9 | rts 10 | -------------------------------------------------------------------------------- /libgloss/mn10300/trap.S: -------------------------------------------------------------------------------- 1 | .text 2 | .global ___trap0 3 | ___trap0: 4 | syscall 5 | cmp 0,d0 6 | beq .L0 7 | mov d0,(_errno) 8 | .L0: 9 | rets 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/mallocr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void * 4 | _malloc_r (struct _reent *ptr, size_t size) 5 | { 6 | return malloc (size); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/vallocr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void * 4 | _valloc_r (struct _reent *ptr, size_t bytes) 5 | { 6 | return valloc (bytes); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/access.S: -------------------------------------------------------------------------------- 1 | .globl _access 2 | .globl access 3 | access: 4 | _access: 5 | movl $0x21, %eax 6 | lcall $7, $0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/getgid.S: -------------------------------------------------------------------------------- 1 | .globl _getgid 2 | .globl getgid 3 | _getgid: 4 | getgid: 5 | movl $0x2f, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/getuid.S: -------------------------------------------------------------------------------- 1 | .globl _getuid 2 | .globl getuid 3 | _getuid: 4 | getuid: 5 | movl $0x18, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/open.S: -------------------------------------------------------------------------------- 1 | 2 | .globl _open 3 | .globl open 4 | _open: 5 | open: 6 | movl $5, %eax 7 | lcall $7,$0 8 | jb _cerror 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/tinystdio/sys/custom_file.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define _stderr_r(p) stderr 4 | #define _stdout_r(p) stdout 5 | #define _stdin_r(p) stdin 6 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/fe_dfl_env.c: -------------------------------------------------------------------------------- 1 | #include 2 | /* 3 | * Define for FE_DFL_ENV macro, all bits zero. 4 | */ 5 | const fenv_t __fe_dfl_env = { 0 }; 6 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/feupdateenv.c: -------------------------------------------------------------------------------- 1 | #include "headers/feupdateenv.h" 2 | 3 | void feupdateenv(const fenv_t *envp) 4 | { 5 | _feupdateenv(envp); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_lround.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/lround.h" 3 | 4 | long int lround(double x) 5 | { 6 | return _lround(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_ceil.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/ceilf.h" 3 | 4 | float ceilf(float value) 5 | { 6 | return _ceilf(value); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_fabs.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fabsf.h" 3 | 4 | float fabsf(float value) 5 | { 6 | return _fabsf(value); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_lrint.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/lrintf.h" 3 | 4 | long int lrintf(float x) 5 | { 6 | return _lrintf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_pow.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/pow.h" 3 | 4 | double pow(double x, double y) 5 | { 6 | return _pow(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_lgamma.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/lgammaf.h" 3 | 4 | float lgammaf(float x) 5 | { 6 | return _lgammaf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_pow.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/powf.h" 3 | 4 | float powf(float x, float y) 5 | { 6 | return _powf(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_tgamma.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/tgammaf.h" 3 | 4 | float tgammaf(float x) 5 | { 6 | return _tgammaf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/ctype/categories.h: -------------------------------------------------------------------------------- 1 | /* category data */ 2 | 3 | enum category { 4 | #include "categories.cat" 5 | }; 6 | 7 | extern enum category category(wint_t ucs); 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/pvallocr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void * 4 | _pvalloc_r (struct _reent *ptr, size_t bytes) 5 | { 6 | return pvalloc (bytes); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/phoenix/regenerate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | aclocal-1.11 -I ../../../ -I ../../../../ 4 | /usr/local/bin/autoconf 5 | automake-1.11 --cygnus Makefile 6 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/tcgetattr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | tcgetattr (int fd, struct termios *tp) { 5 | return _ioctl (fd, _XCGETA, tp); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/feclearexcept.c: -------------------------------------------------------------------------------- 1 | #include "headers/feclearexcept.h" 2 | 3 | void feclearexcept(int excepts) 4 | { 5 | _feclearexcept(excepts); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/feholdexcept.c: -------------------------------------------------------------------------------- 1 | #include "headers/feholdexcept.h" 2 | 3 | int feholdexcept(fenv_t *envp) 4 | { 5 | return _feholdexcept(envp); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/feraiseexcept.c: -------------------------------------------------------------------------------- 1 | #include "headers/feraiseexcept.h" 2 | 3 | void feraiseexcept(int excepts) 4 | { 5 | _feraiseexcept(excepts); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/fetestexcept.c: -------------------------------------------------------------------------------- 1 | #include "headers/fetestexcept.h" 2 | 3 | int fetestexcept(int excepts) 4 | { 5 | return _fetestexcept(excepts); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/llrint.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/llrint.h" 3 | 4 | long long int llrint(double x) 5 | { 6 | return _llrint(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/llrintf.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/llrintf.h" 3 | 4 | long long int llrintf(float x) 5 | { 6 | return _llrintf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/log2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/log2.h" 3 | 4 | #undef log2 5 | double log2(double vx) 6 | { 7 | return _log2(vx); 8 | } 9 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_fdim.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fdim.h" 3 | 4 | double fdim(double x, double y) 5 | { 6 | return _fdim(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_fmax.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fmax.h" 3 | 4 | double fmax(double x, double y) 5 | { 6 | return _fmax(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_fmin.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fmin.h" 3 | 4 | double fmin(double x, double y) 5 | { 6 | return _fmin(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_isnan.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/isnan.h" 3 | 4 | #undef isnan 5 | int isnan(double x) 6 | { 7 | return _isnan(x); 8 | } 9 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_fdim.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fdimf.h" 3 | 4 | float fdimf(float x, float y) 5 | { 6 | return _fdimf(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_floor.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/floorf.h" 3 | 4 | float floorf(float value) 5 | { 6 | return _floorf(value); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_fmax.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fmaxf.h" 3 | 4 | float fmaxf(float x, float y) 5 | { 6 | return _fmaxf(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_fmin.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fminf.h" 3 | 4 | float fminf(float x, float y) 5 | { 6 | return _fminf(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_lround.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/lroundf.h" 3 | 4 | long int lroundf(float x) 5 | { 6 | return _lroundf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_atan2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/atan2.h" 3 | 4 | double atan2(double y, double x) 5 | { 6 | return _atan2(y, x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_fmod.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fmod.h" 3 | 4 | double fmod(double x, double y) 5 | { 6 | return _fmod(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_hypot.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/hypot.h" 3 | 4 | double hypot(double x, double y) 5 | { 6 | return _hypot(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_atan2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/atan2f.h" 3 | 4 | float atan2f(float y, float x) 5 | { 6 | return _atan2f(y, x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_fmod.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fmodf.h" 3 | 4 | float fmodf(float x, float y) 5 | { 6 | return _fmodf(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_hypot.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/hypotf.h" 3 | 4 | float hypotf(float x, float y) 5 | { 6 | return _hypotf(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /libgloss/microblaze/linux-syscalls-wrap.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int isatty (int fd) { 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/crt1.c: -------------------------------------------------------------------------------- 1 | /* dummy crt1.c file to override the one normally used by 2 | gcc which refers to glibc variables that don't exist in 3 | newlib. */ 4 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/dl/trusted-dirs.h: -------------------------------------------------------------------------------- 1 | #define SYSTEM_DIRS \ 2 | "/usr/local/lib/" 3 | 4 | #define SYSTEM_DIRS_LEN \ 5 | 15 6 | 7 | #define SYSTEM_DIRS_MAX_LEN 15 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/fcntl.S: -------------------------------------------------------------------------------- 1 | 2 | .globl _fcntl 3 | .globl fcntl 4 | _fcntl: 5 | fcntl: 6 | movl $0x3e, %eax 7 | lcall $7,$0 8 | jb _cerror 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/ioctl.S: -------------------------------------------------------------------------------- 1 | 2 | .globl _ioctl 3 | .globl ioctl 4 | _ioctl: 5 | ioctl: 6 | movl $0x36, %eax 7 | lcall $7,$0 8 | jb _cerror 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/read.S: -------------------------------------------------------------------------------- 1 | 2 | .globl __read 3 | .globl _read 4 | __read: 5 | _read: chlvl #0,#3 6 | jnl ok 7 | jmp cerror 8 | ok: ret #0 9 | 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/sysv60.S: -------------------------------------------------------------------------------- 1 | .globl _sysv60 2 | _sysv60: 3 | chlvl #0,#0x32 4 | jnl ok 5 | jmp cerror 6 | ok: xor.w r0,r0 7 | ret #0 8 | 9 | 10 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/fesetround.c: -------------------------------------------------------------------------------- 1 | #include "headers/fesetround.h" 2 | 3 | int fesetround(int rounding_mode) 4 | { 5 | return _fesetround(rounding_mode); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/llround.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/llround.h" 3 | 4 | long long int llround(double x) 5 | { 6 | return _llround(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/llroundf.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/llroundf.h" 3 | 4 | long long int llroundf(float x) 5 | { 6 | return _llroundf(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/log2f.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/log2f.h" 3 | 4 | #undef log2f 5 | float log2f(float x) 6 | { 7 | return _log2f(x); 8 | } 9 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_frexp.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/frexp.h" 3 | 4 | double frexp(double x, int *pexp) 5 | { 6 | return _frexp(x, pexp); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_ldexp.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/ldexp.h" 3 | 4 | double ldexp(double x, int exp) 5 | { 6 | return _ldexp(x, exp); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_nearbyint.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/nearbyint.h" 3 | 4 | double nearbyint(double x) 5 | { 6 | return _nearbyint(x); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_ldexp.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/ldexpf.h" 3 | 4 | float ldexpf(float x, int exp) 5 | { 6 | return _ldexpf(x, exp); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_nearbyint.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/nearbyintf.h" 3 | 4 | float nearbyintf(float x) 5 | { 6 | return _nearbyintf(x); 7 | } 8 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_utime.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* Stub. */ 4 | int 5 | _utime(const char *path, const struct utimbuf *times) 6 | { 7 | return -1; 8 | } 9 | -------------------------------------------------------------------------------- /libgloss/xstormy16/crti.s: -------------------------------------------------------------------------------- 1 | .section .init,"ax" 2 | .align 1 3 | .globl _init 4 | _init: 5 | 6 | .section .fini,"ax" 7 | .align 1 8 | .globl _fini 9 | _fini: 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/callocr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void * 4 | _calloc_r (struct _reent *ptr, size_t size, size_t len) 5 | { 6 | return calloc (size, len); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/netware/crt0.c: -------------------------------------------------------------------------------- 1 | /* I have a copy of something that would serve as a NetWare crt0.o, 2 | but it is copyright by Novell. */ 3 | 4 | int _dummy_crt0 = 1; 5 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/getgroups.S: -------------------------------------------------------------------------------- 1 | .globl _getgroups 2 | .globl getgroups 3 | _getgroups: 4 | getgroups: 5 | movl $0x2b28, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | ret 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/getpid.S: -------------------------------------------------------------------------------- 1 | 2 | .globl _getpid 3 | .globl getpid 4 | _getpid: 5 | getpid: 6 | movl $0x14, %eax 7 | lcall $7,$0 8 | jb _cerror 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/ioctl.S: -------------------------------------------------------------------------------- 1 | 2 | .globl __ioctl 3 | .globl _ioctl 4 | __ioctl: 5 | _ioctl: chlvl #0,#0x36 6 | jnl ok 7 | jmp cerror 8 | ok: ret #0 9 | 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/lseek.S: -------------------------------------------------------------------------------- 1 | 2 | .globl __lseek 3 | .globl _lseek 4 | __lseek: 5 | _lseek: chlvl #0,#0x13 6 | jnl ok 7 | jmp cerror 8 | ok: ret #0 9 | 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/write.S: -------------------------------------------------------------------------------- 1 | 2 | .globl __write 3 | .globl _write 4 | __write: 5 | _write: chlvl #0,#4 6 | jnl ok 7 | jmp cerror 8 | ok: ret #0 9 | 10 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_fma.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fma.h" 3 | 4 | double fma(double x, double y, double z) 5 | { 6 | return _fma(x, y, z); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_scalbn.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/scalbn.h" 3 | 4 | double scalbn(double x, int exp) 5 | { 6 | return _scalbn(x, exp); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_fma.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/fmaf.h" 3 | 4 | float fmaf(float x, float y, float z) 5 | { 6 | return _fmaf(x, y, z); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_frexp.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/frexpf.h" 3 | 4 | float frexpf(float x, int *pexp) 5 | { 6 | return _frexpf(x, pexp); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_scalbn.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/scalbnf.h" 3 | 4 | float scalbnf(float x, int exp) 5 | { 6 | return _scalbnf(x, exp); 7 | } 8 | -------------------------------------------------------------------------------- /winsup/c++wrap: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | use strict; 3 | use File::Basename; 4 | my $pgm = basename($0); 5 | (my $wrapper = $pgm) =~ s/\+\+/c/o; 6 | exec $wrapper, '++', @ARGV; 7 | -------------------------------------------------------------------------------- /libgloss/mt/getpid.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | getpid (n) 8 | { 9 | return 1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/include/machine/_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | */ 4 | 5 | #ifndef _MACHINE__TYPES_H 6 | #define _MACHINE__TYPES_H 7 | #include 8 | #endif 9 | -------------------------------------------------------------------------------- /newlib/libc/posix/isatty.c: -------------------------------------------------------------------------------- 1 | /* isatty.c */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | isatty (int fd) 8 | { 9 | return _isatty (fd); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/msizer.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | size_t 4 | _malloc_usable_size_r (struct _reent *ptr, void *mem) 5 | { 6 | return malloc_usable_size (mem); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/reallocr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void * 4 | _realloc_r (struct _reent *ptr, void *old, size_t newlen) 5 | { 6 | return realloc (old, newlen); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/phoenix/machine/regenerate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | aclocal-1.11 -I ../../../../ -I ../../../../../ 4 | /usr/local/bin/autoconf 5 | automake-1.11 --cygnus Makefile 6 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/cerror.S: -------------------------------------------------------------------------------- 1 | .globl _cerror 2 | _cerror: 3 | movl %eax, errno 4 | movl $-1, %eax 5 | ret 6 | .data 7 | .globl errno 8 | errno: .long 0 9 | 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/kill.S: -------------------------------------------------------------------------------- 1 | .globl _kill 2 | .globl kill 3 | _kill: 4 | kill: 5 | movl $0x25, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax, %eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/link.S: -------------------------------------------------------------------------------- 1 | .globl _link 2 | .globl link 3 | _link: 4 | link: 5 | movl $0x9, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax, %eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/stat.S: -------------------------------------------------------------------------------- 1 | .globl _stat 2 | .globl stat 3 | _stat: 4 | stat: 5 | movl $0x12, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax,%eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/cerror.S: -------------------------------------------------------------------------------- 1 | .globl cerror 2 | cerror: mov.w r0,_errno 3 | neg.w #1,r0 4 | ret #0 5 | 6 | .data 7 | .globl _errno 8 | _errno: .word 0 9 | 10 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/erf.h: -------------------------------------------------------------------------------- 1 | #include "headers/erfd2.h" 2 | 3 | static __inline double _erf(double x) 4 | { 5 | return spu_extract(_erfd2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/erff.h: -------------------------------------------------------------------------------- 1 | #include "headers/erff4.h" 2 | 3 | static __inline float _erff(float x) 4 | { 5 | return spu_extract(_erff4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/exp.h: -------------------------------------------------------------------------------- 1 | #include "headers/expd2.h" 2 | 3 | static __inline double _exp(double x) 4 | { 5 | return spu_extract(_expd2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_copysign.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/copysign.h" 3 | 4 | double copysign(double x, double y) 5 | { 6 | return _copysign(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_nextafter.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/nextafter.h" 3 | 4 | double nextafter(double x, double y) 5 | { 6 | return _nextafter(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_copysign.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/copysignf.h" 3 | 4 | float copysignf(float x, float y) 5 | { 6 | return _copysignf(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /winsup/doc/README: -------------------------------------------------------------------------------- 1 | ADDITIONAL BUILD REQUIREMENTS FOR DOCUMENTATION 2 | 3 | dblatex 4 | docbook-xml45 5 | docbook-xsl 6 | docbook2x-texi 7 | gzip 8 | texinfo 9 | xmlto 10 | -------------------------------------------------------------------------------- /winsup/testsuite/winsup.api/known_bugs.tcl: -------------------------------------------------------------------------------- 1 | set xfail_list [list dup03 \ 2 | fcntl05 setgroups01 setuid02 \ 3 | ulimit01 unlink08 \ 4 | sample-fail sample-miscompile] 5 | -------------------------------------------------------------------------------- /libgloss/iq2000/getpid.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _getpid (n) 8 | { 9 | return 1; 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/mn10200/getpid.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _getpid (n) 8 | { 9 | return 1; 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/mn10300/getpid.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _getpid (n) 8 | { 9 | return 1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/ctype/wctype_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | wctype_t 5 | wctype_l (const char *c, struct __locale_t *locale) 6 | { 7 | return wctype (c); 8 | } 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/chdir.S: -------------------------------------------------------------------------------- 1 | .globl _chdir 2 | .globl chdir 3 | _chdir: 4 | chdir: 5 | movl $0xc, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax, %eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/chmod.S: -------------------------------------------------------------------------------- 1 | .globl _chmod 2 | .globl chmod 3 | _chmod: 4 | chmod: 5 | movl $0xf, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax, %eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/close.S: -------------------------------------------------------------------------------- 1 | .globl _close 2 | .globl close 3 | _close: 4 | close: 5 | movl $6, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax, %eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/fstat.S: -------------------------------------------------------------------------------- 1 | .globl _fstat 2 | .globl fstat 3 | _fstat: 4 | fstat: 5 | movl $0x1c, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax,%eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/mkdir.S: -------------------------------------------------------------------------------- 1 | .globl _mkdir 2 | .globl mkdir 3 | _mkdir: 4 | mkdir: 5 | movl $0x50, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax, %eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/rmdir.S: -------------------------------------------------------------------------------- 1 | .globl _rmdir 2 | .globl rmdir 3 | _rmdir: 4 | rmdir: 5 | movl $0x4f, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax, %eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/tcsetattr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | tcsetattr (int fd, int opts, const struct termios *tp) { 5 | return _ioctl (fd, opts, tp); 6 | } 7 | 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/open.S: -------------------------------------------------------------------------------- 1 | 2 | .globl __open 3 | .globl _open 4 | __open: 5 | _open: chlvl #0,#5 6 | jnl ok 7 | jmp cerror 8 | ok: xor.w r0,r0 9 | ret #0 10 | 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/w65/trap.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | _trap3() 5 | { 6 | 7 | } 8 | 9 | 10 | __trap3(a1,a2,a3,a4,a5,a6) 11 | { 12 | asm ("ldx #r0"); 13 | asm ("wdm"); 14 | } 15 | 16 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/atan.h: -------------------------------------------------------------------------------- 1 | #include "headers/atand2.h" 2 | 3 | static __inline double _atan(double x) 4 | { 5 | return spu_extract(_atand2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/cosh.h: -------------------------------------------------------------------------------- 1 | #include "headers/coshd2.h" 2 | 3 | static __inline double _cosh(double x) 4 | { 5 | return spu_extract(_coshd2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/coshf.h: -------------------------------------------------------------------------------- 1 | #include "headers/coshf4.h" 2 | 3 | static __inline float _coshf(float x) 4 | { 5 | return spu_extract(_coshf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/erfc.h: -------------------------------------------------------------------------------- 1 | #include "headers/erfcd2.h" 2 | 3 | static __inline double _erfc(double x) 4 | { 5 | return spu_extract(_erfcd2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/erfcf.h: -------------------------------------------------------------------------------- 1 | #include "headers/erfcf4.h" 2 | 3 | static __inline float _erfcf(float x) 4 | { 5 | return spu_extract(_erfcf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/isnan.h: -------------------------------------------------------------------------------- 1 | #include "headers/isnand2.h" 2 | 3 | static __inline int _isnan(double x) 4 | { 5 | return spu_extract(_isnand2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/logbf.h: -------------------------------------------------------------------------------- 1 | #include "headers/logbf4.h" 2 | 3 | static __inline float _logbf(float x) 4 | { 5 | return spu_extract(_logbf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/rintf.h: -------------------------------------------------------------------------------- 1 | #include "headers/rintf4.h" 2 | 3 | static __inline float _rintf(float x) 4 | { 5 | return spu_extract(_rintf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/sinh.h: -------------------------------------------------------------------------------- 1 | #include "headers/sinhd2.h" 2 | 3 | static __inline double _sinh(double x) 4 | { 5 | return spu_extract(_sinhd2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/sinhf.h: -------------------------------------------------------------------------------- 1 | #include "headers/sinhf4.h" 2 | 3 | static __inline float _sinhf(float x) 4 | { 5 | return spu_extract(_sinhf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/tanh.h: -------------------------------------------------------------------------------- 1 | #include "headers/tanhd2.h" 2 | 3 | static __inline double _tanh(double x) 4 | { 5 | return spu_extract(_tanhd2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/tanhf.h: -------------------------------------------------------------------------------- 1 | #include "headers/tanhf4.h" 2 | 3 | static __inline float _tanhf(float x) 4 | { 5 | return spu_extract(_tanhf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/s_remquo.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/remquo.h" 3 | 4 | double remquo(double x, double y, int *quo) 5 | { 6 | return _remquo(x, y, quo); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_nextafter.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/nextafterf.h" 3 | 4 | float nextafterf(float x, float y) 5 | { 6 | return _nextafterf(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_remainder.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/remainder.h" 3 | 4 | double remainder(double x, double y) 5 | { 6 | return _remainder(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_remainder.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/remainderf.h" 3 | 4 | float remainderf(float x, float y) 5 | { 6 | return _remainderf(x, y); 7 | } 8 | -------------------------------------------------------------------------------- /winsup/cygwin/lib/pseudo-reloc-dummy.c: -------------------------------------------------------------------------------- 1 | /* pseudo-reloc.c 2 | 3 | Stub for older binaries. 4 | */ 5 | 6 | void 7 | _pei386_runtime_relocator () 8 | { 9 | return; 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/m32r/unlink.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _unlink () 8 | { 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/mt/unlink.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | unlink () 9 | { 10 | return -1; 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/malloptr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | _mallopt_r (struct _reent *ptr, int param_number, int value) 5 | { 6 | return mallopt (param_number, value); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/phoenix/machine/arm/regenerate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | aclocal-1.11 -I ../../../../../ -I ../../../../../../ 4 | /usr/local/bin/autoconf 5 | automake-1.11 --cygnus Makefile 6 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/isatty.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | 6 | int isatty(int file) 7 | { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/dup2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | dup2 (int fd1, int fd2) { 5 | close (fd2); /* ignore errors, if any */ 6 | return (fcntl (fd1, F_DUPFD, fd2)); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/setgid.S: -------------------------------------------------------------------------------- 1 | .globl _setgid 2 | .globl setgid 3 | _setgid: 4 | setgid: 5 | movl $0x2e, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax,%eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/setuid.S: -------------------------------------------------------------------------------- 1 | .globl _setuid 2 | .globl setuid 3 | _setuid: 4 | setuid: 5 | movl $0x17, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax,%eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/unlink.S: -------------------------------------------------------------------------------- 1 | .globl _unlink 2 | .globl unlink 3 | _unlink: 4 | unlink: 5 | movl $0xa, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax, %eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/close.S: -------------------------------------------------------------------------------- 1 | 2 | .globl __close 3 | .globl _close 4 | __close: 5 | _close: chlvl #0,#6 6 | jnl ok 7 | jmp cerror 8 | ok: xor.w r0,r0 9 | ret #0 10 | 11 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/asinh.h: -------------------------------------------------------------------------------- 1 | #include "headers/asinhd2.h" 2 | 3 | static __inline double _asinh(double x) 4 | { 5 | return spu_extract(_asinhd2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/asinhf.h: -------------------------------------------------------------------------------- 1 | #include "headers/asinhf4.h" 2 | 3 | static __inline float _asinhf(float x) 4 | { 5 | return spu_extract(_asinhf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/cos.h: -------------------------------------------------------------------------------- 1 | #include "headers/cosd2.h" 2 | 3 | static __inline double _cos(double angle) 4 | { 5 | return spu_extract(_cosd2(spu_promote(angle, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/cosf.h: -------------------------------------------------------------------------------- 1 | #include "headers/cosf4.h" 2 | 3 | static __inline float _cosf(float angle) 4 | { 5 | return spu_extract(_cosf4(spu_promote(angle, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/exp2.h: -------------------------------------------------------------------------------- 1 | #include "headers/exp2d2.h" 2 | 3 | static __inline double _exp2(double vx) 4 | { 5 | return spu_extract(_exp2d2(spu_promote(vx, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/expm1.h: -------------------------------------------------------------------------------- 1 | #include "headers/expm1d2.h" 2 | 3 | static __inline double _expm1(double x) 4 | { 5 | return spu_extract(_expm1d2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/expm1f.h: -------------------------------------------------------------------------------- 1 | #include "headers/expm1f4.h" 2 | 3 | static __inline float _expm1f(float vx) 4 | { 5 | return spu_extract(_expm1f4(spu_promote(vx, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/sin.h: -------------------------------------------------------------------------------- 1 | #include "headers/sind2.h" 2 | 3 | static __inline double _sin(double angle) 4 | { 5 | return spu_extract(_sind2(spu_promote(angle, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/sinf.h: -------------------------------------------------------------------------------- 1 | #include "headers/sinf4.h" 2 | 3 | static __inline float _sinf(float angle) 4 | { 5 | return spu_extract(_sinf4(spu_promote(angle, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/tan.h: -------------------------------------------------------------------------------- 1 | #include "headers/tand2.h" 2 | 3 | static __inline double _tan(double angle) 4 | { 5 | return spu_extract(_tand2(spu_promote(angle, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/tanf.h: -------------------------------------------------------------------------------- 1 | #include "headers/tanf4.h" 2 | 3 | static __inline float _tanf(float angle) 4 | { 5 | return spu_extract(_tanf4(spu_promote(angle, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/sf_remquo.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/remquof.h" 3 | 4 | float remquof(float x, float y, int *quo) 5 | { 6 | return _remquof(x, y, quo); 7 | } 8 | -------------------------------------------------------------------------------- /libgloss/iq2000/unlink.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _unlink () 9 | { 10 | return -1; 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10200/unlink.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _unlink () 9 | { 10 | return -1; 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10300/unlink.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _unlink () 9 | { 10 | return -1; 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_chmod.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /* Stub. */ 5 | int 6 | _chmod(const char *path, mode_t mode) 7 | { 8 | return -1; 9 | } 10 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_chown.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /* Stub. */ 5 | int _chown(const char *path, uid_t owner, gid_t group) 6 | { 7 | return -1; 8 | } 9 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_getcwd.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /* Stub. */ 5 | char * 6 | _getcwd(char *buf, size_t size) 7 | { 8 | return NULL; 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/malignr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void * 4 | _memalign_r (struct _reent *ptr, size_t alignment, size_t bytes) 5 | { 6 | return memalign (alignment, bytes); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/getegid.S: -------------------------------------------------------------------------------- 1 | .globl _getegid 2 | .globl getegid 3 | _getegid: 4 | getegid: 5 | movl $0x2f, %eax 6 | lcall $7,$0 7 | movl %edx,%eax 8 | jb _cerror 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/geteuid.S: -------------------------------------------------------------------------------- 1 | .globl _geteuid 2 | .globl geteuid 3 | _geteuid: 4 | geteuid: 5 | movl $0x18, %eax 6 | lcall $7,$0 7 | movl %edx,%eax 8 | jb _cerror 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/rename.S: -------------------------------------------------------------------------------- 1 | .globl _rename 2 | .globl rename 3 | _rename: 4 | rename: 5 | movl $0x3028, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | xor %eax, %eax 9 | ret 10 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/fegetexceptflag.c: -------------------------------------------------------------------------------- 1 | #include "headers/fegetexceptflag.h" 2 | 3 | void fegetexceptflag(fexcept_t *flagp, int excepts) 4 | { 5 | _fegetexceptflag(flagp, excepts); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/isnanf.h: -------------------------------------------------------------------------------- 1 | #include "headers/isnanf4.h" 2 | 3 | static __inline unsigned int _isnanf(float x) 4 | { 5 | return spu_extract(_isnanf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/lgamma.h: -------------------------------------------------------------------------------- 1 | #include "headers/lgammad2.h" 2 | 3 | static __inline double _lgamma(double x) 4 | { 5 | return spu_extract(_lgammad2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/lgammaf.h: -------------------------------------------------------------------------------- 1 | #include "headers/lgammaf4.h" 2 | 3 | static __inline float _lgammaf(float x) 4 | { 5 | return spu_extract(_lgammaf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /libgloss/arm/coff-pid.specs: -------------------------------------------------------------------------------- 1 | %rename link old_link 2 | 3 | *link: 4 | -T redboot.ld%s -Ttext 0x10000 %(old_link) 5 | 6 | *startfile: 7 | redboot-crt0%O%s redboot-syscalls%O%s 8 | 9 | -------------------------------------------------------------------------------- /libgloss/arm/coff-redboot.specs: -------------------------------------------------------------------------------- 1 | %rename link old_link 2 | 3 | *link: 4 | -T redboot.ld%s -Ttext 0x20000 %(old_link) 5 | 6 | *startfile: 7 | redboot-crt0%O%s redboot-syscalls%O%s 8 | 9 | -------------------------------------------------------------------------------- /libgloss/m32r/exit.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | void 7 | _exit (n) 8 | { 9 | TRAP0 (SYS_exit, n, 0, 0); 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/mt/exit.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | void _exit (n) 8 | { 9 | TRAP0 (SYS_exit, n, 0, 0); 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/mt/isatty.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | isatty (fd) 8 | int fd; 9 | { 10 | return 1; 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/v850/trap.S: -------------------------------------------------------------------------------- 1 | .text 2 | .global ___trap0 3 | ___trap0: 4 | trap 31 5 | tst r10,r10 6 | bz .L0 7 | movhi hi(_errno),r0,r6 8 | st.w r10,lo(_errno)[r6] 9 | .L0: 10 | jmp [r31] 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/fstat.S: -------------------------------------------------------------------------------- 1 | 2 | .globl __fstat 3 | .globl _fstat 4 | __fstat: 5 | _fstat: chlvl #0,#0x1c 6 | jnl ok 7 | jmp cerror 8 | ok: xor.w r0,r0 9 | ret #0 10 | 11 | 12 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysgetpid.c: -------------------------------------------------------------------------------- 1 | /* connector for getpid */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | getpid (void) 8 | { 9 | return _getpid_r (_REENT); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/fesetexceptflag.c: -------------------------------------------------------------------------------- 1 | #include "headers/fesetexceptflag.h" 2 | 3 | void fesetexceptflag(const fexcept_t *flagp, int excepts) 4 | { 5 | _fesetexceptflag(flagp, excepts); 6 | } 7 | -------------------------------------------------------------------------------- /libgloss/arm/elf-linux.specs: -------------------------------------------------------------------------------- 1 | %rename lib libc 2 | 3 | *libgloss: 4 | -lgloss-linux 5 | 6 | *lib: 7 | %(libc) %(libgloss) 8 | 9 | *startfile: 10 | linux-crt0%O%s crti%O%s crtbegin%O%s 11 | 12 | -------------------------------------------------------------------------------- /libgloss/arm/elf-rdpmon.specs: -------------------------------------------------------------------------------- 1 | %rename link old_link 2 | 3 | *link: 4 | %(old_link) -lrdpmon 5 | 6 | *startfile: 7 | crti%O%s crtbegin%O%s %{!pg:rdpmon-crt0%O%s} %{pg:rdpmon-crt0%O%s} 8 | 9 | -------------------------------------------------------------------------------- /libgloss/iq2000/isatty.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _isatty (fd) 8 | int fd; 9 | { 10 | return 1; 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/m32r/kill.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | _kill (n, m) 7 | { 8 | return TRAP0 (SYS_exit, 0xdead, 0, 0); 9 | } 10 | -------------------------------------------------------------------------------- /libgloss/mn10200/isatty.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _isatty (fd) 8 | int fd; 9 | { 10 | return 1; 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10300/isatty.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _isatty (fd) 8 | int fd; 9 | { 10 | return 1; 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/ctype/iswdigit_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | int 5 | iswdigit_l (wint_t c, struct __locale_t *locale) 6 | { 7 | return c >= (wint_t)'0' && c <= (wint_t)'9'; 8 | } 9 | -------------------------------------------------------------------------------- /newlib/libc/include/machine/malloc.h: -------------------------------------------------------------------------------- 1 | #ifndef _MACHMALLOC_H_ 2 | #define _MACHMALLOC_H_ 3 | 4 | /* place holder so platforms may add malloc.h extensions */ 5 | 6 | #endif /* _MACHMALLOC_H_ */ 7 | 8 | 9 | -------------------------------------------------------------------------------- /newlib/libc/include/machine/stdlib.h: -------------------------------------------------------------------------------- 1 | #ifndef _MACHSTDLIB_H_ 2 | #define _MACHSTDLIB_H_ 3 | 4 | /* place holder so platforms may add stdlib.h extensions */ 5 | 6 | #endif /* _MACHSTDLIB_H_ */ 7 | 8 | 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/sys/string.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_STRING_H 2 | #define _SYS_STRING_H 3 | 4 | #ifndef __STRICT_ANSI__ 5 | char *strsignal (int __signo); 6 | #endif 7 | 8 | #endif /* _SYS_STRING_H */ 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/fork.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | 6 | int fork() 7 | { 8 | errno = ENOSYS; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysclose.c: -------------------------------------------------------------------------------- 1 | /* connector for close */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | close (int fd) 8 | { 9 | return _close_r (_REENT, fd); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/nearbyintf.h: -------------------------------------------------------------------------------- 1 | #include "headers/nearbyintf4.h" 2 | 3 | static __inline float _nearbyintf(float x) 4 | { 5 | return spu_extract(_nearbyintf4(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/w_sincos.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/sincos.h" 3 | 4 | void sincos(double angle, double* sinx, double* cosx) 5 | { 6 | return _sincos(angle, sinx, cosx); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/wf_sincos.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "headers/sincosf.h" 3 | 4 | void sincosf(float angle, float* sinx, float* cosx) 5 | { 6 | return _sincosf(angle, sinx, cosx); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/ctype/toascii_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef toascii_l 5 | 6 | int 7 | toascii_l (int c, struct __locale_t *locale) 8 | { 9 | return c & 0177; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/getpid.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | 6 | int getpid() 7 | { 8 | errno = ENOSYS; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syswait.c: -------------------------------------------------------------------------------- 1 | /* connector for wait */ 2 | 3 | #include 4 | #include 5 | 6 | pid_t 7 | wait (int *status) 8 | { 9 | return _wait_r (_REENT, status); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/pow.h: -------------------------------------------------------------------------------- 1 | #include "headers/powd2.h" 2 | 3 | static __inline double _pow(double x, double y) 4 | { 5 | return spu_extract(_powd2(spu_promote(x, 0), spu_promote(y, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/powf.h: -------------------------------------------------------------------------------- 1 | #include "headers/powf4.h" 2 | 3 | static __inline double _powf(float x, float y) 4 | { 5 | return spu_extract(_powf4(spu_promote(x, 0), spu_promote(y, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/signbit.h: -------------------------------------------------------------------------------- 1 | #include "headers/signbitd2.h" 2 | 3 | static __inline unsigned long long _signbit(double x) 4 | { 5 | return spu_extract(_signbitd2(spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /config/mt-d30v: -------------------------------------------------------------------------------- 1 | # Build libraries optimizing for space, not speed. 2 | # Turn off warnings about symbols named the same as registers 3 | CFLAGS_FOR_TARGET = -g -Os -Wa,-C 4 | CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C 5 | -------------------------------------------------------------------------------- /libgloss/config/xc16x.mt: -------------------------------------------------------------------------------- 1 | # Dummy target-specific Makefile fragment for XC16X. We can't 2 | # use default.mt because it refers to generic source files whose 3 | # names conflict with the XC16X-specific sources. 4 | -------------------------------------------------------------------------------- /libgloss/iq2000/fork.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _fork () 9 | { 10 | return TRAP0 (SYS_fork, 0, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10200/fork.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _fork () 9 | { 10 | return TRAP0 (SYS_fork, 0, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10300/fork.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _fork () 9 | { 10 | return TRAP0 (SYS_fork, 0, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mt/kill.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | kill (n, m) 8 | { 9 | return TRAP0 (SYS_exit, 0xdead, 0, 0); 10 | } 11 | 12 | -------------------------------------------------------------------------------- /newlib/libc/ctype/isascii_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef isascii_l 5 | 6 | int 7 | isascii_l (int c, struct __locale_t *locale) 8 | { 9 | return c >= 0 && c < 128; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/machine/arm/machine/param.h: -------------------------------------------------------------------------------- 1 | /* ARM configuration file; HZ is 100 rather than the default 60 */ 2 | 3 | #ifndef _MACHINE_PARAM_H 4 | # define _MACHINE_PARAM_H 5 | 6 | # define HZ (100) 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/wait.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | 6 | int wait(int *status) 7 | { 8 | errno = ENOSYS; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/trap.S: -------------------------------------------------------------------------------- 1 | .text 2 | .global ___trap0 3 | ___trap0: 4 | trap 31 5 | tst r11,r11 6 | bz .L0 7 | movhi hi(_errno),r0,r6 8 | st.w r11,lo(_errno)[r6] 9 | .L0: 10 | jmp [r31] 11 | -------------------------------------------------------------------------------- /newlib/libm/complex/cephes_subrf.h: -------------------------------------------------------------------------------- 1 | /* $NetBSD: cephes_subrf.h,v 1.1 2007/08/20 16:01:34 drochner Exp $ */ 2 | 3 | void _cchshf(float, float *, float *); 4 | float _redupif(float); 5 | float _ctansf(float complex); 6 | -------------------------------------------------------------------------------- /libgloss/config/mn10200.mt: -------------------------------------------------------------------------------- 1 | # Dummy target-specific Makefile fragment for MN10200. We can't 2 | # use default.mt because it refers to generic source files whose 3 | # names conflict with the MN10200-specific sources. 4 | -------------------------------------------------------------------------------- /libgloss/config/mn10300.mt: -------------------------------------------------------------------------------- 1 | # Dummy target-specific Makefile fragment for MN10300. We can't 2 | # use default.mt because it refers to generic source files whose 3 | # names conflict with the MN10300-specific sources. 4 | -------------------------------------------------------------------------------- /libgloss/iq2000/kill.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _kill (n, m) 8 | { 9 | return TRAP0 (SYS_exit, 0xdead, 0, 0); 10 | } 11 | 12 | -------------------------------------------------------------------------------- /libgloss/iq2000/pipe.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | pipe (int fd) 9 | { 10 | return TRAP0 (SYS_pipe, fd, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/m32r/close.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _close (int file) 8 | { 9 | return TRAP0 (SYS_close, file, 0, 0); 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/m32r/isatty.c: -------------------------------------------------------------------------------- 1 | 2 | /* FIXME: can we not nuke the 10,000 copies of this function 3 | and fudge things (which is all this function does) in _fstat? */ 4 | int 5 | _isatty (int fd) 6 | { 7 | return 1; 8 | } 9 | -------------------------------------------------------------------------------- /libgloss/mn10200/kill.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _kill (n, m) 8 | { 9 | return TRAP0 (SYS_exit, 0xdead, 0, 0); 10 | } 11 | 12 | -------------------------------------------------------------------------------- /libgloss/mn10200/pipe.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | pipe (int fd) 9 | { 10 | return TRAP0 (SYS_pipe, fd, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10300/kill.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _kill (n, m) 8 | { 9 | return TRAP0 (SYS_exit, 0xdead, 0, 0); 10 | } 11 | 12 | -------------------------------------------------------------------------------- /libgloss/mn10300/pipe.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | pipe (int fd) 9 | { 10 | return TRAP0 (SYS_pipe, fd, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/getlogin.c: -------------------------------------------------------------------------------- 1 | /* FIXME: dummy stub for now. */ 2 | #include 3 | #include 4 | 5 | char * 6 | getlogin (void) 7 | { 8 | errno = ENOSYS; 9 | return NULL; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/kill.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | 6 | int kill(int pid, int sig) 7 | { 8 | errno = ENOSYS; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/unlink.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | 6 | int unlink(char *name) 7 | { 8 | errno = ENOSYS; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/stat.S: -------------------------------------------------------------------------------- 1 | ! stat() system call 2 | 3 | #include "sys/syscallasm.h" 4 | 5 | #ifdef REENT 6 | defsyscall_r (_stat_r, SYS_stat, 2) 7 | #else 8 | defsyscall (stat, SYS_stat) 9 | #endif 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/trap.S: -------------------------------------------------------------------------------- 1 | .text 2 | .global ___trap0 3 | ___trap0: 4 | syscall 5 | cmp 0,d0 6 | beq .L0 7 | mov d0,(_errno) 8 | .L0: 9 | #ifdef __mn10300__ 10 | rets 11 | #else 12 | rts 13 | #endif 14 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/isatty.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | isatty(fd) 5 | int fd; { 6 | struct termio buf; 7 | 8 | if (ioctl (fd, TCGETA, &buf) == -1) 9 | return 0; 10 | return 1; 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/systimes.c: -------------------------------------------------------------------------------- 1 | /* connector for times */ 2 | 3 | #include 4 | #include 5 | 6 | clock_t 7 | times (struct tms *buf) 8 | { 9 | return _times_r (_REENT, buf); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysunlink.c: -------------------------------------------------------------------------------- 1 | /* connector for unlink */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | unlink (const char *file) 8 | { 9 | return _unlink_r (_REENT, file); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libm/complex/cephes_subr.h: -------------------------------------------------------------------------------- 1 | /* $NetBSD: cephes_subr.h,v 1.1 2007/08/20 16:01:33 drochner Exp $ */ 2 | 3 | void _cchsh(double, double *, double *); 4 | double _redupi(double); 5 | double _ctans(double complex); 6 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/atan2.h: -------------------------------------------------------------------------------- 1 | #include "headers/atan2d2.h" 2 | 3 | static __inline double _atan2(double y, double x) 4 | { 5 | return spu_extract(_atan2d2(spu_promote(y, 0), spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/atan2f.h: -------------------------------------------------------------------------------- 1 | #include "headers/atan2f4.h" 2 | 3 | static __inline float _atan2f(float y, float x) 4 | { 5 | return spu_extract(_atan2f4(spu_promote(y, 0), spu_promote(x, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/hypot.h: -------------------------------------------------------------------------------- 1 | #include "headers/hypotd2.h" 2 | 3 | static __inline double _hypot(double x, double y) 4 | { 5 | return spu_extract(_hypotd2(spu_promote(x, 0), spu_promote(y, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/hypotf.h: -------------------------------------------------------------------------------- 1 | #include "headers/hypotf4.h" 2 | 3 | static __inline float _hypotf(float x, float y) 4 | { 5 | return spu_extract(_hypotf4(spu_promote(x, 0), spu_promote(y, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /winsup/cygwin/release/1.7.24: -------------------------------------------------------------------------------- 1 | What's new: 2 | ----------- 3 | 4 | - Allow application override of posix_memalign. 5 | 6 | 7 | What changed: 8 | ------------- 9 | 10 | 11 | Bug fixes: 12 | ---------- 13 | 14 | -------------------------------------------------------------------------------- /winsup/doc/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | Makefile.dep 3 | 4 | autom4te.cache 5 | config.log 6 | config.status 7 | 8 | cygwin-api 9 | cygwin-api.xml 10 | 11 | cygwin-ug-net 12 | cygwin-ug-net.html 13 | 14 | faq 15 | -------------------------------------------------------------------------------- /cross-arm-none-eabi.txt: -------------------------------------------------------------------------------- 1 | [binaries] 2 | c = 'arm-none-eabi-gcc' 3 | ar = 'arm-none-eabi-ar' 4 | as = 'arm-none-eabi-as' 5 | 6 | [host_machine] 7 | system = '' 8 | cpu_family = '' 9 | cpu = '' 10 | endian = '' 11 | 12 | -------------------------------------------------------------------------------- /libgloss/mt/close.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | close (int file) 9 | { 10 | return TRAP0 (SYS_close, file, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mt/time.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | time_t 8 | time (time_t *tloc) 9 | { 10 | return TRAP0 (SYS_time, tloc, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/fork.S: -------------------------------------------------------------------------------- 1 | .globl _fork 2 | .globl fork 3 | _fork: 4 | fork: 5 | movl $2, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | testl %edx, %edx 9 | je bye 10 | xorl %eax,%eax 11 | bye: 12 | ret 13 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syskill.c: -------------------------------------------------------------------------------- 1 | /* connector for kill */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | kill (int pid, 8 | int sig) 9 | { 10 | return _kill_r (_REENT, pid, sig); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/iq2000/close.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _close (int file) 9 | { 10 | return TRAP0 (SYS_close, file, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/iq2000/time.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | time_t 8 | time (time_t *tloc) 9 | { 10 | return TRAP0 (SYS_time, tloc, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mips/test.c: -------------------------------------------------------------------------------- 1 | main() 2 | { 3 | outbyte ('&'); 4 | outbyte ('@'); 5 | outbyte ('$'); 6 | outbyte ('%'); 7 | 8 | /* whew, we made it */ 9 | 10 | print ("\r\nDone..."); 11 | 12 | return; 13 | } 14 | -------------------------------------------------------------------------------- /libgloss/mn10200/close.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _close (int file) 9 | { 10 | return TRAP0 (SYS_close, file, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10200/time.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | time_t 8 | time (time_t *tloc) 9 | { 10 | return TRAP0 (SYS_time, tloc, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10300/close.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _close (int file) 9 | { 10 | return TRAP0 (SYS_close, file, 0, 0); 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/machine/z8k/args.h: -------------------------------------------------------------------------------- 1 | #ifdef __Z8001__ 2 | 3 | segm 4 | #define PARG_0 rr6 5 | #else 6 | unsegm 7 | #define PARG_0 r7 8 | #endif 9 | 10 | #define LARG_0 rr6 11 | #define ARG_0 r7 12 | 13 | #define LARG_1 rr4 14 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/libintl.h: -------------------------------------------------------------------------------- 1 | /* temporary internal libintl.h to ignore message translation for now */ 2 | 3 | #ifndef _LIBINTL_H 4 | #define _LIBINTL_H 1 5 | 6 | #undef _ 7 | #define _(x) (x) 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/machine/i386/include/setjmp.h: -------------------------------------------------------------------------------- 1 | #define _JBLEN 9 2 | typedef long __jmp_buf[_JBLEN]; 3 | 4 | #define SP_INDEX 7 5 | #define _JMPBUF_UNWINDS(buf, address) \ 6 | ((void *)(address) < (void *)(buf)[SP_INDEX]) 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/link.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | 6 | int link(char *existing, char *new) 7 | { 8 | errno = ENOSYS; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /winsup/cygwin/release/1.7.20: -------------------------------------------------------------------------------- 1 | What's new: 2 | ----------- 3 | 4 | 5 | Bug fixes: 6 | ---------- 7 | 8 | - Fix starvation problem when handling SIGCONT. 9 | Fixes: http://cygwin.com/ml/cygwin/2013-06/msg00084.html 10 | -------------------------------------------------------------------------------- /libgloss/arm/coff-iq80310.specs: -------------------------------------------------------------------------------- 1 | %rename link old_link 2 | 3 | *link: 4 | -T redboot.ld%s -Ttext 0xA0020000 %(old_link) 5 | 6 | *startfile: 7 | %{!pg:redboot-crt0%O%s} %{pg:redboot-crt0%O%s} redboot-syscalls%O%s 8 | 9 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_close.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "internal_syscall.h" 3 | 4 | /* Close a file. */ 5 | int 6 | _close(int file) 7 | { 8 | return syscall_errno (SYS_close, file, 0, 0, 0, 0, 0); 9 | } 10 | -------------------------------------------------------------------------------- /libgloss/xstormy16/sim_malloc_start.s: -------------------------------------------------------------------------------- 1 | # This file just defines __malloc_start for newlib for the simulator. 2 | # The simulator has RAM up to the I/O area at 0x7F00. 3 | .globl __malloc_start 4 | .set __malloc_start,0x7F00 5 | 6 | -------------------------------------------------------------------------------- /newlib/libc/machine/spu/sys/sched.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_SCHED_H 2 | #define _SYS_SCHED_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | int sched_yield(void); 8 | 9 | #ifdef __cplusplus 10 | } 11 | #endif 12 | #endif 13 | -------------------------------------------------------------------------------- /newlib/libc/time/tzvars.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* Global timezone variables. */ 4 | 5 | /* Default timezone to GMT */ 6 | char *_tzname[2] = {"GMT", "GMT"}; 7 | int _daylight = 0; 8 | long _timezone = 0; 9 | 10 | 11 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/nextafter.h: -------------------------------------------------------------------------------- 1 | #include "headers/nextafterd2.h" 2 | 3 | static __inline double _nextafter(double x, double y) 4 | { 5 | return spu_extract(_nextafterd2(spu_promote(x, 0), spu_promote(y, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libm/machine/spu/headers/nextafterf.h: -------------------------------------------------------------------------------- 1 | #include "headers/nextafterf4.h" 2 | 3 | static __inline float _nextafterf(float x, float y) 4 | { 5 | return spu_extract(_nextafterf4(spu_promote(x, 0), spu_promote(y, 0)), 0); 6 | } 7 | -------------------------------------------------------------------------------- /libgloss/m32r/fstat.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _fstat (int file, struct stat *st) 8 | { 9 | st->st_mode = S_IFCHR; 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/m32r/open.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _open (const char *path, int flags) 8 | { 9 | return TRAP0 (SYS_open, path, flags, 0); 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/m32r/read.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _read (int file, char *ptr, int len) 8 | { 9 | return TRAP0 (SYS_read, file, ptr, len); 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/rs6000/mbx.specs: -------------------------------------------------------------------------------- 1 | *lib_default: 2 | --start-group -lmbx -lc --end-group 3 | 4 | *startfile_default: 5 | ecrti.o%s crt0.o%s 6 | 7 | *endfile_default: 8 | ecrtn.o%s 9 | 10 | *link_start_default: 11 | -T mbx.ld%s 12 | 13 | -------------------------------------------------------------------------------- /newlib/libc/ctype/iscntrl_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef iscntrl_l 5 | 6 | int 7 | iscntrl_l (int c, struct __locale_t *locale) 8 | { 9 | return __locale_ctype_ptr_l (locale)[c+1] & _C; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/ctype/isdigit_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef isdigit_l 5 | 6 | int 7 | isdigit_l (int c, struct __locale_t *locale) 8 | { 9 | return __locale_ctype_ptr_l (locale)[c+1] & _N; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/intl/lcl_stpcpy.c: -------------------------------------------------------------------------------- 1 | char * 2 | __stpcpy (dest, src) 3 | char *dest; 4 | const char *src; 5 | { 6 | while ((*dest++ = *src++) != '\0') 7 | /* Do nothing. */ ; 8 | return dest - 1; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/sh/ftruncate.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include "sys/syscall.h" 4 | 5 | int 6 | ftruncate (int file, off_t length) 7 | { 8 | return __trap34 (SYS_ftruncate, file, length, 0); 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/dup2.S: -------------------------------------------------------------------------------- 1 | ! dup2() system call 2 | 3 | #include "sys/syscallasm.h" 4 | 5 | /* FIXME: rewrite in C to use fcntl */ 6 | 7 | #ifndef __svr4__ /* svr4 uses fcntl */ 8 | defsyscall (dup2, SYS_dup2) 9 | #endif 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/utime.S: -------------------------------------------------------------------------------- 1 | /* utime() system call */ 2 | /* svr4 only, sunos4 version calls utimes */ 3 | 4 | #ifdef __svr4__ 5 | 6 | #include "sys/syscallasm.h" 7 | 8 | defsyscall (utime, SYS_utime) 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/sys/utime.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_UTIME_H 2 | # define _SYS_UTIME_H 3 | 4 | #include 5 | 6 | struct utimbuf { 7 | time_t actime; 8 | time_t modtime; 9 | }; 10 | 11 | #endif /* _SYS_UTIME_H */ 12 | 13 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syslink.c: -------------------------------------------------------------------------------- 1 | /* connector for link */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | link (const char *old, 8 | const char *new) 9 | { 10 | return _link_r (_REENT, old, new); 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/unix/ttyname.h: -------------------------------------------------------------------------------- 1 | /* Common defines for ttyname.c and ttyname_r.c */ 2 | 3 | #include /* For MAXNAMLEN */ 4 | #include /* For _PATH_DEV */ 5 | 6 | #define TTYNAME_BUFSIZE (sizeof (_PATH_DEV) + MAXNAMLEN) 7 | -------------------------------------------------------------------------------- /libgloss/iq2000/wait.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _wait (statusp) 9 | int *statusp; 10 | { 11 | return TRAP0 (SYS_wait, 0, 0, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/m32r/chmod.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _chmod (const char *path, short mode) 8 | { 9 | return TRAP0 (SYS_chmod, path, mode, 0); 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/m32r/lseek.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _lseek (int file, int ptr, int dir) 8 | { 9 | return TRAP0 (SYS_lseek, file, ptr, dir); 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/m32r/write.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _write (int file, char *ptr, int len) 8 | { 9 | return TRAP0 (SYS_write, file, ptr, len); 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/mn10200/wait.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _wait (statusp) 9 | int *statusp; 10 | { 11 | return TRAP0 (SYS_wait, 0, 0, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10300/wait.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _wait (statusp) 9 | int *statusp; 10 | { 11 | return TRAP0 (SYS_wait, 0, 0, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mt/chmod.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | chmod (const char *path, mode_t mode) 9 | { 10 | return TRAP0 (SYS_chmod, path, mode, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/riscv/sim.specs: -------------------------------------------------------------------------------- 1 | # Spec file for gdb simulator. 2 | 3 | %rename lib sim_lib 4 | %rename link sim_link 5 | 6 | *lib: 7 | --start-group -lc -lsim --end-group 8 | 9 | *link: 10 | %(sim_link) %:replace-outfile(-lgloss -lsim) 11 | -------------------------------------------------------------------------------- /newlib/libc/ctype/isalnum_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef isalnum_l 5 | 6 | int 7 | isalnum_l (int c, struct __locale_t *locale) 8 | { 9 | return __locale_ctype_ptr_l (locale)[c+1] & (_U|_L|_N); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/ctype/isalpha_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef isalpha_l 5 | 6 | int 7 | isalpha_l (int c, struct __locale_t *locale) 8 | { 9 | return __locale_ctype_ptr_l (locale)[c+1] & (_U|_L); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/ctype/ispunct_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef ispunct_l 5 | 6 | int 7 | ispunct_l (int c, struct __locale_t *locale) 8 | { 9 | return __locale_ctype_ptr_l (locale)[c+1] & _P; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /newlib/libc/ctype/isspace_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef isspace_l 5 | 6 | int 7 | isspace_l (int c, struct __locale_t *locale) 8 | { 9 | return __locale_ctype_ptr_l (locale)[c+1] & _S; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/execve.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | 6 | int execve( char *name, char **argv, char **env) 7 | { 8 | errno = ENOSYS; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/symlink.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | 6 | int symlink(const char *path1, const char *path2) 7 | { 8 | errno = ENOSYS; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/sh/truncate.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include "sys/syscall.h" 4 | 5 | int 6 | truncate (const char *path, off_t length) 7 | { 8 | return __trap34 (SYS_truncate, path, length, 0); 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnec810/sbrk.c: -------------------------------------------------------------------------------- 1 | extern int _end; 2 | 3 | static char *end_of_data = (char *) &_end; 4 | 5 | char * 6 | _sbrk (int delta) { 7 | char *ptr = end_of_data; 8 | 9 | end_of_data += delta; 10 | return ptr; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /config/mh-cygwin: -------------------------------------------------------------------------------- 1 | # Increase stack limit to a figure based on the Linux default, with 4MB added 2 | # as GCC turns out to need that much more to pass all the limits-* tests. 3 | LDFLAGS += -Wl,--stack,12582912 4 | BOOT_LDFLAGS += -Wl,--stack,12582912 5 | -------------------------------------------------------------------------------- /libgloss/arm/elf-pid.specs: -------------------------------------------------------------------------------- 1 | %rename link old_link 2 | 3 | *link: 4 | -T redboot.ld%s -Ttext 0x10000 %(old_link) 5 | 6 | *startfile: 7 | crti%O%s crtbegin%O%s %{!pg:redboot-crt0%O%s} %{pg:redboot-crt0%O%s} redboot-syscalls%O%s 8 | 9 | -------------------------------------------------------------------------------- /libgloss/iq2000/chmod.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | chmod (const char *path, mode_t mode) 9 | { 10 | return TRAP0 (SYS_chmod, path, mode, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/m32r/stat.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _stat (const char *path, struct stat *st) 8 | 9 | { 10 | return TRAP0 (SYS_stat, path, st, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10200/chmod.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | chmod (const char *path, mode_t mode) 9 | { 10 | return TRAP0 (SYS_chmod, path, mode, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10300/chmod.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | chmod (const char *path, mode_t mode) 9 | { 10 | return TRAP0 (SYS_chmod, path, mode, 0); 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/ctype/islower_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef islower_l 5 | 6 | int 7 | islower_l (int c, struct __locale_t *locale) 8 | { 9 | return (__locale_ctype_ptr_l (locale)[c+1] & (_U|_L)) == _L; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/include/sys/dir.h: -------------------------------------------------------------------------------- 1 | /* BSD predecessor of POSIX.1 and struct dirent */ 2 | 3 | #ifndef _SYS_DIR_H_ 4 | #define _SYS_DIR_H_ 5 | 6 | #include 7 | 8 | #define direct dirent 9 | 10 | #endif /*_SYS_DIR_H_*/ 11 | -------------------------------------------------------------------------------- /newlib/libc/machine/rx/memset.S: -------------------------------------------------------------------------------- 1 | .file "memset.S" 2 | 3 | .section .text 4 | .global _memset 5 | .type _memset,@function 6 | _memset: 7 | mov r1, r4 8 | sstr.b 9 | mov r4, r1 10 | rts 11 | 12 | .size _memset, . - _memset 13 | 14 | -------------------------------------------------------------------------------- /newlib/libc/sys/h8300hms/stat.S: -------------------------------------------------------------------------------- 1 | ;int stat(const char *file_name, struct stat *buf); 2 | 3 | #include "setarch.h" 4 | 5 | .section .text 6 | .align 2 7 | .global __stat 8 | __stat: 9 | jsr @@0xca 10 | rts 11 | .end 12 | 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/flockfile.c: -------------------------------------------------------------------------------- 1 | /* stub to allow libpthread to override */ 2 | 3 | #include 4 | #include 5 | 6 | void __libc_flockfile (FILE *fp) 7 | { 8 | } 9 | weak_alias(__libc_flockfile,flockfile) 10 | -------------------------------------------------------------------------------- /libgloss/arm/elf-iq80310.specs: -------------------------------------------------------------------------------- 1 | %rename link old_link 2 | 3 | *link: 4 | -T redboot.ld%s -Ttext 0xA0020000 %(old_link) 5 | 6 | *startfile: 7 | crti%O%s crtbegin%O%s %{!pg:redboot-crt0%O%s} %{pg:redboot-crt0%O%s} redboot-syscalls%O%s 8 | 9 | -------------------------------------------------------------------------------- /libgloss/arm/elf-redboot.specs: -------------------------------------------------------------------------------- 1 | %rename link old_link 2 | 3 | *link: 4 | -T redboot.ld%s -Ttext 0x20000 %(old_link) 5 | 6 | *startfile: 7 | crti%O%s crtbegin%O%s %{!pg:redboot-crt0%O%s} %{pg:redboot-crt0%O%s} redboot-syscalls%O%s 8 | 9 | -------------------------------------------------------------------------------- /libgloss/iq2000/creat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | creat (const char *path, 9 | int mode) 10 | { 11 | return TRAP0 (SYS_creat, path, mode, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/iq2000/open.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _open (const char *path, 9 | int flags) 10 | { 11 | return TRAP0 (SYS_open, path, flags, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/iq2000/stat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _stat (const char *path, struct stat *st) 9 | 10 | { 11 | return TRAP0 (SYS_stat, path, st, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10200/creat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | creat (const char *path, 9 | int mode) 10 | { 11 | return TRAP0 (SYS_creat, path, mode, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10200/open.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _open (const char *path, 9 | int flags) 10 | { 11 | return TRAP0 (SYS_open, path, flags, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10300/creat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | creat (const char *path, 9 | int mode) 10 | { 11 | return TRAP0 (SYS_creat, path, mode, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10300/open.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _open (const char *path, 9 | int flags) 10 | { 11 | return TRAP0 (SYS_open, path, flags, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mt/open.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | open (const char *path, int flags, int mode) 9 | { 10 | return TRAP0 (SYS_open, path, flags, mode); 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/ctype/isblank_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef isblank_l 5 | 6 | int 7 | isblank_l (int c, struct __locale_t *locale) 8 | { 9 | return (__locale_ctype_ptr_l (locale)[c+1] & _B) || (c == '\t'); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/ctype/isxdigit_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | 5 | #undef isxdigit_l 6 | int 7 | isxdigit_l (int c, struct __locale_t *locale) 8 | { 9 | return __locale_ctype_ptr_l (locale)[c+1] & ((_X)|(_N)); 10 | } 11 | 12 | -------------------------------------------------------------------------------- /newlib/libc/include/errno.h: -------------------------------------------------------------------------------- 1 | #ifndef __ERRNO_H__ 2 | #define __ERRNO_H__ 3 | 4 | #ifndef __error_t_defined 5 | typedef int error_t; 6 | #define __error_t_defined 1 7 | #endif 8 | 9 | #include 10 | 11 | #endif /* !__ERRNO_H__ */ 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/funlockfile.c: -------------------------------------------------------------------------------- 1 | /* stub to allow libpthread to override */ 2 | 3 | #include 4 | #include 5 | 6 | void __libc_funlockfile (FILE *fp) 7 | { 8 | } 9 | weak_alias(__libc_funlockfile,funlockfile) 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/include/netinet6/ip6.h: -------------------------------------------------------------------------------- 1 | /* $FreeBSD: src/sys/netinet6/ip6.h,v 1.5 2000/07/04 16:35:09 itojun Exp $ */ 2 | /* $KAME: ip6.h,v 1.7 2000/03/25 07:23:36 sumikawa Exp $ */ 3 | 4 | #error "netinet6/ip6.h is obsolete. use netinet/ip6.h" 5 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/times.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | #include 6 | 7 | clock_t times(struct tms *buf) 8 | { 9 | errno = ENOSYS; 10 | return -1; 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/pipe.S: -------------------------------------------------------------------------------- 1 | .globl _pipe 2 | .globl pipe 3 | _pipe: 4 | pipe: 5 | movl $0x2a, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | movl 4(%esp), %ecx 9 | movl (%ecx), %eax 10 | movl 4(%ecx), %edx 11 | xor %eax, %eax 12 | ret 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/wait.S: -------------------------------------------------------------------------------- 1 | .globl _wait 2 | .globl wait 3 | _wait: 4 | wait: 5 | movl $0x7, %eax 6 | lcall $7,$0 7 | jb _cerror 8 | movl 4(%esp), %ecx 9 | testl %ecx, %ecx 10 | je bye 11 | movl %edx, (%ecx) 12 | bye: 13 | ret 14 | -------------------------------------------------------------------------------- /libgloss/iq2000/execv.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | execv (const char *path, char *const argv[]) 9 | { 10 | return TRAP0 (SYS_execv, path, argv, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10200/execv.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | execv (const char *path, char *const argv[]) 9 | { 10 | return TRAP0 (SYS_execv, path, argv, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10200/stat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _stat (const char *path, struct stat *st) 9 | 10 | { 11 | return TRAP0 (SYS_stat, path, st, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10300/execv.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | execv (const char *path, char *const argv[]) 9 | { 10 | return TRAP0 (SYS_execv, path, argv, 0); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10300/stat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _stat (const char *path, struct stat *st) 9 | 10 | { 11 | return TRAP0 (SYS_stat, path, st, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mt/read.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | read (int file, 8 | char *ptr, 9 | size_t len) 10 | { 11 | return TRAP0 (SYS_read, file, ptr, len); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_ftime.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /* Get the current time. Only relatively correct. */ 5 | int 6 | _ftime(struct timeb *tp) 7 | { 8 | tp->time = tp->millitm = 0; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/ctype/isupper_l.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef isupper_l 5 | 6 | int 7 | isupper_l (int c, struct __locale_t *locale) 8 | { 9 | return (__locale_ctype_ptr_l (locale)[c+1] & (_U|_L)) == _U; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/a29khif/getpid.c: -------------------------------------------------------------------------------- 1 | /* Stub for getpid. */ 2 | 3 | #include <_ansi.h> 4 | 5 | /* This should really return pid_t, but that doesn't seem to be in 6 | . */ 7 | 8 | int 9 | _getpid (void) 10 | { 11 | return 1; 12 | } 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/sethostname.c: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/sethostname.c - Set host name */ 2 | 3 | /* Copyright 2002, Red Hat Inc. */ 4 | 5 | #include 6 | #include 7 | 8 | _syscall2(int,sethostname,const char *,name,size_t,len); 9 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syslseek.c: -------------------------------------------------------------------------------- 1 | /* connector for lseek */ 2 | 3 | #include 4 | #include 5 | 6 | off_t 7 | lseek (int fd, 8 | off_t pos, 9 | int whence) 10 | { 11 | return _lseek_r (_REENT, fd, pos, whence); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/iq2000/read.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _read (int file, 8 | char *ptr, 9 | size_t len) 10 | { 11 | return TRAP0 (SYS_read, file, ptr, len); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mt/times.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | #include "sys/times.h" 6 | 7 | 8 | clock_t 9 | times (struct tms *buffer) 10 | { 11 | return TRAP0 (SYS_times, buffer, 0, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mt/write.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | write ( int file, 9 | char *ptr, 10 | size_t len) 11 | { 12 | return TRAP0 (SYS_write, file, ptr, len); 13 | } 14 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_open.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "internal_syscall.h" 3 | 4 | /* Open a file. */ 5 | int 6 | _open(const char *name, int flags, int mode) 7 | { 8 | return syscall_errno (SYS_open, name, flags, mode, 0, 0, 0); 9 | } 10 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_unlink.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "internal_syscall.h" 3 | 4 | /* Remove a file's directory entry. */ 5 | int 6 | _unlink(const char *name) 7 | { 8 | return syscall_errno (SYS_unlink, name, 0, 0, 0, 0, 0); 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/include/paths.h: -------------------------------------------------------------------------------- 1 | #ifndef _PATHS_H_ 2 | #define _PATHS_H_ 3 | 4 | #define _PATH_DEV "/dev/" 5 | #define _PATH_DEVNULL "/dev/null" 6 | #define _PATH_DEVZERO "/dev/zero" 7 | #define _PATH_BSHELL "/bin/sh" 8 | 9 | #endif /* _PATHS_H_ */ 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/include/netinet6/icmp6.h: -------------------------------------------------------------------------------- 1 | /* $FreeBSD: src/sys/netinet6/icmp6.h,v 1.6 2000/07/04 16:35:09 itojun Exp $ */ 2 | /* $KAME: icmp6.h,v 1.17 2000/06/11 17:23:40 jinmei Exp $ */ 3 | 4 | #error "netinet6/icmp6.h is obsolete. use netinet/icmp6.h" 5 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/rename.c: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/rename.c - rename a file */ 2 | 3 | /* Copyright 2002, Red Hat Inc. */ 4 | 5 | #include 6 | #include 7 | 8 | _syscall2(int,rename,const char *,old,const char *,new) 9 | 10 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysfstat.c: -------------------------------------------------------------------------------- 1 | /* connector for fstat */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | int 8 | fstat (int fd, 9 | struct stat *pstat) 10 | { 11 | return _fstat_r (_REENT, fd, pstat); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/iq2000/times.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | #include "sys/times.h" 6 | 7 | 8 | clock_t 9 | times (struct tms *buffer) 10 | { 11 | return TRAP0 (SYS_times, buffer, 0, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/iq2000/write.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _write ( int file, 9 | char *ptr, 10 | size_t len) 11 | { 12 | return TRAP0 (SYS_write, file, ptr, len); 13 | } 14 | -------------------------------------------------------------------------------- /libgloss/mn10200/read.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _read (int file, 8 | char *ptr, 9 | size_t len) 10 | { 11 | return TRAP0 (SYS_read, file, ptr, len); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10200/times.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | #include "sys/times.h" 6 | 7 | 8 | clock_t 9 | times (struct tms *buffer) 10 | { 11 | return TRAP0 (SYS_times, buffer, 0, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10200/write.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _write ( int file, 9 | char *ptr, 10 | size_t len) 11 | { 12 | return TRAP0 (SYS_write, file, ptr, len); 13 | } 14 | -------------------------------------------------------------------------------- /libgloss/mn10300/read.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | _read (int file, 8 | char *ptr, 9 | size_t len) 10 | { 11 | return TRAP0 (SYS_read, file, ptr, len); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10300/write.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _write ( int file, 9 | char *ptr, 10 | size_t len) 11 | { 12 | return TRAP0 (SYS_write, file, ptr, len); 13 | } 14 | -------------------------------------------------------------------------------- /newlib/libc/include/utime.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | 5 | #include <_ansi.h> 6 | 7 | /* The utime function is defined in libc/sys//sys if it exists. */ 8 | #include 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | -------------------------------------------------------------------------------- /newlib/libc/string/strdup.c: -------------------------------------------------------------------------------- 1 | #ifndef _REENT_ONLY 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | char * 8 | strdup (const char *str) 9 | { 10 | return _strdup_r (_REENT, str); 11 | } 12 | 13 | #endif /* !_REENT_ONLY */ 14 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysread.c: -------------------------------------------------------------------------------- 1 | /* connector for read */ 2 | 3 | #include 4 | #include 5 | 6 | _READ_WRITE_RETURN_TYPE 7 | read (int fd, 8 | void *buf, 9 | size_t cnt) 10 | { 11 | return _read_r (_REENT, fd, buf, cnt); 12 | } 13 | -------------------------------------------------------------------------------- /winsup/lsaauth/cyglsa64.def: -------------------------------------------------------------------------------- 1 | LIBRARY "cyglsa64" 2 | 3 | EXPORTS 4 | LsaApInitializePackage 5 | LsaApLogonUserEx 6 | LsaApLogonTerminated 7 | LsaApCallPackage 8 | LsaApCallPackagePassthrough = LsaApCallPackage 9 | LsaApCallPackageUntrusted = LsaApCallPackage 10 | -------------------------------------------------------------------------------- /libgloss/cris/outbyte.c: -------------------------------------------------------------------------------- 1 | /* Low-level kind-of-support for CRIS. Mostly used as a placeholder 2 | function. Too small and obvious to warrant a copyright notice. */ 3 | 4 | #include 5 | void 6 | outbyte (int ch) 7 | { 8 | write (1, &ch, 1); 9 | } 10 | -------------------------------------------------------------------------------- /libgloss/iq2000/chown.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | 8 | int 9 | chown (const char *path, short owner, short group) 10 | { 11 | return TRAP0 (SYS_chown, path, owner, group); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10200/chown.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | 8 | int 9 | chown (const char *path, short owner, short group) 10 | { 11 | return TRAP0 (SYS_chown, path, owner, group); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10300/chown.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | 8 | int 9 | chown (const char *path, short owner, short group) 10 | { 11 | return TRAP0 (SYS_chown, path, owner, group); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10300/times.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | #include "sys/times.h" 6 | 7 | 8 | clock_t 9 | _times (struct tms *buffer) 10 | { 11 | return TRAP0 (SYS_times, buffer, 0, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mt/stat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | stat (const char *__restrict path, struct stat *__restrict st) 9 | 10 | { 11 | return TRAP0 (SYS_stat, path, st, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_access.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "internal_syscall.h" 3 | 4 | /* Permissions of a file (by name). */ 5 | int 6 | _access(const char *file, int mode) 7 | { 8 | return syscall_errno (SYS_access, file, mode, 0, 0, 0, 0); 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/include/regdef.h: -------------------------------------------------------------------------------- 1 | /* regdef.h -- define register names. */ 2 | 3 | /* This is a standard include file for MIPS targets. Other target 4 | probably don't define it, and attempts to include this file will 5 | fail. */ 6 | 7 | #include 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/chown.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | #include 6 | 7 | int chown(const char *path, uid_t owner, gid_t group) 8 | { 9 | errno = ENOSYS; 10 | return -1; 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/sun4/sys/utime.h: -------------------------------------------------------------------------------- 1 | /* FIXME: From sys/sysvi386/sys */ 2 | #ifndef _SYS_UTIME_H 3 | # define _SYS_UTIME_H 4 | 5 | #include 6 | 7 | struct utimbuf { 8 | time_t actime; 9 | time_t modtime; 10 | }; 11 | 12 | #endif /* _SYS_UTIME_H */ 13 | 14 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/sleep.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | unsigned 5 | sleep(unsigned secs) { 6 | extern time_t time (time_t *); 7 | time_t t = time(0); 8 | 9 | _alarm(secs); 10 | _pause(); 11 | return (time(0) - t); 12 | } 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/w65/crt0.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | int p; 4 | extern int edata; 5 | extern int end; 6 | start() 7 | { 8 | int *s; 9 | asm ("lda #stack"); 10 | asm ("tcs"); 11 | for (s = &edata; s != &end; s++) 12 | *s = 0; 13 | 14 | main(); 15 | exit(0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysstat.c: -------------------------------------------------------------------------------- 1 | /* connector for stat */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | int 8 | stat (const char *file, 9 | struct stat *pstat) 10 | { 11 | return _stat_r (_REENT, file, pstat); 12 | } 13 | -------------------------------------------------------------------------------- /newlib/libc/time/ctime_r.c: -------------------------------------------------------------------------------- 1 | /* 2 | * ctime_r.c 3 | */ 4 | 5 | #include 6 | 7 | char * 8 | ctime_r (const time_t * tim_p, 9 | char * result) 10 | 11 | { 12 | struct tm tm; 13 | return asctime_r (localtime_r (tim_p, &tm), result); 14 | } 15 | -------------------------------------------------------------------------------- /newlib/libm/machine/riscv/configure.in: -------------------------------------------------------------------------------- 1 | 2 | AC_PREREQ(2.59) 3 | AC_INIT([newlib],[NEWLIB_VERSION]) 4 | AC_CONFIG_SRCDIR([Makefile.am]) 5 | 6 | AC_CONFIG_AUX_DIR(../../../..) 7 | 8 | NEWLIB_CONFIGURE(../../..) 9 | 10 | AC_CONFIG_FILES([Makefile]) 11 | AC_OUTPUT 12 | -------------------------------------------------------------------------------- /libgloss/m32r/utime.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "syscall.h" 4 | #include "eit.h" 5 | 6 | int 7 | _utime (path, times) 8 | const char *path; 9 | char *times; 10 | { 11 | return TRAP0 (SYS_utime, path, times, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mt/fstat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | fstat (int file, 9 | struct stat *st) 10 | { 11 | st->st_mode = S_IFCHR; 12 | st->st_blksize = 4096; 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /libgloss/mt/utime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | utime (path, times) 9 | const char *path; 10 | char *times; 11 | { 12 | return TRAP0 (SYS_utime, path, times, 0); 13 | } 14 | -------------------------------------------------------------------------------- /newlib/libc/include/fastmath.h: -------------------------------------------------------------------------------- 1 | #ifndef _FASTMATH_H_ 2 | #ifdef __cplusplus 3 | extern "C" { 4 | #endif 5 | #define _FASTMATH_H_ 6 | 7 | #include 8 | #include 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | #endif /* _FASTMATH_H_ */ 14 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/sys/utime.h: -------------------------------------------------------------------------------- 1 | /* FIXME: From sys/sysvi386/sys */ 2 | #ifndef _SYS_UTIME_H 3 | # define _SYS_UTIME_H 4 | 5 | #include 6 | 7 | struct utimbuf { 8 | time_t actime; 9 | time_t modtime; 10 | }; 11 | 12 | #endif /* _SYS_UTIME_H */ 13 | 14 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syswrite.c: -------------------------------------------------------------------------------- 1 | /* connector for write */ 2 | 3 | #include 4 | #include 5 | 6 | _READ_WRITE_RETURN_TYPE 7 | write (int fd, 8 | const void *buf, 9 | size_t cnt) 10 | { 11 | return _write_r (_REENT, fd, buf, cnt); 12 | } 13 | -------------------------------------------------------------------------------- /newlib/testsuite/config/default.exp: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved. 2 | # 3 | # Permission to use, copy, modify, and distribute this software 4 | # is freely granted, provided that this notice is preserved. 5 | # 6 | 7 | load_lib standard.exp 8 | -------------------------------------------------------------------------------- /winsup/cygwin/include/poll.h: -------------------------------------------------------------------------------- 1 | /* poll.h 2 | 3 | This file is part of Cygwin. 4 | 5 | This software is a copyrighted work licensed under the terms of the 6 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 7 | details. */ 8 | 9 | #include 10 | -------------------------------------------------------------------------------- /config/mh-pa: -------------------------------------------------------------------------------- 1 | # The ada virtual array implementation requires that indexing be disabled on 2 | # hosts such as hpux that use a segmented memory architecture. Both the c 3 | # and ada files need to be compiled with this option for correct operation. 4 | ADA_CFLAGS = -mdisable-indexing 5 | -------------------------------------------------------------------------------- /config/mt-nios2-elf: -------------------------------------------------------------------------------- 1 | # We build library code with -mno-gpopt so that it can be linked with 2 | # larger executables with small-data sections that exceed the 16-bit 3 | # offset range for GP-relative addressing. 4 | CFLAGS_FOR_TARGET += -mno-gpopt 5 | CXXFLAGS_FOR_TARGET += -mno-gpopt 6 | -------------------------------------------------------------------------------- /libgloss/iq2000/execve.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _execve (const char *path, char *const argv[], char *const envp[]) 9 | { 10 | return TRAP0 (SYS_execve, path, argv, envp); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/iq2000/fstat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _fstat (int file, 9 | struct stat *st) 10 | { 11 | st->st_mode = S_IFCHR; 12 | st->st_blksize = 4096; 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /libgloss/iq2000/utime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | utime (path, times) 9 | const char *path; 10 | char *times; 11 | { 12 | return TRAP0 (SYS_utime, path, times, 0); 13 | } 14 | -------------------------------------------------------------------------------- /libgloss/mn10200/execve.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _execve (const char *path, char *const argv[], char *const envp[]) 9 | { 10 | return TRAP0 (SYS_execve, path, argv, envp); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10200/fstat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _fstat (int file, 9 | struct stat *st) 10 | { 11 | st->st_mode = S_IFCHR; 12 | st->st_blksize = 4096; 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /libgloss/mn10200/utime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | utime (path, times) 9 | const char *path; 10 | char *times; 11 | { 12 | return TRAP0 (SYS_utime, path, times, 0); 13 | } 14 | -------------------------------------------------------------------------------- /libgloss/mn10300/execve.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _execve (const char *path, char *const argv[], char *const envp[]) 9 | { 10 | return TRAP0 (SYS_execve, path, argv, envp); 11 | } 12 | -------------------------------------------------------------------------------- /libgloss/mn10300/fstat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | _fstat (int file, 9 | struct stat *st) 10 | { 11 | st->st_mode = S_IFCHR; 12 | st->st_blksize = 4096; 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /libgloss/mn10300/utime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | int 8 | utime (path, times) 9 | const char *path; 10 | char *times; 11 | { 12 | return TRAP0 (SYS_utime, path, times, 0); 13 | } 14 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_exit.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "internal_syscall.h" 3 | 4 | /* Exit a program without cleaning up files. */ 5 | void 6 | _exit(int exit_status) 7 | { 8 | syscall_errno (SYS_exit, exit_status, 0, 0, 0, 0, 0); 9 | while (1); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/machine/spu/sys/syscall.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_SYSCALL_H 2 | #define _SYS_SYSCALL_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | int __send_to_ppe(unsigned int signalcode, unsigned int opcode, void *data); 7 | #ifdef __cplusplus 8 | } 9 | #endif 10 | #endif 11 | -------------------------------------------------------------------------------- /newlib/libc/machine/w65/smulhi3.S: -------------------------------------------------------------------------------- 1 | .global ___smulhi3 2 | ___smulhi3: 3 | 4 | 5 | 6 | lda #0 7 | mult1: ldx 4 | 5 | struct _reent * 6 | __getreent (void) 7 | { 8 | pthread_descr self = thread_self(); 9 | return THREAD_GETMEM(self, p_reentp); 10 | } 11 | 12 | -------------------------------------------------------------------------------- /libgloss/iq2000/gettime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | #include "sys/time.h" 6 | 7 | 8 | int 9 | _gettimeofday (struct timeval *tp, void *tzp) 10 | { 11 | return TRAP0 (SYS_gettimeofday, tp, tzp, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mt/gettime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | #include "sys/time.h" 6 | 7 | 8 | int 9 | _gettimeofday (struct timeval *tp, void *tzp) 10 | { 11 | return TRAP0 (SYS_gettimeofday, tp, tzp, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mt/lseek.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include 5 | #include "trap.h" 6 | 7 | 8 | off_t 9 | lseek (int file, 10 | off_t ptr, 11 | int dir) 12 | { 13 | return TRAP0 (SYS_lseek, file, ptr, dir); 14 | } 15 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_link.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "internal_syscall.h" 3 | 4 | /* Establish a new name for an existing file. */ 5 | int _link(const char *old_name, const char *new_name) 6 | { 7 | return syscall_errno (SYS_link, old_name, new_name, 0, 0, 0, 0); 8 | } 9 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_read.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "internal_syscall.h" 4 | 5 | /* Read from a file. */ 6 | ssize_t _read(int file, void *ptr, size_t len) 7 | { 8 | return syscall_errno (SYS_read, file, ptr, len, 0, 0, 0); 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/machine/h8500/mulhi3.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | short 4 | __mulhi3(short a, short b) 5 | { 6 | int r; 7 | 8 | r = 0; 9 | while (a) 10 | { 11 | if (a & 1) 12 | { 13 | r += b; 14 | a>>=1; 15 | b<<=1; 16 | } 17 | } 18 | return r; 19 | } 20 | 21 | 22 | -------------------------------------------------------------------------------- /newlib/libc/machine/w65/mulsi3.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | long 4 | __mulsi3(unsigned long a, unsigned long b) 5 | { 6 | long res = 0; 7 | while (a) 8 | { 9 | if (a & 1) 10 | { 11 | res += b; 12 | } 13 | b <<= 1; 14 | a >>=1; 15 | } 16 | return res; 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/m88kbug/sys/systraps.h: -------------------------------------------------------------------------------- 1 | /* trap numbers for mvme187bug */ 2 | 3 | #define INCHR 0x0000 4 | #define OUTCHR 0x0020 5 | #define RETURN 0x0063 6 | 7 | #define SYSTRAP(x) {asm("or r9,r0,%0" : : "i" (x) : "r9"); asm("tb0 0,r0,496");} 8 | 9 | /* end of systraps.h */ 10 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysexecve.c: -------------------------------------------------------------------------------- 1 | /* connector for execve */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | execve (const char *name, 8 | char *const argv[], 9 | char *const env[]) 10 | { 11 | return _execve_r (_REENT, name, argv, env); 12 | } 13 | -------------------------------------------------------------------------------- /winsup/cygwin/include/sys/statfs.h: -------------------------------------------------------------------------------- 1 | /* sys/statfs.h 2 | 3 | This file is part of Cygwin. 4 | 5 | This software is a copyrighted work licensed under the terms of the 6 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 7 | details. */ 8 | 9 | #include 10 | -------------------------------------------------------------------------------- /winsup/cygwin/math/isnan.c: -------------------------------------------------------------------------------- 1 | int 2 | isnan (double x) 3 | { 4 | return __builtin_isnan (x); 5 | } 6 | 7 | int 8 | isnanf (float x) 9 | { 10 | return __builtin_isnan (x); 11 | } 12 | 13 | int 14 | isnanl (long double x) 15 | { 16 | return __builtin_isnan (x); 17 | } 18 | 19 | -------------------------------------------------------------------------------- /libgloss/iq2000/lseek.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include 5 | #include "trap.h" 6 | 7 | 8 | off_t 9 | _lseek (int file, 10 | off_t ptr, 11 | int dir) 12 | { 13 | return TRAP0 (SYS_lseek, file, ptr, dir); 14 | } 15 | -------------------------------------------------------------------------------- /libgloss/mn10200/gettime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | #include "sys/time.h" 6 | 7 | 8 | int 9 | _gettimeofday (struct timeval *tp, void *tzp) 10 | { 11 | return TRAP0 (SYS_gettimeofday, tp, tzp, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10200/lseek.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include 5 | #include "trap.h" 6 | 7 | 8 | off_t 9 | _lseek (int file, 10 | off_t ptr, 11 | int dir) 12 | { 13 | return TRAP0 (SYS_lseek, file, ptr, dir); 14 | } 15 | -------------------------------------------------------------------------------- /libgloss/mn10300/gettime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | #include "sys/time.h" 6 | 7 | 8 | int 9 | _gettimeofday (struct timeval *tp, void *tzp) 10 | { 11 | return TRAP0 (SYS_gettimeofday, tp, tzp, 0); 12 | } 13 | -------------------------------------------------------------------------------- /libgloss/mn10300/lseek.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include 5 | #include "trap.h" 6 | 7 | 8 | off_t 9 | _lseek (int file, 10 | off_t ptr, 11 | int dir) 12 | { 13 | return TRAP0 (SYS_lseek, file, ptr, dir); 14 | } 15 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_fork.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "internal_syscall.h" 3 | 4 | /* Create a new process. Minimal implementation for a system without 5 | processes from newlib documentation. */ 6 | int _fork() 7 | { 8 | errno = EAGAIN; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_wait.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /* Wait for a child process. Minimal implementation for a system without 5 | processes just causes an error. */ 6 | int _wait(int *status) 7 | { 8 | errno = ECHILD; 9 | return -1; 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/include/machine/types.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Newlib targets may provide an own version of this file in their machine 3 | * directory to add custom user types for . 4 | */ 5 | #ifndef _SYS_TYPES_H 6 | #error "must be included via " 7 | #endif /* !_SYS_TYPES_H */ 8 | -------------------------------------------------------------------------------- /newlib/testsuite/include/check.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #define CHECK(a) { \ 5 | if (!(a)) \ 6 | { \ 7 | printf ("Failed " #a " in <%s> at line %d\n", __FILE__, __LINE__); \ 8 | fflush(stdout); \ 9 | abort(); \ 10 | } \ 11 | } 12 | -------------------------------------------------------------------------------- /include/MAINTAINERS: -------------------------------------------------------------------------------- 1 | See ../binutils/MAINTAINERS 2 | 3 | Copyright (C) 2012 Free Software Foundation, Inc. 4 | 5 | Copying and distribution of this file, with or without modification, 6 | are permitted in any medium without royalty provided the copyright 7 | notice and this notice are preserved. 8 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_lseek.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "internal_syscall.h" 4 | 5 | /* Set position in a file. */ 6 | off_t 7 | _lseek(int file, off_t ptr, int dir) 8 | { 9 | return syscall_errno (SYS_lseek, file, ptr, dir, 0, 0, 0); 10 | } 11 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_openat.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "internal_syscall.h" 3 | 4 | /* Open file relative to given directory. */ 5 | int _openat(int dirfd, const char *name, int flags, int mode) 6 | { 7 | return syscall_errno (SYS_openat, dirfd, name, flags, mode, 0, 0); 8 | } 9 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_write.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "internal_syscall.h" 4 | 5 | /* Write to a file. */ 6 | ssize_t 7 | _write(int file, const void *ptr, size_t len) 8 | { 9 | return syscall_errno (SYS_write, file, ptr, len, 0, 0, 0); 10 | } 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/sys/file.h: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/sys/file.h - BSD compatibility */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | #ifndef _SYS_FILE_H 7 | #define _SYS_FILE_H 8 | 9 | #include 10 | 11 | int flock(int fd,int operation); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/sys/resource.h: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/sys/resource.h - Resource usage */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | #ifndef _SYS_RESOURCE_H 7 | #define _SYS_RESOURCE_H 8 | 9 | #include 10 | #include 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/systat.c: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/systat.c - System calls related to overall system state */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | #include 7 | #include 8 | 9 | 10 | _syscall1(int,uname,struct utsname *,name) 11 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysisatty.c: -------------------------------------------------------------------------------- 1 | /* connector for isatty */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | isatty (int fd) 8 | { 9 | #ifdef REENTRANT_SYSCALLS_PROVIDED 10 | return _isatty_r (_REENT, fd); 11 | #else 12 | return _isatty (fd); 13 | #endif 14 | } 15 | -------------------------------------------------------------------------------- /winsup/cygwin/include/sys/termio.h: -------------------------------------------------------------------------------- 1 | /* sys/termio.h 2 | 3 | This file is part of Cygwin. 4 | 5 | This software is a copyrighted work licensed under the terms of the 6 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 7 | details. */ 8 | 9 | #include 10 | 11 | -------------------------------------------------------------------------------- /config/mh-pa-hpux10: -------------------------------------------------------------------------------- 1 | # The ada virtual array implementation requires that indexing be disabled on 2 | # hosts such as hpux that use a segmented memory architecture. Both the c 3 | # and ada files need to be compiled with this option for correct operation. 4 | ADA_CFLAGS = -mdisable-indexing -D_X_HPUX10 5 | -------------------------------------------------------------------------------- /libgloss/i960/mon-write.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | write (int fd, const char *buf, int sz) 5 | { 6 | int nwritten; 7 | int r = _sys_write (fd, buf, sz, &nwritten); 8 | if (r != 0) 9 | { 10 | errno = r; 11 | return -1; 12 | } 13 | return nwritten; 14 | } 15 | -------------------------------------------------------------------------------- /libgloss/mn10300/time.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "trap.h" 5 | 6 | 7 | time_t 8 | time (time_t *tloc) 9 | { 10 | time_t res; 11 | res = TRAP0 (SYS_time, 0, 0, 0); 12 | if (tloc) 13 | *tloc = res; 14 | return res; 15 | } 16 | -------------------------------------------------------------------------------- /libgloss/riscv/sys_kill.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "internal_syscall.h" 3 | 4 | /* Send a signal. Minimal implementation for a system without processes 5 | just causes an error. */ 6 | int 7 | _kill(int pid, int sig) 8 | { 9 | errno = EINVAL; 10 | return -1; 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/mbsinit.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | int 8 | mbsinit(const mbstate_t *ps) 9 | { 10 | if (ps == NULL || ps->__count == 0) 11 | return 1; 12 | else 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/ctermid.c: -------------------------------------------------------------------------------- 1 | /* ctermid */ 2 | 3 | #include 4 | #include 5 | 6 | static char devname[] = "/dev/tty"; 7 | 8 | char * 9 | ctermid (char *buf) 10 | { 11 | if (buf == NULL) 12 | return devname; 13 | 14 | return strcpy (buf, "/dev/tty"); 15 | } 16 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/machine/i386/sigstack.h: -------------------------------------------------------------------------------- 1 | #ifndef _SIGSTACK_H 2 | 3 | #define _SIGSTACK_H 4 | 5 | #include 6 | 7 | typedef struct sigaltstack 8 | { 9 | void *ss_sp; 10 | int ss_flags; 11 | size_t ss_size; 12 | } stack_t; 13 | 14 | #endif /* _SIGSTACK_H */ 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/net/etherent.h: -------------------------------------------------------------------------------- 1 | /* Because the `ethers' lookup does not fit so well in the scheme we 2 | define a dummy struct here which helps us to use the available 3 | functions. */ 4 | struct etherent 5 | { 6 | const char *e_name; 7 | struct ether_addr e_addr; 8 | }; 9 | 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/sys/ioctl.h: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/sys/ioctl.h - ioctl prototype */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | #ifndef _SYS_IOCTL_H 7 | #define _SYS_IOCTL_H 8 | 9 | #include 10 | 11 | int ioctl(int fd,int request,...); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /newlib/libc/sys/rdos/readlink.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include <_ansi.h> 3 | #include <_syslist.h> 4 | #include 5 | #include 6 | 7 | int readlink(const char *__restrict path, char *__restrict buf, size_t bufsize) 8 | { 9 | errno = ENOSYS; 10 | return -1; 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/creat.c: -------------------------------------------------------------------------------- 1 | /* creat() "system call" */ 2 | 3 | /* This is needed by f2c and therefore the SPEC benchmarks. */ 4 | 5 | #include 6 | 7 | int 8 | creat (const char *path, mode_t mode) 9 | { 10 | return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); 11 | } 12 | -------------------------------------------------------------------------------- /winsup/cygwin/release/2.11.1: -------------------------------------------------------------------------------- 1 | What's new: 2 | ----------- 3 | 4 | 5 | What changed: 6 | ------------- 7 | 8 | 9 | Bug Fixes 10 | --------- 11 | 12 | - Fix ".." handling in Win32 path normalization, introduced in 2.11.0. 13 | Addresses: https://cygwin.com/ml/cygwin/2018-09/msg00000.html 14 | -------------------------------------------------------------------------------- /config/bootstrap-lto-noplugin.mk: -------------------------------------------------------------------------------- 1 | # This option enables LTO for stage2 and stage3 on 2 | # hosts without linker plugin support. 3 | 4 | STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects 5 | STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects 6 | STAGEprofile_CFLAGS += -fno-lto 7 | -------------------------------------------------------------------------------- /newlib/libc/posix/creat.c: -------------------------------------------------------------------------------- 1 | /* creat() "system call" */ 2 | 3 | /* This is needed by f2c and therefore the SPEC benchmarks. */ 4 | 5 | #include 6 | 7 | int 8 | creat (const char *path, 9 | mode_t mode) 10 | { 11 | return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); 12 | } 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/getpid.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) 11 | 12 | _getpid (n) 13 | { 14 | return 1; 15 | } 16 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syssbrk.c: -------------------------------------------------------------------------------- 1 | /* connector for sbrk */ 2 | 3 | #include 4 | #include 5 | 6 | extern void *_sbrk_r (struct _reent *, ptrdiff_t); 7 | extern void *_sbrk (ptrdiff_t); 8 | 9 | void * 10 | sbrk (ptrdiff_t incr) 11 | { 12 | return _sbrk_r (_REENT, incr); 13 | } 14 | -------------------------------------------------------------------------------- /winsup/cygwin/release/1.7.13: -------------------------------------------------------------------------------- 1 | What's new: 2 | ----------- 3 | 4 | - mkpasswd and mkgroup now try to print an entry for the TrustedInstaller 5 | account existing since Windows Vista/Server 2008. 6 | 7 | - Terminal typeahead when switching from canonical to non-canonical mode 8 | is now properly flushed. 9 | -------------------------------------------------------------------------------- /libgloss/sparc/libsys/_exit.S: -------------------------------------------------------------------------------- 1 | ! _exit() system call 2 | 3 | #include "syscallasm.h" 4 | 5 | TEXT_SECTION 6 | ALIGN (4) 7 | GLOBAL (ASM_SYMBOL (_exit)) 8 | ASM_SYMBOL (_exit): 9 | mov SYS_exit,%g1 10 | ta SYSCALL_TRAP 11 | 12 | ! If that returns (yikes!), try an illegal insn ... 13 | 14 | WORD (0) -------------------------------------------------------------------------------- /newlib/libc/machine/powerpc/vec_free.c: -------------------------------------------------------------------------------- 1 | /* vec_free.c - a wrapper for _free_r */ 2 | #include <_ansi.h> 3 | #include 4 | #include 5 | 6 | #ifndef _REENT_ONLY 7 | 8 | void 9 | vec_free (void *aptr) 10 | { 11 | _free_r (_REENT, aptr); 12 | } 13 | 14 | #endif /* !_REENT_ONLY */ 15 | --------------------------------------------------------------------------------