├── .cvsignore ├── COPYING ├── COPYING.LIB ├── CYGWIN_LICENSE ├── ChangeLog ├── ChangeLog.MSYS ├── MAINTAINERS ├── MSYS_AGREEMENT ├── MSYS_CONTRIBUTIONS ├── MSYS_LICENSE ├── MSYS_MISSION ├── MSYS_VS_CYGWIN ├── Makefile.in ├── README ├── README-maintainer-mode ├── config-ml.in ├── config.guess ├── config.if ├── config.sub ├── config ├── ChangeLog ├── acinclude.m4 ├── mh-a68bsd ├── mh-aix386 ├── mh-apollo68 ├── mh-armpic ├── mh-cxux ├── mh-cygwin ├── mh-decstation ├── mh-delta88 ├── mh-dgux ├── mh-dgux386 ├── mh-djgpp ├── mh-elfalphapic ├── mh-hp300 ├── mh-hpux ├── mh-hpux8 ├── mh-i370pic ├── mh-ia64pic ├── mh-interix ├── mh-irix4 ├── mh-irix5 ├── mh-irix6 ├── mh-lynxos ├── mh-lynxrs6k ├── mh-m68kpic ├── mh-mingw32 ├── mh-ncr3000 ├── mh-ncrsvr43 ├── mh-necv4 ├── mh-openedition ├── mh-papic ├── mh-ppcpic ├── mh-riscos ├── mh-s390pic ├── mh-sco ├── mh-solaris ├── mh-sparcpic ├── mh-sun3 ├── mh-sysv ├── mh-sysv4 ├── mh-sysv5 ├── mh-vaxult2 ├── mh-x86pic ├── mpw-mh-mpw ├── mpw │ ├── ChangeLog │ ├── MoveIfChange │ ├── README │ ├── forward-include │ ├── g-mpw-make.sed │ ├── mpw-touch │ ├── mpw-true │ ├── null-command │ ├── open-brace │ ├── tr-7to8-src │ └── true ├── mt-aix43 ├── mt-armpic ├── mt-d30v ├── mt-elfalphapic ├── mt-i370pic ├── mt-ia64pic ├── mt-linux ├── mt-m68kpic ├── mt-netware ├── mt-ospace ├── mt-papic ├── mt-ppcpic ├── mt-s390pic ├── mt-sparcpic ├── mt-v810 ├── mt-wince └── mt-x86pic ├── configure ├── configure.in ├── etc ├── ChangeLog ├── Makefile.in ├── add-log.el ├── add-log.vi ├── configbuild.ein ├── configbuild.fig ├── configbuild.jin ├── configbuild.tin ├── configdev.ein ├── configdev.fig ├── configdev.jin ├── configdev.tin ├── configure ├── configure.in ├── configure.texi ├── make-stds.texi ├── standards.texi └── texi2pod.pl ├── gettext.m4 ├── include ├── COPYING ├── ChangeLog ├── ChangeLog.MSYS ├── MAINTAINERS ├── alloca-conf.h ├── ansidecl.h ├── aout │ ├── ChangeLog │ ├── adobe.h │ ├── aout64.h │ ├── ar.h │ ├── dynix3.h │ ├── encap.h │ ├── host.h │ ├── hp.h │ ├── hp300hpux.h │ ├── hppa.h │ ├── ranlib.h │ ├── reloc.h │ ├── stab.def │ ├── stab_gnu.h │ └── sun4.h ├── bfdlink.h ├── bin-bugs.h ├── bout.h ├── callback.h ├── coff │ ├── ChangeLog │ ├── a29k.h │ ├── alpha.h │ ├── apollo.h │ ├── arm.h │ ├── aux-coff.h │ ├── ecoff.h │ ├── external.h │ ├── go32exe.h │ ├── h8300.h │ ├── h8500.h │ ├── i386.h │ ├── i860.h │ ├── i960.h │ ├── ia64.h │ ├── internal.h │ ├── m68k.h │ ├── m88k.h │ ├── mcore.h │ ├── mips.h │ ├── mipspe.h │ ├── pe.h │ ├── powerpc.h │ ├── rs6000.h │ ├── rs6k64.h │ ├── sh.h │ ├── sparc.h │ ├── sym.h │ ├── symconst.h │ ├── ti.h │ ├── tic30.h │ ├── tic54x.h │ ├── tic80.h │ ├── w65.h │ ├── we32k.h │ ├── xcoff.h │ └── z8k.h ├── demangle.h ├── dis-asm.h ├── dyn-string.h ├── elf │ ├── ChangeLog │ ├── alpha.h │ ├── arc.h │ ├── arm.h │ ├── avr.h │ ├── common.h │ ├── cris.h │ ├── d10v.h │ ├── d30v.h │ ├── dwarf.h │ ├── dwarf2.h │ ├── external.h │ ├── fr30.h │ ├── hppa.h │ ├── i370.h │ ├── i386.h │ ├── i860.h │ ├── i960.h │ ├── ia64.h │ ├── internal.h │ ├── m32r.h │ ├── m68hc11.h │ ├── m68k.h │ ├── mcore.h │ ├── mips.h │ ├── mn10200.h │ ├── mn10300.h │ ├── openrisc.h │ ├── pj.h │ ├── ppc.h │ ├── reloc-macros.h │ ├── s390.h │ ├── sh.h │ ├── sparc.h │ ├── v850.h │ └── x86-64.h ├── fibheap.h ├── filenames.h ├── floatformat.h ├── fnmatch.h ├── fopen-bin.h ├── fopen-same.h ├── fopen-vms.h ├── gdbm.h ├── getopt.h ├── hashtab.h ├── hp-symtab.h ├── ieee.h ├── libiberty.h ├── md5.h ├── mpw │ ├── ChangeLog │ ├── README │ ├── dir.h │ ├── dirent.h │ ├── fcntl.h │ ├── grp.h │ ├── mpw.h │ ├── pwd.h │ ├── spin.h │ ├── stat.h │ ├── sys │ │ ├── file.h │ │ ├── param.h │ │ ├── resource.h │ │ ├── stat.h │ │ ├── time.h │ │ └── types.h │ ├── utime.h │ └── varargs.h ├── nlm │ ├── ChangeLog │ ├── alpha-ext.h │ ├── common.h │ ├── external.h │ ├── i386-ext.h │ ├── internal.h │ ├── ppc-ext.h │ └── sparc32-ext.h ├── oasys.h ├── objalloc.h ├── obstack.h ├── opcode │ ├── ChangeLog │ ├── a29k.h │ ├── alpha.h │ ├── arc.h │ ├── arm.h │ ├── avr.h │ ├── cgen.h │ ├── convex.h │ ├── cris.h │ ├── d10v.h │ ├── d30v.h │ ├── h8300.h │ ├── hppa.h │ ├── i370.h │ ├── i386.h │ ├── i860.h │ ├── i960.h │ ├── ia64.h │ ├── m68hc11.h │ ├── m68k.h │ ├── m88k.h │ ├── mips.h │ ├── mn10200.h │ ├── mn10300.h │ ├── np1.h │ ├── ns32k.h │ ├── pdp11.h │ ├── pj.h │ ├── pn.h │ ├── ppc.h │ ├── pyr.h │ ├── s390.h │ ├── sparc.h │ ├── tahoe.h │ ├── tic30.h │ ├── tic54x.h │ ├── tic80.h │ ├── v850.h │ └── vax.h ├── os9k.h ├── partition.h ├── progress.h ├── regs │ └── ChangeLog ├── remote-sim.h ├── safe-ctype.h ├── sim-d10v.h ├── sort.h ├── splay-tree.h ├── symcat.h ├── ternary.h ├── xregex.h └── xregex2.h ├── install-sh ├── libiberty ├── COPYING.LIB ├── ChangeLog ├── ChangeLog.MSYS ├── Makefile.in ├── README ├── aclocal.m4 ├── alloca.c ├── argv.c ├── asprintf.c ├── atexit.c ├── basename.c ├── bcmp.c ├── bcopy.c ├── bsearch.c ├── bzero.c ├── calloc.c ├── choose-temp.c ├── clock.c ├── concat.c ├── config.h-vms ├── config.in ├── config.table ├── config │ ├── mh-aix │ ├── mh-cxux7 │ ├── mh-fbsd21 │ ├── mh-openedition │ └── mh-windows ├── configure ├── configure.in ├── copysign.c ├── cp-demangle.c ├── cplus-dem.c ├── dyn-string.c ├── fdmatch.c ├── ffs.c ├── fibheap.c ├── floatformat.c ├── fnmatch.c ├── getcwd.c ├── getopt.c ├── getopt1.c ├── getpagesize.c ├── getpwd.c ├── getruntime.c ├── hashtab.c ├── hex.c ├── index.c ├── insque.c ├── lbasename.c ├── make-temp-file.c ├── makefile.vms ├── md5.c ├── memchr.c ├── memcmp.c ├── memcpy.c ├── memmove.c ├── memset.c ├── mkstemps.c ├── mpw-config.in ├── mpw-make.sed ├── mpw.c ├── msdos.c ├── objalloc.c ├── obstack.c ├── partition.c ├── pexecute.c ├── putenv.c ├── random.c ├── regex.c ├── rename.c ├── rindex.c ├── safe-ctype.c ├── setenv.c ├── sigsetmask.c ├── sort.c ├── spaces.c ├── splay-tree.c ├── strcasecmp.c ├── strchr.c ├── strdup.c ├── strerror.c ├── strncasecmp.c ├── strncmp.c ├── strrchr.c ├── strsignal.c ├── strstr.c ├── strtod.c ├── strtol.c ├── strtoul.c ├── ternary.c ├── testsuite │ ├── Makefile.in │ ├── demangle-expected │ └── regress-demangle ├── tmpnam.c ├── vasprintf.c ├── vfork.c ├── vfprintf.c ├── vmsbuild.com ├── vprintf.c ├── vsprintf.c ├── waitpid.c ├── xatexit.c ├── xexit.c ├── xmalloc.c ├── xmemdup.c ├── xstrdup.c └── xstrerror.c ├── libtool.m4 ├── ltcf-c.sh ├── ltcf-cxx.sh ├── ltcf-gcj.sh ├── ltconfig ├── ltmain.sh ├── makefile.vms ├── missing ├── mkdep ├── mkinstalldirs ├── move-if-change ├── mpw-README ├── mpw-build.in ├── mpw-config.in ├── mpw-configure ├── mpw-install ├── newlib ├── ChangeLog ├── ChangeLog.MSYS ├── MAINTAINERS ├── Makefile.am ├── Makefile.in ├── NEWS ├── README ├── acinclude.m4 ├── aclocal.m4 ├── configure ├── configure.host ├── configure.in ├── doc │ ├── Makefile.am │ ├── Makefile.in │ ├── aclocal.m4 │ ├── ansidecl.h │ ├── configure │ ├── configure.in │ ├── doc.str │ └── makedoc.c ├── libc │ ├── Makefile.am │ ├── Makefile.in │ ├── aclocal.m4 │ ├── configure │ ├── configure.in │ ├── ctype │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── _tolower.c │ │ ├── _toupper.c │ │ ├── ctype.tex │ │ ├── ctype_.c │ │ ├── isalnum.c │ │ ├── isalpha.c │ │ ├── isascii.c │ │ ├── iscntrl.c │ │ ├── isdigit.c │ │ ├── islower.c │ │ ├── isprint.c │ │ ├── ispunct.c │ │ ├── isspace.c │ │ ├── isupper.c │ │ ├── isxdigit.c │ │ ├── toascii.c │ │ ├── tolower.c │ │ └── toupper.c │ ├── errno │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ └── errno.c │ ├── include │ │ ├── _ansi.h │ │ ├── _syslist.h │ │ ├── ar.h │ │ ├── assert.h │ │ ├── ctype.h │ │ ├── dirent.h │ │ ├── errno.h │ │ ├── fastmath.h │ │ ├── fcntl.h │ │ ├── grp.h │ │ ├── ieeefp.h │ │ ├── locale.h │ │ ├── machine │ │ │ ├── ansi.h │ │ │ ├── fastmath.h │ │ │ ├── ieeefp.h │ │ │ ├── setjmp-dj.h │ │ │ ├── setjmp.h │ │ │ ├── time.h │ │ │ └── types.h │ │ ├── malloc.h │ │ ├── math.h │ │ ├── paths.h │ │ ├── process.h │ │ ├── pthread.h │ │ ├── pwd.h │ │ ├── reent.h │ │ ├── regdef.h │ │ ├── setjmp.h │ │ ├── signal.h │ │ ├── stdio.h │ │ ├── stdlib.h │ │ ├── string.h │ │ ├── sys │ │ │ ├── _types.h │ │ │ ├── config.h │ │ │ ├── dirent.h │ │ │ ├── errno.h │ │ │ ├── fcntl.h │ │ │ ├── features.h │ │ │ ├── file.h │ │ │ ├── param.h │ │ │ ├── reent.h │ │ │ ├── resource.h │ │ │ ├── sched.h │ │ │ ├── signal.h │ │ │ ├── stat-dj.h │ │ │ ├── stat.h │ │ │ ├── time.h │ │ │ ├── timeb.h │ │ │ ├── times.h │ │ │ ├── types.h │ │ │ ├── unistd.h │ │ │ ├── utime.h │ │ │ └── wait.h │ │ ├── termios.h │ │ ├── time.h │ │ ├── unctrl.h │ │ ├── unistd.h │ │ ├── utime.h │ │ └── utmp.h │ ├── libc.texinfo │ ├── locale │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── locale.c │ │ └── locale.tex │ ├── machine │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── a29k │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ └── configure.in │ │ ├── aclocal.m4 │ │ ├── arm │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ └── configure.in │ │ ├── configure │ │ ├── configure.in │ │ ├── d10v │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ │ ├── d30v │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ │ ├── fr30 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ │ ├── h8300 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── defines.h │ │ │ ├── memcpy.S │ │ │ ├── memset.S │ │ │ ├── reg_memcpy.S │ │ │ ├── reg_memset.S │ │ │ ├── setjmp.S │ │ │ └── strcmp.S │ │ ├── h8500 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── cmpsi.c │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── divhi3.S │ │ │ ├── divsi3.c │ │ │ ├── mulhi3.c │ │ │ ├── mulsi3.c │ │ │ ├── negsi2.c │ │ │ ├── psi.S │ │ │ ├── setjmp.S │ │ │ └── shifts.c │ │ ├── hppa │ │ │ ├── DEFS.h │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── memchr.S │ │ │ ├── memcmp.S │ │ │ ├── memcpy.S │ │ │ ├── memset.S │ │ │ ├── pcc_prefix.s │ │ │ ├── setjmp.S │ │ │ ├── strcat.S │ │ │ ├── strcmp.S │ │ │ ├── strcpy.S │ │ │ ├── strlen.S │ │ │ ├── strncat.S │ │ │ ├── strncmp.S │ │ │ └── strncpy.S │ │ ├── i386 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── f_atan2.S │ │ │ ├── f_atan2f.S │ │ │ ├── f_exp.c │ │ │ ├── f_expf.c │ │ │ ├── f_frexp.S │ │ │ ├── f_frexpf.S │ │ │ ├── f_ldexp.S │ │ │ ├── f_ldexpf.S │ │ │ ├── f_log.S │ │ │ ├── f_log10.S │ │ │ ├── f_log10f.S │ │ │ ├── f_logf.S │ │ │ ├── f_math.h │ │ │ ├── f_pow.c │ │ │ ├── f_powf.c │ │ │ ├── f_tan.S │ │ │ ├── f_tanf.S │ │ │ ├── i386mach.h │ │ │ ├── memchr.S │ │ │ ├── memcmp.S │ │ │ ├── memcpy.S │ │ │ ├── memmove.S │ │ │ ├── memset.S │ │ │ ├── setjmp.S │ │ │ ├── strchr.S │ │ │ └── strlen.S │ │ ├── i960 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── memccpy.S │ │ │ ├── memccpy_ca.S │ │ │ ├── memchr.S │ │ │ ├── memchr_ca.S │ │ │ ├── memcmp.S │ │ │ ├── memcmp_ca.S │ │ │ ├── memcpy.S │ │ │ ├── memcpy_ca.S │ │ │ ├── memset.S │ │ │ ├── setjmp.S │ │ │ ├── strchr.S │ │ │ ├── strchr_ca.S │ │ │ ├── strcmp.S │ │ │ ├── strcmp_ca.S │ │ │ ├── strcpy.S │ │ │ ├── strcpy_ca.S │ │ │ ├── strcspn.S │ │ │ ├── strdup.S │ │ │ ├── strlen.S │ │ │ ├── strlen_ca.S │ │ │ ├── strncat.S │ │ │ ├── strncat_ca.S │ │ │ ├── strncmp.S │ │ │ ├── strncmp_ca.S │ │ │ ├── strncpy.S │ │ │ ├── strncpy_ca.S │ │ │ ├── strpbrk.S │ │ │ └── strrchr.S │ │ ├── m32r │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ │ ├── m68k │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── setjmp.S │ │ │ ├── strcpy.c │ │ │ └── strlen.c │ │ ├── m88k │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ │ ├── mips │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── machine │ │ │ │ └── regdef.h │ │ │ └── setjmp.S │ │ ├── mn10200 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ │ ├── mn10300 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── memchr.S │ │ │ ├── memcmp.S │ │ │ ├── memcpy.S │ │ │ ├── memset.S │ │ │ ├── setjmp.S │ │ │ ├── strchr.S │ │ │ ├── strcmp.S │ │ │ ├── strcpy.S │ │ │ └── strlen.S │ │ ├── necv70 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── fastmath.s │ │ │ ├── machine │ │ │ │ └── registers.h │ │ │ ├── necv70.tex │ │ │ └── setjmp.s │ │ ├── powerpc │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ │ ├── sh │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── asm.h │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── memcpy.S │ │ │ ├── memset.S │ │ │ ├── setjmp.S │ │ │ ├── strcmp.S │ │ │ └── strcpy.S │ │ ├── sparc │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── machine │ │ │ │ └── sparclet.h │ │ │ ├── scan.c │ │ │ ├── setjmp.S │ │ │ └── shuffle.c │ │ ├── tic80 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ │ ├── v850 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ │ ├── w65 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── cmpsi.c │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── divsi3.c │ │ │ ├── lshrhi.s │ │ │ ├── mulsi3.c │ │ │ ├── sdivhi3.s │ │ │ ├── smulhi3.s │ │ │ ├── udivhi3.s │ │ │ └── umodhi3.s │ │ ├── xscale │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── memchr.c │ │ │ ├── memcmp.c │ │ │ ├── memcpy.c │ │ │ ├── memmove.c │ │ │ ├── memset.c │ │ │ ├── strchr.c │ │ │ ├── strcmp.c │ │ │ ├── strcpy.c │ │ │ ├── strlen.c │ │ │ └── xscale.h │ │ └── z8k │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── args.h │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── setjmp.S │ ├── misc │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── dprintf.c │ │ ├── ffs.c │ │ ├── misc.tex │ │ └── unctrl.c │ ├── posix │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── closedir.c │ │ ├── creat.c │ │ ├── execl.c │ │ ├── execle.c │ │ ├── execlp.c │ │ ├── execv.c │ │ ├── execve.c │ │ ├── execvp.c │ │ ├── isatty.c │ │ ├── opendir.c │ │ ├── popen.c │ │ ├── readdir.c │ │ ├── rewinddir.c │ │ ├── scandir.c │ │ ├── seekdir.c │ │ └── telldir.c │ ├── reent │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── closer.c │ │ ├── execr.c │ │ ├── fstatr.c │ │ ├── impure.c │ │ ├── linkr.c │ │ ├── lseekr.c │ │ ├── openr.c │ │ ├── readr.c │ │ ├── reent.c │ │ ├── reent.tex │ │ ├── sbrkr.c │ │ ├── signalr.c │ │ ├── signgam.c │ │ ├── statr.c │ │ ├── timer.c │ │ ├── unlinkr.c │ │ └── writer.c │ ├── saber │ ├── signal │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── raise.c │ │ ├── signal.c │ │ └── signal.tex │ ├── stdio │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── clearerr.c │ │ ├── fclose.c │ │ ├── fdopen.c │ │ ├── feof.c │ │ ├── ferror.c │ │ ├── fflush.c │ │ ├── fgetc.c │ │ ├── fgetpos.c │ │ ├── fgets.c │ │ ├── fileno.c │ │ ├── findfp.c │ │ ├── fiprintf.c │ │ ├── flags.c │ │ ├── floatio.h │ │ ├── fopen.c │ │ ├── fprintf.c │ │ ├── fputc.c │ │ ├── fputs.c │ │ ├── fread.c │ │ ├── freopen.c │ │ ├── fscanf.c │ │ ├── fseek.c │ │ ├── fsetpos.c │ │ ├── ftell.c │ │ ├── fvwrite.c │ │ ├── fvwrite.h │ │ ├── fwalk.c │ │ ├── fwrite.c │ │ ├── getc.c │ │ ├── getchar.c │ │ ├── gets.c │ │ ├── getw.c │ │ ├── iprintf.c │ │ ├── local.h │ │ ├── makebuf.c │ │ ├── mktemp.c │ │ ├── perror.c │ │ ├── printf.c │ │ ├── putc.c │ │ ├── putchar.c │ │ ├── puts.c │ │ ├── putw.c │ │ ├── refill.c │ │ ├── remove.c │ │ ├── rename.c │ │ ├── rewind.c │ │ ├── rget.c │ │ ├── scanf.c │ │ ├── setbuf.c │ │ ├── setvbuf.c │ │ ├── siprintf.c │ │ ├── snprintf.c │ │ ├── sprintf.c │ │ ├── sscanf.c │ │ ├── stdio.c │ │ ├── stdio.tex │ │ ├── tmpfile.c │ │ ├── tmpnam.c │ │ ├── ungetc.c │ │ ├── vfieeefp.h │ │ ├── vfprintf.c │ │ ├── vfscanf.c │ │ ├── vprintf.c │ │ ├── vscanf.c │ │ ├── vsnprintf.c │ │ ├── vsprintf.c │ │ ├── vsscanf.c │ │ ├── wbuf.c │ │ └── wsetup.c │ ├── stdlib │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── __adjust.c │ │ ├── __exp10.c │ │ ├── __ten_mu.c │ │ ├── abort.c │ │ ├── abs.c │ │ ├── assert.c │ │ ├── atexit.c │ │ ├── atexit.h │ │ ├── atof.c │ │ ├── atoff.c │ │ ├── atoi.c │ │ ├── atol.c │ │ ├── bsearch.c │ │ ├── calloc.c │ │ ├── div.c │ │ ├── drand48.c │ │ ├── dtoa.c │ │ ├── dtoastub.c │ │ ├── ecvtbuf.c │ │ ├── efgcvt.c │ │ ├── environ.c │ │ ├── envlock.c │ │ ├── envlock.h │ │ ├── eprintf.c │ │ ├── erand48.c │ │ ├── exit.c │ │ ├── getenv.c │ │ ├── getenv_r.c │ │ ├── getopt.c │ │ ├── jrand48.c │ │ ├── labs.c │ │ ├── lcong48.c │ │ ├── ldiv.c │ │ ├── ldtoa.c │ │ ├── local.h │ │ ├── lrand48.c │ │ ├── malign.c │ │ ├── malloc.c │ │ ├── mallocr.c │ │ ├── mbctype.h │ │ ├── mblen.c │ │ ├── mblen_r.c │ │ ├── mbstowcs.c │ │ ├── mbstowcs_r.c │ │ ├── mbtowc.c │ │ ├── mbtowc_r.c │ │ ├── mlock.c │ │ ├── mprec.c │ │ ├── mprec.h │ │ ├── mrand48.c │ │ ├── msize.c │ │ ├── mstats.c │ │ ├── mtrim.c │ │ ├── nrand48.c │ │ ├── putenv.c │ │ ├── putenv_r.c │ │ ├── qsort.c │ │ ├── rand.c │ │ ├── rand48.c │ │ ├── rand48.h │ │ ├── rand_r.c │ │ ├── realloc.c │ │ ├── seed48.c │ │ ├── setenv.c │ │ ├── setenv_r.c │ │ ├── srand48.c │ │ ├── std.h │ │ ├── stdlib.tex │ │ ├── strdup.c │ │ ├── strdup_r.c │ │ ├── strtod.c │ │ ├── strtol.c │ │ ├── strtoul.c │ │ ├── system.c │ │ ├── valloc.c │ │ ├── wcstombs.c │ │ ├── wcstombs_r.c │ │ ├── wctomb.c │ │ └── wctomb_r.c │ ├── string │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── bcmp.c │ │ ├── bcopy.c │ │ ├── bitblock.h │ │ ├── bzero.c │ │ ├── index.c │ │ ├── memchr.c │ │ ├── memcmp.c │ │ ├── memcpy.c │ │ ├── memmove.c │ │ ├── memset.c │ │ ├── rindex.c │ │ ├── strcasecmp.c │ │ ├── strcat.c │ │ ├── strchr.c │ │ ├── strcmp.c │ │ ├── strcoll.c │ │ ├── strcpy.c │ │ ├── strcspn.c │ │ ├── strerror.c │ │ ├── strings.tex │ │ ├── strlen.c │ │ ├── strlwr.c │ │ ├── strncasecmp.c │ │ ├── strncat.c │ │ ├── strncmp.c │ │ ├── strncpy.c │ │ ├── strpbrk.c │ │ ├── strrchr.c │ │ ├── strspn.c │ │ ├── strstr.c │ │ ├── strtok.c │ │ ├── strtok_r.c │ │ ├── strupr.c │ │ ├── strxfrm.c │ │ ├── swab.c │ │ └── u_strerr.c │ ├── sys.tex │ ├── sys │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── a29khif │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── _alloc.s │ │ │ ├── _close.s │ │ │ ├── _cycles.s │ │ │ ├── _exit.s │ │ │ ├── _fstat.s │ │ │ ├── _getpsiz.s │ │ │ ├── _gettz.s │ │ │ ├── _ioctl.s │ │ │ ├── _iostat.s │ │ │ ├── _iowait.s │ │ │ ├── _isatty.s │ │ │ ├── _lseek.s │ │ │ ├── _open.s │ │ │ ├── _query.s │ │ │ ├── _read.s │ │ │ ├── _sbrk.s │ │ │ ├── _setim.s │ │ │ ├── _settrap.s │ │ │ ├── _setvec.s │ │ │ ├── _tmpnam.s │ │ │ ├── _write.s │ │ │ ├── aclocal.m4 │ │ │ ├── alloc.s │ │ │ ├── clock.s │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.s │ │ │ ├── getargs.s │ │ │ ├── getenv.s │ │ │ ├── getpid.c │ │ │ ├── kill.c │ │ │ ├── read.s │ │ │ ├── remove.s │ │ │ ├── rename.s │ │ │ ├── signal.s │ │ │ ├── stubs.s │ │ │ ├── sys │ │ │ │ ├── cpudef.h │ │ │ │ ├── fpsymbol.h │ │ │ │ ├── intrinsi.h │ │ │ │ ├── macros.h │ │ │ │ ├── proreg.h │ │ │ │ ├── romdcl.h │ │ │ │ ├── smartmac.h │ │ │ │ └── sysmac.h │ │ │ ├── systime.s │ │ │ └── vec.s │ │ ├── aclocal.m4 │ │ ├── arm │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.S │ │ │ ├── libcfunc.c │ │ │ ├── setjmp.S │ │ │ ├── swi.h │ │ │ ├── sys │ │ │ │ └── param.h │ │ │ ├── syscalls.c │ │ │ └── trap.S │ │ ├── configure │ │ ├── configure.in │ │ ├── cygwin │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── include │ │ │ │ └── unistd.h │ │ │ └── sys │ │ │ │ ├── dirent.h │ │ │ │ ├── param.h │ │ │ │ ├── utime.h │ │ │ │ └── utmp.h │ │ ├── d10v │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── creat.c │ │ │ ├── crt0.S │ │ │ ├── sys │ │ │ │ └── syscall.h │ │ │ ├── syscalls.c │ │ │ └── trap.S │ │ ├── decstation │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── _main.c │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── sys │ │ │ │ └── dirent.h │ │ ├── go32 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── _exit.s │ │ │ ├── _main.c │ │ │ ├── abort.c │ │ │ ├── access.c │ │ │ ├── aclocal.m4 │ │ │ ├── bdos.c │ │ │ ├── bdosptr.c │ │ │ ├── brk.s │ │ │ ├── chdir.s │ │ │ ├── chmod.c │ │ │ ├── chown.c │ │ │ ├── clock.S │ │ │ ├── close.s │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── copying.dj │ │ │ ├── creat.s │ │ │ ├── crlf2nl.c │ │ │ ├── crt0.S │ │ │ ├── dir.c │ │ │ ├── dir.h │ │ │ ├── djtime.h │ │ │ ├── dos.h │ │ │ ├── dosmem.S │ │ │ ├── dpmi.c │ │ │ ├── dpmi.h │ │ │ ├── dup.s │ │ │ ├── dup2.s │ │ │ ├── exec.c │ │ │ ├── fchmod.c │ │ │ ├── findfirs.s │ │ │ ├── findnext.s │ │ │ ├── fixpath.c │ │ │ ├── fstat.s │ │ │ ├── fsync.s │ │ │ ├── ftruncat.c │ │ │ ├── gerrno.s │ │ │ ├── getcwd.c │ │ │ ├── getdate.c │ │ │ ├── getdtabl.c │ │ │ ├── getgid.c │ │ │ ├── getkey.s │ │ │ ├── getpages.c │ │ │ ├── getpid.c │ │ │ ├── getrusag.c │ │ │ ├── gettime.c │ │ │ ├── gettimeo.c │ │ │ ├── gettimeo.s │ │ │ ├── getuid.c │ │ │ ├── getwd.s │ │ │ ├── go32.h │ │ │ ├── go32func.c │ │ │ ├── infoblk.c │ │ │ ├── inportb.s │ │ │ ├── inportl.s │ │ │ ├── inportsb.s │ │ │ ├── inportsl.s │ │ │ ├── inportsw.s │ │ │ ├── inportw.s │ │ │ ├── int86x.s │ │ │ ├── intdos.c │ │ │ ├── intdosx.c │ │ │ ├── isatty.s │ │ │ ├── kbhit.s │ │ │ ├── kill.c │ │ │ ├── link.s │ │ │ ├── longjmp.S │ │ │ ├── lseek.s │ │ │ ├── lstat.s │ │ │ ├── mkdir.s │ │ │ ├── open.s │ │ │ ├── outportb.s │ │ │ ├── outportl.s │ │ │ ├── outportw.s │ │ │ ├── outprtsb.s │ │ │ ├── outprtsl.s │ │ │ ├── outprtsw.s │ │ │ ├── pc.h │ │ │ ├── read.s │ │ │ ├── readv.c │ │ │ ├── rename.s │ │ │ ├── rmdir.s │ │ │ ├── sbrk.s │ │ │ ├── screen.S │ │ │ ├── setjmp.S │ │ │ ├── setmode.s │ │ │ ├── setstack.S │ │ │ ├── settimeo.s │ │ │ ├── sleep.c │ │ │ ├── stat.c │ │ │ ├── stat.s │ │ │ ├── stat_ast.s │ │ │ ├── sys │ │ │ │ ├── dir.h │ │ │ │ ├── dirent.h │ │ │ │ ├── dos.h │ │ │ │ ├── dpmi.h │ │ │ │ ├── errno.h │ │ │ │ ├── fcntl.h │ │ │ │ ├── file.h │ │ │ │ ├── go32.h │ │ │ │ ├── param.h │ │ │ │ ├── pc.h │ │ │ │ ├── register.h │ │ │ │ ├── resource.h │ │ │ │ ├── setjmp.h │ │ │ │ ├── stdc.h │ │ │ │ └── uio.h │ │ │ ├── syserr.c │ │ │ ├── system.s │ │ │ ├── tell.s │ │ │ ├── time.c │ │ │ ├── truncate.c │ │ │ ├── turbo.s │ │ │ ├── umask.c │ │ │ ├── unlink.s │ │ │ ├── utime.c │ │ │ ├── utimes.c │ │ │ ├── write.s │ │ │ ├── writestub.c │ │ │ └── writev.c │ │ ├── h8300hms │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── _exit.c │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.S │ │ │ ├── crt1.c │ │ │ ├── misc.c │ │ │ ├── sbrk.c │ │ │ ├── sys │ │ │ │ └── file.h │ │ │ ├── syscalls.c │ │ │ └── write.c │ │ ├── h8500hms │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── misc.c │ │ │ └── syscalls.c │ │ ├── linux │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── brk.c │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── getoptlong.c │ │ │ ├── ids.c │ │ │ ├── include │ │ │ │ ├── alloca.h │ │ │ │ ├── getopt.h │ │ │ │ ├── stdint.h │ │ │ │ └── unistd.h │ │ │ ├── inode.c │ │ │ ├── io.c │ │ │ ├── linux.c │ │ │ ├── process.c │ │ │ ├── realpath.c │ │ │ ├── select.c │ │ │ ├── signal.c │ │ │ ├── sys │ │ │ │ ├── cdefs.h │ │ │ │ ├── dirent.h │ │ │ │ ├── errno.h │ │ │ │ ├── fcntl.h │ │ │ │ ├── file.h │ │ │ │ ├── ioctl.h │ │ │ │ ├── resource.h │ │ │ │ ├── signal.h │ │ │ │ ├── stat.h │ │ │ │ ├── syscall.h │ │ │ │ ├── termios.h │ │ │ │ ├── time.h │ │ │ │ ├── types.h │ │ │ │ ├── utmp.h │ │ │ │ ├── utsname.h │ │ │ │ └── wait.h │ │ │ ├── systat.c │ │ │ ├── termios.c │ │ │ ├── time.c │ │ │ └── wait.c │ │ ├── m88kbug │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── sys │ │ │ │ └── systraps.h │ │ │ └── syscalls.c │ │ ├── msys │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── include │ │ │ │ └── unistd.h │ │ │ └── sys │ │ │ │ ├── dirent.h │ │ │ │ ├── param.h │ │ │ │ ├── utime.h │ │ │ │ └── utmp.h │ │ ├── netware │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── getpid.c │ │ │ └── link.c │ │ ├── rtems │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── dummysys.c │ │ │ ├── include │ │ │ │ └── limits.h │ │ │ └── sys │ │ │ │ └── dirent.h │ │ ├── sh │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── creat.c │ │ │ ├── crt0.S │ │ │ ├── sys │ │ │ │ └── syscall.h │ │ │ ├── syscalls.c │ │ │ └── trap.S │ │ ├── sparc64 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── _exit.S │ │ │ ├── _main.c │ │ │ ├── aclocal.m4 │ │ │ ├── cerror.S │ │ │ ├── closedir.c │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── creat.c │ │ │ ├── crt0.S │ │ │ ├── dup2.S │ │ │ ├── execve.S │ │ │ ├── ieee.c │ │ │ ├── isatty.c │ │ │ ├── lstat.S │ │ │ ├── opendir.c │ │ │ ├── readdir.c │ │ │ ├── rewinddir.c │ │ │ ├── sbrk.S │ │ │ ├── scandir.c │ │ │ ├── seekdir.c │ │ │ ├── sigsetjmp.S │ │ │ ├── stat.S │ │ │ ├── sys │ │ │ │ ├── dirent.h │ │ │ │ ├── fcntl.h │ │ │ │ ├── file.h │ │ │ │ ├── stat.h │ │ │ │ ├── syscall.h │ │ │ │ ├── syscallasm.h │ │ │ │ ├── termios.h │ │ │ │ ├── time.h │ │ │ │ ├── utime.h │ │ │ │ ├── utmp.h │ │ │ │ └── wait.h │ │ │ ├── telldir.c │ │ │ ├── template.S │ │ │ ├── template_r.S │ │ │ ├── utime.S │ │ │ ├── utime2.c │ │ │ └── wait.S │ │ ├── sun4 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── _main.c │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── ieee.c │ │ │ └── sys │ │ │ │ ├── dirent.h │ │ │ │ ├── file.h │ │ │ │ ├── termios.h │ │ │ │ ├── utime.h │ │ │ │ ├── utmp.h │ │ │ │ └── wait.h │ │ ├── sysmec │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── _exit.c │ │ │ ├── access.c │ │ │ ├── aclocal.m4 │ │ │ ├── chmod.c │ │ │ ├── chown.c │ │ │ ├── close.c │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── creat.c │ │ │ ├── crt0.S │ │ │ ├── crt1.c │ │ │ ├── execv.c │ │ │ ├── execve.c │ │ │ ├── fork.c │ │ │ ├── fstat.c │ │ │ ├── getpid.c │ │ │ ├── gettime.c │ │ │ ├── isatty.c │ │ │ ├── kill.c │ │ │ ├── lseek.c │ │ │ ├── open.c │ │ │ ├── pipe.c │ │ │ ├── read.c │ │ │ ├── sbrk.c │ │ │ ├── stat.c │ │ │ ├── sys │ │ │ │ └── syscall.h │ │ │ ├── time.c │ │ │ ├── times.c │ │ │ ├── trap.S │ │ │ ├── unlink.c │ │ │ ├── utime.c │ │ │ ├── wait.c │ │ │ └── write.c │ │ ├── sysnec810 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.s │ │ │ ├── io.s │ │ │ ├── misc.c │ │ │ ├── sbrk.c │ │ │ └── write.c │ │ ├── sysnecv850 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── _exit.c │ │ │ ├── access.c │ │ │ ├── aclocal.m4 │ │ │ ├── chmod.c │ │ │ ├── chown.c │ │ │ ├── close.c │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── creat.c │ │ │ ├── crt0.S │ │ │ ├── crt1.c │ │ │ ├── execv.c │ │ │ ├── execve.c │ │ │ ├── fork.c │ │ │ ├── fstat.c │ │ │ ├── getpid.c │ │ │ ├── gettime.c │ │ │ ├── isatty.c │ │ │ ├── kill.c │ │ │ ├── link.c │ │ │ ├── lseek.c │ │ │ ├── open.c │ │ │ ├── pipe.c │ │ │ ├── read.c │ │ │ ├── sbrk.c │ │ │ ├── stat.c │ │ │ ├── sys │ │ │ │ └── syscall.h │ │ │ ├── time.c │ │ │ ├── times.c │ │ │ ├── trap.S │ │ │ ├── unlink.c │ │ │ ├── utime.c │ │ │ ├── wait.c │ │ │ └── write.c │ │ ├── sysvi386 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── _exit.s │ │ │ ├── _longjmp.s │ │ │ ├── _setjmp.s │ │ │ ├── access.s │ │ │ ├── aclocal.m4 │ │ │ ├── alarm.s │ │ │ ├── brk.s │ │ │ ├── cerror.s │ │ │ ├── chdir.s │ │ │ ├── chmod.s │ │ │ ├── close.s │ │ │ ├── closedir.c │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── dup.c │ │ │ ├── dup2.c │ │ │ ├── exec.c │ │ │ ├── execve.s │ │ │ ├── fcntl.s │ │ │ ├── fork.s │ │ │ ├── fpathconf.s │ │ │ ├── fps.s │ │ │ ├── fpx.c │ │ │ ├── fstat.s │ │ │ ├── getdents.s │ │ │ ├── getegid.s │ │ │ ├── geteuid.s │ │ │ ├── getgid.s │ │ │ ├── getgroups.s │ │ │ ├── getpid.s │ │ │ ├── getuid.s │ │ │ ├── ioctl.s │ │ │ ├── isatty.c │ │ │ ├── kill.s │ │ │ ├── link.s │ │ │ ├── lseek.s │ │ │ ├── mkdir.s │ │ │ ├── open.s │ │ │ ├── opendir.c │ │ │ ├── pathconf.s │ │ │ ├── pause.s │ │ │ ├── pipe.s │ │ │ ├── read.s │ │ │ ├── readdir.c │ │ │ ├── rename.s │ │ │ ├── rewinddir.c │ │ │ ├── rmdir.s │ │ │ ├── sbrk.c │ │ │ ├── scandir.c │ │ │ ├── seekdir.c │ │ │ ├── setgid.s │ │ │ ├── setuid.s │ │ │ ├── sigaction.s │ │ │ ├── signal.s │ │ │ ├── sigprocmask.s │ │ │ ├── sleep.c │ │ │ ├── speed.c │ │ │ ├── stat.s │ │ │ ├── sys │ │ │ │ ├── dirent.h │ │ │ │ ├── param.h │ │ │ │ ├── setjmp.h │ │ │ │ ├── termio.h │ │ │ │ ├── termios.h │ │ │ │ ├── utime.h │ │ │ │ ├── utmp.h │ │ │ │ └── wait.h │ │ │ ├── sysconf.s │ │ │ ├── tcgetattr.c │ │ │ ├── tcline.c │ │ │ ├── tcsetattr.c │ │ │ ├── telldir.c │ │ │ ├── time.s │ │ │ ├── times.s │ │ │ ├── unlink.s │ │ │ ├── utime.s │ │ │ ├── wait.s │ │ │ ├── waitpid.s │ │ │ └── write.s │ │ ├── sysvnecv70 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── cerror.s │ │ │ ├── close.s │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.s │ │ │ ├── exit.s │ │ │ ├── fps.s │ │ │ ├── fpx.c │ │ │ ├── fstat.s │ │ │ ├── ioctl.s │ │ │ ├── isatty.s │ │ │ ├── lseek.s │ │ │ ├── open.s │ │ │ ├── read.s │ │ │ ├── sbrk.s │ │ │ ├── sysv60.s │ │ │ ├── sysvnecv70.tex │ │ │ └── write.s │ │ ├── tic80 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ └── crt0.c │ │ ├── w65 │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── sys │ │ │ │ └── syscall.h │ │ │ ├── syscalls.c │ │ │ └── trap.c │ │ └── z8ksim │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── aclocal.m4 │ │ │ ├── configure │ │ │ ├── configure.in │ │ │ ├── crt0.c │ │ │ ├── glue.c │ │ │ └── sys │ │ │ └── syscall.h │ ├── syscalls │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── sysclose.c │ │ ├── sysexecve.c │ │ ├── sysfcntl.c │ │ ├── sysfork.c │ │ ├── sysfstat.c │ │ ├── sysgetpid.c │ │ ├── sysgettod.c │ │ ├── syskill.c │ │ ├── syslink.c │ │ ├── syslseek.c │ │ ├── sysopen.c │ │ ├── sysread.c │ │ ├── syssbrk.c │ │ ├── sysstat.c │ │ ├── systimes.c │ │ ├── sysunlink.c │ │ ├── syswait.c │ │ └── syswrite.c │ ├── time │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── asctime.c │ │ ├── asctime_r.c │ │ ├── clock.c │ │ ├── ctime.c │ │ ├── ctime_r.c │ │ ├── difftime.c │ │ ├── gmtime.c │ │ ├── gmtime_r.c │ │ ├── lcltime.c │ │ ├── lcltime_r.c │ │ ├── mktime.c │ │ ├── strftime.c │ │ ├── time.c │ │ └── time.tex │ └── unix │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── getcwd.c │ │ ├── getlogin.c │ │ ├── getpass.c │ │ ├── getpwent.c │ │ ├── getut.c │ │ ├── sigset.c │ │ └── ttyname.c └── libm │ ├── Makefile.am │ ├── Makefile.in │ ├── aclocal.m4 │ ├── common │ ├── Makefile.am │ ├── Makefile.in │ ├── common.tex │ ├── fdlibm.h │ ├── s_cbrt.c │ ├── s_copysign.c │ ├── s_expm1.c │ ├── s_finite.c │ ├── s_ilogb.c │ ├── s_infinity.c │ ├── s_lib_ver.c │ ├── s_log1p.c │ ├── s_logb.c │ ├── s_matherr.c │ ├── s_modf.c │ ├── s_nan.c │ ├── s_nextafter.c │ ├── s_rint.c │ ├── s_scalbn.c │ ├── sf_cbrt.c │ ├── sf_copysign.c │ ├── sf_expm1.c │ ├── sf_finite.c │ ├── sf_ilogb.c │ ├── sf_infinity.c │ ├── sf_log1p.c │ ├── sf_logb.c │ ├── sf_modf.c │ ├── sf_nan.c │ ├── sf_nextafter.c │ ├── sf_rint.c │ └── sf_scalbn.c │ ├── config.h.in │ ├── configure │ ├── configure.in │ ├── libm.texinfo │ ├── math │ ├── Makefile.am │ ├── Makefile.in │ ├── e_acos.c │ ├── e_acosh.c │ ├── e_asin.c │ ├── e_atan2.c │ ├── e_atanh.c │ ├── e_cosh.c │ ├── e_exp.c │ ├── e_fmod.c │ ├── e_hypot.c │ ├── e_j0.c │ ├── e_j1.c │ ├── e_jn.c │ ├── e_log.c │ ├── e_log10.c │ ├── e_pow.c │ ├── e_rem_pio2.c │ ├── e_remainder.c │ ├── e_scalb.c │ ├── e_sinh.c │ ├── e_sqrt.c │ ├── ef_acos.c │ ├── ef_acosh.c │ ├── ef_asin.c │ ├── ef_atan2.c │ ├── ef_atanh.c │ ├── ef_cosh.c │ ├── ef_exp.c │ ├── ef_fmod.c │ ├── ef_hypot.c │ ├── ef_j0.c │ ├── ef_j1.c │ ├── ef_jn.c │ ├── ef_log.c │ ├── ef_log10.c │ ├── ef_pow.c │ ├── ef_rem_pio2.c │ ├── ef_remainder.c │ ├── ef_scalb.c │ ├── ef_sinh.c │ ├── ef_sqrt.c │ ├── er_gamma.c │ ├── er_lgamma.c │ ├── erf_gamma.c │ ├── erf_lgamma.c │ ├── k_cos.c │ ├── k_rem_pio2.c │ ├── k_sin.c │ ├── k_standard.c │ ├── k_tan.c │ ├── kf_cos.c │ ├── kf_rem_pio2.c │ ├── kf_sin.c │ ├── kf_tan.c │ ├── math.tex │ ├── s_asinh.c │ ├── s_atan.c │ ├── s_ceil.c │ ├── s_cos.c │ ├── s_erf.c │ ├── s_fabs.c │ ├── s_floor.c │ ├── s_frexp.c │ ├── s_infconst.c │ ├── s_isinf.c │ ├── s_isnan.c │ ├── s_ldexp.c │ ├── s_signif.c │ ├── s_sin.c │ ├── s_tan.c │ ├── s_tanh.c │ ├── sf_asinh.c │ ├── sf_atan.c │ ├── sf_ceil.c │ ├── sf_cos.c │ ├── sf_erf.c │ ├── sf_fabs.c │ ├── sf_floor.c │ ├── sf_frexp.c │ ├── sf_isinf.c │ ├── sf_isnan.c │ ├── sf_ldexp.c │ ├── sf_signif.c │ ├── sf_sin.c │ ├── sf_tan.c │ ├── sf_tanh.c │ ├── w_acos.c │ ├── w_acosh.c │ ├── w_asin.c │ ├── w_atan2.c │ ├── w_atanh.c │ ├── w_cabs.c │ ├── w_cosh.c │ ├── w_drem.c │ ├── w_exp.c │ ├── w_fmod.c │ ├── w_gamma.c │ ├── w_hypot.c │ ├── w_j0.c │ ├── w_j1.c │ ├── w_jn.c │ ├── w_lgamma.c │ ├── w_log.c │ ├── w_log10.c │ ├── w_pow.c │ ├── w_remainder.c │ ├── w_scalb.c │ ├── w_sinh.c │ ├── w_sqrt.c │ ├── wf_acos.c │ ├── wf_acosh.c │ ├── wf_asin.c │ ├── wf_atan2.c │ ├── wf_atanh.c │ ├── wf_cabs.c │ ├── wf_cosh.c │ ├── wf_drem.c │ ├── wf_exp.c │ ├── wf_fmod.c │ ├── wf_gamma.c │ ├── wf_hypot.c │ ├── wf_j0.c │ ├── wf_j1.c │ ├── wf_jn.c │ ├── wf_lgamma.c │ ├── wf_log.c │ ├── wf_log10.c │ ├── wf_pow.c │ ├── wf_remainder.c │ ├── wf_scalb.c │ ├── wf_sinh.c │ ├── wf_sqrt.c │ ├── wr_gamma.c │ ├── wr_lgamma.c │ ├── wrf_gamma.c │ └── wrf_lgamma.c │ ├── mathfp │ ├── Makefile.am │ ├── Makefile.in │ ├── e_acosh.c │ ├── e_atanh.c │ ├── e_hypot.c │ ├── e_j0.c │ ├── e_j1.c │ ├── e_remainder.c │ ├── e_scalb.c │ ├── ef_acosh.c │ ├── ef_atanh.c │ ├── ef_hypot.c │ ├── ef_j0.c │ ├── ef_j1.c │ ├── ef_remainder.c │ ├── ef_scalb.c │ ├── er_gamma.c │ ├── er_lgamma.c │ ├── erf_gamma.c │ ├── erf_lgamma.c │ ├── mathfp.tex │ ├── s_acos.c │ ├── s_asin.c │ ├── s_asine.c │ ├── s_asinh.c │ ├── s_atan.c │ ├── s_atan2.c │ ├── s_atangent.c │ ├── s_ceil.c │ ├── s_cos.c │ ├── s_cosh.c │ ├── s_erf.c │ ├── s_exp.c │ ├── s_fabs.c │ ├── s_floor.c │ ├── s_fmod.c │ ├── s_frexp.c │ ├── s_infconst.c │ ├── s_isinf.c │ ├── s_isnan.c │ ├── s_ispos.c │ ├── s_ldexp.c │ ├── s_log.c │ ├── s_log10.c │ ├── s_logarithm.c │ ├── s_mathcnst.c │ ├── s_numtest.c │ ├── s_pow.c │ ├── s_signif.c │ ├── s_sin.c │ ├── s_sine.c │ ├── s_sineh.c │ ├── s_sinf.c │ ├── s_sinh.c │ ├── s_sqrt.c │ ├── s_tan.c │ ├── s_tanh.c │ ├── sf_acos.c │ ├── sf_asin.c │ ├── sf_asine.c │ ├── sf_asinh.c │ ├── sf_atan.c │ ├── sf_atan2.c │ ├── sf_atangent.c │ ├── sf_ceil.c │ ├── sf_cos.c │ ├── sf_cosh.c │ ├── sf_erf.c │ ├── sf_exp.c │ ├── sf_fabs.c │ ├── sf_floor.c │ ├── sf_fmod.c │ ├── sf_frexp.c │ ├── sf_isinf.c │ ├── sf_isnan.c │ ├── sf_ispos.c │ ├── sf_ldexp.c │ ├── sf_log.c │ ├── sf_log10.c │ ├── sf_logarithm.c │ ├── sf_numtest.c │ ├── sf_pow.c │ ├── sf_signif.c │ ├── sf_sin.c │ ├── sf_sine.c │ ├── sf_sineh.c │ ├── sf_sinh.c │ ├── sf_sqrt.c │ ├── sf_tan.c │ ├── sf_tanh.c │ ├── w_cabs.c │ ├── w_drem.c │ ├── w_jn.c │ ├── wf_cabs.c │ ├── wf_drem.c │ ├── wf_jn.c │ └── zmath.h │ └── test │ ├── Makefile.in │ ├── acos_vec.c │ ├── acosf_vec.c │ ├── acosh_vec.c │ ├── acoshf_vec.c │ ├── asin_vec.c │ ├── asinf_vec.c │ ├── asinh_vec.c │ ├── asinhf_vec.c │ ├── atan2_vec.c │ ├── atan2f_vec.c │ ├── atan_vec.c │ ├── atanf_vec.c │ ├── atanh_vec.c │ ├── atanhf_vec.c │ ├── ceil_vec.c │ ├── ceilf_vec.c │ ├── conv_vec.c │ ├── convert.c │ ├── cos_vec.c │ ├── cosf_vec.c │ ├── cosh_vec.c │ ├── coshf_vec.c │ ├── dcvt.c │ ├── dvec.c │ ├── erf_vec.c │ ├── erfc_vec.c │ ├── erfcf_vec.c │ ├── erff_vec.c │ ├── exp_vec.c │ ├── expf_vec.c │ ├── fabs_vec.c │ ├── fabsf_vec.c │ ├── floor_vec.c │ ├── floorf_vec.c │ ├── fmod_vec.c │ ├── fmodf_vec.c │ ├── gamma_vec.c │ ├── gammaf_vec.c │ ├── hypot_vec.c │ ├── hypotf_vec.c │ ├── iconv_vec.c │ ├── j0_vec.c │ ├── j0f_vec.c │ ├── j1_vec.c │ ├── j1f_vec.c │ ├── jn_vec.c │ ├── jnf_vec.c │ ├── log10_vec.c │ ├── log10f_vec.c │ ├── log1p_vec.c │ ├── log1pf_vec.c │ ├── log2_vec.c │ ├── log2f_vec.c │ ├── log_vec.c │ ├── logf_vec.c │ ├── math.c │ ├── math2.c │ ├── sin_vec.c │ ├── sinf_vec.c │ ├── sinh_vec.c │ ├── sinhf_vec.c │ ├── sprint_ivec.c │ ├── sprint_vec.c │ ├── sqrt_vec.c │ ├── sqrtf_vec.c │ ├── string.c │ ├── tan_vec.c │ ├── tanf_vec.c │ ├── tanh_vec.c │ ├── tanhf_vec.c │ ├── test.c │ ├── test.h │ ├── test_ieee.c │ ├── test_is.c │ ├── y0_vec.c │ ├── y0f_vec.c │ ├── y1_vec.c │ ├── y1f_vec.c │ ├── yn_vec.c │ └── ynf_vec.c ├── setup.com ├── symlink-tree ├── winsup ├── CYGWIN_LICENSE ├── ChangeLog ├── ChangeLog.MSYS ├── MAINTAINERS ├── Makefile.common ├── Makefile.in ├── configure ├── configure.in ├── cygwin │ ├── CYGWIN_LICENSE │ ├── ChangeLog │ ├── ChangeLog-1995 │ ├── ChangeLog-1996 │ ├── ChangeLog-1997 │ ├── ChangeLog-1998 │ ├── ChangeLog-1999 │ ├── ChangeLog-2000 │ ├── ChangeLog.MSYS │ ├── FIXME │ ├── Makefile.in │ ├── ROADMAP │ ├── WINSUP_ROADMAP │ ├── acconfig.h │ ├── ansi.sgml │ ├── assert.cc │ ├── autoload.cc │ ├── automode.c │ ├── binmode.c │ ├── child_info.h │ ├── config.h.in │ ├── config │ │ └── i386 │ │ │ ├── longjmp.c │ │ │ ├── makefrag │ │ │ ├── profile.h │ │ │ └── setjmp.c │ ├── configure │ ├── configure.in │ ├── cxx.cc │ ├── cygerrno.h │ ├── cygheap.cc │ ├── cygheap.h │ ├── cygrun.c │ ├── cygthread.cc │ ├── cygthread.h │ ├── cygwin.din │ ├── cygwin.sc │ ├── cygwin_version.h │ ├── dcrt0.cc │ ├── debug.cc │ ├── debug.h │ ├── delqueue.cc │ ├── delqueue.h │ ├── dir.cc │ ├── dlfcn.cc │ ├── dll_init.cc │ ├── dll_init.h │ ├── dll_init.sgml │ ├── dlmalloc.c │ ├── dlmalloc.h │ ├── dtable.cc │ ├── dtable.h │ ├── dtable.sgml │ ├── environ.cc │ ├── environ.h │ ├── errno.cc │ ├── exceptions.cc │ ├── exec.cc │ ├── external.cc │ ├── external.sgml │ ├── fcntl.cc │ ├── fhandler.cc │ ├── fhandler.h │ ├── fhandler_clipboard.cc │ ├── fhandler_console.cc │ ├── fhandler_dsp.cc │ ├── fhandler_floppy.cc │ ├── fhandler_mem.cc │ ├── fhandler_random.cc │ ├── fhandler_raw.cc │ ├── fhandler_serial.cc │ ├── fhandler_socket.cc │ ├── fhandler_tape.cc │ ├── fhandler_termios.cc │ ├── fhandler_tty.cc │ ├── fhandler_windows.cc │ ├── fhandler_zero.cc │ ├── fork.cc │ ├── gcrt0.c │ ├── glob.c │ ├── gmon.c │ ├── gmon.h │ ├── grp.cc │ ├── heap.cc │ ├── heap.h │ ├── host_dependent.h │ ├── how-cygheap-works.txt │ ├── how-signals-work.txt │ ├── how-vfork-works.txt │ ├── include │ │ ├── a.out.h │ │ ├── arpa │ │ │ ├── ftp.h │ │ │ ├── inet.h │ │ │ └── telnet.h │ │ ├── asm │ │ │ ├── byteorder.h │ │ │ ├── socket.h │ │ │ └── types.h │ │ ├── cygwin │ │ │ ├── acl.h │ │ │ ├── core_dump.h │ │ │ ├── cygwin_dll.h │ │ │ ├── icmp.h │ │ │ ├── if.h │ │ │ ├── in.h │ │ │ ├── in_systm.h │ │ │ ├── ip.h │ │ │ ├── mtio.h │ │ │ ├── rdevio.h │ │ │ ├── socket.h │ │ │ ├── sockios.h │ │ │ ├── types.h │ │ │ ├── uio.h │ │ │ └── version.h │ │ ├── dlfcn.h │ │ ├── exceptions.h │ │ ├── fcntl.h │ │ ├── features.h │ │ ├── getopt.h │ │ ├── glob.h │ │ ├── icmp.h │ │ ├── io.h │ │ ├── lastlog.h │ │ ├── limits.h │ │ ├── mapi.h │ │ ├── memory.h │ │ ├── mntent.h │ │ ├── net │ │ │ └── if.h │ │ ├── netdb.h │ │ ├── netinet │ │ │ ├── in.h │ │ │ ├── in_systm.h │ │ │ ├── ip.h │ │ │ ├── ip_icmp.h │ │ │ └── tcp.h │ │ ├── paths.h │ │ ├── poll.h │ │ ├── pthread.h │ │ ├── sched.h │ │ ├── semaphore.h │ │ ├── strings.h │ │ ├── sys │ │ │ ├── acl.h │ │ │ ├── cdefs.h │ │ │ ├── copying.dj │ │ │ ├── cygwin.h │ │ │ ├── file.h │ │ │ ├── ioctl.h │ │ │ ├── mman.h │ │ │ ├── mount.h │ │ │ ├── mtio.h │ │ │ ├── poll.h │ │ │ ├── procfs.h │ │ │ ├── resource.h │ │ │ ├── select.h │ │ │ ├── smallprint.h │ │ │ ├── socket.h │ │ │ ├── soundcard.h │ │ │ ├── strace.h │ │ │ ├── syslog.h │ │ │ ├── sysmacros.h │ │ │ ├── termio.h │ │ │ ├── termios.h │ │ │ ├── ttychars.h │ │ │ ├── uio.h │ │ │ ├── un.h │ │ │ ├── utsname.h │ │ │ ├── vfs.h │ │ │ └── wait.h │ │ ├── sysexits.h │ │ ├── syslog.h │ │ ├── termio.h │ │ ├── tzfile.h │ │ └── wchar.h │ ├── init.cc │ ├── ioctl.cc │ ├── ismsys.cc │ ├── lib │ │ ├── _cygwin_S_IEXEC.cc │ │ ├── _cygwin_crt0_common.cc │ │ ├── crt0.h │ │ ├── cygwin_attach_dll.c │ │ ├── cygwin_crt0.c │ │ ├── dll_entry.c │ │ ├── dll_main.cc │ │ ├── getopt.c │ │ ├── libcmain.c │ │ ├── premain0.c │ │ ├── premain1.c │ │ ├── premain2.c │ │ ├── premain3.c │ │ └── pseudo-reloc.c │ ├── localtime.c │ ├── localtime.cc │ ├── malloc.cc │ ├── mcount.c │ ├── misc-std.sgml │ ├── miscfuncs.cc │ ├── miscfuncs.h │ ├── mkvers.sh │ ├── mmap.cc │ ├── msys.cc │ ├── msys.h │ ├── msys_symlink.cc │ ├── msys_symlink.h │ ├── net.cc │ ├── ntdll.h │ ├── ntea.cc │ ├── passwd.cc │ ├── path.cc │ ├── path.h │ ├── path.sgml │ ├── perprocess.h │ ├── perthread.h │ ├── pinfo.cc │ ├── pinfo.h │ ├── pipe.cc │ ├── poll.cc │ ├── posix.sgml │ ├── profil.c │ ├── profil.h │ ├── pthread.cc │ ├── pwdgrp.h │ ├── regexp │ │ ├── COPYRIGHT │ │ ├── README │ │ ├── regerror.c │ │ ├── regexp.3 │ │ ├── regexp.c │ │ ├── regexp.h │ │ ├── regmagic.h │ │ └── regsub.c │ ├── registry.cc │ ├── registry.h │ ├── resource.cc │ ├── scandir.cc │ ├── sched.cc │ ├── sec_acl.cc │ ├── sec_helper.cc │ ├── security.cc │ ├── security.h │ ├── select.cc │ ├── select.h │ ├── shared.cc │ ├── shared.sgml │ ├── shared_info.h │ ├── shortcut.c │ ├── shortcut.h │ ├── signal.cc │ ├── sigproc.cc │ ├── sigproc.h │ ├── smallprint.c │ ├── spawn.cc │ ├── strace.cc │ ├── string.h │ ├── strsep.cc │ ├── sync.cc │ ├── sync.h │ ├── syscalls.cc │ ├── sysconf.cc │ ├── syslog.cc │ ├── termios.cc │ ├── test.c │ ├── textmode.c │ ├── thread.cc │ ├── thread.h │ ├── times.cc │ ├── tty.cc │ ├── tty.h │ ├── tz_posixrules.h │ ├── uinfo.cc │ ├── uname.cc │ ├── wait.cc │ ├── winbase.h │ ├── wincap.cc │ ├── wincap.h │ ├── window.cc │ ├── winsup.h │ ├── winver.rc │ └── wsock_event.h ├── doc │ ├── ChangeLog │ ├── ChangeLog.MSYS │ ├── Makefile.in │ ├── calls.texinfo │ ├── changes.texinfo │ ├── configure │ ├── configure.in │ ├── copy.texinfo │ ├── cygwin-api.in.sgml │ ├── cygwin-ug-net.in.sgml │ ├── cygwin-ug.in.sgml │ ├── cygwinenv.sgml │ ├── dll.sgml │ ├── doctool.c │ ├── doctool.txt │ ├── faq.texinfo │ ├── fhandler-tut.txt │ ├── filemodes.sgml │ ├── gcc.sgml │ ├── gdb.sgml │ ├── history.texinfo │ ├── how-api.texinfo │ ├── how-programming.texinfo │ ├── how-resources.texinfo │ ├── how-using.texinfo │ ├── how.texinfo │ ├── install.texinfo │ ├── legal.sgml │ ├── ntsec.sgml │ ├── overview.sgml │ ├── overview2.sgml │ ├── pathnames.sgml │ ├── programming.sgml │ ├── readme.texinfo │ ├── relnotes.texinfo │ ├── setup-net.sgml │ ├── setup.sgml │ ├── setup2.sgml │ ├── textbinary.sgml │ ├── using.sgml │ ├── what.texinfo │ ├── who.texinfo │ └── windres.sgml ├── testsuite │ ├── ChangeLog │ ├── ChangeLog.MSYS │ ├── Makefile.in │ ├── README │ ├── config │ │ └── default.exp │ ├── configure │ ├── configure.in │ ├── libltp │ │ ├── include │ │ │ ├── dataascii.h │ │ │ ├── databin.h │ │ │ ├── file_lock.h │ │ │ ├── forker.h │ │ │ ├── open_flags.h │ │ │ ├── pattern.h │ │ │ ├── random_range.h │ │ │ ├── rmobj.h │ │ │ ├── search_path.h │ │ │ ├── str_to_bytes.h │ │ │ ├── string_to_tokens.h │ │ │ ├── test.h │ │ │ ├── tlibio.h │ │ │ ├── usctest.h │ │ │ └── write_log.h │ │ └── lib │ │ │ ├── dataascii.c │ │ │ ├── databin.c │ │ │ ├── datapid.c │ │ │ ├── forker.c │ │ │ ├── get_high_address.c │ │ │ ├── open_flags.c │ │ │ ├── parse_opts.c │ │ │ ├── pattern.c │ │ │ ├── rmobj.c │ │ │ ├── search_path.c │ │ │ ├── str_to_bytes.c │ │ │ ├── string_to_tokens.c │ │ │ ├── tst_res.c │ │ │ ├── tst_sig.c │ │ │ ├── tst_tmpdir.c │ │ │ └── write_log.c │ └── winsup.api │ │ ├── crlf.c │ │ ├── devzero.c │ │ ├── iospeed.c │ │ ├── known_bugs.tcl │ │ ├── ltp │ │ ├── access01.c │ │ ├── access03.c │ │ ├── alarm01.c │ │ ├── alarm02.c │ │ ├── alarm03.c │ │ ├── asyncio02.c │ │ ├── chdir02.c │ │ ├── chmod02.c │ │ ├── chown01.c │ │ ├── close08.c │ │ ├── creat09.c │ │ ├── dup01.c │ │ ├── dup02.c │ │ ├── dup03.c │ │ ├── dup04.c │ │ ├── dup05.c │ │ ├── execl01.c │ │ ├── execle01.c │ │ ├── execlp01.c │ │ ├── execv01.c │ │ ├── execve01.c │ │ ├── execvp01.c │ │ ├── fchmod01.c │ │ ├── fchown01.c │ │ ├── fcntl02.c │ │ ├── fcntl03.c │ │ ├── fcntl04.c │ │ ├── fcntl05.c │ │ ├── fcntl07.c │ │ ├── fcntl07B.c │ │ ├── fcntl08.c │ │ ├── fcntl09.c │ │ ├── fcntl10.c │ │ ├── fork01.c │ │ ├── fork04.c │ │ ├── fpathconf01.c │ │ ├── fstat01.c │ │ ├── fsync01.c │ │ ├── getegid01.c │ │ ├── geteuid01.c │ │ ├── getgid01.c │ │ ├── getgroups01.c │ │ ├── getgroups02.c │ │ ├── gethostid01.c │ │ ├── gethostname01.c │ │ ├── getpgrp01.c │ │ ├── getpid01.c │ │ ├── getppid01.c │ │ ├── getuid01.c │ │ ├── kill09.c │ │ ├── link02.c │ │ ├── link03.c │ │ ├── link04.c │ │ ├── link05.c │ │ ├── lseek01.c │ │ ├── lseek02.c │ │ ├── lseek03.c │ │ ├── lseek04.c │ │ ├── lseek05.c │ │ ├── lstat02.c │ │ ├── mkdir01.c │ │ ├── mkdir08.c │ │ ├── mknod01.c │ │ ├── mmap001.c │ │ ├── nice05.c │ │ ├── open03.c │ │ ├── pathconf01.c │ │ ├── pause01.c │ │ ├── read01.c │ │ ├── readdir01.c │ │ ├── readlink02.c │ │ ├── rename02.c │ │ ├── rmdir04.c │ │ ├── rmdir05.c │ │ ├── sbrk01.c │ │ ├── select01.c │ │ ├── select02.c │ │ ├── select03.c │ │ ├── setgid01.c │ │ ├── setgroups01.c │ │ ├── setpgid01.c │ │ ├── setregid01.c │ │ ├── setreuid01.c │ │ ├── setuid01.c │ │ ├── setuid02.c │ │ ├── signal03.c │ │ ├── stat05.c │ │ ├── stat06.c │ │ ├── symlink01.c │ │ ├── symlink02.c │ │ ├── sync01.c │ │ ├── time01.c │ │ ├── times01.c │ │ ├── ulimit01.c │ │ ├── umask01.c │ │ ├── uname01.c │ │ ├── unlink05.c │ │ ├── unlink06.c │ │ ├── unlink07.c │ │ ├── unlink08.c │ │ ├── wait02.c │ │ └── write01.c │ │ ├── mmaptest01.c │ │ ├── mmaptest02.c │ │ ├── mmaptest03.c │ │ ├── mmaptest04.c │ │ ├── samples │ │ ├── sample-fail.c │ │ ├── sample-miscompile.c │ │ └── sample-pass.c │ │ ├── sigchld.c │ │ ├── waitpid.c │ │ └── winsup.exp └── utils │ ├── ChangeLog │ ├── ChangeLog.MSYS │ ├── Makefile.in │ ├── aclocal.m4 │ ├── configure │ ├── configure.in │ ├── cygcheck.cc │ ├── cygpath.cc │ ├── error-mode.c │ ├── mount.cc │ ├── ps.cc │ └── strace.cc └── ylwrap /.cvsignore: -------------------------------------------------------------------------------- 1 | *-all 2 | *-co 3 | *-dirs 4 | *-done 5 | *-install-info 6 | *-src 7 | *-stamp-* 8 | *-tagged 9 | blockit 10 | cfg-paper.info 11 | config.status 12 | configure.aux 13 | configure.cp 14 | configure.cps 15 | configure.dvi 16 | configure.fn 17 | configure.fns 18 | configure.ky 19 | configure.kys 20 | configure.log 21 | configure.pg 22 | configure.pgs 23 | configure.toc 24 | configure.tp 25 | configure.tps 26 | configure.vr 27 | configure.vrs 28 | dir.info 29 | Makefile 30 | lost+found 31 | update.out 32 | 33 | -------------------------------------------------------------------------------- /MSYS_AGREEMENT: -------------------------------------------------------------------------------- 1 | As a contributor to the MSYS system, I, [NAME ], agree 2 | that no other entity can lay claim to the intellectual property contained within 3 | this contribution of source code, documentation or configuration given this 4 | [DAY] of [MONTH] in the year of [YEAR]. 5 | -------------------------------------------------------------------------------- /config/mh-a68bsd: -------------------------------------------------------------------------------- 1 | RANLIB=true 2 | 3 | #None of the Apollo compilers can compile gas or binutils. The preprocessor 4 | # chokes on bfd, the compiler won't let you assign integers to enums, and 5 | # other problems. Defining CC to gcc is a questionable way to say "don't use 6 | # the apollo compiler" (the preferred version of GCC could be called cc, 7 | # or whatever), but I'm not sure leaving CC as cc is any better... 8 | 9 | #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG 10 | CC=gcc 11 | 12 | BISON=yacc 13 | -------------------------------------------------------------------------------- /config/mh-aix386: -------------------------------------------------------------------------------- 1 | RANLIB = @: 2 | -------------------------------------------------------------------------------- /config/mh-apollo68: -------------------------------------------------------------------------------- 1 | HDEFINES = -DUSG 2 | RANLIB=true 3 | CC= cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG 4 | -------------------------------------------------------------------------------- /config/mh-armpic: -------------------------------------------------------------------------------- 1 | PICFLAG=-fPIC 2 | -------------------------------------------------------------------------------- /config/mh-cxux: -------------------------------------------------------------------------------- 1 | # Configuration for Harris CX/UX 7 (and maybe 6), based on sysv4 configuration. 2 | 3 | # Define SYSV as -DSYSV if you are using a System V operating system. 4 | SYSV = -DSYSV -DSVR4 5 | RANLIB = true 6 | 7 | # C++ debugging is not yet supported under SVR4 (DWARF) 8 | CXXFLAGS=-O 9 | 10 | # The l flag generates a warning from the SVR4 archiver, remove it. 11 | AR_FLAGS = cq 12 | 13 | # Under CX/UX, we want to tell the compiler to use ANSI mode. 14 | CC=cc -Xa 15 | -------------------------------------------------------------------------------- /config/mh-cygwin: -------------------------------------------------------------------------------- 1 | EXTRA_TARGET_HOST_ALL_MODULES=all-libtermcap 2 | EXTRA_TARGET_HOST_INSTALL_MODULES=install-libtermcap 3 | 4 | all-gdb: all-libtermcap 5 | 6 | install-gdb: all-libtermcap 7 | -------------------------------------------------------------------------------- /config/mh-decstation: -------------------------------------------------------------------------------- 1 | CC = cc -Wf,-XNg1000 2 | 3 | # for X11, since the native DECwindows include files are really broken when 4 | # it comes to function prototypes. 5 | X11_EXTRA_CFLAGS = "-DNeedFunctionPrototypes=0" 6 | -------------------------------------------------------------------------------- /config/mh-delta88: -------------------------------------------------------------------------------- 1 | RANLIB = true 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /config/mh-dgux: -------------------------------------------------------------------------------- 1 | HDEFINES=-DHOST_SYS=DGUX_SYS 2 | CC=gcc -Wall -ansi -D__using_DGUX 3 | RANLIB=true 4 | 5 | -------------------------------------------------------------------------------- /config/mh-djgpp: -------------------------------------------------------------------------------- 1 | # We don't want to use debugging information on DOS. Unfortunately, 2 | # this requires that we set CFLAGS. 3 | # This used to set -fno-omit-frame-pointer. 4 | CFLAGS=-O2 5 | -------------------------------------------------------------------------------- /config/mh-elfalphapic: -------------------------------------------------------------------------------- 1 | PICFLAG=-fPIC 2 | -------------------------------------------------------------------------------- /config/mh-hpux: -------------------------------------------------------------------------------- 1 | # Define SYSV as -DSYSV if you are using a System V operating system. 2 | CC = cc -Wp,-H256000 3 | SYSV = -DSYSV 4 | RANLIB = true 5 | -------------------------------------------------------------------------------- /config/mh-hpux8: -------------------------------------------------------------------------------- 1 | # Define SYSV as -DSYSV if you are using a System V operating system. 2 | CC = cc -Wp,-H256000 3 | SYSV = -DSYSV 4 | RANLIB = true 5 | -------------------------------------------------------------------------------- /config/mh-i370pic: -------------------------------------------------------------------------------- 1 | PICFLAG=-fPIC 2 | -------------------------------------------------------------------------------- /config/mh-ia64pic: -------------------------------------------------------------------------------- 1 | PICFLAG=-fpic 2 | -------------------------------------------------------------------------------- /config/mh-interix: -------------------------------------------------------------------------------- 1 | # The shell may not be in /bin. 2 | SHELL = sh 3 | RANLIB = true 4 | 5 | # We don't want debugging info in Interix-hosted toolchains. 6 | # Accomplish this by overriding CFLAGS. This is also a workaround 7 | # for LD crash when building shared libstdc++. 8 | CFLAGS=-O2 9 | CXXFLAGS=-O2 10 | 11 | # We also need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be 12 | # built without debugging information 13 | 14 | LIBGCC2_DEBUG_CFLAGS= 15 | -------------------------------------------------------------------------------- /config/mh-irix4: -------------------------------------------------------------------------------- 1 | # Makefile changes for SGI's running IRIX-4.x. 2 | # Tell compiler to use K&R C. We can't compile under the SGI Ansi 3 | # environment. Also bump switch table size so that cp-parse will 4 | # compile. Bump string length limit so linker builds. 5 | 6 | CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192 7 | SYSV = -DSYSV 8 | -------------------------------------------------------------------------------- /config/mh-irix5: -------------------------------------------------------------------------------- 1 | # Makefile changes for SGI's running IRIX-5.x. 2 | SYSV = -DSYSV 3 | RANLIB = true 4 | -------------------------------------------------------------------------------- /config/mh-irix6: -------------------------------------------------------------------------------- 1 | # Makefile changes for SGI's running IRIX-6.x. 2 | SYSV = -DSYSV 3 | RANLIB = true 4 | -------------------------------------------------------------------------------- /config/mh-lynxos: -------------------------------------------------------------------------------- 1 | # /bin/cc is less than useful for our purposes. Always use GCC 2 | CC = /bin/gcc 3 | -------------------------------------------------------------------------------- /config/mh-lynxrs6k: -------------------------------------------------------------------------------- 1 | # LynxOS running on the rs6000 doesn't have ranlib 2 | RANLIB = true 3 | 4 | # /bin/cc is less than useful for our purposes. Always use GCC 5 | CC = /usr/cygnus/progressive/bin/gcc 6 | 7 | # /bin/sh is too buggy, so use /bin/bash instead. 8 | SHELL = /bin/bash 9 | -------------------------------------------------------------------------------- /config/mh-m68kpic: -------------------------------------------------------------------------------- 1 | PICFLAG=-fpic 2 | -------------------------------------------------------------------------------- /config/mh-mingw32: -------------------------------------------------------------------------------- 1 | # We don't want debugging info in Win32-hosted toolchains. 2 | # Accomplish this by overriding CFLAGS. 3 | CFLAGS=-O2 4 | CXXFLAGS=-O2 5 | 6 | # We also need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be 7 | # built without debugging information 8 | 9 | LIBGCC2_DEBUG_CFLAGS= 10 | 11 | # custom installation rules for mingw32 (append .exe to binaries, etc.) 12 | # INSTALL_DOSREL=install-dosrel 13 | -------------------------------------------------------------------------------- /config/mh-ncrsvr43: -------------------------------------------------------------------------------- 1 | # Host configuration file for an NCR 3000 (i486/SVR43) system. 2 | 3 | # The MetaWare compiler will generate a copyright message unless you 4 | # turn it off by adding the -Hnocopyr flag. 5 | CC = cc -Hnocopyr 6 | 7 | # Define SYSV as -DSYSV if you are using a System V operating system. 8 | SYSV = -DSYSV -DSVR4 9 | RANLIB = true 10 | -------------------------------------------------------------------------------- /config/mh-necv4: -------------------------------------------------------------------------------- 1 | # Host Makefile fragment for NEC MIPS SVR4. 2 | 3 | # The C compiler on NEC MIPS SVR4 needs bigger tables. 4 | CC = cc -ZXNd=5000 -ZXNg=1000 5 | 6 | # Define SYSV as -DSYSV if you are using a System V operating system. 7 | SYSV = -DSYSV -DSVR4 8 | RANLIB = true 9 | 10 | # NEC -lX11 needs some other libraries. 11 | X11_EXTRA_LIBS = -lsocket -lnsl 12 | -------------------------------------------------------------------------------- /config/mh-openedition: -------------------------------------------------------------------------------- 1 | RANLIB = true 2 | CC = c89 3 | -------------------------------------------------------------------------------- /config/mh-papic: -------------------------------------------------------------------------------- 1 | PICFLAG=-fPIC 2 | -------------------------------------------------------------------------------- /config/mh-ppcpic: -------------------------------------------------------------------------------- 1 | PICFLAG=-fPIC 2 | -------------------------------------------------------------------------------- /config/mh-s390pic: -------------------------------------------------------------------------------- 1 | PICFLAG=-fpic 2 | -------------------------------------------------------------------------------- /config/mh-sco: -------------------------------------------------------------------------------- 1 | # Define SYSV as -DSYSV if you are using a System V operating system. 2 | SYSV = -DSYSV 3 | RANLIB = true 4 | # You may need this if you don't have bison. 5 | # BISON = yacc -Sm10400 6 | # The native C compiler botches some simple uses of const. Unfortunately, 7 | # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. 8 | CC = cc -Dconst= 9 | 10 | X11_EXTRA_LIBS = -lsocket -lm -lintl -lmalloc 11 | -------------------------------------------------------------------------------- /config/mh-solaris: -------------------------------------------------------------------------------- 1 | # Makefile changes for Suns running Solaris 2 2 | 3 | SYSV = -DSYSV 4 | RANLIB = true 5 | 6 | X11_EXTRA_LIBS = -lnsl -lsocket 7 | -------------------------------------------------------------------------------- /config/mh-sparcpic: -------------------------------------------------------------------------------- 1 | PICFLAG=`case '${LIBCFLAGS} ${LIBCXXFLAGS}' in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac` 2 | -------------------------------------------------------------------------------- /config/mh-sun3: -------------------------------------------------------------------------------- 1 | # Sun's C compiler needs the -J flag to be able to compile cp-parse.c 2 | # without overflowing the jump tables (-J says to use a 32 bit table) 3 | CC = cc -J 4 | -------------------------------------------------------------------------------- /config/mh-sysv: -------------------------------------------------------------------------------- 1 | # Define SYSV as -DSYSV if you are using a System V operating system. 2 | SYSV = -DSYSV 3 | RANLIB = true 4 | -------------------------------------------------------------------------------- /config/mh-sysv4: -------------------------------------------------------------------------------- 1 | # Define SYSV as -DSYSV if you are using a System V operating system. 2 | SYSV = -DSYSV -DSVR4 3 | RANLIB = true 4 | 5 | # C++ debugging is not yet supported under SVR4 (DWARF) 6 | CXXFLAGS=-O 7 | 8 | # The l flag generates a warning from the SVR4 archiver, remove it. 9 | AR_FLAGS = cr 10 | 11 | X11_EXTRA_LIBS = -lnsl 12 | -------------------------------------------------------------------------------- /config/mh-sysv5: -------------------------------------------------------------------------------- 1 | # Define SYSV as -DSYSV if you are using a System V operating system. 2 | SYSV = -DSYSV -DSVR4 -DSVR5 3 | RANLIB = true 4 | 5 | # The l flag generates a warning from the SVR4 archiver, remove it. 6 | AR_FLAGS = cr 7 | 8 | X11_EXTRA_LIBS = -lnsl 9 | -------------------------------------------------------------------------------- /config/mh-vaxult2: -------------------------------------------------------------------------------- 1 | # The old BSD pcc isn't up to compiling parts of gdb so use gcc 2 | CC = gcc 3 | -------------------------------------------------------------------------------- /config/mh-x86pic: -------------------------------------------------------------------------------- 1 | PICFLAG=-fpic 2 | -------------------------------------------------------------------------------- /config/mpw/forward-include: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/config/mpw/forward-include -------------------------------------------------------------------------------- /config/mpw/mpw-touch: -------------------------------------------------------------------------------- 1 | # "Touch" command. 2 | 3 | If "`Exists "{1}"`" != "" 4 | SetFile -m . "{1}" 5 | Else 6 | Echo ' ' > "{1}" 7 | End If 8 | -------------------------------------------------------------------------------- /config/mpw/mpw-true: -------------------------------------------------------------------------------- 1 | Exit 0 2 | -------------------------------------------------------------------------------- /config/mpw/null-command: -------------------------------------------------------------------------------- 1 | # This command does nothing. 2 | -------------------------------------------------------------------------------- /config/mpw/open-brace: -------------------------------------------------------------------------------- 1 | # MPW makefiles seem not to have any way to get a literal open 2 | # brace into a rule anywhere, so this does the job. 3 | 4 | Echo '{' 5 | -------------------------------------------------------------------------------- /config/mpw/true: -------------------------------------------------------------------------------- 1 | Exit 0 2 | -------------------------------------------------------------------------------- /config/mt-aix43: -------------------------------------------------------------------------------- 1 | # AIX 4.3 and above requires -X32_64 flag to all ar and nm commands 2 | # to handle both 32-bit and 64-bit objects. 3 | AR_FOR_TARGET=ar -X32_64 4 | NM_FOR_TARGET=nm -X32_64 5 | -------------------------------------------------------------------------------- /config/mt-armpic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=-fPIC 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /config/mt-elfalphapic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=-fPIC 2 | -------------------------------------------------------------------------------- /config/mt-i370pic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=-fPIC 2 | -------------------------------------------------------------------------------- /config/mt-ia64pic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=-fpic 2 | -------------------------------------------------------------------------------- /config/mt-linux: -------------------------------------------------------------------------------- 1 | # When using glibc 2 on Linux we must always use vtable thunks. 2 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -fvtable-thunks -D_GNU_SOURCE 3 | -------------------------------------------------------------------------------- /config/mt-m68kpic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=-fpic 2 | -------------------------------------------------------------------------------- /config/mt-netware: -------------------------------------------------------------------------------- 1 | GDB_NLM_DEPS = all-gcc all-ld 2 | -------------------------------------------------------------------------------- /config/mt-ospace: -------------------------------------------------------------------------------- 1 | # Build libraries optimizing for space, not speed. 2 | CFLAGS_FOR_TARGET = -g -Os 3 | CXXFLAGS_FOR_TARGET = -g -Os 4 | -------------------------------------------------------------------------------- /config/mt-papic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=-fPIC 2 | -------------------------------------------------------------------------------- /config/mt-ppcpic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=-fPIC 2 | -------------------------------------------------------------------------------- /config/mt-s390pic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=-fpic 2 | -------------------------------------------------------------------------------- /config/mt-sparcpic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=`case '${LIBCFLAGS} ${LIBCXXFLAGS}' in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac` 2 | -------------------------------------------------------------------------------- /config/mt-v810: -------------------------------------------------------------------------------- 1 | CC_FOR_TARGET = ca732 -ansi 2 | AS_FOR_TARGET = as732 3 | AR_FOR_TARGET = ar732 4 | RANLIB_FOR_TARGET = true 5 | -------------------------------------------------------------------------------- /config/mt-wince: -------------------------------------------------------------------------------- 1 | # For Windows CE, we need to build the program that converts, copies, 2 | # and renames the platform SDK files into gcc directories. 3 | 4 | EXTRA_TARGET_HOST_ALL_MODULES:=$(EXTRA_TARGET_HOST_ALL_MODULES) all-utils 5 | EXTRA_TARGET_HOST_INSTALL_MODULES:=$(EXTRA_TARGET_HOST_INSTALL_MODULES) install-utils 6 | 7 | all-utils : all-libiberty 8 | 9 | install-utils : all-libiberty 10 | 11 | -------------------------------------------------------------------------------- /config/mt-x86pic: -------------------------------------------------------------------------------- 1 | PICFLAG_FOR_TARGET=-fpic 2 | -------------------------------------------------------------------------------- /etc/add-log.vi: -------------------------------------------------------------------------------- 1 | Here is a vi macro to create entries in the recommended format for 2 | GDB's ChangeLogs. 3 | 4 | map  1GO:r !date '+\%Y-\%m-\%d'2GA Jason Molenda (:r !whoamikJxA@:r !hostnameA)kJxkddjO * k$ 5 | 6 | It contains control and escape sequences, so don't just cut and paste it. 7 | You'll need to change the "Jason Molenda" bit, of course. :-) Put this 8 | in your $HOME/.exrc and when you type control-X in move-around-mode, 9 | you'll have a changelog template inserted. 10 | 11 | --- Jason Molenda 12 | -------------------------------------------------------------------------------- /etc/configbuild.jin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/etc/configbuild.jin -------------------------------------------------------------------------------- /etc/configbuild.tin: -------------------------------------------------------------------------------- 1 | config.in *configure* Makefile.in 2 | | | | 3 | | v | 4 | | config.status | 5 | | | | 6 | *config.status*<======+==========>*config.status* 7 | | | 8 | v v 9 | config.h Makefile 10 | -------------------------------------------------------------------------------- /etc/configdev.jin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/etc/configdev.jin -------------------------------------------------------------------------------- /etc/configure.in: -------------------------------------------------------------------------------- 1 | dnl Process this file with autoconf to produce a configure script. 2 | AC_PREREQ(2.5) 3 | AC_INIT(Makefile.in) 4 | 5 | AC_PROG_INSTALL 6 | 7 | AC_OUTPUT(Makefile) 8 | -------------------------------------------------------------------------------- /include/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/include/ChangeLog -------------------------------------------------------------------------------- /include/ChangeLog.MSYS: -------------------------------------------------------------------------------- 1 | 2 | 2001.09.21 Earnie Boyd 3 | 4 | * ChangeLog.cygwin: Renamed original ChangeLog. 5 | * libiberty.h: Add __MSYS__ preprocessor filters. 6 | -------------------------------------------------------------------------------- /include/MAINTAINERS: -------------------------------------------------------------------------------- 1 | See ../binutils/MAINTAINERS 2 | -------------------------------------------------------------------------------- /include/aout/hppa.h: -------------------------------------------------------------------------------- 1 | #include "filehdr.h" 2 | #include "aouthdr.h" 3 | #include "scnhdr.h" 4 | #include "spacehdr.h" 5 | #include "syms.h" 6 | 7 | 8 | -------------------------------------------------------------------------------- /include/bin-bugs.h: -------------------------------------------------------------------------------- 1 | #ifndef REPORT_BUGS_TO 2 | #define REPORT_BUGS_TO "bug-binutils@gnu.org" 3 | #endif 4 | -------------------------------------------------------------------------------- /include/mpw/README: -------------------------------------------------------------------------------- 1 | This is a collection of include files that help imitate Posix in MPW. 2 | -------------------------------------------------------------------------------- /include/mpw/dir.h: -------------------------------------------------------------------------------- 1 | /* The header gives the layout of a directory. */ 2 | 3 | #pragma once 4 | 5 | #ifndef _DIR_H 6 | #define _DIR_H 7 | 8 | #ifndef _TYPES_H /* not quite right */ 9 | #include 10 | #endif 11 | 12 | #define DIRBLKSIZ 512 /* size of directory block */ 13 | 14 | #ifndef DIRSIZ 15 | #define DIRSIZ 14 16 | #endif 17 | 18 | struct direct { 19 | ino_t d_ino; 20 | char d_name[DIRSIZ]; 21 | }; 22 | 23 | #endif /* _DIR_H */ 24 | -------------------------------------------------------------------------------- /include/mpw/grp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "sys/types.h" 4 | 5 | struct group { 6 | char *gr_name; 7 | gid_t gr_gid; 8 | char *gr_passwd; 9 | char **gr_mem; 10 | }; 11 | -------------------------------------------------------------------------------- /include/mpw/pwd.h: -------------------------------------------------------------------------------- 1 | #ifndef __pwd_h 2 | #define __pwd_h 3 | 4 | #include 5 | 6 | struct passwd { 7 | char *pw_name; 8 | uid_t pw_uid; 9 | gid_t pw_gid; 10 | char *pw_dir; 11 | char *pw_shell; 12 | char *pw_passwd; 13 | }; 14 | 15 | #endif /* ! __pwd_h */ 16 | -------------------------------------------------------------------------------- /include/mpw/sys/file.h: -------------------------------------------------------------------------------- 1 | /* empty */ 2 | -------------------------------------------------------------------------------- /include/mpw/sys/param.h: -------------------------------------------------------------------------------- 1 | /* empty */ 2 | -------------------------------------------------------------------------------- /include/mpw/sys/resource.h: -------------------------------------------------------------------------------- 1 | #ifndef __SYS_RESOURCE_H__ 2 | #define __SYS_RESOURCE_H__ 3 | 4 | struct rusage { 5 | struct timeval ru_utime; 6 | struct timeval ru_stime; 7 | }; 8 | 9 | #endif /* __SYS_RESOURCE_H__ */ 10 | -------------------------------------------------------------------------------- /include/mpw/sys/time.h: -------------------------------------------------------------------------------- 1 | /* Imitation sys/time.h. */ 2 | 3 | #ifndef __SYS_TIME_H__ 4 | #define __SYS_TIME_H__ 5 | 6 | #include 7 | 8 | struct timeval { 9 | long tv_sec; 10 | long tv_usec; 11 | }; 12 | 13 | #endif /* __SYS_TIME_H__ */ 14 | -------------------------------------------------------------------------------- /include/mpw/sys/types.h: -------------------------------------------------------------------------------- 1 | /* Imitation sys/types.h. */ 2 | 3 | #ifndef __SYS_TYPES_H__ 4 | #define __SYS_TYPES_H__ 5 | 6 | #include 7 | 8 | typedef short dev_t; 9 | typedef short ino_t; 10 | typedef unsigned short mode_t; 11 | typedef unsigned short uid_t; 12 | typedef unsigned short gid_t; 13 | typedef long off_t; 14 | 15 | #endif /* __SYS_TYPES_H__ */ 16 | -------------------------------------------------------------------------------- /include/mpw/utime.h: -------------------------------------------------------------------------------- 1 | 2 | struct utimbuf { 3 | time_t actime; 4 | time_t modtime; 5 | }; 6 | 7 | int utime (char *, struct utimbuf *); 8 | -------------------------------------------------------------------------------- /include/mpw/varargs.h: -------------------------------------------------------------------------------- 1 | /* varargs.h. */ 2 | #ifndef __va_list__ 3 | #define __va_list__ 4 | typedef char *va_list; 5 | #endif 6 | #define va_dcl int va_alist; 7 | #define va_start(list) list = (char *) &va_alist 8 | #define va_end(list) 9 | #define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1] 10 | -------------------------------------------------------------------------------- /include/regs/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/include/regs/ChangeLog -------------------------------------------------------------------------------- /libiberty/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/libiberty/ChangeLog -------------------------------------------------------------------------------- /libiberty/ChangeLog.MSYS: -------------------------------------------------------------------------------- 1 | 2 | 2001.09.21 Earnie Boyd 3 | 4 | * ChangeLog.cygwin: Renamed original ChangeLog. 5 | * getpwd.c: Add __MSYS__ preprocessor filters. 6 | * pexecute.c: Ditto. 7 | -------------------------------------------------------------------------------- /libiberty/atexit.c: -------------------------------------------------------------------------------- 1 | /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */ 2 | /* This function is in the public domain. --Mike Stump. */ 3 | 4 | #include "config.h" 5 | 6 | #ifdef HAVE_ON_EXIT 7 | 8 | int 9 | atexit(f) 10 | void (*f)(); 11 | { 12 | /* If the system doesn't provide a definition for atexit, use on_exit 13 | if the system provides that. */ 14 | on_exit (f, 0); 15 | return 0; 16 | } 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /libiberty/config.h-vms: -------------------------------------------------------------------------------- 1 | #ifndef NEED_strerror 2 | #define NEED_strerror 3 | #endif 4 | #ifndef NEED_basename 5 | #define NEED_basename 6 | #endif 7 | #ifndef NEED_psignal 8 | #define NEED_psignal 9 | #endif 10 | #ifndef NEED_on_exit 11 | #define NEED_on_exit 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /libiberty/config/mh-aix: -------------------------------------------------------------------------------- 1 | # This file is only needed by AIX 3.1. 2 | HDEFINES = -D__IEEE_BIG_ENDIAN 3 | 4 | # Most releases of AIX 3.1 include an incorrect internal version of copysign 5 | # in libc.a for use by some libc public functions including modf. The public 6 | # version of copysign in libm.a is usable. For the sake of libg++ (which 7 | # uses modf), we add copysign here. Supposedly, this problem is fixed in AIX 8 | # 3.1.8 and above, including all releases of AIX 3.2. 9 | EXTRA_OFILES = copysign.o 10 | -------------------------------------------------------------------------------- /libiberty/config/mh-cxux7: -------------------------------------------------------------------------------- 1 | HDEFINES = -DHARRIS_FLOAT_FORMAT 2 | -------------------------------------------------------------------------------- /libiberty/config/mh-fbsd21: -------------------------------------------------------------------------------- 1 | EXTRA_OFILES=vasprintf.o 2 | -------------------------------------------------------------------------------- /libiberty/config/mh-openedition: -------------------------------------------------------------------------------- 1 | HDEFINES = -D_ALL_SOURCE -DLE370 2 | CC=c89 3 | 4 | -------------------------------------------------------------------------------- /libiberty/config/mh-windows: -------------------------------------------------------------------------------- 1 | EXTRA_OFILES=asprintf.o strcasecmp.o strncasecmp.o vasprintf.o 2 | -------------------------------------------------------------------------------- /libiberty/index.c: -------------------------------------------------------------------------------- 1 | /* Stub implementation of (obsolete) index(). */ 2 | 3 | extern char * strchr(); 4 | 5 | char * 6 | index (s, c) 7 | char *s; 8 | int c; 9 | { 10 | return strchr (s, c); 11 | } 12 | -------------------------------------------------------------------------------- /libiberty/memmove.c: -------------------------------------------------------------------------------- 1 | /* Wrapper to implement ANSI C's memmove using BSD's bcopy. */ 2 | /* This function is in the public domain. --Per Bothner. */ 3 | #include 4 | #ifdef __STDC__ 5 | #include 6 | #else 7 | #define size_t unsigned long 8 | #endif 9 | 10 | PTR 11 | memmove (s1, s2, n) 12 | PTR s1; 13 | const PTR s2; 14 | size_t n; 15 | { 16 | bcopy (s2, s1, n); 17 | return s1; 18 | } 19 | -------------------------------------------------------------------------------- /libiberty/memset.c: -------------------------------------------------------------------------------- 1 | /* memset 2 | This implementation is in the public domain. */ 3 | 4 | #include 5 | #ifdef __STDC__ 6 | #include 7 | #else 8 | #define size_t unsigned long 9 | #endif 10 | 11 | PTR 12 | DEFUN(memset, (dest, val, len), 13 | PTR dest AND register int val AND register size_t len) 14 | { 15 | register unsigned char *ptr = (unsigned char*)dest; 16 | while (len-- > 0) 17 | *ptr++ = val; 18 | return dest; 19 | } 20 | -------------------------------------------------------------------------------- /libiberty/mpw-config.in: -------------------------------------------------------------------------------- 1 | # MPW configuration fragment for libiberty. 2 | 3 | Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new 4 | 5 | MoveIfChange "{o}"config.new "{o}"config.h 6 | 7 | 8 | -------------------------------------------------------------------------------- /libiberty/msdos.c: -------------------------------------------------------------------------------- 1 | char msg[] = "No vfork available - aborting\n"; 2 | vfork() 3 | { 4 | write(1, msg, sizeof(msg)); 5 | } 6 | 7 | sigsetmask() 8 | { 9 | /* no signals support in go32 (yet) */ 10 | } 11 | 12 | waitpid() 13 | { 14 | return -1; 15 | } 16 | -------------------------------------------------------------------------------- /libiberty/rindex.c: -------------------------------------------------------------------------------- 1 | /* Stub implementation of (obsolete) rindex(). */ 2 | 3 | extern char *strrchr (); 4 | 5 | char * 6 | rindex (s, c) 7 | char *s; 8 | int c; 9 | { 10 | return strrchr (s, c); 11 | } 12 | -------------------------------------------------------------------------------- /libiberty/strdup.c: -------------------------------------------------------------------------------- 1 | char * 2 | strdup(s) 3 | char *s; 4 | { 5 | char *result = (char*)malloc(strlen(s) + 1); 6 | if (result == (char*)0) 7 | return (char*)0; 8 | strcpy(result, s); 9 | return result; 10 | } 11 | -------------------------------------------------------------------------------- /libiberty/vfork.c: -------------------------------------------------------------------------------- 1 | /* Emulate vfork using just plain fork, for systems without a real vfork. 2 | This function is in the public domain. */ 3 | 4 | #include "ansidecl.h" 5 | 6 | extern int fork PARAMS ((void)); 7 | 8 | int 9 | vfork () 10 | { 11 | return (fork ()); 12 | } 13 | -------------------------------------------------------------------------------- /libiberty/vfprintf.c: -------------------------------------------------------------------------------- 1 | /* Provide a version vfprintf in terms of _doprnt. 2 | By Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98 3 | Copyright (C) 1998 Free Software Foundation, Inc. 4 | */ 5 | 6 | #ifdef __STDC__ 7 | #include 8 | #else 9 | #include 10 | #endif 11 | #include 12 | #undef vfprintf 13 | 14 | int 15 | vfprintf (stream, format, ap) 16 | FILE * stream; 17 | const char * format; 18 | va_list ap; 19 | { 20 | return _doprnt (format, ap, stream); 21 | } 22 | -------------------------------------------------------------------------------- /libiberty/vprintf.c: -------------------------------------------------------------------------------- 1 | #ifdef __STDC__ 2 | #include 3 | #else 4 | #include 5 | #endif 6 | #include 7 | #include 8 | #undef vprintf 9 | int 10 | vprintf (format, ap) 11 | const char *format; 12 | va_list ap; 13 | { 14 | return vfprintf (stdout, format, ap); 15 | } 16 | -------------------------------------------------------------------------------- /libiberty/waitpid.c: -------------------------------------------------------------------------------- 1 | #ifdef HAVE_CONFIG_H 2 | #include "config.h" 3 | #endif 4 | #ifdef HAVE_SYS_WAIT_H 5 | #include 6 | #endif 7 | 8 | int 9 | waitpid (pid, stat_loc, options) 10 | int pid, *stat_loc, options; 11 | { 12 | for (;;) 13 | { 14 | int wpid = wait(stat_loc); 15 | if (wpid == pid || wpid == -1) 16 | return wpid; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /newlib/libc/ctype/_tolower.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef _tolower 5 | int 6 | _DEFUN(_tolower,(c),int c) 7 | { 8 | return isupper(c) ? (c) - 'A' + 'a' : c; 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/ctype/_toupper.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | 4 | #undef _toupper 5 | int 6 | _DEFUN(_toupper,(c),int c) 7 | { 8 | return islower(c) ? c - 'a' + 'A' : c; 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/errno/errno.c: -------------------------------------------------------------------------------- 1 | /* The errno variable is stored in the reentrancy structure. This 2 | function returns its address for use by the macro errno defined in 3 | errno.h. */ 4 | 5 | #include 6 | #include 7 | 8 | #ifndef _REENT_ONLY 9 | 10 | int * 11 | __errno () 12 | { 13 | return &_REENT->_errno; 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /newlib/libc/include/dirent.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | #include 5 | 6 | #if !defined(MAXNAMLEN) && !defined(_POSIX_SOURCE) 7 | #define MAXNAMLEN 1024 8 | #endif 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | -------------------------------------------------------------------------------- /newlib/libc/include/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /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/include/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /newlib/libc/include/machine/ansi.h: -------------------------------------------------------------------------------- 1 | /* dummy header file to support BSD compiler */ 2 | -------------------------------------------------------------------------------- /newlib/libc/include/machine/time.h: -------------------------------------------------------------------------------- 1 | #ifndef _MACHTIME_H_ 2 | #define _MACHTIME_H_ 3 | 4 | #if defined(__rtems__) 5 | #define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK) 6 | #else /* !__rtems__ */ 7 | #if defined(__arm__) || defined(__thumb__) 8 | #define _CLOCKS_PER_SEC_ 100 9 | #endif 10 | #endif /* !__rtems__ */ 11 | 12 | #endif /* _MACHTIME_H_ */ 13 | 14 | 15 | -------------------------------------------------------------------------------- /newlib/libc/include/machine/types.h: -------------------------------------------------------------------------------- 1 | #ifndef _MACHTYPES_H_ 2 | #define _MACHTYPES_H_ 3 | 4 | #define _CLOCK_T_ unsigned long /* clock() */ 5 | #define _TIME_T_ long /* time() */ 6 | #define _CLOCKID_T_ unsigned long 7 | #define _TIMER_T_ unsigned long 8 | 9 | 10 | #endif /* _MACHTYPES_H_ */ 11 | 12 | 13 | -------------------------------------------------------------------------------- /newlib/libc/include/paths.h: -------------------------------------------------------------------------------- 1 | #ifndef _PATHS_H_ 2 | #define _PATHS_H_ 3 | 4 | #define _PATH_DEV "/dev/" 5 | #define _PATH_BSHELL "/bin/sh" 6 | 7 | #endif /* _PATHS_H_ */ 8 | -------------------------------------------------------------------------------- /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/include/setjmp.h: -------------------------------------------------------------------------------- 1 | /* 2 | setjmp.h 3 | stubs for future use. 4 | */ 5 | 6 | #ifndef _SETJMP_H_ 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | #define _SETJMP_H_ 11 | 12 | #include "_ansi.h" 13 | #include 14 | 15 | void _EXFUN(longjmp,(jmp_buf __jmpb, int __retval)); 16 | int _EXFUN(setjmp,(jmp_buf __jmpb)); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | #endif /* _SETJMP_H_ */ 22 | 23 | -------------------------------------------------------------------------------- /newlib/libc/include/sys/file.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | -------------------------------------------------------------------------------- /newlib/libc/include/sys/param.h: -------------------------------------------------------------------------------- 1 | /* This is a dummy file, not customized for any 2 | particular system. If there is a param.h in libc/sys/SYSDIR/sys, 3 | it will override this one. */ 4 | 5 | #ifndef _SYS_PARAM_H 6 | # define _SYS_PARAM_H 7 | 8 | # define HZ (60) 9 | # define NOFILE (60) 10 | # define PATHSIZE (1024) 11 | 12 | #ifdef __i386__ 13 | #define BIG_ENDIAN 4321 14 | #define LITTLE_ENDIAN 1234 15 | #define BYTE_ORDER LITTLE_ENDIAN 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /newlib/libc/include/sys/resource.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_RESOURCE_H_ 2 | #define _SYS_RESOURCE_H_ 3 | 4 | #include 5 | 6 | #define RUSAGE_SELF 0 /* calling process */ 7 | #define RUSAGE_CHILDREN -1 /* terminated child processes */ 8 | 9 | struct rusage { 10 | struct timeval ru_utime; /* user time used */ 11 | struct timeval ru_stime; /* system time used */ 12 | }; 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /newlib/libc/include/sys/utime.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_UTIME_H 2 | #define _SYS_UTIME_H 3 | 4 | /* This is a dummy file, not customized for any 5 | particular system. If there is a utime.h in libc/sys/SYSDIR/sys, 6 | it will override this one. */ 7 | 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | 12 | struct utimbuf 13 | { 14 | time_t actime; 15 | time_t modtime; 16 | }; 17 | 18 | #ifdef __cplusplus 19 | }; 20 | #endif 21 | 22 | #endif /* _SYS_UTIME_H */ 23 | -------------------------------------------------------------------------------- /newlib/libc/include/termios.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | #include 5 | #ifdef __cplusplus 6 | } 7 | #endif 8 | -------------------------------------------------------------------------------- /newlib/libc/include/unistd.h: -------------------------------------------------------------------------------- 1 | #ifndef _UNISTD_H_ 2 | #define _UNISTD_H_ 3 | 4 | # include 5 | 6 | #endif /* _UNISTD_H_ */ 7 | -------------------------------------------------------------------------------- /newlib/libc/include/utime.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | 5 | /* The utime function is defined in libc/sys//sys if it exists. */ 6 | #include 7 | 8 | #ifdef __cplusplus 9 | } 10 | #endif 11 | -------------------------------------------------------------------------------- /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/machine/a29k/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/a29k/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/a29k configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(Makefile.am) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/arm/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/arm/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/arm configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(Makefile.am) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(d10v) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../..) 9 | 10 | NEWLIB_CONFIGURE(../..) 11 | 12 | if test -n "${machine_dir}"; then 13 | AC_CONFIG_SUBDIRS(${machine_dir}) 14 | fi 15 | 16 | AM_CONDITIONAL(HAVE_MACHINE_DIR, test x${machine_dir} != x) 17 | 18 | AC_OUTPUT(Makefile) 19 | -------------------------------------------------------------------------------- /newlib/libc/machine/d10v/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/d10v/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/d10v configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/d30v/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/d30v/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/d30v configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/fr30/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/fr30/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/arm configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(Makefile.am) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/h8300/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = reg_memcpy.S reg_memset.S strcmp.S memcpy.S memset.S \ 10 | setjmp.S 11 | 12 | ACLOCAL_AMFLAGS = -I ../../.. 13 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 14 | -------------------------------------------------------------------------------- /newlib/libc/machine/h8300/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/h8300 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(memcpy.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/h8300/reg_memset.S: -------------------------------------------------------------------------------- 1 | #include "defines.h" 2 | 3 | #ifdef __H8300H__ 4 | .h8300h 5 | #endif 6 | 7 | #ifdef __H8300S__ 8 | .h8300s 9 | #endif 10 | 11 | 12 | ; dst A0 13 | ; src A1 14 | ; len A2 15 | 16 | .global ___reg_memset 17 | ___reg_memset: 18 | MOVP A0P,A3P 19 | MOVP A2P,A2P 20 | beq noset 21 | 22 | memloop: 23 | mov.b A1L,@A0P 24 | adds #1,A0P 25 | subs #1,A2P 26 | MOVP A2P,A2P 27 | bne memloop 28 | 29 | noset: 30 | MOVP A3P,A0P 31 | rts 32 | 33 | -------------------------------------------------------------------------------- /newlib/libc/machine/h8500/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = divsi3.c mulsi3.c divhi3.S shifts.c cmpsi.c psi.S setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/h8500/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/h8500 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(cmpsi.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /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/h8500/negsi2.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | long 4 | __negsi2(long x) 5 | { 6 | return ~x+1; 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/machine/h8500/setjmp.S: -------------------------------------------------------------------------------- 1 | ! 2 | .file "setjmp.S" 3 | .section .text 4 | 5 | .global _setjmp 6 | _setjmp: 7 | mov.w r7,@r0+ 8 | mov.w r6,@r0+ 9 | mov.w r5,@r0+ 10 | mov.w @sp,r1 11 | mov.w r1,@r0 12 | clr.w r0 13 | rts 14 | 15 | .global _longjmp 16 | _longjmp: 17 | mov.w @r0+,r7 18 | mov.w @r0+,r6 19 | mov.w @r0+,r5 20 | mov.w @r0,r2 21 | mov.w r2,@sp 22 | mov.w r1,r0 23 | tst.w r0 24 | bne .L1 25 | mov.w #1,r0 26 | .L1: 27 | rts 28 | -------------------------------------------------------------------------------- /newlib/libc/machine/hppa/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = \ 10 | memchr.S memcmp.S memcpy.S memset.S setjmp.S strcat.S strcmp.S \ 11 | strcpy.S strlen.S strncat.S strncmp.S strncpy.S 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/machine/hppa/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/hppa configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(memchr.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/i386/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/i386 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AM_CONDITIONAL(MACH_ADD_SETJMP, test "x$mach_add_setjmp" = 'xtrue') 13 | 14 | AC_OUTPUT(Makefile) 15 | -------------------------------------------------------------------------------- /newlib/libc/machine/i960/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/i960/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/i960 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(memccpy_ca.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/m32r/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/m32r/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/m32r configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/m68k/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S strcpy.c strlen.c 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/m68k/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/m68k configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/m88k/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/m88k/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/m88k configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/mips/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/mips/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/mips configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/mn10200/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/mn10200/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/mn10200 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/mn10300/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S memchr.S memcmp.S memcpy.S memset.S strchr.S \ 10 | strcmp.S strcpy.S strlen.S 11 | 12 | ACLOCAL_AMFLAGS = -I ../../.. 13 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 14 | -------------------------------------------------------------------------------- /newlib/libc/machine/mn10300/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/mn10300 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(memchr.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/necv70/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = fastmath.s setjmp.s 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/necv70/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/necv70 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(fastmath.s) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/necv70/machine/registers.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | typedef struct 4 | { 5 | int fp_rounding:2; /* fp rounding control */ 6 | int integer_rounding:1; /* integer rounding */ 7 | int rfu:1; /* reserved */ 8 | int fp_trap:5; /* floating point trap bits */ 9 | int otm:1; 10 | int rfu2:3; 11 | int att:3; 12 | int rfu3:16; 13 | } v60_tkcw_type; 14 | 15 | -------------------------------------------------------------------------------- /newlib/libc/machine/powerpc/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/powerpc/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/powerpc configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/sh/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = memcpy.S memset.S setjmp.S strcpy.S strcmp.S 10 | 11 | memcpy.o: asm.h 12 | memset.o: asm.h 13 | setjmp.o: asm.h 14 | strcpy.o: asm.h 15 | strcmp.o: asm.h 16 | 17 | ACLOCAL_AMFLAGS = -I ../../.. 18 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 19 | -------------------------------------------------------------------------------- /newlib/libc/machine/sh/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/sh configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(asm.h) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/sparc/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = scan.c shuffle.c setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/sparc/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/sparc configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(shuffle.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/sparc/scan.c: -------------------------------------------------------------------------------- 1 | /* Cover function to sparclet `scan' instruction. 2 | 3 | This file is in the public domain. */ 4 | 5 | #ifdef __sparclet__ 6 | 7 | int 8 | scan (int a, int b) 9 | { 10 | int res; 11 | __asm__ ("scan %1,%2,%0" : "=r" (res) : "r" (a), "r" (b)); 12 | return res; 13 | } 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /newlib/libc/machine/sparc/shuffle.c: -------------------------------------------------------------------------------- 1 | /* Cover function to sparclet `shuffle' instruction. 2 | 3 | This file is in the public domain. */ 4 | 5 | #ifdef __sparclet__ 6 | 7 | int 8 | shuffle (int a, int b) 9 | { 10 | int res; 11 | __asm__ ("shuffle %1,%2,%0" : "=r" (res) : "r" (a), "r" (b)); 12 | return res; 13 | } 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /newlib/libc/machine/tic80/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/tic80/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/tic80 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/v850/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = setjmp.S 10 | 11 | ACLOCAL_AMFLAGS = -I ../../.. 12 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/v850/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/v850 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(setjmp.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/machine/w65/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = udivhi3.s umodhi3.s smulhi3.s lshrhi.s sdivhi3.s mulsi3.c \ 10 | divsi3.c cmpsi.c 11 | 12 | ACLOCAL_AMFLAGS = -I ../../.. 13 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 14 | -------------------------------------------------------------------------------- /newlib/libc/machine/w65/cmpsi.c: -------------------------------------------------------------------------------- 1 | 2 | union u { 3 | struct { 4 | short int msw; 5 | unsigned short lsw; 6 | } w; 7 | long l; 8 | }; 9 | 10 | int 11 | __cmpsi2(long arga, 12 | short int msw_b, unsigned short int lsw_b) 13 | { 14 | union u u; 15 | u.l = arga; 16 | 17 | if (u.w.msw != msw_b) 18 | { 19 | if (u.w.msw < msw_b) return 0; 20 | return 2; 21 | } 22 | if (u.w.lsw != lsw_b) 23 | { 24 | if (u.w.lsw < lsw_b) return 0; 25 | return 2; 26 | } 27 | return 1; 28 | } 29 | -------------------------------------------------------------------------------- /newlib/libc/machine/w65/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/machine/w65 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(cmpsi.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /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/machine/w65/smulhi3.s: -------------------------------------------------------------------------------- 1 | .global ___smulhi3 2 | ___smulhi3: 3 | 4 | 5 | 6 | lda #0 7 | mult1: ldx ___udivhi3 5 | stx 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 | -------------------------------------------------------------------------------- /newlib/libc/posix/execve.c: -------------------------------------------------------------------------------- 1 | /* execve.c */ 2 | 3 | /* This and the other exec*.c files in this directory require 4 | the target to provide the _execve syscall. */ 5 | 6 | 7 | #include 8 | 9 | 10 | int 11 | execve (const char *path, char * const argv[], char * const envp[]) 12 | { 13 | return _execve (path, argv, envp); 14 | } 15 | -------------------------------------------------------------------------------- /newlib/libc/posix/isatty.c: -------------------------------------------------------------------------------- 1 | /* isatty.c */ 2 | 3 | /* Dumb implementation so programs will at least run. */ 4 | 5 | #include 6 | 7 | int 8 | isatty (int fd) 9 | { 10 | struct stat buf; 11 | 12 | if (fstat (fd, &buf) < 0) 13 | return 0; 14 | if (S_ISCHR (buf.st_mode)) 15 | return 1; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/reent/impure.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* Note that there is a copy of this in sys/reent.h. */ 4 | #ifndef __ATTRIBUTE_IMPURE_PTR__ 5 | #define __ATTRIBUTE_IMPURE_PTR__ 6 | #endif 7 | 8 | #ifndef __ATTRIBUTE_IMPURE_DATA__ 9 | #define __ATTRIBUTE_IMPURE_DATA__ 10 | #endif 11 | 12 | static struct _reent __ATTRIBUTE_IMPURE_DATA__ impure_data = _REENT_INIT (impure_data); 13 | struct _reent *__ATTRIBUTE_IMPURE_PTR__ _impure_ptr = &impure_data; 14 | -------------------------------------------------------------------------------- /newlib/libc/reent/signgam.c: -------------------------------------------------------------------------------- 1 | /* The signgam variable is stored in the reentrancy structure. This 2 | function returns its address for use by the macro signgam defined in 3 | math.h. */ 4 | 5 | #include 6 | #include 7 | 8 | #ifndef _REENT_ONLY 9 | 10 | int * 11 | __signgam () 12 | { 13 | return &_REENT->_new._reent._gamma_signgam; 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/atexit.h: -------------------------------------------------------------------------------- 1 | /* 2 | * %G% (UofMD) %D% 3 | */ 4 | 5 | #define ATEXIT_SIZE 32 /* must be at least 32 to guarantee ANSI conformance */ 6 | 7 | struct atexit { 8 | struct atexit *next; /* next in list */ 9 | int ind; /* next index in this table */ 10 | void (*fns[ATEXIT_SIZE])(); /* the table itself */ 11 | }; 12 | 13 | struct atexit *__atexit; /* points to head of LIFO stack */ 14 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/atoff.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include <_ansi.h> 3 | 4 | float 5 | _DEFUN (atoff, (s), 6 | _CONST char *s) 7 | { 8 | return strtodf (s, NULL); 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/atol.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Andy Wilson, 2-Oct-89. 3 | */ 4 | 5 | #include 6 | #include <_ansi.h> 7 | 8 | long 9 | _DEFUN (atol, (s), _CONST char *s) 10 | { 11 | return strtol (s, NULL, 10); 12 | } 13 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/envlock.h: -------------------------------------------------------------------------------- 1 | /* envlock.h -- header file for env routines. */ 2 | 3 | #ifndef _INCLUDE_ENVLOCK_H_ 4 | #define _INCLUDE_ENVLOCK_H_ 5 | 6 | #include <_ansi.h> 7 | #include 8 | 9 | #define ENV_LOCK __env_lock(reent_ptr) 10 | #define ENV_UNLOCK __env_unlock(reent_ptr) 11 | 12 | void _EXFUN(__env_lock,(struct _reent *reent)); 13 | void _EXFUN(__env_unlock,(struct _reent *reent)); 14 | 15 | #endif /* _INCLUDE_ENVLOCK_H_ */ 16 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/local.h: -------------------------------------------------------------------------------- 1 | /* Misc. local definitions for libc/stdlib */ 2 | 3 | #ifndef _LOCAL_H_ 4 | #define _LOCAL_H_ 5 | 6 | char * _EXFUN(_gcvt,(struct _reent *, double , int , char *, char, int)); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/malign.c: -------------------------------------------------------------------------------- 1 | /* malign.c -- a wrapper for memalign_r. */ 2 | 3 | #include <_ansi.h> 4 | #include 5 | #include 6 | #include 7 | 8 | #ifndef _REENT_ONLY 9 | 10 | _PTR 11 | _DEFUN (memalign, (align, nbytes), 12 | size_t align _AND 13 | size_t nbytes) 14 | { 15 | return _memalign_r (_REENT, align, nbytes); 16 | } 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/msize.c: -------------------------------------------------------------------------------- 1 | /* msize.c -- a wrapper for malloc_usable_size. */ 2 | 3 | #include <_ansi.h> 4 | #include 5 | #include 6 | #include 7 | 8 | #ifndef _REENT_ONLY 9 | 10 | size_t 11 | _DEFUN (malloc_usable_size, (ptr), 12 | _PTR ptr) 13 | { 14 | return _malloc_usable_size_r (_REENT, ptr); 15 | } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/mtrim.c: -------------------------------------------------------------------------------- 1 | /* mtrim.c -- a wrapper for malloc_trim. */ 2 | 3 | #include <_ansi.h> 4 | #include 5 | #include 6 | #include 7 | 8 | #ifndef _REENT_ONLY 9 | 10 | int 11 | _DEFUN (malloc_trim, (pad), 12 | size_t pad) 13 | { 14 | return _malloc_trim_r (_REENT, pad); 15 | } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/realloc.c: -------------------------------------------------------------------------------- 1 | #ifdef MALLOC_PROVIDED 2 | int _dummy_calloc = 1; 3 | #else 4 | /* realloc.c -- a wrapper for realloc_r. */ 5 | 6 | #include <_ansi.h> 7 | #include 8 | #include 9 | #include 10 | 11 | #ifndef _REENT_ONLY 12 | 13 | _PTR 14 | _DEFUN (realloc, (ap, nbytes), 15 | _PTR ap _AND 16 | size_t nbytes) 17 | { 18 | return _realloc_r (_REENT, ap, nbytes); 19 | } 20 | 21 | #endif 22 | #endif /* MALLOC_PROVIDED */ 23 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/strdup.c: -------------------------------------------------------------------------------- 1 | #ifndef _REENT_ONLY 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | char * 8 | _DEFUN (strdup, (str), _CONST char *str) 9 | { 10 | return _strdup_r (_REENT, str); 11 | } 12 | 13 | #endif /* !_REENT_ONLY */ 14 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/strdup_r.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | char * 6 | _DEFUN (_strdup_r, (reent_ptr, str), 7 | struct _reent *reent_ptr _AND 8 | _CONST char *str) 9 | { 10 | size_t len = strlen (str) + 1; 11 | char *copy = _malloc_r (reent_ptr, len); 12 | if (copy) 13 | { 14 | memcpy (copy, str, len); 15 | } 16 | return copy; 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/stdlib/valloc.c: -------------------------------------------------------------------------------- 1 | /* valloc.c -- a wrapper for valloc_r and pvalloc_r. */ 2 | 3 | #include <_ansi.h> 4 | #include 5 | #include 6 | #include 7 | 8 | #ifndef _REENT_ONLY 9 | 10 | _PTR 11 | _DEFUN (valloc, (nbytes), 12 | size_t nbytes) 13 | { 14 | return _valloc_r (_REENT, nbytes); 15 | } 16 | 17 | _PTR 18 | _DEFUN (pvalloc, (nbytes), 19 | size_t nbytes) 20 | { 21 | return _pvalloc_r (_REENT, nbytes); 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /newlib/libc/string/u_strerr.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | 3 | char * 4 | _DEFUN(_user_strerror, (errnum), 5 | int errnum) 6 | { 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/a29khif/_isatty.s: -------------------------------------------------------------------------------- 1 | .file "isatty.c" 2 | .sect .lit,lit 3 | gcc2_compiled.: 4 | .text 5 | .align 4 6 | .global __isatty 7 | .global _isatty 8 | .word 0x30000 9 | __isatty: 10 | _isatty: 11 | sub gr1,gr1,16 12 | asgeu V_SPILL,gr1,gr126 13 | add lr1,gr1,28 14 | const gr116,__iostat 15 | consth gr116,__iostat 16 | calli lr0,gr116 17 | sll lr2,lr6,0 18 | sll gr96,gr96,30 19 | add gr1,gr1,16 20 | srl gr96,gr96,31 21 | jmpi lr0 22 | asleu V_FILL,lr1,gr127 23 | -------------------------------------------------------------------------------- /newlib/libc/sys/a29khif/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/a29khif configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(_alloc.s) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /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 | _DEFUN_VOID (_getpid) 10 | { 11 | return 1; 12 | } 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/a29khif/kill.c: -------------------------------------------------------------------------------- 1 | /* Stub for kill. */ 2 | 3 | #include <_ansi.h> 4 | #include 5 | 6 | /* The pid argument should be of type pid_t. */ 7 | 8 | int 9 | _DEFUN (_kill, (pid, sig), 10 | int pid _AND 11 | int sig) 12 | { 13 | if (pid == 1 || pid < 0) 14 | { 15 | if (sig == 0) 16 | return 0; 17 | return raise (sig); 18 | } 19 | errno = EINVAL; 20 | return -1; 21 | } 22 | -------------------------------------------------------------------------------- /newlib/libc/sys/arm/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = syscalls.c libcfunc.c trap.S setjmp.S 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/arm/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/arm configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(trap.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/arm/sys/param.h: -------------------------------------------------------------------------------- 1 | /* ARM configuration file; HZ is 100 rather than the default 60 */ 2 | 3 | #ifndef _SYS_PARAM_H 4 | # define _SYS_PARAM_H 5 | 6 | # define HZ (100) 7 | # define NOFILE (60) 8 | # define PATHSIZE (1024) 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /newlib/libc/sys/cygwin/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = 10 | 11 | # This is a hack to force automake to include a definition for 12 | # COMPILE. 13 | EXTRA_LIBRARIES = libfoo.a 14 | libfoo_a_SOURCES = crt0.c 15 | 16 | all: crt0.o 17 | 18 | ACLOCAL_AMFLAGS = -I ../../.. 19 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 20 | -------------------------------------------------------------------------------- /newlib/libc/sys/cygwin/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/cygwin32 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(crt0.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/cygwin/include/unistd.h: -------------------------------------------------------------------------------- 1 | /* unistd.h for Cygwin. */ 2 | 3 | #ifndef _UNISTD_H_ 4 | #define _UNISTD_H_ 5 | 6 | # include 7 | # include 8 | 9 | #endif /* _UNISTD_H_ */ 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/d10v/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = syscalls.c trap.S creat.c 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/d10v/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/d10v configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(creat.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /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/decstation/_main.c: -------------------------------------------------------------------------------- 1 | 2 | __main() 3 | { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/decstation/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/decstation configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(_main.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/_main.c: -------------------------------------------------------------------------------- 1 | __main() 2 | { 3 | } 4 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/abort.c: -------------------------------------------------------------------------------- 1 | 2 | void 3 | abort() 4 | { 5 | 6 | exit(1); 7 | 8 | } 9 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/bdos.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "dos.h" 3 | 4 | bdos(int func, unsigned dx, unsigned al) 5 | { 6 | union REGS r; 7 | r.x.dx = dx; 8 | r.h.ah = func; 9 | r.h.al = al; 10 | int86(0x21, &r, &r); 11 | return r.x.ax; 12 | } 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/bdosptr.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "dos.h" 3 | 4 | bdosptr(int func, void *dx, unsigned al) 5 | { 6 | union REGS r; 7 | r.x.dx = dx; 8 | r.h.ah = func; 9 | r.h.al = al; 10 | int86(0x21, &r, &r); 11 | return r.x.ax; 12 | } 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/go32 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(djtime.h) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/findfirs.s: -------------------------------------------------------------------------------- 1 | .globl _findfirst 2 | _findfirst: 3 | pushl %ebx 4 | pushl %esi 5 | pushl %edi 6 | movl 20(%esp),%edx 7 | movb $0x1a,%ah 8 | int $0x21 9 | 10 | movl 16(%esp),%edx 11 | movl 24(%esp),%ecx 12 | movb $0x4e,%ah 13 | int $0x21 14 | 15 | popl %edi 16 | popl %esi 17 | popl %ebx 18 | jmp syscall_check 19 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/findnext.s: -------------------------------------------------------------------------------- 1 | .globl _findnext 2 | _findnext: 3 | pushl %ebx 4 | pushl %esi 5 | pushl %edi 6 | movl 16(%esp),%edx 7 | movb $0x1a,%ah 8 | int $0x21 9 | 10 | movb $0x4f,%ah 11 | int $0x21 12 | 13 | popl %edi 14 | popl %esi 15 | popl %ebx 16 | jmp syscall_check 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/getdate.c: -------------------------------------------------------------------------------- 1 | #include "dos.h" 2 | 3 | void getdate( struct date *dateblk) 4 | { 5 | union REGS regs; 6 | regs.h.ah = 0x2a; 7 | intdos( ®s, ®s); 8 | dateblk-> da_year = regs.x.cx; 9 | dateblk-> da_mon = regs.h.dh; 10 | dateblk-> da_day = regs.h.dl; 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/getgid.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | getgid() 5 | { 6 | 7 | return 20; 8 | 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/gettime.c: -------------------------------------------------------------------------------- 1 | #include "dos.h" 2 | 3 | void gettime( struct time *tp) 4 | { 5 | union REGS regs; 6 | regs.h.ah = 0x2c; 7 | intdos( ®s, ®s); 8 | tp->ti_hour = regs.h.ch; 9 | tp->ti_min = regs.h.cl; 10 | tp->ti_sec = regs.h.dh; 11 | tp->ti_hund = regs.h.dl; 12 | } 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/getuid.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | getuid() 5 | { 6 | 7 | return 10; 8 | 9 | } 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/infoblk.c: -------------------------------------------------------------------------------- 1 | #include "go32.h" 2 | 3 | Go32_Info_Block _go32_info_block = { sizeof(Go32_Info_Block) }; 4 | 5 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/intdos.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | intdos(union REGS *in, union REGS *out) 5 | { 6 | return int86(0x21, in, out); 7 | } 8 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/intdosx.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | intdosx(union REGS *in, union REGS *out, struct SREGS *seg) 4 | { 5 | return int86x(0x21, in, out, seg); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/kill.c: -------------------------------------------------------------------------------- 1 | kill() 2 | { 3 | 4 | 5 | } 6 | 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/sys/fcntl.h: -------------------------------------------------------------------------------- 1 | #define O_RDONLY 0x0001 2 | #define O_WRONLY 0x0002 3 | #define O_RDWR 0x0004 4 | #define O_CREAT 0x0100 5 | #define O_TRUNC 0x0200 6 | #define O_EXCL 0x0400 7 | #define O_APPEND 0x0800 8 | #define O_TEXT 0x4000 9 | #define O_BINARY 0x8000 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/umask.c: -------------------------------------------------------------------------------- 1 | umask() 2 | { 3 | return 0644; 4 | } 5 | -------------------------------------------------------------------------------- /newlib/libc/sys/go32/writestub.c: -------------------------------------------------------------------------------- 1 | 2 | sswrite(a,b,c) 3 | { 4 | /*write(1,"writing\n",9);*/ 5 | return write_real(a,b,c); 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/h8300hms/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = syscalls.c write.c _exit.c sbrk.c misc.c crt1.c 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/h8300hms/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/h8300hms configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(crt1.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/h8300hms/crt1.c: -------------------------------------------------------------------------------- 1 | void __main () 2 | { 3 | #ifndef __ELF__ 4 | static int initialized; 5 | if (! initialized) 6 | { 7 | typedef void (*pfunc) (); 8 | extern pfunc __ctors[]; 9 | extern pfunc __ctors_end[]; 10 | pfunc *p; 11 | 12 | initialized = 1; 13 | for (p = __ctors_end; p > __ctors; ) 14 | (*--p) (); 15 | 16 | } 17 | #endif 18 | } 19 | -------------------------------------------------------------------------------- /newlib/libc/sys/h8300hms/write.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | int _write(file, ptr, len) 4 | int file; 5 | char *ptr; 6 | int len; 7 | { 8 | int todo; 9 | 10 | for (todo = 0; todo < len; todo++) 11 | { 12 | asm("mov.b #0,r1l\n mov.b %0l,r2l\njsr @@0xc4" : : "r" (*ptr++) : "r1", "r2"); 13 | } 14 | return len; 15 | } 16 | 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/h8500hms/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = syscalls.c misc.c 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/h8500hms/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/h8500hms configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(misc.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/linux configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(linux.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/ids.c: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/ids.c - System calls related to user and group ids */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | 11 | _syscall1(int,setuid,uid_t,uid) 12 | _syscall0(uid_t,getuid) 13 | _syscall1(int,setgid,gid_t,gid) 14 | _syscall0(gid_t,getgid) 15 | _syscall0(uid_t,geteuid) 16 | _syscall0(gid_t,getegid) 17 | _syscall2(int,getgroups,int,size,gid_t *,list) 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/include/alloca.h: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/include/alloca.h - Allocate memory on stack */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | #ifndef _NEWLIB_ALLOCA_H 7 | #define _NEWLIB_ALLOCA_H 8 | 9 | /* Simple, since we know that we use gcc */ 10 | 11 | #define alloca(size) __builtin_alloca(size) 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/include/unistd.h: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/include/unistd.h - Various standard functions */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | #ifndef _NEWLIB_UNISTD_H 7 | #define _NEWLIB_UNISTD_H 8 | 9 | #include 10 | #include 11 | 12 | /* Declare some missing goodies */ 13 | 14 | extern char *optarg; 15 | extern int optind, opterr, optopt; 16 | 17 | 18 | int readlink(const char *path, char *buf, size_t bufsiz); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/linux.c: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/linux.c - System-specific system calls */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | /* 7 | * Most system call wrappers have moved to utilities; future fate of this file 8 | * is guided by glibc/autoconf compatibility and FFS 9 | */ 10 | 11 | #include 12 | 13 | 14 | /* _syscall1(int,delete_module,const char *,name) */ 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/linux/select.c: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/select.c - The select system calls */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | 11 | _syscall5(int,select,int,n,fd_set *,readfds,fd_set *,writefds, 12 | fd_set *,exceptfds,struct timeval *,timeout) 13 | -------------------------------------------------------------------------------- /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/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 | int ioctl(int fd,int request,...); 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /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/sys/termios.h: -------------------------------------------------------------------------------- 1 | /* libc/sys/linux/sys/termios.h - Terminal control definitions */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | 5 | 6 | #ifndef _SYS_TERMIOS_H 7 | #define _SYS_TERMIOS_H 8 | 9 | #include 10 | 11 | /* grr, this shouldn't have to be here */ 12 | 13 | int tcgetattr(int fd,struct termios *termios_p); 14 | int tcsetattr(int fd,int optional_actions,const struct termios *termios_p); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /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/sys/m88kbug/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = syscalls.c 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/m88kbug/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/m88kbug configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(syscalls.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/m88kbug/crt0.c: -------------------------------------------------------------------------------- 1 | extern int main(int argc, char **argv); 2 | 3 | extern char edata; 4 | extern char end; 5 | extern char stack; 6 | 7 | _start() 8 | { 9 | char *p; 10 | 11 | p = &edata + 1; 12 | while (p < &end) 13 | { 14 | *p++ = 0; 15 | } 16 | 17 | main(0, 0); 18 | _exit(); 19 | } 20 | -------------------------------------------------------------------------------- /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/sys/msys/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = 10 | 11 | # This is a hack to force automake to include a definition for 12 | # COMPILE. 13 | EXTRA_LIBRARIES = libfoo.a 14 | libfoo_a_SOURCES = crt0.c 15 | 16 | all: crt0.o 17 | 18 | ACLOCAL_AMFLAGS = -I ../../.. 19 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 20 | -------------------------------------------------------------------------------- /newlib/libc/sys/msys/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/cygwin32 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(crt0.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/msys/include/unistd.h: -------------------------------------------------------------------------------- 1 | /* unistd.h for Cygwin. */ 2 | 3 | #ifndef _UNISTD_H_ 4 | #define _UNISTD_H_ 5 | 6 | # include 7 | # include 8 | 9 | #endif /* _UNISTD_H_ */ 10 | -------------------------------------------------------------------------------- /newlib/libc/sys/netware/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = \ 10 | getpid.c \ 11 | link.c 12 | 13 | all: crt0.o 14 | 15 | ACLOCAL_AMFLAGS = -I ../../.. 16 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/netware/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/netware configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(link.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /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/netware/getpid.c: -------------------------------------------------------------------------------- 1 | /* NetWare version of getpid. This is supposed to return a unique 2 | identifier which is used to create temporary file names. We use 3 | the thread ID. I hope this is unique. */ 4 | 5 | #include 6 | 7 | pid_t 8 | getpid () 9 | { 10 | return GetThreadID (); 11 | } 12 | -------------------------------------------------------------------------------- /newlib/libc/sys/netware/link.c: -------------------------------------------------------------------------------- 1 | /* NetWare version of link. This can not be implemented using an 2 | MS-DOS file system. */ 3 | 4 | #include 5 | #include 6 | 7 | #undef errno 8 | extern int errno; 9 | 10 | int 11 | link (path1, path2) 12 | const char *path1; 13 | const char *path2; 14 | { 15 | errno = ENOSYS; 16 | return -1; 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/rtems/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = dummysys.c 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/rtems/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/rtems configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(dummysys.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/rtems/dummysys.c: -------------------------------------------------------------------------------- 1 | void not_required_by_rtems( void ) {} 2 | -------------------------------------------------------------------------------- /newlib/libc/sys/sh/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = syscalls.c trap.S creat.c 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/sh/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/sh configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(creat.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /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/sh/trap.S: -------------------------------------------------------------------------------- 1 | .text 2 | .global ___trap34 3 | ___trap34: 4 | trapa #34 5 | tst r1,r1 ! r1 is errno 6 | bt ret 7 | mov.l perrno,r2 8 | mov.l r1,@r2 9 | ret: 10 | rts 11 | nop 12 | 13 | .align 2 14 | perrno: 15 | .long _errno 16 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/_exit.S: -------------------------------------------------------------------------------- 1 | ! _exit() system call 2 | 3 | #include "sys/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 %icc,SYSCALL_TRAP 11 | 12 | ! If that returns (yikes!), try an illegal insn ... 13 | 14 | WORD (0) -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/_main.c: -------------------------------------------------------------------------------- 1 | 2 | __main() 3 | { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/sparc64 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(template_r.S) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/isatty.c: -------------------------------------------------------------------------------- 1 | /* isatty.c */ 2 | 3 | /* Dumb implementation so programs will at least run. */ 4 | 5 | #include 6 | 7 | int 8 | isatty (int fd) 9 | { 10 | struct stat buf; 11 | 12 | if (fstat (fd, &buf) < 0) 13 | return 0; 14 | if (S_ISCHR (buf.st_mode)) 15 | return 1; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /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/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/sparc64/sys/file.h: -------------------------------------------------------------------------------- 1 | /* This is the same as sys/fcntl.h for now. */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /newlib/libc/sys/sparc64/sys/time.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIME_H 2 | #define _SYS_TIME_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | struct timeval { 9 | long tv_sec; 10 | long tv_usec; 11 | }; 12 | 13 | typedef struct timestruc { 14 | time_t tv_sec; 15 | long tv_nsec; 16 | } timestruc_t; 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | 22 | #endif /* _SYS_TIME_H */ 23 | -------------------------------------------------------------------------------- /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/sys/sparc64/template.S: -------------------------------------------------------------------------------- 1 | /* system call template */ 2 | 3 | /* Lots of system calls are trivial functions, so we build their source files 4 | from a template. New syscalls can be added simply by editing the 5 | Makefile! 6 | 7 | Usage: Compile this file with "func" set to the name of the syscall. */ 8 | 9 | #include "sys/syscallasm.h" 10 | 11 | #define concat(a,b) a##b 12 | #define makesys(a) concat (SYS_, a) 13 | 14 | defsyscall (func, makesys(func)) 15 | -------------------------------------------------------------------------------- /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/sun4/_main.c: -------------------------------------------------------------------------------- 1 | 2 | __main() 3 | { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sun4/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/sun4 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(ieee.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/sun4/sys/file.h: -------------------------------------------------------------------------------- 1 | /* FIXME: really fcntl.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /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/sysmec/chmod.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 | int 13 | chmod (const char *path, mode_t mode) 14 | { 15 | return TRAP0 (SYS_chmod, path, mode, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/chown.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 | 13 | int 14 | chown (const char *path, short owner, short group) 15 | { 16 | return TRAP0 (SYS_chown, path, owner, group); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/close.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 | int 13 | _close (int file) 14 | { 15 | return TRAP0 (SYS_close, file, 0, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/sysmec configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(crt1.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/creat.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 | int 13 | creat (const char *path, 14 | int mode) 15 | { 16 | return TRAP0 (SYS_creat, path, mode, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/crt1.c: -------------------------------------------------------------------------------- 1 | void __main () 2 | { 3 | static int initialized; 4 | if (! initialized) 5 | { 6 | typedef void (*pfunc) (); 7 | extern pfunc __ctors[]; 8 | extern pfunc __ctors_end[]; 9 | pfunc *p; 10 | 11 | initialized = 1; 12 | for (p = __ctors_end; p > __ctors; ) 13 | (*--p) (); 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/execv.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 | int 13 | execv (const char *path, char *const argv[]) 14 | { 15 | return TRAP0 (SYS_execv, path, argv, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/execve.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 | int 13 | _execve (const char *path, char *const argv[], char *const envp[]) 14 | { 15 | return TRAP0 (SYS_execve, path, argv, envp); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/fork.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 | int 13 | _fork () 14 | { 15 | return TRAP0 (SYS_fork, 0, 0, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/fstat.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 | int 13 | _fstat (int file, 14 | struct stat *st) 15 | { 16 | st->st_mode = S_IFCHR; 17 | st->st_blksize = 4096; 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /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/sys/sysmec/gettime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | #include "sys/time.h" 6 | 7 | int errno; 8 | 9 | int __trap0 (); 10 | 11 | #define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) 12 | 13 | int 14 | _gettimeofday (struct timeval *tp, void *tzp) 15 | { 16 | return TRAP0 (SYS_gettimeofday, tp, tzp, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/isatty.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 | isatty (fd) 13 | int fd; 14 | { 15 | return 1; 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/kill.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 | _kill (n, m) 13 | { 14 | return TRAP0 (SYS_exit, 0xdead, 0, 0); 15 | } 16 | 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/lseek.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include 5 | #include "sys/syscall.h" 6 | 7 | int errno; 8 | 9 | int __trap0 (); 10 | 11 | #define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) 12 | 13 | off_t 14 | _lseek (int file, 15 | off_t ptr, 16 | int dir) 17 | { 18 | return TRAP0 (SYS_lseek, file, ptr, dir); 19 | } 20 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/open.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 | int 13 | _open (const char *path, 14 | int flags) 15 | { 16 | return TRAP0 (SYS_open, path, flags, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/pipe.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 | int 13 | pipe (int *fd) 14 | { 15 | return TRAP0 (SYS_pipe, fd, 0, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/read.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 | _read (int file, 13 | char *ptr, 14 | size_t len) 15 | { 16 | return TRAP0 (SYS_read, file, ptr, len); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/stat.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 | int 13 | _stat (const char *path, struct stat *st) 14 | 15 | { 16 | return TRAP0 (SYS_stat, path, st, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/time.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 | time_t 13 | time (time_t *tloc) 14 | { 15 | return TRAP0 (SYS_time, tloc, 0, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/times.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | #include "sys/times.h" 6 | 7 | int errno; 8 | 9 | int __trap0 (); 10 | 11 | #define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) 12 | 13 | clock_t 14 | times (struct tms *buffer) 15 | { 16 | return TRAP0 (SYS_times, buffer, 0, 0); 17 | } 18 | -------------------------------------------------------------------------------- /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/sysmec/unlink.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 | int 13 | _unlink () 14 | { 15 | return -1; 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/utime.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 | int 13 | utime (path, times) 14 | const char *path; 15 | char *times; 16 | { 17 | return TRAP0 (SYS_utime, path, times, 0); 18 | } 19 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/wait.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 | int 13 | _wait (statusp) 14 | int *statusp; 15 | { 16 | return TRAP0 (SYS_wait, 0, 0, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysmec/write.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 | int 13 | _write ( int file, 14 | char *ptr, 15 | size_t len) 16 | { 17 | return TRAP0 (SYS_write, file, ptr, len); 18 | } 19 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnec810/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = io.s write.c sbrk.c misc.c 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnec810/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/sysnec810 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(io.s) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/chmod.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | chmod (const char *path, mode_t mode) 14 | { 15 | return TRAP0 (SYS_chmod, path, mode, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/chown.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | chown (const char *path, short owner, short group) 14 | { 15 | return TRAP0 (SYS_chown, path, owner, group); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/close.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _close (int file) 14 | { 15 | return TRAP0 (SYS_close, file, 0, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/sysnecv850 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(crt1.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/creat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | creat (const char *path, 14 | int mode) 15 | { 16 | return TRAP0 (SYS_creat, path, mode, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/crt1.c: -------------------------------------------------------------------------------- 1 | void __main () 2 | { 3 | static int initialized; 4 | if (! initialized) 5 | { 6 | typedef void (*pfunc) (); 7 | extern pfunc __ctors[]; 8 | extern pfunc __ctors_end[]; 9 | pfunc *p; 10 | 11 | initialized = 1; 12 | for (p = __ctors_end; p > __ctors; ) 13 | (*--p) (); 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/execv.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | execv (const char *path, char *const argv[]) 14 | { 15 | return TRAP0 (SYS_execv, path, argv, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/execve.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _execve (const char *path, char *const argv[], char *const envp[]) 14 | { 15 | return TRAP0 (SYS_execve, path, argv, envp); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/fork.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _fork () 14 | { 15 | return TRAP0 (SYS_fork, 0, 0, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/fstat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _fstat (int file, 14 | struct stat *st) 15 | { 16 | st->st_mode = S_IFCHR; 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/getpid.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | _getpid (n) 13 | { 14 | return 1; 15 | } 16 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/gettime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | #include "sys/time.h" 6 | 7 | int errno; 8 | 9 | int __trap0 (int function, int p1, int p2, int p3); 10 | 11 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 12 | 13 | int 14 | _gettimeofday (struct timeval *tp, void *tzp) 15 | { 16 | return TRAP0 (SYS_gettimeofday, tp, tzp, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/isatty.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | isatty (fd) 13 | int fd; 14 | { 15 | return 1; 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/kill.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | #include 6 | 7 | int errno; 8 | 9 | int __trap0 (int function, int p1, int p2, int p3); 10 | 11 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 12 | 13 | _kill (pid, sig) 14 | pid_t pid; 15 | int sig; 16 | { 17 | return TRAP0 (SYS_exit, 0xdead0000 | sig, 0, 0); 18 | } 19 | 20 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/link.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _link () 14 | { 15 | return -1; 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/lseek.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _lseek (int file, 14 | int ptr, 15 | int dir) 16 | { 17 | return TRAP0 (SYS_lseek, file, ptr, dir); 18 | } 19 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/open.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _open (const char *path, 14 | int flags) 15 | { 16 | return TRAP0 (SYS_open, path, flags, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/pipe.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | pipe (int *fd) 14 | { 15 | return TRAP0 (SYS_pipe, fd, 0, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/read.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | _read (int file, 13 | char *ptr, 14 | int len) 15 | { 16 | return TRAP0 (SYS_read, file, ptr, len); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/stat.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _stat (const char *path, struct stat *st) 14 | 15 | { 16 | return TRAP0 (SYS_stat, path, st, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/time.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | time_t 13 | time (time_t *tloc) 14 | { 15 | return TRAP0 (SYS_time, tloc, 0, 0); 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/times.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | #include "sys/times.h" 6 | 7 | int errno; 8 | 9 | int __trap0 (int function, int p1, int p2, int p3); 10 | 11 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 12 | 13 | clock_t 14 | _times (struct tms *buffer) 15 | { 16 | return TRAP0 (SYS_times, buffer, 0, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/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/sysnecv850/unlink.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _unlink () 14 | { 15 | return -1; 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/utime.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | utime (path, times) 14 | const char *path; 15 | char *times; 16 | { 17 | return TRAP0 (SYS_utime, path, times, 0); 18 | } 19 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/wait.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _wait (statusp) 14 | int *statusp; 15 | { 16 | return TRAP0 (SYS_wait, 0, 0, 0); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysnecv850/write.c: -------------------------------------------------------------------------------- 1 | #include <_ansi.h> 2 | #include 3 | #include 4 | #include "sys/syscall.h" 5 | 6 | int errno; 7 | 8 | int __trap0 (int function, int p1, int p2, int p3); 9 | 10 | #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) 11 | 12 | int 13 | _write ( int file, 14 | char *ptr, 15 | int len) 16 | { 17 | return TRAP0 (SYS_write, file, ptr, len); 18 | } 19 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/_exit.s: -------------------------------------------------------------------------------- 1 | 2 | .globl _exit 3 | _exit: 4 | movl $1, %eax 5 | lcall $7,$0 6 | 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/_setjmp.s: -------------------------------------------------------------------------------- 1 | / 2 | / our buffer looks like: 3 | / eax,ebx,ecx,edx,esi,edi,esp,ebp,pc 4 | 5 | .globl _setjmp 6 | .globl setjmp 7 | _setjmp: 8 | setjmp: 9 | pushl %ebx 10 | movl 8(%esp), %ebx 11 | movl %eax, (%ebx) 12 | popl %eax 13 | movl %eax, 4(%ebx) 14 | movl %ecx, 8(%ebx) 15 | movl %edx, 12(%ebx) 16 | movl %esi, 16(%ebx) 17 | movl %edi, 20(%ebx) 18 | movl %esp, 24(%ebx) 19 | movl %ebp, 28(%ebx) 20 | movl (%esp), %eax 21 | movl %eax, 32(%ebx) 22 | xorl %eax, %eax 23 | ret 24 | 25 | -------------------------------------------------------------------------------- /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/alarm.s: -------------------------------------------------------------------------------- 1 | .globl _alarm 2 | _alarm: 3 | movl $0x1b, %eax 4 | lcall $7,$0 5 | ret 6 | -------------------------------------------------------------------------------- /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/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/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/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/sysvi386 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(fps.s) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /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/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/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/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/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/sys/sysvi386/fpathconf.s: -------------------------------------------------------------------------------- 1 | .globl fpathconf 2 | fpathconf: 3 | movl $0x2f28, %eax 4 | lcall $7,$0 5 | jb _cerror 6 | ret 7 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/fps.s: -------------------------------------------------------------------------------- 1 | .globl _fpgetsticky 2 | _fpgetsticky: 3 | getpsw r0 4 | and.w #0x1f00,r0 5 | shl.w #0xf8,r0 6 | ret #0x0 7 | 8 | 9 | .globl _fpsetsticky 10 | _fpsetsticky: 11 | getpsw r0 12 | mov.w [ap],r1 13 | shl.w #0x8,r1 14 | updpsw.h r1,#0x1f00 15 | trapfl 16 | and.w #0x1f00,r0 17 | shl.w #0xf8,r0 18 | ret #0x0 19 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/sys/sysvi386/pathconf.s: -------------------------------------------------------------------------------- 1 | .globl pathconf 2 | pathconf: 3 | movl $0x2e28, %eax 4 | lcall $7,$0 5 | jb _cerror 6 | ret 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/sbrk.c: -------------------------------------------------------------------------------- 1 | extern end; 2 | 3 | static void *curbrk = (char*)&end; 4 | 5 | void * 6 | sbrk(incr) 7 | int incr; { 8 | extern int errno; 9 | extern int _brk(void *); 10 | void *ptr = curbrk; 11 | int t; 12 | 13 | if (incr == 0) 14 | return curbrk; 15 | t = _brk (curbrk + incr); 16 | if (t == -1 && errno) 17 | return (void *)-1; 18 | curbrk = ((char *)curbrk) + incr; 19 | return ptr; 20 | } 21 | 22 | -------------------------------------------------------------------------------- /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/signal.s: -------------------------------------------------------------------------------- 1 | / According to the iBCS2 book, signal() has 0x30 in %eax, and the address 2 | / of a function in %edx. This function is where a signal handler will 3 | / return to; it should just adjust the stack pointer, and call $f,$0. 4 | / Strange but true. 5 | .globl signal 6 | 7 | sigret: 8 | addl $4, %esp 9 | lcall $0xf, $0 10 | signal: 11 | movl $0x30, %eax 12 | movl sigret, %edx 13 | lcall $7,$0 14 | jb _cerror 15 | / The iBCS2 book also clears out %eax here, which seems to be broken. 16 | ret 17 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/sigprocmask.s: -------------------------------------------------------------------------------- 1 | / 2 | / The SCO signal stuff seems to be weird. The POSIX stuff appears to 3 | / "extended" system calls, and use values in eax and edx. 4 | / 5 | .globl sigprocmask 6 | sigprocmask: 7 | movl $0x2828, %eax 8 | lcall $7,$0 9 | jb _cerror 10 | ret 11 | addl $4, %esp 12 | lcall $0xf,$0 13 | -------------------------------------------------------------------------------- /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/sysvi386/speed.c: -------------------------------------------------------------------------------- 1 | #define _NO_MACROS 2 | #include 3 | 4 | speed_t 5 | cfgetospeed(const struct termios *tp) { 6 | return tp->c_ospeed; 7 | } 8 | 9 | int 10 | cfsetospeed(struct termios *tp, speed_t speed) { 11 | tp->c_ospeed = speed; 12 | return 0; 13 | } 14 | 15 | speed_t 16 | cfgetispeed(const struct termios *tp) { 17 | return tp->c_ispeed; 18 | } 19 | 20 | int 21 | cfsetispeed(struct termios *tp, speed_t speed) { 22 | tp->c_ispeed = speed; 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /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/sysvi386/sys/param.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_PARAM_H 2 | # define _SYS_PARAM_H 3 | 4 | # define HZ 60 5 | # define NOFILE 60 6 | # define PATHSIZE 1024 7 | 8 | #endif 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/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/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/sysvi386/tcgetattr.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | tcgetattr (int fd, struct termios *tp) { 5 | return _ioctl (fd, _XCGETA, tp); 6 | } 7 | -------------------------------------------------------------------------------- /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/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/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/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/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/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 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvi386/waitpid.s: -------------------------------------------------------------------------------- 1 | .globl _waitpid 2 | .globl waitpid 3 | _waitpid: 4 | waitpid: 5 | pushfl 6 | popl %eax 7 | orl $0x8c4,%eax 8 | pushl %eax 9 | popfl 10 | movl $0x7, %eax 11 | lcall $7,$0 12 | jb _cerror 13 | movl 8(%esp), %ecx 14 | testl %ecx, %ecx 15 | je bye 16 | movl %edx, (%ecx) 17 | bye: 18 | ret 19 | -------------------------------------------------------------------------------- /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/libc/sys/sysvnecv70/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = ioctl.s isatty.s read.s lseek.s close.s sbrk.s fstat.s \ 10 | cerror.s exit.s write.s sysv60.s fpx.c fps.s open.s 11 | 12 | all: crt0.o 13 | 14 | ACLOCAL_AMFLAGS = -I ../../.. 15 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 16 | -------------------------------------------------------------------------------- /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/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/libc/sys/sysvnecv70/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/sysvnecv70 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(sysv60.s) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/crt0.s: -------------------------------------------------------------------------------- 1 | .globl start 2 | start: 3 | sub.w #0x8,sp 4 | mov.w 0x8[sp],[sp] 5 | movea.w 0xc[sp],r0 6 | mov.w r0,0x4[sp] 7 | tloop: test.w [r0+] 8 | jne tloop 9 | cmp.w r0,[0x4[sp]] 10 | jge l1 11 | sub.w #0x4,r0 12 | l1: mov.w r0,0x8[sp] 13 | mov.w r0,_environ 14 | 15 | 16 | call _main,[sp] 17 | add.w #0xc,sp 18 | push r0 19 | call _exit,[sp] 20 | add.w #0x4,sp 21 | chlvl #0,#1 22 | 23 | .data 24 | 25 | .globl _environ 26 | _environ: 27 | .word 0 28 | 29 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /newlib/libc/sys/sysvnecv70/fps.s: -------------------------------------------------------------------------------- 1 | .globl _fpgetsticky 2 | _fpgetsticky: 3 | getpsw r0 4 | and.w #0x1f00,r0 5 | shl.w #0xf8,r0 6 | ret #0x0 7 | 8 | 9 | .globl _fpsetsticky 10 | _fpsetsticky: 11 | getpsw r0 12 | mov.w [ap],r1 13 | shl.w #0x8,r1 14 | updpsw.h r1,#0x1f00 15 | trapfl 16 | and.w #0x1f00,r0 17 | shl.w #0xf8,r0 18 | ret #0x0 19 | -------------------------------------------------------------------------------- /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/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/isatty.s: -------------------------------------------------------------------------------- 1 | .globl _isatty 2 | .globl __isatty 3 | 4 | _isatty: 5 | __isatty: 6 | prepare #0x14 7 | movea.w -0x12[fp],[-sp] 8 | push #0x5401 9 | push [ap] 10 | call _ioctl,[sp] 11 | add.w #0xc,sp 12 | test.w r0 13 | jge ret1 14 | mov.w #0x0,r0 15 | dispose 16 | ret #0x0 17 | ret1: mov.w #0x1,r0 18 | dispose 19 | ret #0 20 | -------------------------------------------------------------------------------- /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/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/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/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/libc/sys/tic80/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = 10 | 11 | # This is a hack to force automake to include a definition for 12 | # COMPILE. 13 | EXTRA_LIBRARIES = libfoo.a 14 | libfoo_a_SOURCES = crt0.c 15 | 16 | all: crt0.o 17 | 18 | ACLOCAL_AMFLAGS = -I ../../.. 19 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 20 | -------------------------------------------------------------------------------- /newlib/libc/sys/tic80/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/tic80 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(crt0.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/sys/tic80/crt0.c: -------------------------------------------------------------------------------- 1 | /* This is mostly just a placeholder (copied from m88kbug) until we 2 | figure out what it really should be... -fnf */ 3 | 4 | extern int main(int argc, char **argv); 5 | 6 | extern char _edata; 7 | extern char _end; 8 | extern char stack; 9 | 10 | _start() 11 | { 12 | char *p; 13 | 14 | p = &_edata + 1; 15 | while (p < &_end) 16 | { 17 | *p++ = 0; 18 | } 19 | 20 | main(0, 0); 21 | _exit(); 22 | } 23 | -------------------------------------------------------------------------------- /newlib/libc/sys/w65/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = syscalls.c trap.c 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/w65/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/w65 configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(trap.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 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/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/libc/sys/z8ksim/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to generate Makefile.in 2 | 3 | AUTOMAKE_OPTIONS = cygnus 4 | 5 | INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 | 7 | noinst_LIBRARIES = lib.a 8 | 9 | lib_a_SOURCES = glue.c 10 | 11 | all: crt0.o 12 | 13 | ACLOCAL_AMFLAGS = -I ../../.. 14 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 15 | -------------------------------------------------------------------------------- /newlib/libc/sys/z8ksim/configure.in: -------------------------------------------------------------------------------- 1 | dnl This is the newlib/libc/sys/z8ksim configure.in file. 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ(2.5) 5 | AC_INIT(glue.c) 6 | 7 | dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 | AC_CONFIG_AUX_DIR(../../../..) 9 | 10 | NEWLIB_CONFIGURE(../../..) 11 | 12 | AC_OUTPUT(Makefile) 13 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysclose.c: -------------------------------------------------------------------------------- 1 | /* connector for close */ 2 | 3 | #include 4 | 5 | int 6 | close (fd) 7 | int fd; 8 | { 9 | #ifdef REENTRANT_SYSCALLS_PROVIDED 10 | return _close_r (_REENT, fd); 11 | #else 12 | return _close (fd); 13 | #endif 14 | } 15 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysexecve.c: -------------------------------------------------------------------------------- 1 | /* connector for execve */ 2 | 3 | #include 4 | 5 | int 6 | execve (name, argv, env) 7 | char *name; 8 | char **argv; 9 | char **env; 10 | { 11 | #ifdef REENTRANT_SYSCALLS_PROVIDED 12 | return _execve_r (_REENT, name, argv, env); 13 | #else 14 | return _execve (name, argv, env); 15 | #endif 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysfcntl.c: -------------------------------------------------------------------------------- 1 | /* connector for fcntl */ 2 | /* only called from stdio/fdopen.c, so arg can be int. */ 3 | 4 | #include 5 | 6 | int 7 | fcntl (fd, flag, arg) 8 | int fd; 9 | int flag; 10 | int arg; 11 | { 12 | #ifdef REENTRANT_SYSCALLS_PROVIDED 13 | return _fcntl_r (_REENT, fd, flag, arg); 14 | #else 15 | return _fcntl (fd, flag, arg); 16 | #endif 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysfork.c: -------------------------------------------------------------------------------- 1 | /* connector for fork */ 2 | 3 | /* Don't define this if NO_FORK. See for example libc/sys/win32/spawn.c. */ 4 | 5 | #ifndef NO_FORK 6 | 7 | #include 8 | 9 | int 10 | fork () 11 | { 12 | #ifdef REENTRANT_SYSCALLS_PROVIDED 13 | return _fork_r (_REENT); 14 | #else 15 | return _fork (); 16 | #endif 17 | } 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysfstat.c: -------------------------------------------------------------------------------- 1 | /* connector for fstat */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | fstat (fd, pstat) 8 | int fd; 9 | struct stat *pstat; 10 | { 11 | #ifdef REENTRANT_SYSCALLS_PROVIDED 12 | return _fstat_r (_REENT, fd, pstat); 13 | #else 14 | return _fstat (fd, pstat); 15 | #endif 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysgetpid.c: -------------------------------------------------------------------------------- 1 | /* connector for getpid */ 2 | 3 | #include 4 | 5 | int 6 | getpid () 7 | { 8 | #ifdef REENTRANT_SYSCALLS_PROVIDED 9 | return _getpid_r (_REENT); 10 | #else 11 | return _getpid (); 12 | #endif 13 | } 14 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysgettod.c: -------------------------------------------------------------------------------- 1 | /* connector for gettimeofday */ 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | struct timeval; 8 | struct timezone; 9 | 10 | int 11 | gettimeofday (ptimeval, ptimezone) 12 | struct timeval *ptimeval; 13 | struct timezone *ptimezone; 14 | { 15 | #ifdef REENTRANT_SYSCALLS_PROVIDED 16 | return _gettimeofday_r (_REENT, ptimeval, ptimezone); 17 | #else 18 | return _gettimeofday (ptimeval, ptimezone); 19 | #endif 20 | } 21 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syskill.c: -------------------------------------------------------------------------------- 1 | /* connector for kill */ 2 | 3 | #include 4 | 5 | int 6 | kill (pid, sig) 7 | int pid; 8 | int sig; 9 | { 10 | #ifdef REENTRANT_SYSCALLS_PROVIDED 11 | return _kill_r (_REENT, pid, sig); 12 | #else 13 | return _kill (pid, sig); 14 | #endif 15 | } 16 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syslink.c: -------------------------------------------------------------------------------- 1 | /* connector for link */ 2 | 3 | #include 4 | 5 | int 6 | link (old, new) 7 | char *old; 8 | char *new; 9 | { 10 | #ifdef REENTRANT_SYSCALLS_PROVIDED 11 | return _link_r (_REENT, old, new); 12 | #else 13 | return _link (old, new); 14 | #endif 15 | } 16 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syslseek.c: -------------------------------------------------------------------------------- 1 | /* connector for lseek */ 2 | 3 | #include 4 | #include 5 | 6 | off_t 7 | lseek (fd, pos, whence) 8 | int fd; 9 | off_t pos; 10 | int whence; 11 | { 12 | #ifdef REENTRANT_SYSCALLS_PROVIDED 13 | return _lseek_r (_REENT, fd, pos, whence); 14 | #else 15 | return _lseek (fd, pos, whence); 16 | #endif 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysread.c: -------------------------------------------------------------------------------- 1 | /* connector for read */ 2 | 3 | #include 4 | #include 5 | 6 | _READ_WRITE_RETURN_TYPE 7 | read (fd, buf, cnt) 8 | int fd; 9 | void *buf; 10 | size_t cnt; 11 | { 12 | #ifdef REENTRANT_SYSCALLS_PROVIDED 13 | return _read_r (_REENT, fd, buf, cnt); 14 | #else 15 | return _read (fd, buf, cnt); 16 | #endif 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syssbrk.c: -------------------------------------------------------------------------------- 1 | /* connector for sbrk */ 2 | 3 | #include 4 | #include 5 | 6 | extern void *_sbrk_r (struct _reent *, size_t); 7 | extern void *_sbrk (size_t); 8 | 9 | void * 10 | sbrk (incr) 11 | size_t incr; 12 | { 13 | #ifdef REENTRANT_SYSCALLS_PROVIDED 14 | return _sbrk_r (_REENT, incr); 15 | #else 16 | return _sbrk (incr); 17 | #endif 18 | } 19 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysstat.c: -------------------------------------------------------------------------------- 1 | /* connector for stat */ 2 | 3 | #include 4 | #include 5 | 6 | int 7 | stat (file, pstat) 8 | char *file; 9 | struct stat *pstat; 10 | { 11 | #ifdef REENTRANT_SYSCALLS_PROVIDED 12 | return _stat_r (_REENT, file, pstat); 13 | #else 14 | return _stat (file, pstat); 15 | #endif 16 | } 17 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/systimes.c: -------------------------------------------------------------------------------- 1 | /* connector for times */ 2 | 3 | #include 4 | #include 5 | 6 | clock_t 7 | times (buf) 8 | struct tms *buf; 9 | { 10 | #ifdef REENTRANT_SYSCALLS_PROVIDED 11 | return _times_r (_REENT, buf); 12 | #else 13 | return _times (buf); 14 | #endif 15 | } 16 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/sysunlink.c: -------------------------------------------------------------------------------- 1 | /* connector for unlink */ 2 | 3 | #include 4 | 5 | int 6 | unlink (file) 7 | char *file; 8 | { 9 | #ifdef REENTRANT_SYSCALLS_PROVIDED 10 | return _unlink_r (_REENT, file); 11 | #else 12 | return _unlink (file); 13 | #endif 14 | } 15 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syswait.c: -------------------------------------------------------------------------------- 1 | /* connector for wait */ 2 | 3 | #include 4 | 5 | int 6 | wait (status) 7 | int *status; 8 | { 9 | #ifdef REENTRANT_SYSCALLS_PROVIDED 10 | return _wait_r (_REENT, status); 11 | #else 12 | return _wait (status); 13 | #endif 14 | } 15 | -------------------------------------------------------------------------------- /newlib/libc/syscalls/syswrite.c: -------------------------------------------------------------------------------- 1 | /* connector for write */ 2 | 3 | #include 4 | #include 5 | 6 | _READ_WRITE_RETURN_TYPE 7 | write (fd, buf, cnt) 8 | int fd; 9 | const void *buf; 10 | size_t cnt; 11 | { 12 | #ifdef REENTRANT_SYSCALLS_PROVIDED 13 | return _write_r (_REENT, fd, buf, cnt); 14 | #else 15 | return _write (fd, buf, cnt); 16 | #endif 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libc/time/ctime_r.c: -------------------------------------------------------------------------------- 1 | /* 2 | * ctime_r.c 3 | */ 4 | 5 | #include 6 | 7 | char * 8 | _DEFUN (ctime_r, (tim_p, result), 9 | _CONST time_t * tim_p _AND 10 | char * result) 11 | 12 | { 13 | struct tm tm; 14 | return asctime_r (localtime_r (tim_p, &tm), result); 15 | } 16 | -------------------------------------------------------------------------------- /newlib/libc/time/gmtime_r.c: -------------------------------------------------------------------------------- 1 | /* 2 | * gmtime_r.c 3 | */ 4 | 5 | #include 6 | 7 | #define _GMT_OFFSET 0 8 | 9 | struct tm * 10 | _DEFUN (gmtime_r, (tim_p, res), 11 | _CONST time_t * tim_p _AND 12 | struct tm *res) 13 | { 14 | time_t tim = *tim_p + _GMT_OFFSET; 15 | 16 | return (localtime_r (&tim, res)); 17 | } 18 | -------------------------------------------------------------------------------- /newlib/libm/common/common.tex: -------------------------------------------------------------------------------- 1 | @page 2 | @include common/scbrt.def 3 | @include common/scopysign.def 4 | @include common/sexpm1.def 5 | @include common/silogb.def 6 | @include common/sinfinity.def 7 | @include common/slog1p.def 8 | @include common/smatherr.def 9 | @include common/smodf.def 10 | @include common/snan.def 11 | @include common/snextafter.def 12 | @include common/sscalbn.def 13 | -------------------------------------------------------------------------------- /newlib/libm/common/sf_infinity.c: -------------------------------------------------------------------------------- 1 | /* 2 | * infinityf () returns the representation of infinity. 3 | * Added by Cygnus Support. 4 | */ 5 | 6 | #include "fdlibm.h" 7 | 8 | float infinityf() 9 | { 10 | float x; 11 | 12 | SET_FLOAT_WORD(x,0x7f800000); 13 | return x; 14 | } 15 | 16 | #ifdef _DOUBLE_IS_32BITS 17 | 18 | double infinity() 19 | { 20 | return (double) infinityf(); 21 | } 22 | 23 | #endif /* defined(_DOUBLE_IS_32BITS) */ 24 | -------------------------------------------------------------------------------- /newlib/libm/common/sf_nan.c: -------------------------------------------------------------------------------- 1 | /* 2 | * nanf () returns a nan. 3 | * Added by Cygnus Support. 4 | */ 5 | 6 | #include "fdlibm.h" 7 | 8 | float nanf() 9 | { 10 | float x; 11 | 12 | SET_FLOAT_WORD(x,0x7fc00000); 13 | return x; 14 | } 15 | 16 | #ifdef _DOUBLE_IS_32BITS 17 | 18 | double nan() 19 | { 20 | return (double) nanf(); 21 | } 22 | 23 | #endif /* defined(_DOUBLE_IS_32BITS) */ 24 | 25 | -------------------------------------------------------------------------------- /newlib/libm/config.h.in: -------------------------------------------------------------------------------- 1 | /* config.h.in. Generated automatically from configure.in by autoheader. */ 2 | -------------------------------------------------------------------------------- /newlib/libm/math/s_infconst.c: -------------------------------------------------------------------------------- 1 | /* Infinity as a constant value. This is used for HUGE_VAL. 2 | * Added by Cygnus Support. 3 | */ 4 | 5 | #include "fdlibm.h" 6 | 7 | #ifndef _DOUBLE_IS_32BITS 8 | #ifdef __IEEE_BIG_ENDIAN 9 | const union __dmath __infinity[1] = {{{ 0x7ff00000, 0 }}}; 10 | #else 11 | const union __dmath __infinity[1] = {{{ 0, 0x7ff00000 }}}; 12 | #endif 13 | #else /* defined (_DOUBLE_IS_32BITS) */ 14 | const union __dmath __infinity[1] = {{{ 0x7f800000, 0 }}}; 15 | #endif /* defined (_DOUBLE_IS_32BITS) */ 16 | -------------------------------------------------------------------------------- /newlib/libm/math/w_cabs.c: -------------------------------------------------------------------------------- 1 | /* 2 | * cabs() wrapper for hypot(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #include "fdlibm.h" 9 | 10 | struct complex { 11 | double x; 12 | double y; 13 | }; 14 | 15 | double 16 | cabs(z) 17 | struct complex z; 18 | { 19 | return hypot(z.x, z.y); 20 | } 21 | -------------------------------------------------------------------------------- /newlib/libm/math/w_drem.c: -------------------------------------------------------------------------------- 1 | /* 2 | * drem() wrapper for remainder(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #include "fdlibm.h" 9 | 10 | double 11 | drem(x, y) 12 | double x, y; 13 | { 14 | return remainder(x, y); 15 | } 16 | -------------------------------------------------------------------------------- /newlib/libm/math/wf_cabs.c: -------------------------------------------------------------------------------- 1 | /* 2 | * cabsf() wrapper for hypotf(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #include "fdlibm.h" 9 | 10 | struct complex { 11 | float x; 12 | float y; 13 | }; 14 | 15 | float 16 | cabsf(z) 17 | struct complex z; 18 | { 19 | return hypotf(z.x, z.y); 20 | } 21 | -------------------------------------------------------------------------------- /newlib/libm/math/wf_drem.c: -------------------------------------------------------------------------------- 1 | /* 2 | * dremf() wrapper for remainderf(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #include "fdlibm.h" 9 | 10 | float 11 | #ifdef __STDC__ 12 | dremf(float x, float y) 13 | #else 14 | dremf(x, y) 15 | float x, y; 16 | #endif 17 | { 18 | return remainderf(x, y); 19 | } 20 | -------------------------------------------------------------------------------- /newlib/libm/mathfp/s_infconst.c: -------------------------------------------------------------------------------- 1 | /* Infinity as a constant value. This is used for HUGE_VAL. 2 | * Added by Cygnus Support. 3 | */ 4 | 5 | #include "fdlibm.h" 6 | 7 | #ifndef _DOUBLE_IS_32BITS 8 | #ifdef __IEEE_BIG_ENDIAN 9 | const union __dmath __infinity[1] = {{ 0x7ff00000, 0 }}; 10 | #else 11 | const union __dmath __infinity[1] = {{ 0, 0x7ff00000 }}; 12 | #endif 13 | #else /* defined (_DOUBLE_IS_32BITS) */ 14 | const union __dmath __infinity[1] = {{ 0x7f800000, 0 }}; 15 | #endif /* defined (_DOUBLE_IS_32BITS) */ 16 | -------------------------------------------------------------------------------- /newlib/libm/mathfp/w_cabs.c: -------------------------------------------------------------------------------- 1 | /* 2 | * cabs() wrapper for hypot(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #include "fdlibm.h" 9 | 10 | struct complex { 11 | double x; 12 | double y; 13 | }; 14 | 15 | double 16 | cabs(z) 17 | struct complex z; 18 | { 19 | return hypot(z.x, z.y); 20 | } 21 | -------------------------------------------------------------------------------- /newlib/libm/mathfp/w_drem.c: -------------------------------------------------------------------------------- 1 | /* 2 | * drem() wrapper for remainder(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #include "fdlibm.h" 9 | 10 | double 11 | drem(x, y) 12 | double x, y; 13 | { 14 | return remainder(x, y); 15 | } 16 | -------------------------------------------------------------------------------- /newlib/libm/mathfp/wf_cabs.c: -------------------------------------------------------------------------------- 1 | /* 2 | * cabsf() wrapper for hypotf(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #include "fdlibm.h" 9 | 10 | struct complex { 11 | float x; 12 | float y; 13 | }; 14 | 15 | float 16 | cabsf(z) 17 | struct complex z; 18 | { 19 | return hypotf(z.x, z.y); 20 | } 21 | -------------------------------------------------------------------------------- /newlib/libm/mathfp/wf_drem.c: -------------------------------------------------------------------------------- 1 | /* 2 | * dremf() wrapper for remainderf(). 3 | * 4 | * Written by J.T. Conklin, 5 | * Placed into the Public Domain, 1994. 6 | */ 7 | 8 | #include "fdlibm.h" 9 | 10 | float 11 | #ifdef __STDC__ 12 | dremf(float x, float y) 13 | #else 14 | dremf(x, y) 15 | float x, y; 16 | #endif 17 | { 18 | return remainderf(x, y); 19 | } 20 | -------------------------------------------------------------------------------- /setup.com: -------------------------------------------------------------------------------- 1 | $! setup files for openVMS/Alpha 2 | $! 3 | $ define aout [-.INCLUDE.AOUT] 4 | $ define coff [-.INCLUDE.COFF] 5 | $ define elf [-.INCLUDE.ELF] 6 | $ define mpw [-.INCLUDE.MPW] 7 | $ define nlm [-.INCLUDE.NLM] 8 | $ define opcode [-.INCLUDE.OPCODE] 9 | -------------------------------------------------------------------------------- /winsup/ChangeLog: -------------------------------------------------------------------------------- 1 | 2 | 2001.07.27 Earnie Boyd 3 | 4 | * ChangeLog.Cygwin: Renamed original ChangeLog. 5 | * ChangeLog: New file. 6 | * configure.in (SRCDIR): Add utils/. 7 | * utils/: New directory. 8 | -------------------------------------------------------------------------------- /winsup/cygwin/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/winsup/cygwin/ChangeLog -------------------------------------------------------------------------------- /winsup/cygwin/FIXME: -------------------------------------------------------------------------------- 1 | File: FIXME 2 | Copyright (C): 2001 Earnie Boyd 3 | Distribution: See MSYS_LICENSE 4 | $Revision$ 5 | Revision $Date$ 6 | 7 | FIXME-0.1: spawn.cc: Earnie Boyd 8 | FIXME-0.2: spawn.cc: Earnie Boyd 9 | FIXME-1.0: spawn.cc, path.h, path.cc: Earnie Boyd 10 | -------------------------------------------------------------------------------- /winsup/cygwin/acconfig.h: -------------------------------------------------------------------------------- 1 | /* Define if DEBUGGING support is requested. */ 2 | #undef DEBUGGING 3 | 4 | /* Define if building "extra" thread-safe Cygwin DLL. */ 5 | #undef _CYG_THREAD_FAILSAFE 6 | 7 | /* Define if GCC supports builtin memset. */ 8 | #undef HAVE_BUILTIN_MEMSET 9 | 10 | /* Define if building thread-safe Cygwin DLL. */ 11 | #undef _MT_SAFE 12 | 13 | /* Define if using new vfork functionality. */ 14 | #undef NEWVFORK 15 | -------------------------------------------------------------------------------- /winsup/cygwin/binmode.c: -------------------------------------------------------------------------------- 1 | /* binmode.c 2 | 3 | Copyright 2000 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | extern int _fmode; 16 | void 17 | cygwin_premain0 (int argc, char **argv, struct per_process *myself) 18 | { 19 | _fmode &= ~_O_TEXT; 20 | _fmode |= _O_BINARY; 21 | } 22 | -------------------------------------------------------------------------------- /winsup/cygwin/config/i386/makefrag: -------------------------------------------------------------------------------- 1 | # makefrag: included by the main Cygwin Makefile.in 2 | 3 | # Copyright 1996, 1998, 1999, 2001 Red Hat, Inc. 4 | 5 | # This file is part of Cygwin. 6 | 7 | # This software is a copyrighted work licensed under the terms of the 8 | # Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | # details. 10 | 11 | EXTRA_DLL_OFILES=setjmp.o longjmp.o 12 | 13 | setjmp.o:config/i386/setjmp.c 14 | $(CC) -c $(ALL_CFLAGS) $< 15 | 16 | longjmp.o:config/i386/longjmp.c 17 | $(CC) -c $(ALL_CFLAGS) $< 18 | -------------------------------------------------------------------------------- /winsup/cygwin/dll_init.sgml: -------------------------------------------------------------------------------- 1 | 2 | 3 | cygwin_detach_dll 4 | 5 | 6 | extern "C" void 7 | cygwin_detach_dll 8 | int dll_index 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /winsup/cygwin/include/cygwin/icmp.h: -------------------------------------------------------------------------------- 1 | /* icmp.h */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/include/cygwin/ip.h: -------------------------------------------------------------------------------- 1 | /* ip.h */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/include/cygwin/sockios.h: -------------------------------------------------------------------------------- 1 | /* sockios.h */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/include/cygwin/uio.h: -------------------------------------------------------------------------------- 1 | /* uio.h */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/include/fcntl.h: -------------------------------------------------------------------------------- 1 | /* fcntl.h 2 | 3 | Copyright 1996, 1998, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _FCNTL_H 12 | #define _FCNTL_H 13 | 14 | #include 15 | #define O_NDELAY _FNDELAY 16 | 17 | #endif /* _FCNTL_H */ 18 | -------------------------------------------------------------------------------- /winsup/cygwin/include/features.h: -------------------------------------------------------------------------------- 1 | /* features.h 2 | 3 | Copyright 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _FEATURES_H 12 | #define _FEATURES_H 13 | 14 | #include 15 | 16 | #endif /* _FEATURES_H */ 17 | -------------------------------------------------------------------------------- /winsup/cygwin/include/icmp.h: -------------------------------------------------------------------------------- 1 | /* icmp.h */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/include/lastlog.h: -------------------------------------------------------------------------------- 1 | /* lastlog.h 2 | 3 | Copyright 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _LASTLOG_H 12 | #define _LASTLOG_H 13 | 14 | #include 15 | 16 | struct lastlog { 17 | long ll_time; 18 | char ll_line[UT_LINESIZE]; 19 | char ll_host[UT_HOSTSIZE]; 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /winsup/cygwin/include/memory.h: -------------------------------------------------------------------------------- 1 | /* memory.h 2 | 3 | Copyright 1998, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _MEMORY_H 12 | #define _MEMORY_H 13 | 14 | /* This allows more things to compile. */ 15 | #include 16 | 17 | #endif /* _MEMORY_H */ 18 | -------------------------------------------------------------------------------- /winsup/cygwin/include/net/if.h: -------------------------------------------------------------------------------- 1 | /* net/if.h 2 | 3 | Copyright 1998, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _NET_IF_H 12 | #define _NET_IF_H 13 | 14 | #include 15 | 16 | #endif /* _NET_IF_H */ 17 | -------------------------------------------------------------------------------- /winsup/cygwin/include/netinet/in.h: -------------------------------------------------------------------------------- 1 | /* netinet/in.h 2 | 3 | Copyright 1998, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _NETINET_IN_H 12 | #define _NETINET_IN_H 13 | 14 | #include 15 | 16 | #endif /* _NETINET_IN_H */ 17 | -------------------------------------------------------------------------------- /winsup/cygwin/include/netinet/in_systm.h: -------------------------------------------------------------------------------- 1 | /* netinet/in_systm.h 2 | 3 | Copyright 2000, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _NETINET_IN_SYSTM_H 12 | #define _NETINET_IN_SYSTM_H 13 | 14 | #include 15 | 16 | #endif /* _NETINET_IN_SYSTM_H */ 17 | -------------------------------------------------------------------------------- /winsup/cygwin/include/netinet/ip.h: -------------------------------------------------------------------------------- 1 | /* netinet/ip.h 2 | 3 | Copyright 1998, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _NETINET_IP_H 12 | #define _NETINET_IP_H 13 | 14 | #include 15 | 16 | #endif /* _NETINET_IP_H */ 17 | -------------------------------------------------------------------------------- /winsup/cygwin/include/netinet/ip_icmp.h: -------------------------------------------------------------------------------- 1 | /* netinet/ip_icmp.h 2 | 3 | Copyright 1998, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _NETINET_IP_ICMP_H 12 | #define _NETINET_IP_ICMP_H 13 | 14 | #include 15 | 16 | #endif /* _NETINET_IP_ICMP_H */ 17 | -------------------------------------------------------------------------------- /winsup/cygwin/include/netinet/tcp.h: -------------------------------------------------------------------------------- 1 | /* netinet/tcp.h 2 | 3 | Copyright 2000, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _NETINET_TCP_H 12 | #define _NETINET_TCP_H 13 | 14 | /* Maybe add some definitions, someday */ 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /winsup/cygwin/include/poll.h: -------------------------------------------------------------------------------- 1 | /* poll.h 2 | 3 | Copyright 2000, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #include 12 | -------------------------------------------------------------------------------- /winsup/cygwin/include/strings.h: -------------------------------------------------------------------------------- 1 | #ifndef _STRINGS_H 2 | #define _STRINGS_H 3 | 4 | #include 5 | 6 | #endif /* _STRINGS_H */ 7 | -------------------------------------------------------------------------------- /winsup/cygwin/include/sys/acl.h: -------------------------------------------------------------------------------- 1 | /* sys/acl.h header file for Cygwin. 2 | 3 | Copyright 1999, 2000, 2001 Red Hat, Inc. 4 | Written by C. Vinschen. 5 | 6 | This file is part of Cygwin. 7 | 8 | This software is a copyrighted work licensed under the terms of the 9 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 10 | details. */ 11 | 12 | #ifndef _SYS_ACL_H 13 | #define _SYS_ACL_H 14 | 15 | #include 16 | 17 | #endif /* _SYS_ACL_H */ 18 | -------------------------------------------------------------------------------- /winsup/cygwin/include/sys/mtio.h: -------------------------------------------------------------------------------- 1 | /* sys/mtio.h 2 | 3 | Copyright 1999, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | /* sys/mtio.h header file for Cygwin. */ 12 | 13 | #ifndef _SYS_MTIO_H 14 | #define _SYS_MTIO_H 15 | 16 | #include 17 | 18 | #endif /* _SYS_MTIO_H */ 19 | -------------------------------------------------------------------------------- /winsup/cygwin/include/sys/procfs.h: -------------------------------------------------------------------------------- 1 | /* sys/procfs.h 2 | 3 | Copyright 2000, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | /* sys/procfs.h header file for Cygwin. */ 12 | 13 | #ifndef _SYS_PROCFS_H 14 | #define _SYS_PROCFS_H 15 | 16 | #include 17 | 18 | #endif /* _SYS_PROCFS_H */ 19 | -------------------------------------------------------------------------------- /winsup/cygwin/include/sys/termio.h: -------------------------------------------------------------------------------- 1 | /* sys/termio.h 2 | 3 | Copyright 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #include 12 | 13 | -------------------------------------------------------------------------------- /winsup/cygwin/include/sys/ttychars.h: -------------------------------------------------------------------------------- 1 | /* ttychars.h */ 2 | -------------------------------------------------------------------------------- /winsup/cygwin/include/syslog.h: -------------------------------------------------------------------------------- 1 | /* syslog.h 2 | 3 | Copyright 1996, 1998, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _SYSLOG_H 12 | #define _SYSLOG_H 13 | 14 | #include 15 | 16 | #endif /* _SYSLOG_H */ 17 | -------------------------------------------------------------------------------- /winsup/cygwin/include/termio.h: -------------------------------------------------------------------------------- 1 | /* termio.h 2 | 3 | Copyright 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _TERMIO_H 12 | #define _TERMIO_H 13 | 14 | #include 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /winsup/cygwin/include/tzfile.h: -------------------------------------------------------------------------------- 1 | /* tzfile.h 2 | 3 | Copyright 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _TZFILE_H 12 | #define _TZFILE_H 13 | 14 | #define SECSPERDAY (60*60*24) 15 | #define DAYSPERNYEAR 365 16 | #define DAYSPERLYEAR 366 17 | 18 | #define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0) 19 | #endif 20 | -------------------------------------------------------------------------------- /winsup/cygwin/lib/premain0.c: -------------------------------------------------------------------------------- 1 | /* premain0.c 2 | 3 | Copyright 2000 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | void 12 | cygwin_premain0(int argc, char **argv) 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /winsup/cygwin/lib/premain1.c: -------------------------------------------------------------------------------- 1 | /* premain1.c 2 | 3 | Copyright 2000 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | void 12 | cygwin_premain1(int argc, char **argv) 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /winsup/cygwin/lib/premain2.c: -------------------------------------------------------------------------------- 1 | /* premain2.c 2 | 3 | Copyright 2000 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | void 12 | cygwin_premain2(int argc, char **argv) 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /winsup/cygwin/lib/premain3.c: -------------------------------------------------------------------------------- 1 | /* premain3.c 2 | 3 | Copyright 2000 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | void 12 | cygwin_premain3(int argc, char **argv) 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /winsup/cygwin/msys_symlink.h: -------------------------------------------------------------------------------- 1 | /* msys_symlink.h 2 | * Copyright (C) 2002, Earnie Boyd 3 | * This file is a part of MSYS. 4 | * ***************************************************************************/ 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include "cygerrno.h" 13 | 14 | -------------------------------------------------------------------------------- /winsup/cygwin/net.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/winsup/cygwin/net.cc -------------------------------------------------------------------------------- /winsup/cygwin/regexp/regmagic.h: -------------------------------------------------------------------------------- 1 | /* regmagic.h 2 | 3 | Copyright 1996, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | /* $Id$ */ 12 | 13 | /* 14 | * The first byte of the regexp internal "program" is actually this magic 15 | * number; the start node begins in the second byte. 16 | */ 17 | #define MAGIC 0234 18 | -------------------------------------------------------------------------------- /winsup/cygwin/shared.sgml: -------------------------------------------------------------------------------- 1 | 2 | 3 | cygwin_getshared 4 | 5 | 6 | shared_info * 7 | cygwin_getshared 8 | 9 | 10 | 11 | Returns a pointer to an internal Cygwin memory structure 12 | containing shared information used by cooperating cygwin processes. 13 | This function is intended for use only by "system" programs like 14 | mount and ps. 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /winsup/doc/ChangeLog.MSYS: -------------------------------------------------------------------------------- 1 | 2001-09-04 Earnie Boyd 2 | 3 | * ChangeLog.cygwin: Original ChangeLog. 4 | * ChangeLog: New file. 5 | * Makefile.in (docfile): Use $(CC) instead of gcc -g directly. 6 | -------------------------------------------------------------------------------- /winsup/doc/faq.texinfo: -------------------------------------------------------------------------------- 1 | \input texinfo 2 | 3 | @title The Cygwin FAQ 4 | 5 | @subtitle (Not @emph{completely} updated for the latest net release, but still useful!) 6 | 7 | @author You can always find the latest version of this FAQ at @file{http://cygwin.com/faq/}. 8 | 9 | @setfilename faq.txt 10 | 11 | @include what.texinfo 12 | @include install.texinfo 13 | @include calls.texinfo 14 | @include how.texinfo 15 | @include relnotes.texinfo 16 | @include history.texinfo 17 | @include who.texinfo 18 | @include copy.texinfo 19 | -------------------------------------------------------------------------------- /winsup/doc/how-using.texinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/winsup/doc/how-using.texinfo -------------------------------------------------------------------------------- /winsup/doc/how.texinfo: -------------------------------------------------------------------------------- 1 | @chapter Question and Answers 2 | 3 | @include how-resources.texinfo 4 | @include how-using.texinfo 5 | @include how-api.texinfo 6 | @include how-programming.texinfo 7 | -------------------------------------------------------------------------------- /winsup/doc/programming.sgml: -------------------------------------------------------------------------------- 1 | Programming with Cygwin 2 | 3 | DOCTOOL-INSERT-gcc 4 | 5 | DOCTOOL-INSERT-gdb 6 | 7 | DOCTOOL-INSERT-dll 8 | 9 | DOCTOOL-INSERT-windres 10 | 11 | 12 | -------------------------------------------------------------------------------- /winsup/doc/readme.texinfo: -------------------------------------------------------------------------------- 1 | \input texinfo 2 | @title The Cygwin README 3 | 4 | @subtitle (Only partially updated for the latest net release.) 5 | 6 | @setfilename readme.txt 7 | 8 | @include install.texinfo 9 | 10 | @chapter Release Information 11 | 12 | @strong{(Please note: This section has not yet been updated for the latest 13 | net release.)} 14 | 15 | @include changes.texinfo 16 | 17 | @include relnotes.texinfo 18 | -------------------------------------------------------------------------------- /winsup/doc/relnotes.texinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/msysgit/msys/96f67347bc237ca689ad6f13e634d49f9de38cab/winsup/doc/relnotes.texinfo -------------------------------------------------------------------------------- /winsup/doc/using.sgml: -------------------------------------------------------------------------------- 1 | Using Cygwin 2 | 3 | This chapter explains some key differences between the Cygwin 4 | environment and traditional UNIX systems. It assumes a working 5 | knowledge of standard UNIX commands. 6 | 7 | DOCTOOL-INSERT-using-pathnames 8 | 9 | DOCTOOL-INSERT-using-textbinary 10 | 11 | DOCTOOL-INSERT-using-filemodes 12 | 13 | DOCTOOL-INSERT-using-specialnames 14 | 15 | DOCTOOL-INSERT-using-cygwinenv 16 | 17 | DOCTOOL-INSERT-using-utils 18 | 19 | 20 | -------------------------------------------------------------------------------- /winsup/testsuite/ChangeLog.MSYS: -------------------------------------------------------------------------------- 1 | 2010.01.12 Charles Wilson 2 | 3 | * libltp/lib/parse_opts.c: Fix bug (and compile 4 | error, with gcc3). 5 | 6 | 2001.09.22 Earnie Boyd 7 | 8 | * ChangeLog.cygwin: Renamed original ChangeLog. 9 | * winsup.api/ltp/link04.c: Add preprocessor filters for __MSYS__. 10 | * winsup.api/ltp/select01.c: Ditto. 11 | * winsup.api/ltp/unlink07.c: Ditto. 12 | -------------------------------------------------------------------------------- /winsup/testsuite/config/default.exp: -------------------------------------------------------------------------------- 1 | proc winsup_version {} { 2 | global env 3 | global rootme 4 | clone_output "\n[exec grep ^%%% $rootme/../cygwin/new-cygwin1.dll]\n" 5 | if { [info exists env(CYGWIN)] } { 6 | clone_output "CYGWIN=$env(CYGWIN)\n" 7 | } else { 8 | clone_output "CYGWIN=\n" 9 | } 10 | } 11 | 12 | proc winsup_exit {} { 13 | } 14 | -------------------------------------------------------------------------------- /winsup/testsuite/libltp/include/rmobj.h: -------------------------------------------------------------------------------- 1 | #ifndef _RMOBJ_H_ 2 | #define _RMOBJ_H_ 3 | 4 | /* 5 | * rmobj() - Remove the specified object. If the specified object is a 6 | * directory, recursively remove everything inside of it. If 7 | * there are any problems, set errmsg (if it is not NULL) and 8 | * return -1. Otherwise return 0. 9 | */ 10 | int rmobj( char *object , char **errmesg ); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /winsup/testsuite/libltp/lib/get_high_address.c: -------------------------------------------------------------------------------- 1 | /* $Header$ */ 2 | 3 | /* 4 | * (C) COPYRIGHT CRAY RESEARCH, INC. 5 | * UNPUBLISHED PROPRIETARY INFORMATION. 6 | * ALL RIGHTS RESERVED. 7 | */ 8 | 9 | #include 10 | 11 | char * 12 | get_high_address() 13 | { 14 | return (char *)sbrk(0) + 16384; 15 | } 16 | -------------------------------------------------------------------------------- /winsup/testsuite/winsup.api/known_bugs.tcl: -------------------------------------------------------------------------------- 1 | set xfail_list [list dup03 dup05 \ 2 | fcntl05 fcntl07B fcntl09 fcntl10 \ 3 | fsync01 gethostid01 lseek04 mknod01 select03 \ 4 | setgroups01 setregid01 setreuid01 setuid02 \ 5 | ulimit01 unlink06 unlink08 \ 6 | sample-fail sample-miscompile] 7 | 8 | 9 | -------------------------------------------------------------------------------- /winsup/testsuite/winsup.api/samples/sample-fail.c: -------------------------------------------------------------------------------- 1 | main() 2 | { 3 | return 1; 4 | } 5 | -------------------------------------------------------------------------------- /winsup/testsuite/winsup.api/samples/sample-miscompile.c: -------------------------------------------------------------------------------- 1 | foo bar grill 2 | -------------------------------------------------------------------------------- /winsup/testsuite/winsup.api/samples/sample-pass.c: -------------------------------------------------------------------------------- 1 | main() 2 | { 3 | return 0; 4 | } 5 | -------------------------------------------------------------------------------- /winsup/testsuite/winsup.api/sigchld.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int no_signal_caught = 1; 6 | 7 | void handler ( int signo ) 8 | { 9 | no_signal_caught = 0; 10 | } 11 | 12 | main() 13 | { 14 | pid_t pid; 15 | signal ( SIGCHLD, handler ); 16 | pid = fork(); 17 | if ( pid == 0 ) exit ( 0 ); 18 | sleep ( 2 ); 19 | exit ( no_signal_caught ); 20 | } 21 | --------------------------------------------------------------------------------