Commit Graph

349 Commits

Author SHA1 Message Date
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
Corinna Vinschen 13b918be74 * libm/machine/Makefile.am: Change rules to create correct lib.a.
* libm/machine/Makefile.in: Regenerated through automake.
2001-12-19 09:22:35 +00:00
Thomas Fitzsimmons 60565ed657 2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
* libc/machine/i386/f_*: Move to libm/machine/i386.

2001-12-18      Joel Sherrill <joel@OARcorp.com>

	* libm/machine/Makefile.am: Add dummy doc stub so
	"make info" works.

2001-12-17	Joel Sherrill <joel@OARcorp.com>

	* libc/include/sys/types.h (ino_t): RTEMS uses long also.
2001-12-19 03:03:43 +00:00
Thomas Fitzsimmons 08e857b49a * Makefile.am (DOCDIR): Force to empty string when doc
directory is not present.
2001-12-18 22:52:52 +00:00
Thomas Fitzsimmons fc50413595 * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
$(COMPILE) rather than $(CC).
	* libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
	(vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
	$(LIB_COMPILE) change.
	(vfiprintf.$(oext)): Likewise.
2001-12-18 02:22:55 +00:00
Corinna Vinschen efeae9a317 * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
conditionalized including of getopt stuff.
2001-12-17 21:32:25 +00:00
Thomas Fitzsimmons f85be99c51 (vfiprintf.$(oext)): Likewise. 2001-12-14 19:27:46 +00:00
Thomas Fitzsimmons cdf7120d2d * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
compile line.
2001-12-14 19:14:27 +00:00
Thomas Fitzsimmons 2e1a71756e * Makefile.shared: New file.
* libc/sys/linux/shared.ld: New file.
	* libm/machine/*: New files.
	* libm/machine/i386/*: New files.
	* Makefile.am: Add libtool support.  Change math and mathfp
	references to variables.
	* configure.host: Add variables for libtool support.  Add
	libm_machine_dir variable.
	* configure.in: Add objectlist variables, for libtool
	support.  Add CC_FOR_BUILD tests.
	* libc/Makefile.am: Add libtool support.  Change crt0.o
	reference to be a variable reference.
	* libc/configure.in: Add libtool support.  Change sublib
	names to be lib${subdir}.la when using libtool.
	* libc/ctype/Makefile.am: Add libtool support.
	* libc/errno/Makefile.am: Likewise.
	* libc/locale/Makefile.am: Likewise.
	* libc/machine/Makefile.am: Likewise.
	* libc/machine/configure.in: Likewise.
	* libc/machine/i386/Makefile.am: Likewise.
	* libc/machine/i386/configure.in: Likewise.
	* libc/misc/Makefile.am: Likewise.
	* libc/posix/Makefile.am: Likewise.
	* libc/reent/Makefile.am: Likewise.
	* libc/signal/Makefile.am: Likewise.
	* libc/stdio/Makefile.am: Likewise.
	* libc/stdlib/Makefile.am: Likewise.
	* libc/string/Makefile.am: Likewise.
	* libc/sys/Makefile.am: Likewise.
	* libc/sys/configure.in: Likewise.
	* libc/sys/linux/Makefile.am: Add libtool support.  Change
	awk reference to a variable reference.  Change signal.h
	reference to a variable reference.
	* libc/sys/linux/configure.in: Add libtool support.
	* libc/syscalls/Makefile.am: Likewise.
	* libc/time/Makefile.am: Likewise.
	* libc/unix/Makefile.am: Likewise.
	* libm/Makefile.am: Add libtool support.  Change math and
	mathfp references to variables.
	* libm/configure.in: Add libtool support.  Add
	LIBM_MACHINE_LIB variable.
	* libm/common/Makefile.am: Add libtool support.
	* libm/math/Makefile.am: Likewise.
	* libm/mathfp/Makefile.am: Likewise.
	Regenerate all Makefile.in, aclocal.m4, and configure.
2001-12-13 23:50:11 +00:00
Jeff Johnston b92591a1fc 2001-12-13 Anita Kulkarni <anitak@kpit.com>
* libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
2001-12-13 20:10:16 +00:00
Christopher Faylor 355b664e8c * libc/include/sys/unistd.h: Correct ualarm declaration. 2001-12-06 19:00:14 +00:00
Nick Clifton e9853806c7 For __USES_INITFINI__ preserve the argument vector before calling the
initialisation functions.
2001-12-05 11:51:43 +00:00
Christopher Faylor a8e091b0bc * libc/include/dirent.h: Protect against multiple inclusion. 2001-11-30 17:26:47 +00:00
Christopher Faylor ab6341231f * libc/include/sys/types.h: Define useconds_t.
* libc/include/sys/ulimit.h: Declare ualarm.
2001-11-28 00:16:58 +00:00
Christopher Faylor d37e401ef3 * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element. 2001-11-21 06:57:44 +00:00
Hans-Peter Nilsson 8ac90051e6 * libc/sys/mmixware/*: Tweak license header in all source files. 2001-11-18 23:47:59 +00:00
Corinna Vinschen d7ca37e413 * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
to here.  Rearrange for general inclusion by stdlib.h.
	* libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
	isn't defined.
	* libc/sys/linux/include/alloca.h: Move to libc/include.
2001-11-14 10:25:35 +00:00
Anthony Green 28f8744e02 Add __stack_base__ 2001-11-13 03:31:14 +00:00
Hans-Peter Nilsson 4cede8c4ce * libc/sys/mmixware/*: Correct spacing in all source files.
* libc/sys/mmixware/syscall.h: Move misplaced file...
	* libc/sys/mmixware/sys/syscall.h: ...here.
2001-11-13 02:49:12 +00:00
Jeff Johnston 8be9b48be6 2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
* libc/include/machine/ieeefp.h: Add support for mmix target.
        * libc/include/machine/setjmp.h: Ditto.
        * configure.host: Ditto.
        * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
        libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
        libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
        libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
        libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
        libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
        libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
        libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
        libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
        libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
        libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
        libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
        libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
        libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
        libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
        libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
        * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
        libc/sys/mmixware/aclocal.m4: Generate.
2001-11-12 21:04:41 +00:00
Corinna Vinschen c7dd4f9511 * libc/include/sys/unistd.h: Add prototypes for endusershell(),
getusershell(), iruserok(), revoke(), ruserok() and setusershell()
	when __CYGWIN__ is defined.
	* libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
	logwtmp().
2001-11-05 18:06:24 +00:00
Jeff Johnston a6a6f9fece 2001-11-01 Arati Dikey <aratidikey@hotmail.com>
* libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
        [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
        * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
        [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
2001-11-01 19:47:32 +00:00
Jeff Johnston d0504c353f 2001-10-24 Christopher Faylor <cgf@redhat.com>
* libc/stdio/fseek.c: Reset pointer to buffer base
        when forced to seek outside of current buffer contents.
        This prevents the code from erroneously thinking there is
        anything in the current buffer.
2001-10-24 18:10:30 +00:00
Geoffrey Keating 0280c8c0f3 * libc/include/math.h: The C++ standard adds the single-precision
versions of the elementary functions.
2001-10-23 17:43:16 +00:00
Christopher Faylor 333d609843 * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations throughout.
* signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
* popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
* system.c (_system_r): Ditto.
2001-10-22 16:40:26 +00:00
Corinna Vinschen b4e98df6bc Add __rtems__ as system defining fchdir(). 2001-10-17 19:28:35 +00:00
Corinna Vinschen c711831918 * libc/include/sys/unistd.h: Add prototype for fchdir() when
__CYGWIN__ is defined.
2001-10-17 18:16:43 +00:00
Jeff Johnston 5665b0e1d0 2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>
* libc/include/stdlib.h: add declarations for
        _strtoull_r, _strtoll_r, strtoull, and strtoll.
        * libc/stdio/local.h: remove declarations of
        __strtoull_r and __strtoll_r.
        * libc/stdio/vfscanf.c(__svfscanf_r): call
        _strtoull_r instead of __strtoull_r. Ditto
        _strtoll_r vs. __strtoll_r.
        * libc/stdlib/Makefile.am: add new files to
        .c list and .def list
        * libc/stdlib/Makefile.in: regenerate
        * libc/stdlib/strtoll_r.c: rename __strtoll_r
        as _strtoll_r
        * libc/stdlib/strtoull_r.c: rename __strtoull_r
        as _strtoull_r
        * libc/stdlib/strtoull.c: new file
        * libc/stdlib/strtoll.c: new file
2001-10-01 18:05:11 +00:00
Nick Clifton b244a68909 oops omitted in previous delta 2001-09-18 15:42:41 +00:00
Christopher Faylor d2d5eb41e4 * libc/include/process.h: Add getpid() declaration. 2001-09-17 21:30:58 +00:00
Nick Clifton 448e3c1454 oops - omitted from previous delta 2001-09-14 11:43:41 +00:00
Jeff Johnston 7a2afbbb85 2001-09-13 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/Makefile.am: Add support to build strtoll_r.c
        and strtoull_r.c.
        * libc/stdlib/Makefile.in: Regenerated.
        * libc/stdlib/strtoll_r.c: New file.
        * libc/stdlib/strtoull_r.c: New file.
        * libc/stdio/local.h: Add prototypes for long long string
        conversion routines.
        * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
        tied to %L integer conversion specifier.
2001-09-13 21:12:33 +00:00
Jeff Johnston 6342caa4e6 Thu Sep 13 08:49:49 2001 Jason Tishler <jason@tishler.net>
* strftime.c (strftime): Fix "%W" implementation to properly handle
        Mondays too.
2001-09-13 20:40:49 +00:00
Jeff Johnston b2d319cb3e 2001-09-07 Jeff Law <law@redhat.com>
* libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
        __fini with "mov.l" instead of "mov.w".
2001-09-07 18:21:33 +00:00
Corinna Vinschen 233823ba36 * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
and getopt.h.
2001-09-05 15:56:01 +00:00
Jeff Johnston 63c17b5426 2001-09-04 Jason Merrill <jason_merrill@redhat.com>
* libc/sys/h8300hms/crt0.S: Support ELF initialization.
2001-09-04 19:05:44 +00:00
Corinna Vinschen a3e67ddfe6 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
field.
        (__DIRENT_VERSION): New define.
2001-09-03 19:04:05 +00:00
Corinna Vinschen 4f79e37e4d Add missing ChangeLog entries. 2001-09-03 16:39:49 +00:00
Corinna Vinschen 6d47f33adb * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member. 2001-09-03 16:33:53 +00:00
Jeff Johnston 348c5e06c2 2001-08-29 Joel Sherrill <joel@OARcorp.com>
* libc/include/sys/unistd.h: Prototype chroot() for RTEMS.

2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

        * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
          libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
          libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
          libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
          libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
          libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
          libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
          libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
        Add conditional compilation to avoid HW FPU instructions
        when compiled for soft-float.
2001-08-29 20:09:31 +00:00
Jeff Johnston f29865c5ff 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Add check for ln failing when creating libg.a
        so that cp gets used as a backup.
        * Makefile.in: Regenerated.
2001-08-29 19:55:20 +00:00
Jeff Johnston 9e2a4ef876 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/reent.h: Add include of <sys/_types.h>.
        No longer include time.h.  Add struct __tm to use for
        _localtime_buf in the reentrant structure.  Add a
        _NULL definition to use in initializing the reentrant struct.
        * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
        the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
        <sys/_types.h>.
        * libc/include/sys/unistd.h: Include <sys/_types.h>.
        * libc/time/lcltime.c (localtime): Cast the reentrant struct
        _localtime_buf to be struct tm *.
2001-08-29 19:47:43 +00:00
Joern Rennecke 1ae900d62f * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
* libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
	__ctors_end.
	* libc/sys/h8300hms/syscalls.c: Include errno.h.
	(_unlink): New stub function.
2001-08-29 13:26:32 +00:00
Christopher Faylor 8e26d5b5a7 * libc/include/sys/errno.h: Add a cautionary comment. 2001-08-26 02:28:33 +00:00
Jeff Johnston e826766445 2001-08-21 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
        for SIZE_SZ so that alignment ends up a minimum of 8.
2001-08-21 20:23:16 +00:00
Christopher Faylor 4acf3edf6a * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro arguments.
* libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under Cygwin.
2001-08-14 14:36:58 +00:00
Jeff Johnston 52c80be814 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
        macro constants for mallopt options.
        (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
2001-08-13 22:54:42 +00:00
Jeff Johnston a7061f7f50 2001-08-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
        otherwise default.
2001-08-02 22:28:40 +00:00
Aldy Hernandez 0b4bfdd527 2001-07-12 Aldy Hernandez <aldyh@redhat.com>
* libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
2001-07-13 15:41:39 +00:00
Nick Clifton 2b6b730c98 Handle ARMs with big endian IEEE words but little endian IEEE bytes 2001-06-28 10:40:09 +00:00
Jeff Johnston 25842b68c7 2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
* /libc/include/ctype.h (is* and to* macros): Do not define if C++.
2001-06-11 21:51:41 +00:00
Jeff Johnston 371b76ef3e 2001-06-11 Egor Duda <deo@logos-m.ru>
* libc/ctype/ctype_.c: When compiled with gcc on platforms
        with signed char, make _ctype_[-128] ... _ctype[-1] refer to
        initialized memory region. Platform can define COMPACT_CTYPE
        to avoid allocation of the additional 128 bytes of data.
        Add pointer to _ctype_ array. Always initialize all _ctype_
        array elements.
2001-06-11 19:25:59 +00:00
Jonathan Larmour 43b44bc5ad * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
NULL pointer.
2001-06-11 17:21:18 +00:00
Nick Clifton 188bc140c0 Handle printf ("%#.0o",0); 2001-05-28 18:22:44 +00:00
Nick Clifton 2ce884182c Fix bug when both pointers have matching, non-word alignment, and the length
is <= 4 but more than enough to move them over a word boundary.
Add comments explaining what each instruction does.
2001-05-25 21:17:06 +00:00
Christopher Faylor c63e9997e6 Fix typo. 2001-05-08 14:06:55 +00:00
Christopher Faylor ca60ed4748 * libc/include/sys/stat.h: Revert March 3, Cygwin change.
* libc/include/sys/Ditto.h: Ditto.
2001-05-08 01:15:06 +00:00
Jeff Johnston 8b3bcfbab9 2001-05-04 Earnie Boyd <earnie@users.sourceforge.net>
* libc/string/strrchr.c: Use strchr for the speed improvements.
2001-05-04 17:23:18 +00:00
Jeff Johnston b09e3cf8fd 2001-05-01 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
        real file systems, let __smakebuf() determine if line buffering
        should be used for stdout.
2001-05-01 18:18:25 +00:00
Jeff Johnston 0ca6697493 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
2001-04-27 21:59:44 +00:00
Jeff Johnston 7cb7017ae0 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdlib.h: Add prototype for _strtod_r.
2001-04-27 20:43:42 +00:00
Jeff Johnston a874cd21de 2001-04-24 Charles Wilson <cwilson@ece.gatech.edu
* libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
        * libc/stdio/vprintf.c (_vprintf_r): new function
        * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
        * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
        _DEFUN, and call _vfprintf_r, not vfprintf.
        * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
        * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
        _DEFUN, and call _vfprintf_r, not vfprintf.
2001-04-24 22:09:21 +00:00
Christopher Faylor cb4cc28370 * libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OK
definitions in sys/file.h.
2001-04-22 23:52:06 +00:00
Christopher Faylor 8c9df1d571 * libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,
too.
2001-04-21 03:22:47 +00:00
Jeff Johnston 3ac6f3a748 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Added --enable-malloc-debugging configure flag.
        * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
        --enable-malloc-debugging selected.
        * aclocal.m4 configure: Regenerated.
          libm/aclocal.m4 libm/configure: Ditto.
        * libc/aclocal.m4 libc/configure: Ditto.
        * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
        * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
        * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
        * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
        * doc/aclocal.m4 doc/configure: Ditto.
2001-04-21 01:17:33 +00:00
Jeff Johnston 52cb9e6934 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
        into one list.
        [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
        (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
        function prototypes.
        (_fscanf_r, _sscanf_r): Ditto.
        * libc/include/stdlib.h: Added _strtod_r prototype.
        * libc/stdio/Makefile.am: Add new v*scanf functions.
        * libc/stdio/Makefile.in: Regenerate.
        * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
        and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.        * libc/stdio/scanf.c: Changed to call __svfscanf_r.
        * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
        (sscanf): Changed to call __svfscanf_r with _REENT argument.
        (_sscanf_r): New routine.
        * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
        with __svfscanf_r prototype.
        * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
        routines.
        (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
        structure as argument as calls reentrant versions of helper functions
        (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
        to _strtol_r and _strtod_r respectively.
        * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
        * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
        _REENT argument.
        * libc/stdio/vscanf.c: New file.
        * libc/stdio/vsscanf.c: Ditto.
2001-04-20 22:50:51 +00:00
Jeff Johnston ee9f39fb3a 2001-04-19 Robert Collins <rbtcollins@hotmail.com>
* include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
        Define daylight to _daylight if it is not defined
        Prepare a variable export of timezone based on timezonevariable.
        (Cannot be used with the timezone() function.)
2001-04-19 15:54:47 +00:00
Jeff Johnston 273861e3aa 2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>
* newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
         Correct the numerical values.
2001-04-17 17:13:00 +00:00
Christopher Faylor a25b8414ac * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only). 2001-04-13 15:37:47 +00:00
Corinna Vinschen b8a8c59d33 * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
on case insensitve file systems.
2001-04-12 21:17:27 +00:00
Christopher Faylor 74f8cc634a * libc/include/sys/features.h: Add appropriate defines for Cygwin pthread
support.
* libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection.
* libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads types.
Include <cygwin/types.h> for the cygwin specific typedefs.
2001-04-12 00:05:57 +00:00
Richard Sandiford 16740220a2 * libc/include/machine/ieeefp.h: Comment about new configuration
macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS.
	* libm/common/fdlib.h: Define new macros for testing floats.
	* libm/common/sf_*: Use them.
	* libm/math/ef_*: Likewise.
	* libm/math/sf_*: Likewise.
2001-04-04 13:33:01 +00:00
Jeff Johnston 0694d8d310 2001-03-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode
        prolog to by-pass possible assembler error.
2001-03-30 00:51:51 +00:00
Jeff Johnston 4833b38c4e 2001-03-21 Egor Duda <deo@logos-m.ru>
Allow building internal stubs for non-reentrant syscalls
        if target provides its own malloc
        * libc/reent/reent.c (errno): Move definition here.
        * libc/reent/sbrkr.c: From here.
2001-03-21 21:47:31 +00:00
Christopher Faylor d17d6d4286 * libc/include/sys/types.h (BSD int typedefs): Guard with _BSDTYPES_DEFINED
rather than _WINSOCK_H.
(fd_set): Add !defined __USE_W32_SOCKETS to guard; define _SYS_TYPES_FD_SET.
* libc/include/sys/unistd.h (gethostname): Don't declare if defined
(_WINSOCK_H) || defined (__USE_W32_SOCKETS).
2001-03-20 19:27:56 +00:00
Corinna Vinschen c7ee75cd2e * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
_PC_POSIX_SECURITY constants for Cygwin.
2001-03-19 10:54:55 +00:00
Corinna Vinschen 63dc5d80f6 * libc/sys/cygwin/crt0.c: Add copyright hint.
* libc/sys/cygwin/sys/dirent.h: Ditto.
        * libc/sys/cygwin/sys/param.h: Ditto.
        * libc/sys/cygwin/sys/utime.h: Ditto.
        * libc/sys/cygwin/sys/utmp.h: Ditto.
2001-03-14 08:36:33 +00:00
Alexandre Oliva 6f637037e5 * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make it
equivalent to LONGINT.
2001-03-13 09:42:52 +00:00
Jeff Johnston e69b6f73d7 2001-03-07 Richard Sandiford <rsandifo@redhat.com>
* (libc/include/machine/setjmp.h): Use 23 DI-mode ints for a
        jmpbuf on MIPS64 targets.
        * (libc/machine/mips/setjmp.S): Add MIPS64 version.
2001-03-08 21:39:32 +00:00
Christopher Faylor 6198decee3 * libc/include/sys/config.h: Use ssize_t for read/write declarations. 2001-03-07 21:03:43 +00:00
Jeff Johnston cfc05d9675 Mon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>
* libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define.
        For RTEMS, define to be ssize_t.  Default to int if not defined.
        * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE.
        * libc/stdio/stdio.c (__sread, __swrite): Likewise.
        * libc/stdio/local.h (__sread, __swrite): Likewise.
        * libc/include/sys/reent.h (_read, _write): Likewise.
        * libc/include/sys/unistd.h (read, write, _read, _write): Likewise.
        * libc/syscalls/sysread.c (read): Likewise.
        * libc/syscalls/syswrite.c (write): Likewise.
2001-03-06 01:04:43 +00:00
Jeff Johnston 6249353a4c 2001-03-05 Jeff Johnston <jjohnstn@redhat.com>
* libc/time/mktime.c: Add L suffix to _SEC_IN_xxxx constants.
2001-03-05 21:07:20 +00:00
Christopher Faylor 658b5db941 * libc/include/sys/stat.h: Use special defines for executable stat bits when
compiling for Cygwin.
* libc/include/sys/unistd.h: Use special define for X_OK when compiling for
Cygwin.
2001-03-05 05:13:06 +00:00
Jeff Johnston 19ca46d5fb 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype
        of strtok_r is always defined.
2001-03-02 23:16:33 +00:00
Jeff Johnston b73ed85e00 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/machine/ansi.h: New dummy header file.
2001-03-02 23:13:04 +00:00
Jeff Johnston ee37ede1d3 2001-02-22 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/machine/setjmp-dj.h: With DJ Delorie's permission,
        changed the copyright information to allow free modification of the
        file with no reference to "copying.dj".
        * libc/include/sys/stat-dj.h: Ditto.
        * libc/machine/i386/setjmp.S: Ditto.
        * libc/sys/h8300hms/sys/file.h: Ditto.
        * libc/sys/sysmec/access.c: Ditto.
        * libc/sys/sysnecv850/access.c: Ditto.
        * libc/stdio/mktemp.c: Fixed typo for the word copyright.
        * libc/stdlib/getenv_r.c: Ditto.
        * libc/stdlib/putenv_r.c: Ditto.
        * libc/stdlib/setenv_r.c: Ditto.
        * libc/stdlib/getenv.c: Removed DJ reference since any possible
        modifications will now be in the _r version of this file.
        * libc/stdlib/putenv.c: Ditto.
        * libc/stdlib/setenv.c: Ditto.
        * libc/sys/go32/copying.dj: Removed DJ's address which is no longer
        valid.  Added a reference to DJ's web page that contains his address.
        * libc/sys/go32/*.s: Removed references to DJ's old address.
        * libc/sys/go32/*.c: Ditto.
        * libc/sys/go32/*.h: Ditto.
        * libc/sys/go32/*.S: Ditto.
        * libc/sys/go32/sys/*.h: Ditto.
2001-02-22 22:12:43 +00:00
Jeff Johnston 3a8fc0e4f1 2001-02-21 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/fdopen.c (fdopen): Protect calls to _fcntl() with
        HAVE_FCNTL flag check.
        * configure.host: Define HAVE_FCNTL for Cygwin, go32, RTEMS, sparc64,
        powerpcle, x86 netware, x86 sco, x86 Linux and Vxworks.
2001-02-21 23:11:06 +00:00
Christopher Faylor b24ee7499c * libc/include/sys/signal.h: Always include sys/types.h under Cygwin. 2001-02-15 06:42:35 +00:00
Jeff Johnston ab4745dcb2 2001-02-14 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* libc/include/stdlib.h: Add declarations of rand48 functions and
        their reentrant versions.
        * libc/include/sys/reent.h: Move macros from rand48.h. Add
        struct _rand48 for shared parameters of rand48 functions.
        (struct _reent): Add a variable _r48 of struct _rand48.
        (_REENT_INIT): Add _r48 initialization.
        * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions.
        (CHEWOUT_FILES): Add rand48.def.
        * libc/stdlib/Makefile.am: Add dependencies for rand48 functions.
        * libc/stdlib/Makefile.in: Regenerated.
        * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the
        NetBSD C library.
        * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto.
        * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto.
        * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto.
        * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto.
        * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto.
        * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto.
        * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto.
        * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto.
        * libc/stdlib/rand48.c (__dorand48): Ditto.
        * libc/stdlib/rand48.h: Ditto, and modify declarations of global
        parameters into macros referring them in the reentrant structure.
2001-02-15 02:04:55 +00:00
Jeff Johnston a34c461fbb 2001-02-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/stat.h: Add mknod for Cygwin now that
        Cygwin definition has correct prototype.
2001-02-12 18:17:17 +00:00
Jeff Johnston 34f31ff211 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/stat.h: Must revert change for mknod
        for CYGWIN until winsup/cygwin/syscalls.cc changes mknod
        prototype.
2001-02-09 01:01:06 +00:00
Jeff Johnston 5336d6de84 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h: Revert putw prototype.
2001-02-09 00:32:43 +00:00
Jeff Johnston 8915d10a26 2001-02-08 Edward M. Lee <tailbert@yahoo.com>
* libc/include/grp.h: add prototype for initgroups.
        * libc/include/stdio.h: fix prototype for putw.
        * libc/include/sys/signal.h: add prototype for killpg.
        * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN.
        * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp,
        vhangup and remove duplicate sysconf prototype.
2001-02-09 00:13:54 +00:00
Jeff Johnston 93ac448707 2001-02-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/rtems/sys/types.h: Removed.
2001-02-07 18:11:09 +00:00
Jeff Johnston 31f5feea33 2001-02-05 Charles Wilson <cwilson@ece.gatech.edu>
* libc/include/locale.h: add LC_MESSAGES definition
2001-02-05 21:51:43 +00:00
Alexandre Oliva b5139f598b * libc/sys/sh/sys/syscall.h (SYS_get_argc, SYS_get_argN_len,
SYS_get_argN):
* libc/sys/sh/syscalls.c (__setup_argv_for_main,
__setup_argv_and_call_main): New.
2001-02-01 21:25:56 +00:00
Jeff Johnston e29d83550e 2001-01-31 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
        if defined.
        (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
        (L_tmpnam): Changed to use __L_tmpnam__ if defined.
        * libc/include/sys/config.h: Changed to set __FILENAME_MAX__
        appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
2001-01-31 20:11:48 +00:00
Christopher Faylor 82ea92f3ea * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when compiling
under Cygwin.
2001-01-30 04:04:59 +00:00
Jeff Johnston 3aaa66f813 2001-01-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (signgam): Change to errno-like solution
        using a function to return the address of the real signgam.
        * libc/reent/signgam.c: New file containing __signgam().
        * libc/reent/Makefile.am: Added signgam.c to list of files.
        * libc/reent/Makefile.in: Regenerated.
2001-01-29 22:40:50 +00:00
Alexandre Oliva b0913397ba * libc/sys/sh/syscalls.c (_times): New. 2001-01-26 02:03:58 +00:00
Alexandre Oliva 610b895aa1 * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
* libc/sys/sh/syscalls.c (_gettimeofday): New.
2001-01-25 21:40:28 +00:00
Jeff Johnston 3643210e24 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (signgam): Regress previous fix as
        it does not handle programs with extern int signgam in them.
2001-01-24 00:12:44 +00:00
Jeff Johnston 841081c9f2 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (signgam): Changed to a macro refering to
        its location in the reentrant structure.
2001-01-23 19:56:14 +00:00
Jeff Johnston e9cd87b82a 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
        that suppressed . for %.0f, 0.1.  Check now looks if there
        are padding zeroes (expt) in addition to any digits (ndig) to
        print.
2001-01-23 19:49:09 +00:00
Jeff Johnston a302b48c21 2001-01-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/arc/Makefile.am: New file.
        * libc/sys/arc/Makefile.in: Ditto.
        * libc/sys/arc/aclocal.m4: Ditto.
        * libc/sys/arc/configure: Ditto.
        * libc/sys/arc/configure.in: Ditto.
        * libc/sys/arc/crt0.S: Ditto.
        * libc/sys/arc/isatty.c: Ditto.
        * libc/sys/arc/mem-layout.c: Ditto.
        * libc/sys/arc/sbrk.c: Ditto.
        * libc/sys/arc/syscalls.c: Ditto.
        * libc/sys/arc/sys/syscall.h: Ditto.
2001-01-19 01:25:13 +00:00
Christopher Faylor d0319c3b5b * libc/include/sys/unistd.h: Use correct declaration for setdtablesize. 2001-01-18 04:24:03 +00:00
Christopher Faylor e45ab89012 * libc/include/sys/signal.h: Add some SA_* defines for Cygwin. 2001-01-12 05:36:12 +00:00
DJ Delorie 1376245a1f * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__ 2001-01-12 02:41:33 +00:00
Nick Clifton 92b5754311 Remove unsupported v850 compiler options 2001-01-09 19:30:13 +00:00
Jeff Johnston 7d6d33d409 Fri Jan 5 19:57:00 EST 2001 Aaron J. Grier <aaron@frye.com>
* src/newlib/configure.host (*-*-rtems*): add printf long long
        support for RTEMS.
2001-01-06 00:59:10 +00:00
Nick Clifton 602f8b5aba oops - fix attribution 2000-12-19 20:37:35 +00:00
Nick Clifton 6286746a16 Add missing clobber of LR 2000-12-19 20:37:18 +00:00
Jeff Johnston 9c2b818342 Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Turn on long double I/O for Cygwin.
2000-12-14 22:32:42 +00:00
Jeff Johnston 804368d392 Wed Dec 14 Jeff Johnston <jjohnstn@redhat.com>
* MAINTAINERS: Removed Ranjith.
        * NEWS: Updated for 1.9.0.
        * README: Updated.
        * acinclude.m4: Updated to release 1.9.0.
        * aclocal.m4 configure
          doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure
          libc/machine/aclocal.m4 libc/machine/configure
          libc/machine/a29k/aclocal.m4 libc/machine/a29k/configure
          libc/machine/arm/aclocal.m4 libc/machine/arm/configure
          libc/machine/d10v/aclocal.m4 libc/machine/d10v/configure
          libc/machine/d30v/aclocal.m4 libc/machine/d30v/configure
          libc/machine/fr30/aclocal.m4 libc/machine/fr30/configure
          libc/machine/h8300/aclocal.m4 libc/machine/h8300/configure
          libc/machine/h8500/aclocal.m4 libc/machine/h8500/configure
          libc/machine/hppa/aclocal.m4 libc/machine/hppa/configure
          libc/machine/i386/aclocal.m4 libc/machine/i386/configure
          libc/machine/i960/aclocal.m4 libc/machine/i960/configure
          libc/machine/m32r/aclocal.m4 libc/machine/m32r/configure
          libc/machine/m68k/aclocal.m4 libc/machine/m68k/configure
          libc/machine/m88k/aclocal.m4 libc/machine/m88k/configure
          libc/machine/mips/aclocal.m4 libc/machine/mips/configure
          libc/machine/mn10200/aclocal.m4 libc/machine/mn10200/configure
          libc/machine/mn10300/aclocal.m4 libc/machine/mn10300/configure
          libc/machine/necv70/aclocal.m4 libc/machine/necv70/configure
          libc/machine/powerpc/aclocal.m4 libc/machine/powerpc/configure
          libc/machine/sh/aclocal.m4 libc/machine/sh/configure
          libc/machine/sparc/aclocal.m4 libc/machine/sparc/configure
          libc/machine/tic80/aclocal.m4 libc/machine/tic80/configure
          libc/machine/v850/aclocal.m4 libc/machine/v850/configure
          libc/machine/w65/aclocal.m4 libc/machine/w65/configure
          libc/machine/xscale/aclocal.m4 libc/machine/xscale/configure
          libc/machine/z8k/aclocal.m4 libc/machine/z8k/configure
          libc/sys/aclocal.m4 libc/sys/configure
          libc/sys/a29khif/aclocal.m4 libc/sys/a29khif/configure
          libc/sys/arm/aclocal.m4 libc/sys/arm/configure
          libc/sys/cygwin/aclocal.m4 libc/sys/cygwin/configure
          libc/sys/d10v/aclocal.m4 libc/sys/d10v/configure
          libc/sys/decstation/aclocal.m4 libc/sys/decstation/configure
          libc/sys/go32/aclocal.m4 libc/sys/go32/configure
          libc/sys/h8300hms/aclocal.m4 libc/sys/h8300hms/configure
          libc/sys/h8500hms/aclocal.m4 libc/sys/h8500hms/configure
          libc/sys/linux/aclocal.m4 libc/sys/linux/configure
          libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
          libc/sys/netware/aclocal.m4 libc/sys/netware/configure
          libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
          libc/sys/sh/aclocal.m4 libc/sys/sh/configure
          libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
          libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
          libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
          libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
          libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
          libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
          libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
          libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
          libc/sys/w65/aclocal.m4 libc/sys/w65/configure
          libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
          libm/aclocal.m4 libm/configure: Regenerated.
2000-12-14 22:15:26 +00:00
Corinna Vinschen 0985d43f4c * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
when __CYGWIN__ is defined.
2000-12-14 01:07:23 +00:00
Jeff Johnston b6182a09dd 2000-12-13 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/ldtoa.c (_ldcheck): New routine
        that categorizes a long double as NaN, Infinity, or other.
        * libc/stdio/vfprintf.c [WANT_IO_LONG_DBL](_VFPRINTF_R): Removed
        isinfl and isnanl static routines which were i386-specific.  Changed
        calls to the two removed routines to a single _ldcheck call.
        * libc/stdio/vfieeefp.h (ldieee): Fixed missing semi-colons.
2000-12-14 00:25:06 +00:00
Jeff Johnston adbbb0348c 2000-12-13 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Fixed install-data-local target to use
        $(mkinstalldirs) for the installed header files to ensure
        the directories exist before copying.
        * Makefile.in: Regenerated.
2000-12-13 19:32:45 +00:00
Jeff Johnston cbd1933690 2000-12-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/unistd.h: Restored Cygwin _SC
        constants and moved new constants appropriately
        so Cygwin will build.
2000-12-12 23:41:23 +00:00
Jeff Johnston 8fb3796385 2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
        * libc/sys/rtems/include/signal.h: Removed.
        * libc/sys/rtems/include/time.h: Removed.
        * libc/sys/rtems/sys/features.h: Removed.
        * libc/sys/rtems/sys/sched.h: Removed.
        * libc/sys/rtems/sys/siginfo.h: Removed.
        * libc/sys/rtems/sys/signal.h: Removed.
        * libc/sys/rtems/sys/time.h: Removed.
        * libc/sys/rtems/sys/times.h: Removed.
        definitions for time_t and clock_t since these are
        no longer in time.h.
        * libc/include/pthread.h: New file.
        * libc/include/sys/sched.h: New file.
        * libc/include/sys/features.h: New file.
        * libc/include/time.h: Removed duplicate definition of clock_t
        and time_t, get them from <sys/types.h> instead.  Add prototypes        for POSIX clock and timer functionality.
        * libc/sys/linux/sys/types.h: Changed to include
        * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
        * libc/include/sys/signal.h: Add more complete set of POSIX
        signal functionality including real-time and threaded signals.
        * libc/include/sys/types.h: Add clock_t, time_t, struct
        timespec, and struct itimerspec.  Centralizing these makes
        things cleaner.  RTEMS uses 64-bit dev_t.
        Added numerous primitive definitions
        for pthreads including macros, pthread_attr_t,
        pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
        pthread_once_t, and pthread_t.
        * libc/include/sys/unistd.h: Added getlogin_r() prototype.
        If RTEMS follow POSIX on read(), write() and sbrk() prototype.
        Feature flags removed and moved to new file <sys/features.h>.
        Full set of POSIX sysconf() constants
2000-12-12 01:24:09 +00:00