Commit Graph

261 Commits

Author SHA1 Message Date
Alexandre Oliva 2f3009bd13 * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrk
fails, don't bail out, and try to correct next time.
2002-04-13 10:27:02 +00:00
Alexandre Oliva 0cc261b11d * libc/include/sys/config.h: Include limits.h. 2002-04-13 10:10:03 +00:00
Jeff Johnston 26116455c4 2002-04-12 Eric Norum <eric.norum@usask.com>
* libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy
        routine to allow autoconf to determine that building executables
        for rtems works.
        (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto.
        (rtems_gxx_mutex_once): Ditto.
2002-04-12 21:12:19 +00:00
Tom Rix 4608280d36 Fix typo. 2002-04-09 21:52:05 +00:00
Jeff Johnston dea7e25ca7 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
* libc/include/time.h: Fix strptime declaration.
        * libc/time/Makefile.am: Add strptime.c.
        * libc/time/Makefile.in: Regenerated.
        * libc/time/strptime.c: New file.
2002-04-09 20:55:55 +00:00
Jeff Johnston c5ef1e95be 2002-04-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
        siglongjmp prototype, and sigsetjmp macro definition.
        * libc/sys/linux/siglongjmp.c: New file.
        * libc/sys/linux/Makefile.am: Add support for siglongjmp.
        * libc/sys/linux/Makefile.in: Regenerated.
2002-04-08 20:33:46 +00:00
Jeff Johnston 6e6cd5bde6 2002-04-04 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Add support for installing crt1.o if one exists.
        * configure.host: Specify crt1.o for linux.
        * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
        * Makefile.in: Regenerated.
        * configure: Ditto.
        * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
        Added for non-Cygwin, non-RTEMS configurations.
        * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/crt1.c: New empty file to override one defaulted
        by gcc.  This fixes problem with reconfiguring linux newlib build.
        * libc/sys/linux/sysconf.c: New file.
2002-04-04 22:41:11 +00:00
Jeff Johnston fa4a16a17a 2002-04-03 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Add support for machine subdirectory of
	sys subdirectory.
	* configure.in: Add check for sys machine subdirectory.
	* Makefile.am: Ditto.
	* configure: Regenerated.
	* Makefile.in: Ditto.
	* libc/sys/linux/crt0.c: Moved to machine/i386 directory.
	* libc/sys/linux/sys/syscall.h: Ditto.
	* libc/sys/linux/sleep.c: New file.
	* libc/sys/linux/socket.c: Ditto.
	* libc/sys/linux/sockops.h: Ditto.
	* libc/sys/linux/stack.c: Ditto.
	* libc/sys/linux/usleep.c: Ditto.
	* libc/sys/linux/machine/Makefile.am: Ditto.
	* libc/sys/linux/machine/Makefile.in: Ditto.
	* libc/sys/linux/machine/aclocal.m4: Ditto.
	* libc/sys/linux/machine/configure: Ditto.
	* libc/sys/linux/machine/configure.in: Ditto.
	* libc/sys/linux/machine/i386/Makefile.am: Ditto.
	* libc/sys/linux/machine/i386/Makefile.in: Ditto.
	* libc/sys/linux/machine/i386/aclocal.m4: Ditto.
	* libc/sys/linux/machine/i386/configure: Ditto.
	* libc/sys/linux/machine/i386/configure.in: Ditto.
	* libc/sys/linux/machine/i386/crt0.c: Ditto.
	* libc/sys/linux/machine/i386/sigset.c: Ditto.
	* libc/sys/linux/machine/i386/sigstack.h: Ditto.
	* libc/sys/linux/machine/i386/socketcall.h: Ditto.
	* libc/sys/linux/machine/i386/syscall.h: Ditto.
	* libc/sys/linux/sys/select.h: Ditto.
	* libc/sys/linux/configure.in: Add support for machine directory.
	* libc/sys/linux/Makefile.am: Ditto plus add new files above.
	* libc/sys/linux/Makefile.in: Regenerated.
	* libc/sys/linux/configure: Ditto.
	* libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
	* libc/sys/linux/inode.c: Ditto.
	* libc/sys/linux/linux.c: Ditto.
	* libc/sys/linux/process.c: Ditto.
	* libc/sys/linux/systat.c: Ditto.
	* libc/sys/linux/time.c: Ditto.
	* libc/sys/linux/wait.c: Ditto.
	* libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
	* libc/sys/linux/io.c: Change header plus add readv/writev.
	* libc/sys/linux/signal.c: Change header plus change sigsuspend to
	use __sigsuspend syscall.
	* libc/sys/linux/select.c: Change header plus change select to
	use _newselect syscall.
	* libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
	used by glibc header files.
	* libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
	types.
2002-04-03 22:46:21 +00:00
Jeff Johnston d4dca0e42e 2002-04-01 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
        initializing a struct _reent that has been dynamically allocated.
        (_REENT_CHECK_MISC): New macro that checks _misc struct for
        _REENT_SMALL and does nothing otherwise.
        (_REENT_STRTOK_LAST): New macro for reentrant strtok.
        (_REENT_MBLEN_STATE): New macro for reentrant mblen.
        (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
        (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
        [_REENT_SMALL](struct _misc_reent): New structure containing
        miscellaneous reentrant areas needed by newlib.
        [_REENT_SMALL](struct _reent): Add _misc pointer.
        [_REENT_SMALL](_REENT_INIT_MISC): New macro.
        * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
        and _REENT_STRTOK_LAST macros.
        * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
        and _REENT_MBLEN_STATE macros.
        * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
        and _REENT_MBTOWC_STATE macros.
        * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
        and _REENT_WCTOMB_STATE macros.
2002-04-01 23:06:21 +00:00
Jeff Johnston 54a7c6d2be 2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
* libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
2002-04-01 22:29:40 +00:00
Christopher Faylor c82479b1e3 * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define. 2002-03-28 04:26:49 +00:00
Joern Rennecke 43ecf6e828 * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
Store high part of leading bytes too.
2002-03-26 17:22:16 +00:00
Richard Sandiford a485d93f10 * libm/math/ef_hypot.c: Increase scale factor to 68. 2002-03-22 11:25:15 +00:00
Alexandre Oliva 62a963ee4d * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
error.
2002-03-14 02:41:43 +00:00
Jeff Johnston c53d845331 2002-03-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/go32/access.c: Change license to relaxed license
        used in identical file throughout newlib/libgloss.
2002-03-12 21:31:56 +00:00
Jeff Johnston d2a246ad72 2002-03-12 Richard Earnshaw <rearnsha@arm.com>
* libc/sys/arm/access.c: New file.
        * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
        * libc/sys/arm/Makefile.in: Regenerate.
        * libc/sys/arm/syscalls.c (_stat): New function.
2002-03-12 21:25:12 +00:00
Michael Meissner eabb48d53d Add MIPS specific string/memory functions 2002-03-11 15:44:35 +00:00
Jeff Johnston 2a606041a1 2002-03-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/machine/i386/Makefile.am: Add $(oext) for setjmp
        object so it works for shared library or statici library.
        * libc/machine/i386/Makefile.in: Regenerated.
2002-03-06 23:14:17 +00:00
Joern Rennecke 55f26f1194 * Makefile.am (lib_a_SOURCES, SH64 case): Add memcpy.S, memset.S
and strcpy.S.
	* Makefile.in: Regenerate.
	* asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
	(SHHI, SHLO): Define.
	* memcpy.S: Add code for SH5.
	* memset.S: Likewise.
	* strcpy.S: Likewise.
2002-03-06 10:43:18 +00:00
Jeff Johnston afecf2faee 2002-02-27 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Add check for --disable-newlib-io-float
        configuration option and add -DNO_FLOATING_POINT to newlib cflags
        if appropriate.
        * acinclude.m4: Added --disable-newlib-io-float option.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
        * libc/*/aclocal.m4 libc/*/configure
        * libm/*/aclocal.m4 libm/*/configure: Ditto.
        * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT
        if NO_FLOATING_POINT flag is not defined.
2002-02-27 23:56:24 +00:00
Jeff Johnston c1010a63d8 2002-02-25 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/config.h: Add __extension__ in front of
        long long references.
2002-02-25 23:51:10 +00:00
Corinna Vinschen 630c657e64 * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
(_stat): Ditto.
2002-02-23 20:46:28 +00:00
Corinna Vinschen 59ee2e2013 * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
of off_t.
2002-02-23 14:37:29 +00:00
Nick Clifton 2dd68dc2ff Add missing clobbered register. 2002-02-20 14:42:03 +00:00
Thomas Fitzsimmons 55500bf14f * configure.host (newlib_cflags): When host is in m68* add
-DCOMPACT_CTYPE.
2002-02-20 00:47:07 +00:00
Jeff Johnston ba0173f0f9 2002-02-15 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/config.h: Add definitions for
        __int16_t, __uint16_t, __int64_t, and __uint64_t.
2002-02-15 21:19:40 +00:00
Jeff Johnston 7b61d0c500 2002-02-12 Hans-Peter Nilsson <hp@bitrange.com>
* libc/sys/mmixware/link.c: New.
        * libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
        volatile.
        * libc/sys/mmixware/times.c (_times): Renamed from times.
        * libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
        properly by reading previous contents, not through BinaryReadWrite.
        * libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
        * libc/sys/mmixware/Makefile.in: Regenerate.
2002-02-13 00:01:27 +00:00
Corinna Vinschen a505db6554 * libc/include/grp.h: Don't declare group functions when compiling
Cygwin.
2002-02-10 13:26:29 +00:00
Corinna Vinschen f3b39c459b * libc/include/grp.h: Include Cygwin specific header.
* libc/include/sys/stat.h: Ditto.  Don't define `struct stat'
	when compiling for Cygwin.
	* libc/include/sys/types.h: Don't define off_t, uid_t
	and gid_t when compiling for Cygwin.
2002-02-09 20:40:37 +00:00
Matthew Green 82b3ac561c * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): Allocate
_REENT_EMERGENCY_SIZE, not sizeof(char *).
2002-02-09 13:01:46 +00:00
Alexandre Oliva 9f25eed9c9 Contribute sh64-elf.
2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
* configure.host (newlib_cflags) [sh*-*-*]: Enable long long
support in printf.
2001-01-29  Alexandre Oliva  <aoliva@redhat.com>
* libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before
any labels.
2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
* libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2.
2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
* libc/machine/sh/configure.in: Rework conditionals.
* libc/machine/sh/Makefile.am: Likewise.
* libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt.
2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
* configure.host: Match `sh*'.
* libc/include/machine/setjmp.h: Define for SH5.
* libc/machine/sh/configure.in: Detect SH5.
* libc/machine/sh/configure: Rebuilt.
* libc/machine/sh/Makefile.am: Use only setjmp.S for SH5.
* libc/machine/sh/Makefile.in: Rebuilt.
* libc/machine/sh/asm.h: Adjust for SH5.
* libc/machine/sh/setjmp.S: Implement in SHmedia.
* libc/sys/sh/crt0.S: Likewise.
* libc/sys/sh/trap.S: Likewise.
2002-02-08 07:11:13 +00:00
Jeff Johnston a2a405aea6 2002-02-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/machine/i386/Makefile.am: (mach_add_src): Remove.
        (mach_add_obj): Conditionally set to setjmp.o or nothing.
        (LIB_SOURCES): Remove $(mach_add_src).
        (lib_a_LIBADD, lib_a_DEPENDENCIES): Add and set to $(mach_add_src).
        (lib_la_LIBADD, lib_la_DEPENDENCIES): Ditto.
        * libc/machine/i386/Makefile.in: Regenerate.
2002-02-07 19:15:15 +00:00
Jeff Johnston 994fa212ea Fix typo. 2002-02-05 17:17:28 +00:00
Jeff Johnston 27478365a2 2002-02-05 Manik Raina <manik@cisco.com>
* libc/misc/dprintf (parse_number): #if 0 unused function.
        * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables
        s, p, k, and outstr.
        * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
2002-02-05 17:14:35 +00:00
Jeff Johnston 815a37f78a 2002-02-04 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/reent.h [(!_REENT_SMALL]: Add
        _REENT_CHECK_EMERGENCY macro.
2002-02-04 18:38:44 +00:00
Matthew Green a4139c1259 * libc/reent/signgam.c (__signgam): Fix error in previous. 2002-02-03 12:53:04 +00:00
Matthew Green 8195aff714 * implement a new `struct _reent' that is significantly smaller. use this
if _REENT_SMALL is defined in config.h.  define this for xstormy16.
2002-02-03 09:24:18 +00:00
Geoffrey Keating 9c2e764253 In ld/ChangeLog:
* scripttempl/xstormy16.sc: Don't allocate extra space for the
	stack.
In libgloss/ChangeLog:
	* xstormy16/Makefile.in (SIM_OBJS): Remove sbrk.o, add
	sim_malloc_start.o.
	* xstormy16/eva_app.ld: Add __malloc_start.
	* xstormy16/sbrk.c: Remove.
	* xstormy16/sim_malloc_start.s: New file.
	* xstormy16/sim_high.ld: Make the stack start immediately at the
	end of the program.
In newlib/ChangeLog:
	* configure.host (xstormy16): Don't use the generic malloc.
	* libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
	* libc/machine/xstormy16/Makefile.in: Regenerate.
	* libc/machine/xstormy16/mallocr.c: New file.
	* libc/machine/xstormy16/tiny-malloc.c: New file.
2002-02-01 18:00:41 +00:00
Thomas Fitzsimmons 4bb6112fb1 * libc/include/sys/signal.h [__CYGWIN__]: Issue error message
when _CYGWIN_TYPES_H is not defined.
2002-01-28 18:03:54 +00:00
Thomas Fitzsimmons 8d3455521a * libc/include/sys/signal.h: Revert 2002-01-23 change. 2002-01-25 00:47:44 +00:00
Thomas Fitzsimmons bcc49082f6 * libc/include/sys/signal.h: Remove pthread_kill declaration
when __CYGWIN__ is defined.
2002-01-24 00:52:27 +00:00
Christopher Faylor 13baedeb74 * libc/include/time.h: Add prototype for strptime for Cygwin. 2002-01-18 16:25:50 +00:00
Nick Clifton ebf139fbb8 Fix bug when len == 1 and dst was not word aligned. 2002-01-17 17:02:08 +00:00
Nick Clifton b2db0ebcfe _sbrk(): Return -1 rather than aborting if too much memory is requested. 2002-01-17 16:39:53 +00:00
Jeff Johnston 798c015d11 2002-01-11 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
        reads blanks from the input file to break if EOF reached
        rather than end processing.
2002-01-11 22:06:09 +00:00
Jeff Johnston 46ad2ef436 2002-01-07 Jeff Johnston <jjohnstn@redhat.com>
* MAINTAINERS: Change e-mail addresses to refer to redhat domain.
2002-01-07 19:37:42 +00:00
Jeff Johnston 86b06396f0 2002-01-07 Alan Matsuoka <alanm@redhat.com>
* libc/include/machine/ieeefp.h: Configure d10v doubles to
        be 32 bits if __DOUBLE__ == 32  otherwise doubles are 64 bits.
        libc/include/sys/config.h: Ditto.
2002-01-07 19:33:23 +00:00
Corinna Vinschen 423d5064f2 * libc/sys/cygwin/sys/utmp.h: Add definition of UTMP_FILE. 2001-12-28 15:43:24 +00:00
Geoffrey Keating f6eff1c046 In newlib/:
2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
	    Catherine Moore  <clm@redhat.com>
	    Richard Henderson  <rth@redhat.com>
	    Corinna Vinschen  <vinschen@redhat.com>

	* configure.host: Add support for xstormy16.
	* libc/include/machine/ieeefp.h: Add support for xstormy16.
	* libc/include/machine/setjmp.h: Add support for xstormy16.
	* libc/include/sys/config.h: Add support for xstormy16.
	* libc/machine/xstormy16/Makefile.am: New file.
	* libc/machine/xstormy16/Makefile.in: New file.
	* libc/machine/xstormy16/aclocal.m4: New file.
	* libc/machine/xstormy16/configure: New file.
	* libc/machine/xstormy16/configure.in: New file.
	* libc/machine/xstormy16/setjmp.S: New file.

In libgloss/:
2001-12-22  Geoffrey Keating  <geoffk@redhat.com>
	    Mark Salter  <msalter@redhat.com>
	    Catherine Moore  <clm@redhat.com>
	    Richard Henderson  <rth@redhat.com>

	* configure.in: Add xstormy16.
	* libnosys/configure.in: Add xstormy16.
	* configure: Regenerated.
	* libnosys/configure: Regenerated.
	* xstormy16/Makefile.in: New file.
	* xstormy16/close.c: New file.
	* xstormy16/configure: New file.
	* xstormy16/configure.in: New file.
	* xstormy16/crt0.s: New file.
	* xstormy16/crt0_stub.s: New file.
	* xstormy16/crti.s: New file.
	* xstormy16/crtn.s: New file.
	* xstormy16/eva_app.c: New file.
	* xstormy16/eva_app.ld: New file.
	* xstormy16/eva_stub.ld: New file.
	* xstormy16/fstat.c: New file.
	* xstormy16/getpid.c: New file.
	* xstormy16/kill.c: New file.
	* xstormy16/lseek.c: New file.
	* xstormy16/open.c: New file.
	* xstormy16/sbrk.c: New file.
	* xstormy16/sim_high.ld: New file.
	* xstormy16/stat.c: New file.
	* xstormy16/syscalls.S: New file.
	* xstormy16/syscalls.m4: New file.
	* xstormy16/unlink.c: New file.
	* xstormy16/xstormy16_stub.c: New file.
2001-12-22 22:47:58 +00:00
Thomas Fitzsimmons 1f93c55ff7 * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.
* libm/machine/Makefile.am [HAVE_LIBM_MACHINE_DIR] (LIBM_MACHLIB): New variable.
2001-12-19 23:41:46 +00:00