Commit Graph

1288 Commits

Author SHA1 Message Date
Jeff Johnston 748c191767 2007-04-04 Patrick Mansfield <patmans@us.ibm.com>
* libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
	prototype.
	* libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
	* libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
	* libc/machine/spu/fclose.c: Ditto.
	* libc/machine/spu/feof.c: Ditto.
	* libc/machine/spu/ferror.c: Ditto.
	* libc/machine/spu/fflush.c: Ditto.
	* libc/machine/spu/fgetc.c: Ditto.
	* libc/machine/spu/fgetpos.c: Ditto.
	* libc/machine/spu/fgets.c: Ditto.
	* libc/machine/spu/fileno.c: Ditto.
	* libc/machine/spu/fopen.c: Ditto.
	* libc/machine/spu/fprintf.c: Ditto.
	* libc/machine/spu/fputc.c: Ditto.
	* libc/machine/spu/fputs.c: Ditto.
	* libc/machine/spu/fread.c: Ditto.
	* libc/machine/spu/freopen.c: Ditto.
	* libc/machine/spu/fscanf.c: Ditto.
	* libc/machine/spu/fseek.c: Ditto.
	* libc/machine/spu/fsetpos.c: Ditto.
	* libc/machine/spu/ftell.c: Ditto.
	* libc/machine/spu/fwrite.c: Ditto.
	* libc/machine/spu/getc.c: Ditto.
	* libc/machine/spu/getchar.c: Ditto.
	* libc/machine/spu/gets.c: Ditto.
	* libc/machine/spu/perror.c: Ditto.
	* libc/machine/spu/printf.c: Ditto.
	* libc/machine/spu/putc.c: Ditto.
	* libc/machine/spu/putchar.c: Ditto.
	* libc/machine/spu/puts.c: Ditto.
	* libc/machine/spu/remove.c: Ditto.
	* libc/machine/spu/rename.c: Ditto.
	* libc/machine/spu/rewind.c: Ditto.
	* libc/machine/spu/scanf.c: Ditto.
	* libc/machine/spu/setbuf.c: Ditto.
	* libc/machine/spu/setvbuf.c: Ditto.
	* libc/machine/spu/snprintf.c: Ditto.
	* libc/machine/spu/sprintf.c: Ditto.
	* libc/machine/spu/sscanf.c: Ditto.
	* libc/machine/spu/tmpfile.c: Ditto.
	* libc/machine/spu/tmpnam.c: Ditto.
	* libc/machine/spu/ungetc.c: Ditto.
	* libc/machine/spu/vfprintf.c: Ditto.
	* libc/machine/spu/vfscanf.c: Ditto.
	* libc/machine/spu/vprintf.c: Ditto.
	* libc/machine/spu/vscanf.c: Ditto.
	* libc/machine/spu/vsnprintf.c: Ditto.
	* libc/machine/spu/vsprintf.c: Ditto.
	* libc/machine/spu/vsscanf.c: Ditto.
2007-04-04 21:03:13 +00:00
Jeff Johnston a706aa2e1c 2007-04-04 Jeff Johnston <jjohnstn@redhat.com>
* libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
2007-04-04 20:49:07 +00:00
Jeff Johnston db7aa4b168 2007-04-04 Eric Blake <ebb9@byu.net>
* libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
	(asiprintf): Avoid overhead.
	* libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
	(asprintf): Avoid overhead.
	* libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
	* libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
	* libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
	(fiprintf): Avoid overhead.
	* libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
	(fprintf): Avoid overhead.
	* libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
	(iprintf): Avoid overhead.
	* libc/stdio/printf.c (_printf_r): Use _DEFUN.
	(printf): Avoid overhead.
	* libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
	* libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
	* libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
	* libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
	* libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
	* libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
	* libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
	* libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
	* libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
	vdiprintf.c.
	* libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
	(_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
2007-04-04 18:32:49 +00:00
Dave Korn 2c58b5a5e8 2007-03-30 Dave Korn <dave.korn@artimi.com>
* libc/include/stdio.h (_ELIDABLE_INLINE):  New macro to conceal
	conflicting inline semantics between C99 and GNU89.
	(__sgetc_r):  Replace static inline with _ELIDABLE_INLINE to be
	compatible with -fkeep-inline-functions usage.
	(__sputc_r):  Likewise for consistency even though disabled.
2007-03-30 00:49:56 +00:00
Nick Clifton 519aec5d59 Reflect changes made to generic vfprintf.c:
* libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r and add a "struct reent *" argument.
  (__sbprintf): Rename to __sbprintf_r, add a "struct reent *" argument and call _VFPRINTF_R instead of VFPRINTF.
  (_VFPRINTF_R): Add data pointer to call to cantwrite().  Fix uses of __sprint() and __sbprintf.
2007-03-29 06:25:44 +00:00
Jeff Johnston 443871a60b 2007-03-16 Charles Wilson <cygwin@...>
* libc/argz/argz_insert.c: "before" pointer is
        invalid after *argz realloc.  Compute offset
        between "before" and *argz, and use it after
        reallocation instead.
2007-03-16 21:16:09 +00:00
Jeff Johnston a167bcd8e5 2007-03-16 Eric Blake <ebb9@byu.net>
* libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
        * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
2007-03-16 20:05:10 +00:00
Jeff Johnston 826b5591dd 2007-03-15 Jeff Johnston <jjohnstn@redhat.com>
* configure.in: Add new --enable-newlib-reent-small option.
        * configure: Regenerated.
        * acconfig.h: Add _WANT_REENT_SMALL.
        * newlib.hin: Regenerated minus PACKAGE macros to add
        _WANT_REENT_SMALL macro.
        * libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
        if not already set.
        * libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
        there is no buffer.
        * libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
        use reentrant pointer passed in when resetting the file
        pointer to one of the std streams.
2007-03-15 21:32:13 +00:00
Jeff Johnston 14ba5e14d9 2007-03-15 Eric Blake <ebb9@byu.net>
* libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
	(__smakebuf): Rename...
	(__smakebuf_r): to this.
	* libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
	* libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
	allocation, then rename...
	(__smakebuf_r): ...to this and fix reentrancy.
	* libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
	allocation, then rename...
	(__swsetup_r): ...to this and fix reentrancy.
	* libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
	* libc/stdio/refill.c (__srefill_r): Likewise.
	* libc/stdio/fclose.c (_fclose_r): Likewise.
	* libc/stdio/fread.c (_fread_r): Likewise.
	* libc/stdio/freopen.c (_freopen_r): Likewise.
	* libc/stdio/wbuf.c (__swbuf_r): Likewise.
	* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
	* libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
	failed asprintf allocation, and fix reentrancy.
	* libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
	as required by POSIX.
	* libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
	* libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
	* libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
2007-03-15 18:40:48 +00:00
Jeff Johnston 99304ce6c4 2007-03-12 Eric Blake <ebb9@byu.net>
* libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
        * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
        allocation to caller.
        * libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
        * libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
        * libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
2007-03-12 20:30:08 +00:00
Jeff Johnston d9edc05f47 2007-02-23 Jeff Johnston <jjohnstn@redhat.com>
* libm/math/w_pow.c: Fix typo in documentation comment.
2007-02-23 18:29:31 +00:00
Jeff Johnston 59673dbb2a 2007-02-21 Patrick Mansfield <patmans@us.ibm.com>
* libc/reent/timer.c: Removed (split into two new files).
        * libc/reent/timesr.c: New file for _times_r.
        * libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
        * reent/Makefile.in: Remove timer.c, add timesr.c and
        gettimeofdayr.c.
        * libc/reent/Makefile.am: Regenerate.
2007-02-21 19:22:33 +00:00
Jeff Johnston 547c5c6104 2007-02-20 Patrick Mansfield <patmans@us.ibm.com>
* configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
2007-02-20 21:02:36 +00:00
Jeff Johnston 3b7e017ec4 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/machine/spu/Makefile.am: Add new objects.
        * libc/machine/spu/Makefile.in: Regenerated.
        * libc/machine/spu/fiprintf.c: New file. Add implementation of
        integer-only version.
        * libc/machine/spu/fiscanf.c: Ditto.
        * libc/machine/spu/iprintf.c: Ditto.
        * libc/machine/spu/iscanf.c: Ditto.
        * libc/machine/spu/siprintf.c: Ditto.
        * libc/machine/spu/siscanf.c: Ditto.
        * libc/machine/spu/sniprintf.c: Ditto.
        * libc/machine/spu/vfiprintf.c: Ditto.
        * libc/machine/spu/vfiscanf.c: Ditto.
        * libc/machine/spu/viprintf.c: Ditto.
        * libc/machine/spu/viscanf.c: Ditto.
        * libc/machine/spu/vsiprintf.c: Ditto.
        * libc/machine/spu/vsiscanf.c: Ditto.
        * libc/machine/spu/vsniprintf.c: Ditto.
        * libc/machine/spu/fprintf.c: Add support for integer-only
        version.
        * libc/machine/spu/fscanf.c: Ditto.
        * libc/machine/spu/printf.c: Ditto.
        * libc/machine/spu/scanf.c: Ditto.
        * libc/machine/spu/snprintf.c: Ditto.
        * libc/machine/spu/sprintf.c: Ditto.
        * libc/machine/spu/sscanf.c: Ditto.
        * libc/machine/spu/vfprintf.c: Ditto.
        * libc/machine/spu/vfscanf.c: Ditto.
        * libc/machine/spu/vprintf.c: Ditto.
        * libc/machine/spu/vscanf.c: Ditto.
        * libc/machine/spu/vsnprintf.c: Ditto.
        * libc/machine/spu/vsprintf.c: Ditto.
        * libc/machine/spu/vsscanf.c: Ditto.
2007-02-20 20:58:38 +00:00
Jeff Johnston 960e5d8f19 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/include/stdio.h: Add declaration for vsiprintf.
2007-02-20 20:53:35 +00:00
Jeff Johnston 958e329d59 2007-02-14 Patrick Mansfield <patmans@us.ibm.com>
Add a floating point environment for SPU (cell):

        * configure.host: add libm_machine_dir=spu.
        * libm/machine/configure: Add spu.
        * libm/machine/configure.in: regenerated with spu added.
        * libc/machine/spu/include/fenv.h: New file.
        * libc/machine/spu/sys/fenv.h: Ditto.
        * libm/machine/spu/Makefile.am: Ditto.
        * libm/machine/spu/Makefile.in: Ditto.
        * libm/machine/spu/aclocal.m4: Ditto.
        * libm/machine/spu/configure: Ditto.
        * libm/machine/spu/configure.in: Ditto.
        * libm/machine/spu/fe_dfl_env.c: Ditto.
        * libm/machine/spu/feclearexcept.c: Ditto.
        * libm/machine/spu/fegetenv.c: Ditto.
        * libm/machine/spu/fegetexceptflag.c: Ditto.
        * libm/machine/spu/fegetround.c: Ditto.
        * libm/machine/spu/feholdexcept.c: Ditto.
        * libm/machine/spu/feraiseexcept.c: Ditto.
        * libm/machine/spu/fesetenv.c: Ditto.
        * libm/machine/spu/fesetexceptflag.c: Ditto.
        * libm/machine/spu/fesetround.c: Ditto.
        * libm/machine/spu/fetestexcept.c: Ditto.
        * libm/machine/spu/feupdateenv.c: Ditto.
        * libm/machine/spu/headers/feclearexcept.h: Ditto.
        * libm/machine/spu/headers/fefpscr.h: Ditto.
        * libm/machine/spu/headers/fegetenv.h: Ditto.
        * libm/machine/spu/headers/fegetexceptflag.h: Ditto.
        * libm/machine/spu/headers/fegetround.h: Ditto.
        * libm/machine/spu/headers/feholdexcept.h: Ditto.
        * libm/machine/spu/headers/feraiseexcept.h: Ditto.
        * libm/machine/spu/headers/fesetenv.h: Ditto.
        * libm/machine/spu/headers/fesetexceptflag.h: Ditto.
        * libm/machine/spu/headers/fesetround.h: Ditto.
        * libm/machine/spu/headers/fetestexcept.h: Ditto.
        * libm/machine/spu/headers/feupdateenv.h: Ditto.
2007-02-14 23:18:25 +00:00
Corinna Vinschen 4f7e59f268 * libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
Cygwin.
2007-02-14 10:07:02 +00:00
Corinna Vinschen d7e4c7a807 * libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
Cygwin.  Fix value of _POSIX_SEMAPHORES.  Fix formatting.
2007-02-08 13:34:20 +00:00
Corinna Vinschen 0e37a2e6e5 * libc/include/sys/features.h: Add definition of all supported
_POSIX_xxx values for Cygwin.
	* libc/include/sys/types.h (pthread_rwlock_t): Omit definition
	on Cygwin.
	(pthread_rwlockattr_t): Ditto.
	* libc/include/sys/unistd.h: Define all _SC_xxx values as
	required by SUSv3.  Unify formatting.
2007-02-07 17:19:35 +00:00
Jeff Johnston 6699fabb91 2007-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/include/sys/errno.h: Add ECANCELED.
2007-02-02 16:22:28 +00:00
Jeff Johnston 22a339e8f2 2007-02-01 Joel Schopp <jschopp@austin.ibm.com>
Kazunori Asayama <asayama@sm.sony.co.jp>

        * libc/machine/spu/Makefile.am: Add objects.
        * libc/machine/spu/Makefile.in: Regenerated.
        * libc/machine/spu/vsscanf.c: New file. Add a stdio function
        implementation.
        * libc/machine/spu/snprintf.c: Ditto.
        * libc/machine/spu/sprintf.c: Ditto.
        * libc/machine/spu/sscanf.c: Ditto.
        * libc/machine/spu/remove.c: Ditto.
        * libc/machine/spu/rename.c: Ditto.
        * libc/machine/spu/tmpnam.c: Ditto.
        * libc/machine/spu/vsnprintf.c: Add initialization routine of
        stdio stuffs.
        * libc/machine/spu/vsprintf.c: Ditto.
2007-02-01 16:43:45 +00:00
Jeff Johnston 7d592bb178 2007-02-01 Joel Schopp <jschopp@austin.ibm.com>
Kazunori Asayama <asayama@sm.sony.co.jp>

        * configure.host: Enable SPU specific stdio directory.
        * libc/machine/spu/Makefile.am: Add objects.
        * libc/machine/spu/Makefile.in: Regenerated.
        * libc/machine/spu/c99ppe.h: Add macros and function
        declarations to initialize SPU specific stdio stuffs.
        * libc/machine/spu/stdio.c: Add functions to manage Cell SPU
        specific FILE structures.
        * libc/machine/spu/perror.c: Add initialization routine of
        stdio stuffs.
        * libc/machine/spu/printf.c: Ditto.
        * libc/machine/spu/putchar.c: Ditto.
        * libc/machine/spu/puts.c: Ditto.
        * libc/machine/spu/vprintf.c: Ditto.
        * libc/machine/spu/clearerr.c: New file. Add a stdio function
        implementation.
        * libc/machine/spu/feof.c: Ditto.
        * libc/machine/spu/ferror.c: Ditto.
        * libc/machine/spu/fileno.c: Ditto.
        * libc/machine/spu/fopen.c: Ditto.
        * libc/machine/spu/fclose.c: Ditto.
        * libc/machine/spu/freopen.c: Ditto.
        * libc/machine/spu/fflush.c: Ditto.
        * libc/machine/spu/fseek.c: Ditto.
        * libc/machine/spu/ftell.c: Ditto.
        * libc/machine/spu/rewind.c: Ditto.
        * libc/machine/spu/fgetpos.c: Ditto.
        * libc/machine/spu/fsetpos.c: Ditto.
        * libc/machine/spu/fread.c: Ditto.
        * libc/machine/spu/fwrite.c: Ditto.
        * libc/machine/spu/getc.c: Ditto.
        * libc/machine/spu/getchar.c: Ditto.
        * libc/machine/spu/gets.c: Ditto.
        * libc/machine/spu/fgetc.c: Ditto.
        * libc/machine/spu/fgets.c: Ditto.
        * libc/machine/spu/ungetc.c: Ditto.
        * libc/machine/spu/putc.c: Ditto.
        * libc/machine/spu/fputc.c: Ditto.
        * libc/machine/spu/fputs.c: Ditto.
        * libc/machine/spu/vfprintf.c: Ditto.
        * libc/machine/spu/vfscanf.c: Ditto.
        * libc/machine/spu/fprintf.c: Ditto.
        * libc/machine/spu/fscanf.c: Ditto.
        * libc/machine/spu/scanf.c: Ditto.
        * libc/machine/spu/vscanf.c: Ditto.
        * libc/machine/spu/setbuf.c: Ditto.
        * libc/machine/spu/setvbuf.c: Ditto.
        * libc/machine/spu/tmpfile.c: Ditto.

2007-02-01  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
        * libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
        around stdio macros that manipulate fields in the normal file
        structure.
        * libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
        <sys/custom_file.h> to define custom FILE structure.
        * libc/include/sys/custom_file.h: New default header file
        that generates error if not overridden when __CUSTOM_FILE_IO__ set.
        * libc/machine/spu/sys/custom_file.h: New file.
2007-02-01 16:33:05 +00:00
Jeff Johnston 0733ae3bca 2007-01-31 Kazunori Asayama <asayama@sm.sony.co.jp>
* configure.host: Define stdio directory as a variable.
	* libc/Makefile.am: Define stdio related names
	as macros.
	* libc/configure.in: Add detection routine of stdio directory.
	* libc/Makefile.in: Regenerated.
	* libc/configure: Ditto.
	* libc/argz/Makefile.in: Ditto.
	* libc/ctype/Makefile.in: Ditto.
	* libc/errno/Makefile.in: Ditto.
	* libc/iconv/Makefile.in: Ditto.
	* libc/iconv/ccs/Makefile.in: Ditto.
	* libc/iconv/ccs/binary/Makefile.in: Ditto.
	* libc/iconv/ces/Makefile.in: Ditto.
	* libc/iconv/lib/Makefile.in: Ditto.
	* libc/locale/Makefile.in: Ditto.
	* libc/misc/Makefile.in: Ditto.
	* libc/posix/Makefile.in: Ditto.
	* libc/reent/Makefile.in: Ditto.
	* libc/search/Makefile.in: Ditto.
	* libc/signal/Makefile.in: Ditto.
	* libc/stdio/Makefile.in: Ditto.
	* libc/stdio64/Makefile.in: Ditto.
	* libc/stdlib/Makefile.in: Ditto.
	* libc/string/Makefile.in: Ditto.
	* libc/syscalls/Makefile.in: Ditto.
	* libc/time/Makefile.in: Ditto.
	* libc/unix/Makefile.in: Ditto.
2007-01-31 19:34:38 +00:00
Ben Elliston c7cd784974 * libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
fmt member.
	* libc/machine/spu/printf.c (c99_printf_t): Likewise.
	(printf): Pass fmt to va_start to suppress a warning.
2007-01-30 03:18:52 +00:00
Ben Elliston cb7ba0e119 * libc/search/hash.c (init_hash): Make `info' parameter const. 2007-01-30 03:13:29 +00:00
Jeff Johnston f89533c1ff 2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/machine/spu/c99ppe.h: Replace vector with __vector.
        * libc/machine/spu/vec_literal.h: Ditto.
        * libc/machine/spu/strncmp.c: Ditto.
2007-01-19 23:53:07 +00:00
Jeff Johnston 94b91791ea 2007-01-15 Joseph Myers <joseph@codesourcery.com>
Kazu Hirata  <kazu@codesourcery.com>

        * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
        for E500V1 and E500V2.
2007-01-15 16:41:08 +00:00
Jeff Johnston 26190be144 2007-01-11 Jeff Johnston <jjohnstn@redhat.com>
* libm/configure.in: Always configure machine directory.
        * libm/Makefile.am: Make machine subdirectory part of SUBDIRS
        unconditionally.
        * libm/configure: Regenerated.
        * libm/Makefile.in: Ditto.
        * libm/*/Makefile.in: Ditto.
2007-01-11 20:57:52 +00:00
Jeff Johnston 8e0e8f40fb 2007-01-05 Brian Ford <Brian.Ford@FlightSafety.com>
* configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
2007-01-08 19:01:23 +00:00
Jeff Johnston 9cd4a2de61 2007-01-02 Ben Elliston <bje@au.ibm.com>
* doc/makedoc.c: Include <stdlib.h>.
        (malloc, realloc): Remove extern declarations.
2007-01-02 16:59:59 +00:00
Jeff Johnston a4b117829f 2005-12-18 Jeff Johnston <jjohnstn@redhat.com>
* NEWS: Update with 1.15.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 1.15.0.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
        * libm/libm.texinfo: Ditto.
        * libc/sys/linux/shared.ld: Add VERS_1.15.
2006-12-18 22:21:56 +00:00
Jeff Johnston def943c11c 2006-12-18 Kazu Hirata <kazu@codesourcery.com>
Merge from newlib-csl-20060320-branch:
        2006-12-01  Nathan Sidwell  <nathan@codesourcery.com>
                    Kazu Hirata  <kazu@codesourcery.com>

        * configure.host: Recognize fido.
2006-12-18 21:49:14 +00:00
Jeff Johnston 505ccc75c4 2006-12-18 Joel Schopp <jschopp@austin.ibm.com>
* libc/machine/spu/c99ppe.h: New file
        * libc/machine/spu/perror.c: New file to override libc/stdio version.
        * libc/machine/spu/printf.c: New file
        * libc/machine/spu/putchar.c: New file
        * libc/machine/spu/puts.c: New file
        * libc/machine/spu/vprintf.c: New file
        * libc/machine/spu/vsnprintf.c: New file
        * libc/machine/spu/vsprintf.c: New file
        * libc/machine/spu/Makefile.am: Add new targets.
        * libc/machine/spu/Makefile.in: Regenerated.
2006-12-18 20:39:02 +00:00
Jeff Johnston 78b7c6f817 2006-12-18 Jeff Johnston <jjohnstn@redhat.com>
* aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
        * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
2006-12-18 20:32:52 +00:00
Jeff Johnston db029fca63 Remove entry for next patch that hasn't happened yet. 2006-12-18 20:24:48 +00:00
Jeff Johnston f522256075 2006-12-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
        2.6.5 version of Doug Lea's malloc which is the basis of
        this code.
2006-12-18 20:21:48 +00:00
Jeff Johnston 9b354d7f3b 2006-12-18 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/include/machine/setjmp.h: Replace vector with __vector.
2006-12-18 16:48:03 +00:00
Jeff Johnston 4c0b8a072b 2006-12-14 Jeff Johnston <jjohnstn@redhat.com>
Eric Blake  <ebb9@byu.net>

        * libc/stdio/fflush.c (fflush): On seekable streams, always flush
        read but unused data.
        * libc/stdio/fclose.c (_fclose_r): Always flush streams, since
        even read streams may have side effects that must happen.
2006-12-14 22:47:12 +00:00
Jeff Johnston 6a20095878 2006-12-13 Joel Schopp <jschopp@austin.ibm.com>
* libc/machine/spu/setjmp.S: Fix to handle registers past 115
        correctly.
2006-12-13 23:06:02 +00:00
Jeff Johnston dd52bb72fb 2006-12-13 Joel Schopp <jschopp@austin.ibm.com>
* newlib/include/alloca.h: add undef alloca to work with xlc
2006-12-13 23:01:21 +00:00
Jeff Johnston 4e051d914a 2006-12-12 Joel Schopp <jschopp@austin.ibm.com>
* libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
        cell spu
2006-12-13 19:36:17 +00:00
Jeff Johnston 489bb390ce 2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/machine/spu/strncpy.c: Add padding.
2006-12-04 17:29:10 +00:00
Jeff Johnston 3e2d7a911f 2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
* testsuite/newlib.string/tstring.c:
2006-12-04 17:25:13 +00:00
Jeff Johnston 0a2ef99804 2006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/machine/spu/strchr.c: Fix mask for misaligned string.
        * libc/machine/spu/strrchr.c: Ditto.
2006-12-01 17:18:36 +00:00
Jeff Johnston 75190a8fa2 2006-11-30 Lev Bishop <lev.bishop@gmail.com>
* libc/include/math.h: Allow C99 functions/macros to be
        defined for C++ even when __STRICT_ANSI__.
2006-11-30 23:40:12 +00:00
Jeff Johnston 7d79436443 2006-11-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/makebuf.c (__smakebuf): If dealing with
        an asprintf-family buffer, make the default initial size 64.
2006-11-30 00:35:57 +00:00
Jeff Johnston c4c7f13966 2006-11-29 Eric Blake <ebb9@byu.net>
* libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
        asprintf, as well as quadratic realloc behavior.
2006-11-29 21:36:54 +00:00
Jeff Johnston 80c6ead242 2006-11-29 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/machine/spu/memset.c: Fix type of explicit cast.
        * libc/machine/spu/strncmp.c: Add explicit cast.
        * libc/machine/spu/strrchr.c: Ditto.
        * libc/machine/spu/strspn.c: Ditto.
2006-11-29 19:54:05 +00:00
Jeff Johnston 9bc5b6181b 2006-11-22 Luca Barbato <lu_zero@gentoo.org>
* libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
        * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
        * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
        * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
        * libc/machine/spu/strncat.c: Explicit cast.
        * libc/machine/spu/strncmp.c: Use spu_splats.
        * libc/machine/spu/strncpy.c: Explicit cast.
        * libc/machine/spu/strrchr.c: Use spu_splats.
        * libc/machine/spu/strspn.c: Use spu_splats.
2006-11-22 21:19:56 +00:00
Jeff Johnston 52077eb28c 2006-11-15 Till Straumann <strauman@slac.stanford.edu>
* libc/time/tzset_r.c (_tzset_r): Initialize local variable.
2006-11-15 20:10:25 +00:00
Jeff Johnston d1a2fe1a62 2006-11-14 Eric Blake <ebb9@byu.net>
* libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
        (chclass): ' is a flag.  j, t, and z are modifiers.
2006-11-14 21:29:26 +00:00
Jeff Johnston 9842c7e4e8 Change Jie Zhang's e-mail address to work e-mail. 2006-11-09 16:24:06 +00:00
Jeff Johnston 292f8e2328 2006-11-08 Jie Zhang <jzhang918@gmail.com>
* configure.host: Add support for bfin.
        * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
        * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
        * libc/machine/bfin/aclocal.m4: Generate.
        * libc/machine/bfin/configure.in: New.
        * libc/machine/bfin/configure: Generate.
        * libc/machine/bfin/Makefile.am: New.
        * libc/machine/bfin/Makefile.in: Generate.
        * libc/machine/bfin/setjmp.S: New.
        * libc/machine/bfin/longjmp.S: New.
        * libc/machine/configure.in: Add bfin support.
        * libc/machine/configure: Generate.
2006-11-08 19:26:43 +00:00
Corinna Vinschen b1755fe736 * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
(_PC_FILESIZEBITS): Add definition.
	(_PC_2_SYMLINKS): Ditto.
	(_PC_SYMLINK_MAX): Ditto.
2006-11-07 15:33:40 +00:00
Jeff Johnston d384d86834 2006-10-27 Joel Schopp <jschopp@austin.ibm.com>
* libc/machine/spu/memcpy.c: Override generic function with vectorized
        version optimized for the cell spu.
        * libc/machine/spu/memmove.c: Ditto.
        * libc/machine/spu/memset.c: Ditto.
        * libc/machine/spu/strcat.c: Ditto.
        * libc/machine/spu/strchr.c: Ditto.
        * libc/machine/spu/strcmp.c: Ditto.
        * libc/machine/spu/strcpy.c: Ditto.
        * libc/machine/spu/strcspn.c: Ditto.
        * libc/machine/spu/strlen.c: Ditto.
        * libc/machine/spu/strncat.c: Ditto.
        * libc/machine/spu/strncmp.c: Ditto.
        * libc/machine/spu/strncpy.c: Ditto.
        * libc/machine/spu/strpbrk.c: Ditto.
        * libc/machine/spu/strrchr.c: Ditto.
        * libc/machine/spu/strspn.c: Ditto.
        * libc/machine/spu/strxfrm.c: Ditto.
        * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
        removing altivec style initializers.
        * libc/machine/spu/Makefile.am: Add new files to list so they build
        * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
2006-10-27 23:02:00 +00:00
Jeff Johnston f29fdb2f9d 2006-10-27 Jeff Johnston <jjohnstn@redhat.com>
* README: Add a brief section on how to regenerate
        configuration files in newlib.
2006-10-27 19:22:57 +00:00
Jeff Johnston 884dc68fe0 2006-10-25 Vladimir Prus <vladimir@codesourcery.com>
* libc/include/math.h: (exception): Add a comment
        telling fixincludes that we handle C vs. C++ issue.
2006-10-25 18:46:40 +00:00
Corinna Vinschen 6d44157687 * Fix ChangeLog entry to mention full path of changed file. 2006-10-19 08:36:02 +00:00
Jeff Johnston f8fe93f9b8 2006-10-11 Yang Tse <yangsita@gmail.com>
* setjmp.h: Use __extension__ keyword for gcc's braced-groups.
2006-10-11 19:20:31 +00:00
Corinna Vinschen d95c57921f * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT. 2006-10-11 08:04:50 +00:00
Jeff Johnston e5e148d15b 2006-09-26 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
        for clearerr, feof, or fileno.
        * libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
        the dummy std stream scheme to use pointers to const external
        fake files, one for each standard stream.
        * libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
        argument.  For _REENT_SMALL, reset the file pointer if it
        matches one of the fake std stream pointers.
        * libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
        argument.
        * libc/stdio/fclose.c: Ditto.
        * libc/stdio/feof.c: Ditto.
        * libc/stdio/ferror.c: Ditto.
        * libc/stdio/fflush.c: Ditto.
        * libc/stdio/fgetc.c: Ditto.
        * libc/stdio/fgets.c: Ditto.
        * libc/stdio/fileno.c: Ditto.
        * libc/stdio/findfp.c: Ditto.
        * libc/stdio/fputc.c: Ditto.
        * libc/stdio/fputs.c: Ditto.
        * libc/stdio/fread.c: Ditto.
        * libc/stdio/freopen.c: Ditto.
        * libc/stdio/fseek.c: Ditto.
        * libc/stdio/ftell.c: Ditto.
        * libc/stdio/fwrite.c: Ditto.
        * libc/stdio/getc.c: Ditto.
        * libc/stdio/getdelim.c: Ditto.
        * libc/stdio/putc.c: Ditto.
        * libc/stdio/refill.c: Ditto.
        * libc/stdio/setvbuf.c: Ditto.
        * libc/stdio/ungetc.c: Ditto.
        * libc/stdio/vfprintf.c: Ditto.
        * libc/stdio/vfscanf.c: Ditto.
        * libc/stdio/wbuf.c: Ditto.: Ditto.
        * libc/stdio/wsetup.c: Ditto.
        * libc/stdio64/freopen64.c: Ditto.
        * libc/stdio64/fseeko64.c: Ditto.
        * libc/stdio64/ftello64.c: Ditto.
        * libc/machine/powerpc/vfprintf.c: Ditto.
        * libc/machine/powerpc/vfscanf.c: Ditto.
2006-09-26 21:22:19 +00:00
Jeff Johnston e83c3d0ae5 2006-09-22 Paul Brook <paul@codesourcery.com>
* libc/include/sys/reent.h: Define and use __reent_assert.
2006-09-22 19:33:11 +00:00
Jeff Johnston 23754b33c3 2006-09-13 Joel Sherrill <joel@oarcorp.com>
* libc/include/pthread.h: Add pthread barriers,
        rwlocks, and spinlocks.  Change const to
        _CONST and prefix parameter names with
        an underscore.
        * libc/include/sys/types.h: Add id and attribute
        types for barriers, wrlocks, and spinlocks.
        * libc/include/sys/features.h: Enable barriers,
        wrlocks, and spinlocks for RTEMS.
2006-09-13 22:09:27 +00:00
Jeff Johnston ba1bb1b368 2006-09-13 Patrick Mansfield <patmans@us.ibm.com>
* libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
        supposed to be writable.
        * libm/common/s_lib_ver.c: Ditto.
2006-09-13 22:06:43 +00:00
Jeff Johnston 8f9f25dad8 2006-09-12 Paul Brook <paul@codesourcery.com>
* libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
2006-09-12 17:31:40 +00:00
Jeff Johnston 0324070e35 2006-09-07 Masaki Muranaka <monaka@monami-software.com>
* libc/machine/xstormy16/Makefile.am:
        Add $(lpfx) prefix to LIBADD objects.
        lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
        * libc/machine/xstormy16/Makefile.in: Regenerated.
2006-09-07 17:32:19 +00:00
Jeff Johnston d39002f9ca 2006-09-06 Eric Blake <ebb9@byu.net>
* libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
        't', and 'z' modifiers.
2006-09-06 20:03:27 +00:00
Kazu Hirata c023e783e9 libgloss/
Merge from newlib-csl-20060320-branch:
	2006-08-31  Nathan Sidwell  <nathan@codesourcery.com>

	* m68k/bdm-crt1.c: Call hardware_init_hook before copying
	initialized data.

	* m68k/Makefile.in (CF_BDM_SCRIPTS): Rename to CF_RAM_SCRIPTS.
	(CF_SCRIPTS): Update.
	(%-bdm.ld): Rename to %-ram.ld.

	2006-08-25  Nathan Sidwell  <nathan@codesourcery.com>

	* m68k/Makefile.in (DBUG_BSP, DBUG_OBJS): Remove.
	(BDM_CRT0): New.
	(BDM_OBJS): Add bdm-crt1.o.
	(BDM_OTHER_OBJS): Remove print.o putnum.o
	(CF_BOARDS): New.
	(CF_BDM_SCRIPTS): Generated name of ram scripts.
	(CF_ROM_SCRIPTS): Generated name of rom scripts.
	(CF_SCRIPTS): Adjust.
	(all): Add BDM_CRT0.
	(bdm-crt0.o, bdm-crt1.o): New targets.
	(bdm-isv.o): Remove.
	(m5208evb, m5213evb, m52235evb, m5235evb, m5273c3, m5282evb,
	m5329evb, m5485evb): New.
	(%-bdm.ld, %-rom.ld): New. Replace individual linker script rules.
	(install): Remove DBUG installs.
	* m68k/bdm-crt0.S: New.
	* m68k/bdm-crt1.c: New.
	* m68k/bdm-exit.c: Call __reset.
	* m68k/bdm-isv.c: Remove.
	* m68k/cf.sc: Adjust to produce either rom or ram images.
	* m68k/dbug-exit.S, m68k/dbug-inbyte.S, m68k/dbug-outbyte.S: Remove.

	2006-07-24  Nathan Sidwell  <nathan@codesourcery.com>

	Bug 844
	* m68k/cf.sc: Set entry point to _start.
	* m68k/crt0.X (_start): New name for entrypoint
	(start): Weak alias for start.

	2006-06-09  Nathan Sidwell  <nathan@codesourcery.com>

	* m68k/bdm-system.c (_system): Support system(NULL).

	2006-06-08  Nathan Sidwell  <nathan@codesourcery.com>

	* m68k/bdm-system.c (_system): Properly encode non failure exit
	code.

	2006-06-05  Nathan Sidwell  <nathan@codesourcery.com>

	* m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-inbyte.o.
	Add bdm-time.o.
	* m68k/bdm-close.c: Add copyright notice.
	* m68k/bdm-fstat.c: Add copyright notice.
	* m68k/bdm-gettimeofday.c: Add copyright notice.
	* m68k/bdm-inbyte.c: Remove.
	* m68k/bdm-isatty.c: Add copyright notice.
	* m68k/bdm-lseek.c: Add copyright notice. Fix &/| thinko.
	* m68k/bdm-open.c: Add copyright notice.
	* m68k/bdm-read.c: Add copyright notice.
	* m68k/bdm-rename.c: Add copyright notice.
	* m68k/bdm-stat.c: Add copyright notice.
	* m68k/bdm-system.c: Add copyright notice.
	* m68k/bdm-time.c: New.
	* m68k/bdm-unlink.c: Add copyright notice.
	* m68k/bdm-write.c: Add copyright notice.

	2006-05-25  Nathan Sidwell  <nathan@codesourcery.com>

	* m68k/Makefile.in (m52235-dbug.ld, m52235-bdm.ld): New
	scripts.

	2006-05-24  Nathan Sidwell  <nathan@codesourcery.com>

	* m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-outbyte.o.
	* m68k/bdm-outbyte.c: Delete.
	* m68k/bdm-semihost.h (BDM_OUTBYTE): Mark as obsolete.

	2006-05-22  Sandra Loosemore <sandra@codesourcery.com>

	* m68k/bdm-semihost.h: Add new constants for additional
	semihosting functions.  Add new BDM_TRAP macro to encapsulate
	inline asm.
	* m68k/bdm-exit.c (_exit): Use new BDM_TRAP macro.
	* m68k/bdm-outbyte.c (outbyte): Ditto.
	* m68k/bdm-isrs.c, m68k/bdm-isv.c: Former BDM_TRAP
	now called BDM_TRAPNUM.
	* m68k/bdm-gdb.h, m68k/bdm-gdb.c: New files
	containing declarations and conversion functions for GDB's fileio
	protocol.
	* m68k/bdm-close.c: New file to define corresponding function.
	* m68k/bdm-fstat.c: Ditto.
	* m68k/bdm-gettimeofday.c: Ditto.
	* m68k/bdm-isatty.c: Ditto.
	* m68k/bdm-lseek.c: Ditto.
	* m68k/bdm-open.c: Ditto.
	* m68k/bdm-read.c: Ditto.
	* m68k/bdm-rename.c: Ditto.
	* m68k/bdm-stat.c: Ditto.
	* m68k/bdm-system.c: Ditto.
	* m68k/bdm-unlink.c: Ditto.
	* m68k/bdm-write.c Ditto.
	* m68k/Makefile.in: Add dependencies for new files.

	2006-03-29  Nathan Sidwell  <nathan@codesourcery.com>

	* m68k/bdm-isv.c (software_init_hook): Fix trap numbering.

	* m68k/Makefile.in (CF_SCRIPTS): Add m5329 board.
	Reorder.
	(*-dbug.ld, *-bdm.ld): Add appropriate IO definition.
	(m5329evb-dbug.ld, m5329evb-bdm.ld): New.
	* cf.sc (GROUP): Revert previous change.  Add IO library.

	* m68k/Makefile.in (BDM_BSP, BDM_OBJS, BDM_ISRS): New.
	(CF_SCRIPTS): Rename dbug scripts.  Add bdm scripts. Add m5485
	scripts.
	(all): Add new targets.
	(BDM_BSP): New target.
	(bdm-isv.o, bdm-exit.o, bdm-outbyte.o, bdm-semihost.o): New
	targets.
	(BDM_ISRS): New targets.
	(m5208evb.ld, m5213evb.ld, m5235evb.ld, m5272c3.ld, m5282evb.ld):
	Rename and adjust.
	(m5485evb-dbug): New.
	(m5208evb-bdm.ld, m5213evb-bdm.ld, m5235evb-bdm.ld,
	m5272c3-bdm.ld, m5282evb-bdm.ld, m5485evb-bdm.ld): New.
	(install): Add BDM_BSP.
	* m68k/bdm-exit.c: New
	* m68k/bdm-inbyte.c: New
	* m68k/bdm-outbyte.c: New
	* m68k/bdm-semihost.c: New
	* m68k/bdm-semihost.h: New
	* m68k/bdm-isrs.c: New.
	* m68k/bdm-isv.c: New.
	* dbug-cf.sc: Renamed to ...
	* cf.sc: ... here.  Add bdm flexibility. Remove GROUP

	2006-05-22  Sandra Loosemore <sandra@codesourcery.com>

	* m68k/bdm-semihost.h: Add new constants for additional
	semihosting functions.  Add new BDM_TRAP macro to encapsulate
	inline asm.
	* m68k/bdm-exit.c (_exit): Use new BDM_TRAP macro.
	* m68k/bdm-outbyte.c (outbyte): Ditto.
	* m68k/bdm-isrs.c, m68k/bdm-isv.c: Former BDM_TRAP
	now called BDM_TRAPNUM.
	* m68k/bdm-gdb.h, m68k/bdm-gdb.c: New files
	containing declarations and conversion functions for GDB's fileio
	protocol.
	* m68k/bdm-close.c: New file to define corresponding function.
	* m68k/bdm-fstat.c: Ditto.
	* m68k/bdm-gettimeofday.c: Ditto.
	* m68k/bdm-isatty.c: Ditto.
	* m68k/bdm-lseek.c: Ditto.
	* m68k/bdm-open.c: Ditto.
	* m68k/bdm-read.c: Ditto.
	* m68k/bdm-rename.c: Ditto.
	* m68k/bdm-stat.c: Ditto.
	* m68k/bdm-system.c: Ditto.
	* m68k/bdm-unlink.c: Ditto.
	* m68k/bdm-write.c Ditto.
	* m68k/Makefile.in: Add dependencies for new files.

newlib/
	Merge from newlib-csl-20060320-branch:
	2006-05-22  Sandra Loosemore <sandra@codesourcery.com>

	* configure.host: Tell it we have _rename and _system when
	building m68k-unknown-elf.
2006-09-01 05:41:06 +00:00
Nick Clifton 9e8b8cdb9f Remove references to %redact files 2006-08-30 08:40:26 +00:00
Jeff Johnston 859742654a 2006-08-29 Paul Brook <paul@codesourcery.com>
* libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
2006-08-29 21:00:59 +00:00
Jeff Johnston c1f828e56e 2006-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>
* libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
        BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
        This is needed to build all AVR and H8300 RTEMS multilib variants.
2006-08-28 17:17:24 +00:00
Jeff Johnston b8e05321ba 2006-08-23 Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/machine/configure.in: Add configuration for SPU.
        * libc/machine/configure: Regenerated.
        * libc/machine/spu/memcpy.c: Include string.h.
2006-08-23 16:07:36 +00:00
Jeff Johnston 380d8ec45d 2006-08-22 Eric Blake <ebb9@byu.net>
* libc/posix/popen.c (popen): Don't close output end of pipe in
        child if stdout was closed on entry.
        [HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
2006-08-22 20:30:37 +00:00
Christopher Faylor a0922fcb04 * sys/types.h: Correct syntax error caused by missing '\' on #ifdef line. 2006-08-19 16:13:23 +00:00
Jeff Johnston 84a7940382 2006-08-17 Brian Ford <Brian.Ford@FlightSafety.com>
* libc/time/gmtime.c: Correct man page; clock is not a
        local time and no conversion occurs.
2006-08-17 15:53:15 +00:00
Jeff Johnston 0d8de89c9b 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>
* configure.host (newlib_cflags) [spu]: Add special compiler
        options to reduce size.
2006-08-16 21:51:13 +00:00
Jeff Johnston 734e841435 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>
* configure.host: Add spu support.
        * libc/include/stdint.h: Ditto.
        * libc/include/machine/ieeefp.h: Ditto.
        * libc/include/machine/setjmp.h: Ditto.
        * libc/include/sys/config.h: Ditto.
        * libc/include/sys/types.h: Ditto.
        * libc/machine/spu/Makefile.am: New file.
        * libc/machine/spu/Makefile.in: Ditto.
        * libc/machine/spu/aclocal.m4: Ditto.
        * libc/machine/spu/configure: Ditto.
        * libc/machine/spu/configure.in: Ditto.
        * libc/machine/spu/memcpy.c: Ditto.
        * libc/machine/spu/setjmp.S: Ditto.
2006-08-16 21:39:43 +00:00
Jeff Johnston 079b45dc00 2006-08-03 J"orn Rennecke <joern.rennecke@st.com>
* dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
        properly.
2006-08-03 16:56:05 +00:00
Jeff Johnston 2ebf115df9 2006-08-01 Jeff Johnston <jjohnstn@redhat.com>
* libc/Makefile.am: Add libc_TEXINFOS dependency on
        generated .texi files.
        * libm/Makefile.am: Add libm_TEXINFOS dependency on
        generated .texi files.
        * libc/Makefile.in: Regenerated.
        * libm/Makefile.in: Ditto.
2006-08-01 20:20:25 +00:00
Jeff Johnston a121349405 2006-08-01 Thiemo Seufer <ths@mips.com>
Nigel Stephens  <nigel@mips.com>

	* libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
	define this to force _impure_ptr to live in the .sdata section.
2006-08-01 15:54:04 +00:00
Jeff Johnston 0a85d87f03 2006-07-31 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Check for readelf tool.
        * configure.in: Use ${READELF} instead of hard-coding.
        * Regenerate all aclocal.m4, Makefile.in, and configure files.
2006-07-31 23:01:28 +00:00
Jeff Johnston cc023a7557 2006-07-31 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/mmap.c: Remove include of sys/mman.h
        to avoid conflict with newer glibc's revision of mremap.
2006-07-31 22:21:24 +00:00
Jeff Johnston b0b9243869 2006-07-05 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
        floating-point format support.  Also redefine
        dword0 and dword1 macros.
        * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
        to prevent setting dword1 which is an rvalue only.
2006-07-05 16:18:30 +00:00
Jeff Johnston f489b5943c 2006-06-22 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/Makefile.am: Add new gdtoa routines.
        * libc/stdlib/Makefile.in: Regenerated.
        * libc/stdlib/gd_qnan.h: New file.
        * libc/stdlib/gdtoa-gethex.c: Ditto.
        * libc/stdlib/gdtoa-hexnan.c: Ditto.
        * libc/stdlib/gdtoa.h: Ditto.
        * libc/stdlib/mprec.c: Add new helper routines needed by
        the new gdtoa code.
        * libc/stdlib/mprec.h: Integrate some defines and prototypes
        used by gdtoa routines here.
        * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
        which adds C99 support such as nan, inf, and hexadecimal input
        format.
2006-06-22 17:59:52 +00:00
Jeff Johnston c8956c6fec 2006-06-15 Corinna Vinschen <corinna@vinschen.de>
* libc/include/stdio.h (__sgetc_r): Fix typo.
        * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
        * libc/stdio/rget.c (__srbuf): Reinstantiate.
        * libc/stdio/wbuf.c (__swbuf): Ditto.
2006-06-15 16:08:09 +00:00
Jeff Johnston 4dc0c0c4e5 2006-06-14 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h: Add new reentrant I/O prototypes for
        read/write functions.  Change getc/putc macros to have reentrant underlying
        macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
        * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
        new reentrant I/O functions/macros for reading/writing.
        * libc/stdio/fgets.c: Ditto.
        * libc/stdio/fputc.c: Ditto.
        * libc/stdio/fputs.c: Ditto.
        * libc/stdio/fread.c: Ditto.
        * libc/stdio/fseek.c: Ditto.
        * libc/stdio64/fseeko64.c: Ditto.
        * libc/stdio/fwrite.c: Ditto.
        * libc/stdio/getc.c: Ditto.
        * libc/stdio/getc_u.c: Ditto.
        * libc/stdio/getchar.c: Ditto.
        * libc/stdio/getchar_u.c: Ditto.
        * libc/stdio/putc.c: Ditto.
        * libc/stdio/putc_u.c: Ditto.
        * libc/stdio/putchar.c: Ditto.
        * libc/stdio/puts.c: Ditto.
        * libc/stdio/vfprintf.c: Ditto.
        * libc/stdio/vfscanf.c: Ditto.
        * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
        Change all previous callers of __sfvwrite.  Set errno to EBADF and
        set error flag on if attempt is made to write to file that does not
        allow writing.
        * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
        * libc/stdio/local.h: Ditto.
        * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
        Set errno to EBADF and the error flag on if attempt is made to
        read unreadable file.  Change all previous callers of __srefill.
        * libc/stdio/rget.c
        * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
        all previous callers of __swbuf.
        * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
        huge value macros are already defined correctly for i386 by <math.h>.
2006-06-14 20:49:11 +00:00
Jeff Johnston c4cac45fe9 2006-06-13 Sandra Loosemore <sandra@codesourcery.com>
* /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
        Make them do something useful in the ARM_RDI_MONITOR case.
2006-06-13 20:50:24 +00:00
Jeff Johnston b5b6cbd8ec 2006-06-07 Fred Fish <fnf@specifix.com>
* libc/search/hash_bigkey.c (MIN,MAX): Remove
        defines that are already supplied by <sys/param.h>.
2006-06-07 19:22:59 +00:00
Jeff Johnston 3cc3705ca0 2006-06-07 Fred Fish <fnf@specifix.com>
* configure.host: Remove references to HAVE_GETTIMEOFDAY.
2006-06-07 19:20:04 +00:00
Jeff Johnston 9b15ac9054 2006-06-05 Shaun Jackman <sjackman@gmail.com>
* libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
        usleep.c.
        * libc/posix/Makefile.in: Regenerate.
        * libc/posix/sleep.c: New file.
        * libc/posix/usleep.c: Ditto.
2006-06-06 15:41:10 +00:00
Jeff Johnston 512c2879a4 2006-06-05 Shaun Jackman <sjackman@gmail.com>
* libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
        usleep.c.
        * libc/posix/Makefile.in: Regenerate.
        * libc/posix/sleep.c: New file.
        * libc/posix/usleep.c: Ditto.
2006-06-05 20:19:55 +00:00
Jeff Johnston 9eedc2e624 Fix format typo. 2006-06-05 19:46:40 +00:00
Jeff Johnston 6ea486a6df 2006-06-05 Shaun Jackman <sjackman@gmail.com>
configure.host (newlib_cflags) [arm, thumb, xscale]:  Remove
        -DABORT_PROVIDED flag.
        * newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
        * newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
2006-06-05 19:45:08 +00:00
Jeff Johnston 2e7c576aa7 2006-06-05 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
        * Makefile.in: Regenerated.
        * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
        extraneous CFLAGS reference now that CCASFLAGS are being extended
        properly via multilib.
        * libc/machine/sh/Makefile.in: Regenerated.
2006-06-05 17:42:57 +00:00
Jeff Johnston 3feae7b116 2006-06-02 Shaun Jackman <sjackman@gmail.com>
* libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
        sigismember.
2006-06-02 18:09:24 +00:00
Jeff Johnston f383bda56a 2006-05-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/misc/dprintf.c: Removed.
        * libc/misc/__dprintf.c: Renamed from dprintf.c.
        * libc/misc/Makefile.am: Changed appropriately for rename.
        * libc/misc/Makefile.in: Regenerated.
2006-05-23 20:30:48 +00:00
Jeff Johnston 8eeee74e95 2006-05-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h: Protect dprintf prototype
        with #ifndef dprintf so as to not interfere with
        historical code defining their own dprintf macro.
2006-05-23 19:57:31 +00:00
Jeff Johnston dc7798c6b0 2006-05-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h: Add prototypes for fiscanf,
        iscanf, and siscanf.
2006-05-18 18:07:19 +00:00
Joern Rennecke 302fad9217 * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
* libc/machine/sh/Makefile.in: Regenerate.
2006-05-12 20:04:46 +00:00
Joern Rennecke e1b888df24 * acinclude.m4 (_NEWLIB_VERSION): Rename to:
(DEF_NEWLIB_VERSION).
	* configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
	* configure: Regenerate.
2006-05-11 15:49:52 +00:00
Jeff Johnston 7f32c41d7f 2006-05-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
        lib_a_SOURCES.
        * libc/ctype/Makefile.in: Regenerated.
2006-05-09 21:53:35 +00:00
Jeff Johnston bac01fc8f7 2006-05-09 Kazu Hirata <kazu@codesourcery.com>
* libc/machine/arm/Makefile.am: Fix a typo.
        * libc/machine/arm/Makefile.in: Regenerated.
2006-05-09 17:55:21 +00:00
Joern Rennecke 6c47d5b7e7 * libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
* libc/machine/sh/Makefile.in: Regenerate.
2006-05-08 14:01:52 +00:00
Joern Rennecke 7cc7e374c1 * libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
* libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
2006-05-03 22:16:34 +00:00
Jeff Johnston a8b02d4693 2006-05-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/sysnec810/Makefile.am: Specify .S files instead of
        .s.
        * libc/sys/sysnec810/Makefile.in: Regenerated.
        * libc/sys/sysnec810/crt0.S: Renamed from .s file.
        * libc/sys/sysnec810/io.S: Ditto.
        * libc/sys/sysnec810/crt0.s: Renamed to .S file.
        * libc/sys/sysnec810/io.s: Ditto.
2006-05-02 18:20:12 +00:00
Jeff Johnston 8f8f1db12f 2006-05-01 Jeff Johnston <jjohnstn@redhat.com>
* libc/argz/Makefile.am: Prefix any objects specified with $(lpfx).  If source file can
        be specified instead of object, do so.
        * libc/ctype/Makefile.am: Ditto.
        * libc/iconv/ccs/Makefile.am: Ditto.
        * libc/iconv/ces/Makefile.am: Ditto.
        * libc/iconv/lib/Makefile.am: Ditto.
        * libc/locale/Makefile.am: Ditto.
        * libc/posix/Makefile.am: Ditto.
        * libc/reent/Makefile.am: Ditto.
        * libc/search/Makefile.am: Ditto.
        * libc/stdio/Makefile.am: Ditto.
        * libc/stdio64/Makefile.am: Ditto.
        * libc/stdlib/Makefile.am: Ditto.
        * libc/string/Makefile.am: Ditto.
        * libc/syscalls/Makefile.am: Ditto.
        * libc/unix/Makefile.am: Ditto.
        * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
        prefix added automatically.  Any specified rules must use $(lpfx) for
        object file names.
        * libc/machine/arm/Makefile.am: Ditto.
        * libc/machine/cris/Makefile.am: Ditto.
        * libc/machine/crx/Makefile.am: Ditto.
        * libc/machine/d10v/Makefile.am: Ditto.
        * libc/machine/d30v/Makefile.am: Ditto.
        * libc/machine/fr30/Makefile.am: Ditto.
        * libc/machine/frv/Makefile.am: Ditto.
        * libc/machine/h8300/Makefile.am: Ditto.
        * libc/machine/h8500/Makefile.am: Ditto.
        * libc/machine/hppa/Makefile.am: Ditto.
        * libc/machine/i386/Makefile.am: Ditto.
        * libc/machine/i960/Makefile.am: Ditto.
        * libc/machine/iq2000/Makefile.am: Ditto.
        * libc/machine/m32c/Makefile.am: Ditto.
        * libc/machine/m32r/Makefile.am: Ditto.
        * libc/machine/m68hc11/Makefile.am: Ditto.
        * libc/machine/m68k/Makefile.am: Ditto.
        * libc/machine/m88k/Makefile.am: Ditto.
        * libc/machine/mips/Makefile.am: Ditto.
        * libc/machine/mn10200/Makefile.am: Ditto.
        * libc/machine/mn10300/Makefile.am: Ditto.
        * libc/machine/mt/Makefile.am: Ditto.
        * libc/machine/necv70/Makefile.am: Ditto.
        * libc/machine/powerpc/Makefile.am: Ditto.
        * libc/machine/sh/Makefile.am: Ditto.
        * libc/machine/sh/Makefile.in: Ditto.
        * libc/machine/sparc/Makefile.am: Ditto.
        * libc/machine/tic4x/Makefile.am: Ditto.
        * libc/machine/tic80/Makefile.am: Ditto.
        * libc/machine/v850/Makefile.am: Ditto.
        * libc/machine/w65/Makefile.am: Ditto.
        * libc/machine/xscale/Makefile.am: Ditto.
        * libc/machine/xstormy16/Makefile.am: Ditto.
        * libc/machine/z8k/Makefile.am: Ditto.
        * libc/sys/a29khif/Makefile.am: Ditto.
        * libc/sys/arm/Makefile.am: Ditto.
        * libc/sys/d10v/Makefile.am: Ditto.
        * libc/sys/h8300hms/Makefile.am: Ditto.
        * libc/sys/h8500hms/Makefile.am: Ditto.
        * libc/sys/linux/Makefile.am: Ditto.
        * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
        * libc/sys/linux/net/Makefile.am: Ditto.
        * libc/sys/linux/stdlib/Makefile.am: Ditto.
        * libc/sys/m88kbug/Makefile.am: Ditto.
        * libc/sys/mmixware/Makefile.am: Ditto.
        * libc/sys/rdos/Makefile.am: Ditto.
        * libc/sys/rtems/Makefile.am: Ditto.
        * libc/sys/sh/Makefile.am: Ditto.
        * libc/sys/sun4/Makefile.am: Ditto.
        * libc/sys/sysmec/Makefile.am: Ditto.
        * libc/sys/sysnec810/Makefile.am: Ditto.
        * libc/sys/sysnecv850/Makefile.am: Ditto.
        * libc/sys/sysvi386/Makefile.am: Ditto.
        * libc/sys/sysvnecv70/Makefile.am: Ditto.
        * libc/sys/tic80/Makefile.am: Ditto.
        * libc/sys/w65/Makefile.am: Ditto.
        * libc/sys/z8ksim/Makefile.am: Ditto.
        * libc/machine/necv70/fastmath.S: Renamed from .s file.
        * libc/machine/necv70/setjmp.S: Ditto.
        * libc/machine/necv70/fastmath.s: Removed.
        * libc/machine/necv70/setjmp.s: Ditto.
        * libc/machine/w65/*.S: New files renamed from .s files.
        * libc/machine/w65/*.s: Renamed and removed.
        * libc/sys/a29khif/*.S: New files renamed from .s files.
        * libc/sys/a29khif/*.s: Renamed and removed.
        * libc/sys/sysvi386/*.S: New files renamed from .s files.
        * libc/sys/sysvi386/*.s: Renamed and removed.
        * libc/sys/sysvnecv70/*.S: New files renamed from .s files.
        * libc/sys/sysvnecv70/*.s: Renamed and removed.
        * libc/*Makefile.in: Regenerated as appropriate.
2006-05-01 22:01:07 +00:00
DJ Delorie b34db572c1 * libc/machine/sh/configure.in: Avoid link tests.
* libc/machine/sh/configure: Regenerate.
2006-04-24 20:19:52 +00:00
Jeff Johnston e163e3e138 2006-04-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
        (sigaddset, sigemptyset): Add return code.
2006-04-18 20:06:09 +00:00
Jeff Johnston 7ad962240c 2006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org>
* acinclude.m4: New _NEWLIB_VERSION.
        * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
        Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
        Use new form of AC_INIT_AUTOMAKE.
        * configure.in: AC_PREREQ(2.59).
        Use autoconf-2.5.x version of AC_INIT.
        Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
        autoconf-2.13's AC_OUTPUT.
        * libm/configure.in: Ditto.
        * libm/machine/configure.in: Ditto.
        * libm/machine/i386/configure.in: Ditto.
        * libc/configure.in: Ditto.
        * libc/machine/a29k/configure.in: Ditto.
        * libc/machine/arm/configure.in: Ditto.
        * libc/machine/configure.in: Ditto.
        * libc/machine/mn10300/configure.in: Ditto.
        * libc/machine/powerpc/configure.in: Ditto.
        * libc/machine/z8k/configure.in: Ditto.
        * libc/machine/h8300/configure.in: Ditto.
        * libc/machine/mips/configure.in: Ditto.
        * libc/machine/crx/configure.in: Ditto.
        * libc/machine/m68hc11/configure.in: Ditto.
        * libc/machine/h8500/configure.in: Ditto.
        * libc/machine/xscale/configure.in: Ditto.
        * libc/machine/d10v/configure.in: Ditto.
        * libc/machine/fr30/configure.in: Ditto.
        * libc/machine/sh/configure.in: Ditto.
        * libc/machine/tic80/configure.in: Ditto.
        * libc/machine/m32r/configure.in: Ditto.
        * libc/machine/xstormy16/configure.in: Ditto.
        * libc/machine/i386/configure.in: Ditto.
        * libc/machine/d30v/configure.in: Ditto.
        * libc/machine/mn10200/configure.in: Ditto.
        * libc/machine/frv/configure.in: Ditto.
        * libc/machine/mt/configure.in: Ditto.
        * libc/machine/i960/configure.in: Ditto.
        * libc/machine/v850/configure.in: Ditto.
        * libc/machine/necv70/configure.in: Ditto.
        * libc/machine/tic4x/configure.in: Ditto.
        * libc/machine/cris/configure.in: Ditto.
        * libc/machine/m68k/configure.in: Ditto.
        * libc/machine/m32c/configure.in: Ditto.
        * libc/machine/hppa/configure.in: Ditto.
        * libc/machine/w65/configure.in: Ditto.
        * libc/machine/iq2000/configure.in: Ditto.
        * libc/machine/sparc/configure.in: Ditto.
        * libc/machine/m88k/configure.in: Ditto.
        * libc/sys/linux/configure.in: Ditto.
        * libc/sys/linux/machine/configure.in: Ditto.
        * libc/sys/linux/machine/i386/configure.in: Ditto.
        * libc/sys/linux/linuxthreads/configure.in: Ditto.
        * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
        * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
        * libc/sys/arm/configure.in: Ditto.
        * libc/sys/configure.in: Ditto.
        * libc/sys/decstation/configure.in: Ditto.
        * libc/sys/a29khif/configure.in: Ditto.
        * libc/sys/sysnecv850/configure.in: Ditto.
        * libc/sys/d10v/configure.in: Ditto.
        * libc/sys/netware/configure.in: Ditto.
        * libc/sys/mmixware/configure.in: Ditto.
        * libc/sys/h8500hms/configure.in: Ditto.
        * libc/sys/sh/configure.in: Ditto.
        * libc/sys/tic80/configure.in: Ditto.
        * libc/sys/rdos/configure.in: Ditto.
        * libc/sys/sysmec/configure.in: Ditto.
        * libc/sys/sysvi386/configure.in: Ditto.
        * libc/sys/h8300hms/configure.in: Ditto.
        * libc/sys/sparc64/configure.in: Ditto.
        * libc/sys/arc/configure.in: Ditto.
        * libc/sys/sysnec810/configure.in: Ditto.
        * libc/sys/m88kbug/configure.in: Ditto.
        * libc/sys/sysvnecv70/configure.in: Ditto.
        * libc/sys/z8ksim/configure.in: Ditto.
        * libc/sys/rtems/configure.in: Ditto.
        * libc/sys/w65/configure.in: Ditto.
        * libc/sys/sun4/configure.in: Ditto.
        * doc/configure.in: Ditto.
        * iconvdata/configure.in: Ditto.
        * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
2006-04-13 19:56:32 +00:00
Jeff Johnston 34e666798a 2006-04-11 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Properly add square brackets for
        AC_DEFUN macros.  Rewrite LIB_AC_PROG_CC to remove
        macros no longer available.  Add LIB_AM_PROG_AS to
        remove prereq of AC_PROG_CC.  Add LIB_AC_PROG_CC_GNU
        macro.  Substitute lpfx (library object prefix).
        * configure.host: Set lpfx depending on whether
        libtool is used or not.
        * configure.in: Individually specify libc and libm
        to AC_CONFIG_SUBDIRS.  Add square bracket quoting as
        necessary.
        * Makefile.am: Use $(lpfx) to get object names for
        math-library functions that should also be in libc.
        * libc/machine/configure.in: Use case statement to determine
        AC_CONFIG_SUBDIRS statement.
        * libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
        * libc/sys/linux/machine/configure.in: Ditto.
        * libc/sys/configure.in: Ditto.
        * libm/machine/configure.in: Ditto.
        * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
        * libm/configure.in: Add AM_CONDITIONAL statement
        for HAVE_LIBM_MACHINE_DIR.
        * libc/machine/a29k/Makefile.am: Modified to work with
        latest automake.  Change includes setting AM_CCASFLAGS
        so building .S files will properly pick up flags used
        to build C files.
        * libc/machine/arm/Makefile.am: Ditto.
        * libc/machine/crx/Makefile.am: Ditto.
        * libc/machine/d10v/Makefile.am: Ditto.
        * libc/machine/d30v/Makefile.am: Ditto.
        * libc/machine/fr30/Makefile.am: Ditto.
        * libc/machine/frv/Makefile.am: Ditto.
        * libc/machine/h8300/Makefile.am: Ditto.
        * libc/machine/h8500/Makefile.am: Ditto.
        * libc/machine/hppa/Makefile.am: Ditto.
        * libc/machine/i386/Makefile.am: Ditto.
        * libc/machine/iq2000/Makefile.am: Ditto.
        * libc/machine/m32c/Makefile.am: Ditto.
        * libc/machine/m32r/Makefile.am: Ditto.
        * libc/machine/m68hc11/Makefile.am: Ditto.
        * libc/machine/m68k/Makefile.am: Ditto.
        * libc/machine/m88k/Makefile.am: Ditto.
        * libc/machine/mips/Makefile.am: Ditto.
        * libc/machine/mn10200/Makefile.am: Ditto.
        * libc/machine/mn10300/Makefile.am: Ditto.
        * libc/machine/mt/Makefile.am: Ditto.
        * libc/machine/necv70/Makefile.am: Ditto.
        * libc/machine/powerpc/Makefile.am: Ditto.
        * libc/machine/sh/Makefile.am: Ditto.
        * libc/machine/sparc/Makefile.am: Ditto.
        * libc/machine/tic4x/Makefile.am: Ditto.
        * libc/machine/tic80/Makefile.am: Ditto.
        * libc/machine/v850/Makefile.am: Ditto.
        * libc/machine/w65/Makefile.am: Ditto.
        * libc/machine/xscale/Makefile.am: Ditto.
        * libc/machine/xstormy16/Makefile.am: Ditto.
        * libc/machine/z8k/Makefile.am: Ditto.
        * libc/sys/a29khif/Makefile.am: Ditto.
        * libc/sys/arc/Makefile.am: Ditto.
        * libc/sys/arm/Makefile.am: Ditto.
        * libc/sys/d10v/Makefile.am: Ditto.
        * libc/sys/decstation/Makefile.am: Ditto.
        * libc/sys/h8300hms/Makefile.am: Ditto.
        * libc/sys/h8500hms/Makefile.am: Ditto.
        * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
        * libc/sys/linux/machine/i386/Makefile.am: Ditto.
        * libc/sys/m88kbug/Makefile.am: Ditto.
        * libc/sys/mmixware/Makefile.am: Ditto.
        * libc/sys/netware/Makefile.am: Ditto.
        * libc/sys/rdos/Makefile.am: Ditto.
        * libc/sys/rtems/Makefile.am: Ditto.
        * libc/sys/sh/Makefile.am: Ditto.
        * libc/sys/sparc64/Makefile.am: Ditto.
        * libc/sys/sysmec/Makefile.am: Ditto.
        * libc/sys/sysnec810/Makefile.am: Ditto.
        * libc/sys/sysnecv850/Makefile.am: Ditto.
        * libc/sys/sysvi386/Makefile.am: Ditto.
        * libc/sys/sysvnecv70/Makefile.am: Ditto.
        * libc/sys/tic80/Makefile.am: Ditto.
        * libc/sys/w65/Makefile.am: Ditto.
        * libc/sys/z8ksim/Makefile.am: Ditto.
        * libm/machine/i386/Makefile.am: Ditto.
        * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
        trap.S so that automake will generate a .S.o suffix rule.
        * libc/argz/Makefile.am: Modified to work with
        latest automake.  Change includes adding lib_a_CFLAGS
        so automake doesn't complain about libtool and non-libtool
        libraries sharing objects.
        * libc/ctype/Makefile.am: Ditto.
        * libc/errno/Makefile.am: Ditto.
        * libc/iconv/ccs/Makefile.am: Ditto.
        * libc/iconv/ces/Makefile.am: Ditto.
        * libc/iconv/lib/Makefile.am: Ditto.
        * libc/locale/Makefile.am: Ditto.
        * libc/misc/Makefile.am: Ditto.
        * libc/posix/Makefile.am: Ditto.
        * libc/reent/Makefile.am: Ditto.
        * libc/search/Makefile.am: Ditto.
        * libc/signal/Makefile.am: Ditto.
        * libc/stdio/Makefile.am: Ditto.
        * libc/stdio64/Makefile.am: Ditto.
        * libc/stdlib/Makefile.am: Ditto.
        * libc/string/Makefile.am: Ditto.
        * libc/sys/linux/Makefile.am: Ditto.
        * libc/sys/linux/argp/Makefile.am: Ditto.
        * libc/sys/linux/cmath/Makefile.am: Ditto.
        * libc/sys/linux/dl/Makefile.am: Ditto.
        * libc/sys/linux/iconv/Makefile.am: Ditto.
        * libc/sys/linux/intl/Makefile.am: Ditto.
        * libc/sys/linux/linuxthreads/Makefile.am: Ditto.
        * libc/sys/linux/net/Makefile.am: Ditto.
        * libc/sys/linux/stdlib/Makefile.am: Ditto.
        * libc/syscalls/Makefile.am: Ditto.
        * libc/time/Makefile.am: Ditto.
        * libc/unix/Makefile.am: Ditto.
        * libm/Makefile.am: Ditto.
        * libm/common/Makefile.am: Ditto.
        * libm/math/Makefile.am: Ditto.
        * libm/mathfp/Makefile.am: Ditto.
        * Regenerate all aclocal.m4, Makefile.in, and configure files.
2006-04-11 19:02:16 +00:00
Jeff Johnston b577ecdf59 2006-04-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
        anymore.  Assume there is a gettimeofday syscall.
2006-04-07 21:46:00 +00:00
Jeff Johnston ef79d97d9f 2006-03-29 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
        for the declaration of n_long.
2006-03-29 22:38:46 +00:00
Jeff Johnston 15a1b33c00 2006-03-29 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/include/net/if.h: Include sys/socket.h for
        struct sockaddr.
        (IFF_SMART): Replace this define with IFF_NOTRAILERS.
        (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
        (IFF_NOTRAILERS): New define.
        (struct ifreq): Add ifru_netmask.
        (ifr_netmask): New define.
2006-03-29 22:23:00 +00:00
Jeff Johnston bcc4ff0540 2006-03-29 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
        match sys/ioctl.h.
2006-03-29 22:09:56 +00:00
Jeff Johnston 8fed3e2ea5 2006-03-29 Shaun Jackman <sjackman@gmail.com>
* libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
        linux-newlib libc implementations.
2006-03-29 22:04:27 +00:00
Jeff Johnston 6507c09718 2006-03-29 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
        * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
2006-03-29 21:57:21 +00:00
Jeff Johnston 084fba647c Fix reference to __mknod syscall to pass proper third argument. 2006-03-29 21:50:52 +00:00
Jeff Johnston fac690bef7 2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/io.c (__mknod): Fix declaration of
        syscall to pass a dev_t as third argument rather than
        a pointer to dev_t.
2006-03-29 21:49:58 +00:00
Jeff Johnston 9e443adbaf 2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/net/name6.c: Fix struct references.
2006-03-29 21:45:17 +00:00
Mark Mitchell ce93dfe415 * configure.host: Allow hosts to set the default
newlib_atexit_dynamic_alloc value.
	* configure.in: Likewise.
	* configure: Regenerated.
2006-03-21 20:02:13 +00:00
Mark Mitchell 3078fb4f36 * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
* configure.in (--disable-newlib-atexit-dynamic-alloc): New
	option.
	* configure: Regenerated.
	* newlib.hin: Regenerated.
	* libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
	if _ATEXIT_DYNAMIC_ALLOC is undefined.
	* libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
	if _ATEXIT_DYNAMIC_ALLOC is undefined.
2006-03-21 00:57:34 +00:00
Jeff Johnston 9d5cff74ae 2006-03-17 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/linuxthreads/config.h: Remove definition
        of UINT32_C.
2006-03-17 22:27:37 +00:00
Jeff Johnston 490cfb83e9 2006-03-15 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/wsetup.c (__swsetup): Don't make a buffer
        for a string I/O file that isn't using the asprintf family.
2006-03-15 22:38:59 +00:00
Jeff Johnston ce10f1789e 2006-03-07 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
        filename, allow read-only or write-only FILE atop O_RDWR file
        descriptor.
        * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
2006-03-07 22:20:18 +00:00
Jeff Johnston ddf12e6b76 2006-03-07 Jeff Johnston <jjohnstn@redhat.com>
* libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
        * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
2006-03-07 22:14:04 +00:00
Jeff Johnston cb1975812d 2006-03-02 Jeff Johnston <jjohnstn@redhat.com>
* libm/math/math.tex: Fix reference to sisnan.def which
        is now in common subdirectory.
        * libm/mathfp/mathfp.tex: Ditto.
2006-03-02 16:46:12 +00:00
Jeff Johnston bc88ea65a1 Add missing comment regarding math.h. 2006-02-28 00:03:46 +00:00
Jeff Johnston e48682cff5 2006-02-27 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
        s_isnand, and sf_isnanf object files.
        * Makefile.in: Regenerated.
        * libc/include/ieeefp.h: Undef isnan and isinf to avoid
        conflict if <math.h> has previously been included.
        * libc/include/math.h
        * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
        and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
        sf_isinf files which have been moved from math/mathfp directories.
        * libm/common/Makefile.in: Regenerated.
        * libm/common/s_isinfd.c: New file.
        * libm/common/s_isnand.c: Ditto.
        * libm/common/sf_isinff.c: Ditto.
        * libm/common/sf_isnanf.c: Ditto.
        * libm/common/s_isinf.c: Moved from libm/math directory.
        * libm/common/s_isnan.c: Ditto.
        * libm/common/sf_isinf.c: Ditto.
        * libm/common/sf_isnan.c: Ditto.
        * libm/math/Makefile.am: Remove isinf and isnan family functions
        which have been moved into common directory.
        * libm/mathfp/Makefile.am: Ditto.
        * libm/math/Makefile.in: Regenerated.
        * libm/mathfp/Makefile.in: Ditto.
        * libm/math/s_isinf.c: Removed.
        * libm/math/s_isnan.c: Ditto.
        * libm/math/sf_isinf.c: Ditto.
        * libm/math/sf_isnan.c: Ditto.
        * libm/mathfp/s_isinf.c: Ditto.
        * libm/mathfp/s_isnan.c: Ditto.
        * libm/mathfp/sf_isinf.c: Ditto.
        * libm/mathfp/sf_isnan.c: Ditto.
2006-02-27 23:51:28 +00:00
Jeff Johnston 99db626d21 2006-02-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/fflush.c (fflush): For an fflush on a read-only
        stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
        * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
        seek, turn off the __SNPT no-optimization flag.
2006-02-20 23:24:00 +00:00
Jeff Johnston 49103e2ba4 2006-02-16 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
        will be defined.
        * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
        <features.h> to preset special flags.
2006-02-16 21:25:45 +00:00
Corinna Vinschen 680e0f1ffd * libc/include/sys/time.h (struct timeval): Change member types
according to SUSv3.
	* libc/include/sys/types.h (useconds_t): Change to unsigned
	according to SUSv3.
	(suseconds_t): Define type.
2006-02-15 10:26:30 +00:00
Jeff Johnston d6593503c6 2006-02-13 Jeff Johnston <jjohnstn@redhat.com>
David Carne  <davidcarne@gmail.com>

        * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
        instead of strlen to determine number of bytes to copy.
        * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
        before looking at storage location.
2006-02-13 17:27:50 +00:00
Jeff Johnston 9bbe6d5d28 2006-02-07 Paul Brook <paul@codesourcery.com>
* libc/machine/arm/setjmp.S: Add Thumb-2 support.
        * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
        * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
        * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
        * libc/sys/arm/trap.S: Disable for Thumb-2.
2006-02-07 18:44:54 +00:00
Jeff Johnston d968b3c86f 2006-01-31 Leif Ekblad <leif@rdos.net>
* configure.host: RDOS support added
        * libc/include/sys/config.h: Ditto.
        * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
        * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
        * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
        * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
        * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
        * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
        * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
        * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
        * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
        * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
        * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
        * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
        * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
        * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
        * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
        * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
        * libc/sys/rdos/write.c: Ditto.
2006-01-31 19:33:56 +00:00
Jeff Johnston 3acaaf543f 2006-01-24 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
        so as not to define PACKAGE and VERSION in newlib.h.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * newlib.hin: Ditto.
2006-01-24 17:24:02 +00:00
Jeff Johnston 54abc854d0 2006-01-20 Jeff Johnston <jjohnstn@redhat.com>
* acconfig.h: New file to generate newlib.hin from.
        * newlib.hin: Regenerated.
        * stamp-h.in: Regenerated.
        * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
        called automatically.
        * Makefile.in: Regenerated.
        * acinclude.m4: Add proper comment for hack in previous change.
        * aclocal.m4 */aclocal.m4: Regenerated.
        * configure */configure: Regenerated.
2006-01-20 22:42:46 +00:00
Jeff Johnston 33c9cfbde9 2006-01-11 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Add hack to prevent INSTALL in subdirs
        from being set to "../".
        * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * Makefile.in: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * iconvdata/aclocal.m4: Ditto.
        * iconvdata/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
2006-01-11 23:50:33 +00:00
Jeff Johnston dea958bc06 2006-01-10 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
	* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2006-01-10 17:09:43 +00:00
Jeff Johnston 216633f73c 2006-01-10 Jeff Johnston <jjohnstn@redhat.com>
* libm/mathfp/s_frexp.c: Check for special values on
        the original input, not the manipulated output value.
        * libm/mathfp/sf_frexp.c: Ditto.
        * libm/mathfp/s_atangent.c: Don't use local value branch
        when checking for quadrant.
        * libm/mathfp/sf_atangent.c: Ditto.
2006-01-10 16:51:58 +00:00
Jeff Johnston 64ae8ab5f0 2006-01-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
        * libc/stdio64/freopen64.c: Ditto.
2006-01-09 20:01:09 +00:00
Jeff Johnston 0da7297ef1 2006-01-09 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
        * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2006-01-09 17:51:01 +00:00
Jeff Johnston a37aaf88a8 2006-01-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/getopt.h: Add macros needed by
        new version of getopt.c in libc/stdlib.
2006-01-06 20:59:13 +00:00
Jeff Johnston 791c9bda57 2006-01-04 Gregory Pietsch <gpietsch@comcast.net>
* libc/stdlib/getopt.c: Replaced with version
        that adds getopt_long and getopt_long_only support.
        * libc/include/getopt.h: New file.
2006-01-04 21:21:52 +00:00
Jeff Johnston 0217078f77 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>
* NEWS: Update with 1.14.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 1.14.0.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
        * libm/libm.texinfo: Ditto.
        * libc/sys/linux/shared.ld: Add VERS_1.14.
2005-12-16 20:49:42 +00:00
Jeff Johnston a4cd7f20f7 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
        take a pointer to struct stat64 rather than struct stat.
2005-12-16 19:11:10 +00:00
Jeff Johnston 843e635aaa 2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Prefer long over int for int32_t.
	Use __have_long32 to set up int32_t.
	* libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
	(Sync with stdint.h).
2005-12-16 19:03:12 +00:00
Corinna Vinschen 10cba930d4 * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
typo in O_NDELAY comment.
2005-12-14 09:06:00 +00:00
Jeff Johnston c8ba5c2205 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
* libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
        * libc/include/machine/setjmp.h (__mt__): Likewise.
        * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
        * libc/machine/configure.in: Ditto.
2005-12-13 22:57:31 +00:00
Nathan Sidwell 74ecef0dea Rename ms1 to mt, part 1
* config.sub: Replace ms1 arch with mt.  Allow ms1 as alias.
	* configure.in: Replace ms1 arch with mt.
	* configure: Rebuilt.

	* bfd/Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES,
	BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt.
	(cpu_mt.lo, elf32-mt.lo): Update target and dependency names.
	* bfd/Makefile.in: Rebuilt.
	* bfd/config.bfd: Replace ms1 arch with mt.
	* bfd/configure.in: Replace ms1 files with mt files.
	* bfd/configure: Rebuilt.
	* bfd/elf32-mt.c: Renamed from elf32-ms1.c.  Update include files.
	* bfd/cpu-mt.c: Renamed from cpu-ms1.c.

	* cpu/mt.cpu: Rename from ms1.cpu.
	* cpu/mt.opc: Rename from ms1.opc.

	* binutils/Makefile.am: Replace ms1 files with mt files.
	* binutils/Makefile.in: Rebuilt.
	* binutils/readelf.c (elf/mt.h): Adjust #include.

	* gas/configure.in: Replace ms1 arch with mt arch.
	* gas/configure: Rebuilt.
	* gas/configure.tgt: Replace ms1 arch with mt arch.
	* gas/config/tc-mt.c: Renamed from tc-ms1.c: Update include files.

	* gas/doc/Makefile.am (CPU_DOCS): Replace ms1 files with mt files.
	* gas/doc/Makefile.in: Rebuilt.

	* gas/testsuite/gas/mt: Renamed from ms1 dir.  Update file names as
	needed.
	* gas/testsuite/gas/mt/errors.exp: Replace ms1 arch with mt arch.
	* gas/testsuite/gas/mt/mt.exp: Replace ms1 arch with mt arch.
	* gas/testsuite/gas/mt/relocs.exp: Replace ms1 arch with mt arch.

	* gdb/configure.tgt: Replace ms1 arch with mt arch.
	* gdb/config/mt: Renamed from ms1 dir.  Update file names as needed.
	* gdb/config/mt/mt.mt (TDEPFILES): Replace ms1 file with mt file.

	* include/elf/mt.h: Renamed from ms1.h

	* ld/Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
	(eelf32mt.c): Update target name and dependencies.
	* ld/Makefile.in: Rebuilt.
	* ld/configure.tgt: Replace ms1 arch with mt arch.
	* ld/emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
	comment.

	* libgloss/configure.in: Replace ms1 arch with mt arch.
	* libgloss/configure: Rebuilt.
	* libgloss/mt: Renamed from ms1 dir.

	* newlib/configure.host: Replace ms1 arch with mt arch.
	* newlib/libc/machine/mt: Renamed from ms1 dir.

	* opcodes/Makefile.am (CLEANFILES, CGEN_CPUS, MT_DEPS): Replace ms1
	with mt.
	* opcodes/Makefile.in: Rebuilt.
	* opcodes/configure.in: Replace ms1 files with mt files.
	* opcodes/configure: Rebuilt.

	* sid/component/cgen-cpu/mt: Renamed from ms1 dir.  Update file
	names as appropriate.
	* sid/component/cgen-cpu/mt/Makefile.am: Replace ms1 files with mt
	files.
	* sid/component/cgen-cpu/mt/Makefile.in: Rebuilt.
2005-12-12 11:25:07 +00:00
Nathan Sidwell ad83f0cc13 Rename ms1 files to mt files (part 1 -- renames only) 2005-12-12 11:16:41 +00:00
Jeff Johnston 2a1fc53c92 2005-12-08 Shaun Jackman <sjackman@gmail.com>
* libc/include/sys/types.h: Remove the ifdef armour around
	standard POSIX types.
2005-12-08 19:45:43 +00:00
Jeff Johnston 77e70d34ce 2005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
        rtems_gxx_key_delete, rtems_gxx_getspecific,
        rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
        rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
        rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
2005-12-06 21:58:45 +00:00
Christopher Faylor b1da33a0b0 * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific file.
Declare unsetenv and _unsetenv_r when not cygwin.
2005-12-05 22:15:21 +00:00
Jeff Johnston 6b1a6ec67b 2005-11-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/time/strptime.c (strptime): Don't abort for %c and %Z.
        Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
2005-11-18 19:00:29 +00:00
Corinna Vinschen ef1206e45b * libc/include/ieeefp.h: Add C++ guards. 2005-11-18 17:40:21 +00:00
Christopher Faylor d7d477b7f7 * include/sys/time.h: Move more cygwin stuff to cygwin-specific header. 2005-11-18 16:08:10 +00:00
Christopher Faylor c1534dbe09 * include/time.h: Remove more cygwin-specific stuff. 2005-11-18 15:57:24 +00:00
Christopher Faylor d3e81bdac8 * include/time.h: Move cygwin declarations to cygwin-specific header.
* include/sys/time.h: Rename cygwin include to "sys_time.h".
2005-11-18 15:45:54 +00:00
Jeff Johnston 1396951b20 2005-11-17 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
        in libc/sys/linux/include.
        * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
        * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
        * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
        in libc/sys/linux/dl.
2005-11-17 21:51:21 +00:00
Christopher Faylor 37bd11ed12 * libc/include/sys/time.h: For cygwin, use general header rather than specific
"sys/select.h".
2005-11-11 16:23:36 +00:00
Jeff Johnston b397593c94 2005-11-08 Tom Walsh <tom@openhardware.net>
* libc/time/tzvars.c: New file.
        * libc/time/tzset_r.c: Moved globals into tzvars.c
        so other time functions needn't link in __tzset_r and its
        dependencies.
        * libc/time/Makefile.am: Add the new file.
        * libc/time/Makefile.in: Regenerated.
2005-11-08 22:44:16 +00:00
Christopher Faylor 86c6c4212f * libc/include/string.h: Add cygwin-specific function declaration. 2005-11-08 22:10:33 +00:00
Jeff Johnston 15eaca1c3f 2005-11-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/unix/getcwd.c: Don't use non-reentrant syscall names.
        * libc/unix/getlogin.c: Ditto.
        * libc/unix/getpass.c: Ditto.
        * libc/unix/getut.c: Ditto.
        * libc/unix/ttyname.c: Ditto.
2005-11-03 20:47:50 +00:00
Jeff Johnston d31a862312 2005-11-03 Shaun Jackman <sjackman@gmail.com>
* libc/include/sys/unistd.h (readlink, symlink): Provide these
        prototypes by default.
        * libc/sys/linux/include/unistd.h (readlink): Remove this
        prototype.
        * libc/sys/linux/sys/unistd.h (readlink, symlink): New
        prototypes.
2005-11-03 16:52:15 +00:00
Jeff Johnston 71ac53ee13 2005-11-01 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Cleanup #if vs. #ifdef.
2005-11-01 22:26:21 +00:00
Jeff Johnston dc1b6289a6 2005-10-31 Darin Johnson <darin@usa.net>
* libm/mathfp/s_mathcnst.c: Fix endian-ness check to be
        correct for constants.
2005-10-31 18:47:20 +00:00
Jeff Johnston 884c0ff016 2005-10-28 Bob Wilson <bob.wilson@acm.org>
* libc/stdio/siprintf.c: Wrap long lines in ANSI_SYNOPSIS.
        * libc/stdio/siscanf.c: Likewise.
        * libc/stdio/sprintf.c: Likewise.
        * libc/stdio/sscanf.c: Likewise.
        * libc/stdio/vfprintf.c: Likewise.
        * libc/stdio/vfscanf.c: Likewise.
        * libc/stdio/viprintf.c: Likewise.
        * libc/stdio/viscanf.c: Likewise.
2005-10-28 21:38:59 +00:00
Jeff Johnston a9c15f6feb 2005-10-28 Bob Wilson <bob.wilson@acm.org>
* libc/sys.tex (Stubs): Format examples consistently.   Change sbrk
        example to use "_end" symbol instead of "end".  Change write  example
        to use "outbyte" instead of "writechar".
2005-10-28 21:36:05 +00:00
Jeff Johnston a306ebc97e 2005-10-28 Bob Wilson <bob.wilson@acm.org>
* libc/ctype/ctype.tex: Use hyphens as appropriate, but not  otherwise.
        * libc/ctype/islower.c: Likewise.
        * libc/ctype/isupper.c: Likewise.
        * libc/ctype/iswalnum.c: Likewise.
        * libc/ctype/iswalpha.c: Likewise.
        * libc/ctype/iswblank.c: Likewise.
        * libc/ctype/iswcntrl.c: Likewise.
        * libc/ctype/iswdigit.c: Likewise.
        * libc/ctype/iswgraph.c: Likewise.
        * libc/ctype/iswlower.c: Likewise.
        * libc/ctype/iswprint.c: Likewise.
        * libc/ctype/iswpunct.c: Likewise.
        * libc/ctype/iswspace.c: Likewise.
        * libc/ctype/iswupper.c: Likewise.
        * libc/ctype/iswxdigit.c: Likewise.
        * libc/ctype/tolower.c: Likewise.
        * libc/ctype/toupper.c: Likewise.
        * libc/ctype/towctrans.c: Likewise.
        * libc/ctype/towlower.c: Likewise.
        * libc/ctype/towupper.c: Likewise.
        * libc/string/strcasecmp.c: Likewise.
        * libc/string/strcoll.c: Likewise.
        * libc/string/strings.tex: Likewise.
        * libc/string/strlwr.c: Likewise.
        * libc/string/strncasecmp.c: Likewise.
        * libc/string/strupr.c: Likewise.
        * libc/string/wcscoll.c: Likewise.
        * libc/string/wcslcat.c: Likewise.
        * libc/string/wcslcpy.c: Likewise.
        * libc/string/wcsnlen.c: Likewise.
        * libc/string/wcsstr.c: Likewise.
        * libc/string/wcstrings.tex: Likewise.
        * libc/string/wmemchr.c: Likewise.
        * libc/string/wmemcmp.c: Likewise.
        * libc/string/wmemcpy.c: Likewise.
        * libc/string/wmemmove.c: Likewise.
        * libc/string/wmemset.c: Likewise.
2005-10-28 21:33:23 +00:00
Jeff Johnston 239c2bf93e 2005-10-28 Bob Wilson <bob.wilson@acm.org>
* libc/misc/unctrl.c: Replace FUNCTION description.
        * libc/signal/signal.c: Remove documentation for raise and  _raise_r.
        * libc/stdio/getdelim.c: Fix spelling errors.
        * libc/stdio/getw.c: Put RETURNS on a separate line.  Fix  punctuation.
        * libc/stdio/putw.c: Likewise.
        * libc/stdlib/a64l.c: Fix formatting, spelling and  punctuation in
        documentation.
        * libc/stdlib/assert.c: Do not capitalize FUNCTION description.
        * libc/stdlib/efgcvt.c: Add spaces to FUNCTION description.
        * libc/stdlib/envlock.c: Use em-dash in FUNCTION description.
        * libc/stdlib/mlock.c: Likewise.
        * libc/stdlib/mstats.c: Likewise.
        * libc/time/tzlock.c: Likewise.
        * libc/stdlib/rand.c: Use "multi-threaded" and "thread-safe"  in NOTES.
        * libc/stdlib/rand48.c: Remove extra space in FUNCTION  description
        and hyphenate "pseudo-random".
        * libc/string/bcmp.c: Remove extra blank lines in  documentation.
        * libc/string/strncat.c: Likewise.
        * libc/string/memchr.c: Remove extra ">" character in  documentation.
        * libc/string/strcspn.c: Use "characters" instead of "chars".
        * libc/string/strpbrk.c: Likewise.
        * libc/string/strerror_r.c: Capitalize "GNU".
        * libc/string/strnlen.c: Likewise.
        * libc/string/strtok.c: Fix formatting, spelling and  punctuation in
        documentation.  Use "multi-threaded" and "thread-safe" in  NOTES.
        * libc/string/wcscat.c: Split PORTABILITY into two paragraphs.
        * libc/string/wcschr.c: Likewise.
        * libc/string/wcscmp.c: Likewise.
        * libc/string/wcscpy.c: Likewise.
        * libc/string/wcscspn.c: Likewise.
        * libc/string/wcslen.c: Likewise.
        * libc/string/wcsncat.c: Likewise.
        * libc/string/wcsncmp.c: Likewise.
        * libc/string/wcsncpy.c: Likewise.
        * libc/string/wcsnlen.c: Likewise.
        * libc/string/wcspbrk.c: Likewise.
        * libc/string/wcsrchr.c: Likewise.
        * libc/string/wcsspn.c: Likewise.
        * libc/string/wmemchr.c: Likewise.
        * libc/string/wmemcmp.c: Likewise.
        * libc/string/wmemcpy.c: Likewise.
        * libc/string/wmemset.c: Likewise.
        * libc/string/wmemmove.c: Likewise.  Also fix FUNCTION  description.
        * libc/string/wcswidth.c: Formatting and punctuation in  documentation.
        * libc/string/wcwidth.c: Likewise.
        * libm/common/s_modf.c: Remove extra period from documentation.
        * libm/math/s_isnan.c: Fix formatting, grammar and  punctuation in
        documentation.
        * libm/mathfp/s_isnan.c: Likewise.
        * libm/math/s_ldexp.c: Fix punctuation.
        * libm/mathfp/s_ldexp.c: Likewise.
        * libm/math/w_log.c: Likewise.
        * libm/mathfp/s_logarithm.c: Likewise.
        * libm/math/w_j0.c: Add spaces to FUNCTION description.
        * libm/mathfp/w_jn.c: Likewise.
2005-10-28 21:21:08 +00:00
Jeff Johnston 2556eb8d41 2005-10-26 Shaun Jackman <sjackman@gmail.com>
* libc/posix/scandir.c (scandir): Update the function
        prototype to match the header.
        * libc/sys/linux/linuxthreads/bits/libc-lock.h: Remove an
        extraneous #endif.
        * libc/sys/linux/sys/lock.h: Do not include
        machine/weakalias.h, since it's not used by this file.
2005-10-26 22:16:34 +00:00
Jeff Johnston c9d71a8d46 2005-10-26 Jeff Johnston <jjohnstn@redhat.com>
* libc/Makefile.am: Reorder SUBLIBS so machine and sys
        directories can override properly.
2005-10-26 22:10:51 +00:00
Jeff Johnston 09968b6d27 2005-10-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): When
        gcc is 3.3 or greater, use special gcc builtins.
2005-10-20 21:42:33 +00:00
Corinna Vinschen c70571bdbe * libc/include/sys/time.h: Declare futimes and lutimes for Cygwin. 2005-10-20 14:38:57 +00:00
Corinna Vinschen a92822b747 * libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin. 2005-10-18 18:39:46 +00:00
Jeff Johnston d2c2c1328b 2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (HUGE_VALF, HUGE_VALL): New.
        * libm/common/Makefile.am: Add s_infconst.c support.
        * libm/common/Makefile.in: Regenerated.
        * libm/common/s_infconst.c: New file with float and
        long double infinity support added.
        * libm/math/Makefile.am: Remove s_infconst.c support.
        * libm/math/Makefile.in: Regenerated.
        * libm/math/s_infconst.c: Moved to common directory.
        * libm/mathfp/Makefile.am: Remove s_infconst.c support.
        * libm/mathfp/Makefile.in: Regenerated.
        * libm/mathfp/s_infconst.c: Moved to common directory.
2005-10-14 21:11:39 +00:00
Jeff Johnston 4d57c1edc7 2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/net/gethostbydns.c (dprintf): Rename to
        dbgprintf to prevent conflict with new dprintf function.
2005-10-14 21:06:20 +00:00
Jeff Johnston 1012585f1f 2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
        "nan" processing for systems that have long double support.
2005-10-14 21:03:13 +00:00
Jeff Johnston e9154015a0 2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/sys/types.h (int8_t): Add type.
2005-10-14 20:01:55 +00:00
Jeff Johnston 1a8696985f 2005-10-14 Bob Wilson <bob.wilson@acm.org>
* libm/common/Makefile.am (doc): Do not append to $(TARGETDOC).
        * libm/common/Makefile.in: Regenerate.
        * libm/common/common.tex: Delete file.
        * libm/math/math.tex: Include .def files from common/.
        * libm/mathfp/mathfp.tex: Likewise.
2005-10-14 18:55:57 +00:00
Jeff Johnston e0811fb3bf 2005-10-14 Bob Wilson <bob.wilson@acm.org>
* libc/libc.texinfo (Top): Surround this node with @ifnottex
        instead of @ifinfo.  Update menu to add Introduction and match
        SUBDIRS order.
        (Introduction): New section.
2005-10-14 18:45:19 +00:00
Jeff Johnston e63c98c61b 2005-10-14 Bob Wilson <bob.wilson@acm.org>
* libc/reent/reent.tex (Reentrancy): Replace "Cygnus C Library"
        with "Red Hat newlib C Library".
        * libc/sys.tex (Stubs): Likewise.
        * libm/math/math.tex (Math): Likewise.
        * libm/mathfp/mathfp.tex (Math): Likewise.
2005-10-14 18:37:24 +00:00
Jeff Johnston 339195bf12 2005-10-11 Shaun Jackman <sjackman@gmail.com>
* libc/include/stdio.h (dprintf): New declaration.
        (vdprintf): Ditto.
        * libc/stdio/Makefile.am (GENERAL_SOURCES): Add dprintf.c
        and vdprintf.c.
        * libc/stdio/Makefile.in: Regenerate.
        * libc/stdio/dprintf.c: New file.
        * libc/stdio/vdprintf.c: New file.
        * libc/stdio/stdio.tex (dprintf): New entry.
2005-10-11 23:59:32 +00:00
Jeff Johnston da71e51811 2005-10-11 David Weatherford <weath@tensilica.com>
* libc/stdio/vfprintf.c (_VFPRINTF_R): Recognize 'F' format.
        Print "inf" and "nan" in lowercase for e/f/g formats and in
        uppercase for E/F/G formats.
2005-10-11 22:51:37 +00:00
Jeff Johnston f011605a90 2005-10-07 Bob Wilson <bob.wilson@acm.org>
* libc/stdlib/mallocr.c (mALLOc, rEALLOCc, mEMALIGn): Set errno
        to ENOMEM on failure.
2005-10-07 18:07:26 +00:00
Jeff Johnston bc037f3a51 2005-10-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Add [u]int_fast<N>_t types.
2005-10-06 19:46:21 +00:00
Jeff Johnston c7e209797c 2005-10-04 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Move magic to set __have_long* to the
        beginning.  Use #if __have* instead of #if defined(__have*).
        Minor typo fixes.
2005-10-04 21:02:59 +00:00
Jeff Johnston 58e78add8b 2005-10-04 James E Wilson <wilson@specifix.com>
* libc/include/sys/dirent.h (_DIRENT_H_): Delete #include_next.  Add
	#error.
2005-10-04 20:47:39 +00:00
Jeff Johnston 8afb8202d4 2005-10-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/stdint.h: Include <sys/types.h> and
        incorporate Ralf's change below.
2005-10-03 17:22:38 +00:00
Jeff Johnston 14491fd0e0 2005-10-03 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h:
        Use __INTMAX_TYPE__ to derive intmax_t.
        Use __UINTMAX_TYPE__ to derive uintmax_t.
        Fix minor typo.
2005-10-03 17:02:48 +00:00
Jeff Johnston ee694aea01 2005-09-27 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
        handling GCC >= 4.
2005-09-27 20:49:53 +00:00
Jeff Johnston 9f1926f2d8 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/stdint.h: Update to match functionality
        of generic newlib stdint.h.
2005-09-20 22:36:07 +00:00
Jeff Johnston 0ce4fcefed 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
        and do not #undef the macro after it is used.  Fix typos.
        Also change 64-bit constants to use the __have_long64 and
        __have_longlong64 flags to determine if long or long long
        constants should be used.
        * libc/include/inttypes.h: Include stddef.h to get wchar_t
        type defined.
2005-09-20 21:21:51 +00:00
Jeff Johnston 1706081793 2005-09-20 Shaun Jackman <sjackman@gmail.com>
* libc/include/stdint.h: Fix typo in names of
        LEAST macros.
2005-09-20 19:33:58 +00:00
Jeff Johnston 1e1d1d3d7e 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/rtems/include/inttypes.h: Moved to...
        * libc/include/inttypes.h: ...here.
2005-09-20 19:25:57 +00:00
Jeff Johnston cddfc170fd 2005-09-19 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/rtems/include/stdint.h: Moved to...
        * libc/include/stdint.h: ...here.
2005-09-19 22:02:23 +00:00
Jeff Johnston b10ab72581 2005-09-08 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Add include files under bits sub-directory.
        * Makefile.in: Regenerated.
        * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
        actual value of 1 to be compatible with newer glibc headers.
        * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
        glibc headers.
        * libc/sys/linux/sys/dirent.h: Ditto.
        * libc/sys/linux/argp/argp-xinl.c: Ditto.
        * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
        profile_fixup routines are marked used so they won't be
        optimized away.
        * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
        to mark functions as weak.
        * libc/sys/linux/dl/dl-open.c: Ditto.
        * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
        rules about lvalues.
        * libc/sys/linux/iconv/gconv_simple.c: Ditto.
        * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
        weak_extern macro to mark functions as weak.  Instead always
        use #pragma weak.
        * iconvdata/jis0208.h: Fix to work with gcc4.
        * libc/sys/linux/dl/dl-load.c: Ditto.
        * libc/sys/linux/dl/dl-reloc.c: Ditto.
        * libc/sys/linux/dl/do-rel.h: Ditto.
        * libc/sys/linux/dl/dynamic-link.h: Ditto.
        * libc/sys/linux/include/ltdl.h: Ditto.
        * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
        * libc/sys/linux/machine/i386/weakalias.h: Ditto.
        * libc/sys/linux/net/ns_ntoa.c: Ditto.
        * libc/sys/linux/bits/initspin.h: New file.
        * libc/sys/linux/bits/libc-lock.h: Ditto.
        * libc/sys/linux/bits/pthreadtypes.h: Ditto.
        * libc/sys/linux/bits/typesizes.h: Ditto.
2005-09-08 22:45:53 +00:00
Jeff Johnston 7b786e4861 2005-09-08 Eric Blake <ebb9@byu.net>
* libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
	before is NULL.
2005-09-08 21:07:43 +00:00
Jeff Johnston 32b09d754f 2005-09-08 Brian Dessent <brian@dessent.net>
* sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
        mantissa.
        * s_lrint.c: Ditto.
2005-09-08 21:03:54 +00:00
Jeff Johnston 8f36ef2f33 2005-09-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h: Add prototype for viprintf.
2005-09-02 15:39:29 +00:00
Jeff Johnston cebe43dd76 2005-09-01 Jeff Johnston <jjohnstn@redhat.com>
* libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
        any positive power results in 0.
        * libm/mathfp/sf_pow.c (powf): Ditto.
2005-09-01 17:53:02 +00:00
Jeff Johnston 45c8bb8f8c 2005-08-31 Paul Brook <paul@codesourcery.com>
* configure.host: Set have_crt0 to no for Arm targts when not
        providing syscalls.  Set sys_dir=arm unconditionally.
        Default have_crt0 based on sys_dir.
        * configure.in: Use have_crt0.
        * libc/configure.in: Ditto.
        * libc/sys/configure.in: Ditto.
        * configure: Regenerate.
        * libc/configure: Regenerate.
        * libc/sys/configure: Regenerate.
        * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
        Only build other files when providing syscalls.
        * libc/sys/arm/Makefile.in: Regenerate.
        * libc/sys/arm/aeabi_atexit.c: New file.
2005-08-31 20:39:43 +00:00
Christopher Faylor dbeee890d4 * libc/include/string.h: Revert previous change. 2005-08-26 04:33:02 +00:00
Christopher Faylor 377d3ea0e2 * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C. 2005-08-25 23:02:24 +00:00
Jeff Johnston 4797a77c28 2005-08-22 Shaun Jackman <sjackman@gmail.com>
* libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
        define _opendir as opendir, _readdir as readdir, and
        _closedir as closedir so that the implementations in
        libc/posix will be used.
2005-08-22 21:13:35 +00:00
DJ Delorie 2e73582e29 * MAINTAINERS (CPU Ports): Add CPU port maintainer section. 2005-08-10 21:16:14 +00:00
Jeff Johnston 234cf97f85 2005-08-10 Stephen Huw Clarke <stephen.clarke@st.com>
* libm/common/sf_fmax.c: Fix to properly handle NaNs.
        * libm/common/s_max.c: Ditto.
        * libm/common/sf_fmin.c: Ditto.
        * libm/common/s_min.c: Ditto.
2005-08-10 21:02:28 +00:00
Jeff Johnston 56448afa06 2005-08-10 DJ Delorie <dj@redhat.com>
* configure.host: Add m32c support.
        * libc/include/machine/ieeefp.h: Likewise.
        * libc/include/machine/setjmp.h: Likewise.
        * libc/include/sys/config.h: Likewise.
        * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
        * libc/machine/m32c/aclocal.m4: New file.
        * libc/machine/m32c/configure: Ditto.
        * libc/machine/m32c/configure.in: Ditto.
        * libc/machine/m32c/Makefile.am: Ditto.
        * libc/machine/m32c/Makefile.in: Ditto.
        * libc/machine/m32c/setjmp.S: Ditto.
2005-08-10 20:35:13 +00:00
Jeff Johnston 0c5c6c234f 2005-08-02 Bob Wilson <bob.wilson@acm.org>
* libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
         to the value for 2^126.
2005-08-02 19:44:44 +00:00
Hans-Peter Nilsson 12499c7a5d * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
used.
2005-07-26 20:37:13 +00:00
Jeff Johnston 395a327d17 2005-07-20 Bob Wilson <bob.wilson@acm.org>
Darin Petkov <darin@tensilica.com>

       * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
2005-07-20 16:20:24 +00:00
Jeff Johnston 108d7dd833 2005-07-19 Paul Brook <paul@codesourcery.com>
* libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
2005-07-19 15:14:16 +00:00
Jeff Johnston b776efc599 2005-07-18 Joseph S. Myers <joseph@codesourcery.com>
* testsuite/lib/checkoutput.exp (newlib_check_output): Use test
        names after PASS and FAIL which do not depend on source directory
        name or on whether test passed or failed.
        * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
2005-07-18 19:07:49 +00:00
Jeff Johnston 88540e248e 2005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
* libc/string/wcsspn.c (wcsspn): Add missing increment of q.
2005-07-08 18:28:46 +00:00
Jeff Johnston 85d621900c Fix date of last entry. 2005-07-07 17:29:35 +00:00
Jeff Johnston b32adfc5cf *** empty log message *** 2005-07-07 17:29:13 +00:00
Aldy Hernandez dee9edd9ed * configure.host: Added entry for ms1*.
* libc/include/machine/ieeefp.h: Handle ms1.
        * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
        * libc/machine/ms1/aclocal.m4: New.
        * libc/machine/ms1/configure: New.
        * libc/machine/ms1/configure.in: New.
        * libc/machine/ms1/Makefile.am: New.
        * libc/machine/ms1/Makefile.in: New.
        * libc/machine/ms1/setjmp.S: New.
2005-07-06 13:14:10 +00:00
Jeff Johnston cec1d3b414 2005-07-04 Mark Mitchell <mark@codesourcery.com>
* Makefile.am (site.exp): Set tmpdir.
        * Makefile.in: Regenerated.
        * testsuite/lib/checkoutput.exp (newlib_check_output): Put
        executables in $tmpdir.
        * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
        libgloss version if not running in the build directory.
        * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
        $tmpdir.
        * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
        in $tmpdir.
2005-07-05 00:11:50 +00:00
Jeff Johnston 25d209f13d 2005-06-28 Dave Korn <dave.korn@artimi.com>
* libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
        and miscalculation caused by fp representation of zero.
        * libm/common/sf_lrint.c (lrintf):  Likewise.
2005-06-28 17:03:18 +00:00
Jeff Johnston 68cdbb18da 2005-06-16 Christopher Faylor <cgf@timesys.com>
* libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
        determine characteristics of long double.  Use a union instead.
        * ldtoa.c (_ldtoa_r): Ditto.
        (_ldcheck): Ditto.
        (_strtold): Ditto.
        (union uconv): New union.
2005-06-16 19:14:01 +00:00
Jeff Johnston 15c04fd16e 2005-06-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
        instead of memcpy.
2005-06-03 18:57:30 +00:00
Jeff Johnston cf55bf5ee8 2005-05-12 Jeff Johnston <jjohnstn@redhat.com>
* configure.host (mn10300-*): Add long long I/O support by default.
2005-05-12 22:10:26 +00:00
Jeff Johnston b6e654c498 2005-05-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/getpwuid.c: Removed.
        * libc/sys/linux/getpwnam.c: Removed.
        * libc/sys/linux/getpwent.c: New file containing logic
        from files removed above.  This allows overriding of file
        in libc/unix.
        * libc/sys/linux/Makefile.am: Support changes above.
        * libc/sys/linux/Makefile.in: Regenerated.
2005-05-12 22:06:26 +00:00
Jeff Johnston 5456408b84 2005-04-28 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
        when checking for multiple flags.
2005-04-28 18:26:08 +00:00
Hans-Peter Nilsson 1c74754f17 * configure.host <cris-*-* | crisv32-*-*>: Set
default_newlib_io_long_long="yes".
2005-04-18 02:52:21 +00:00
Jeff Johnston 6e75bff67d 2005-04-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/libgen.h: New file.

2005-04-08  Shaun Jackman  <sjackman@gmail.com>

        * libc/unix/Makefile.am: Add support for basename and dirname.
        * libc/unix/Makefile.in: Regenerated.
        * libc/unix/basename.c: New file.
        * libc/unix/dirname.c: New file.
2005-04-08 20:48:40 +00:00
Jeff Johnston 95c136c40a 2005-04-07 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/inode.c (lchown): New function.
2005-04-07 23:40:42 +00:00
Jeff Johnston 9ae26f7e2e 2005-04-07 Shaun Jackman <sjackman@gmail.com>
* libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
        ELIX level is defined.
        * libc/unix/Makefile.in: Regenerated.
2005-04-07 23:37:06 +00:00
Jeff Johnston 85da703991 2005-04-05 Dave Korn <dave.korn@artimi.com>
* libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
        something that looks like a "NaN", put back the characters processed.
2005-04-05 18:38:09 +00:00
Corinna Vinschen fefc73a0c7 * libc/stdlib/strtod.c (_strtod_r): Never change s00. 2005-04-01 09:54:19 +00:00
Jeff Johnston fcfb011798 Fix whitespace with crx entry. 2005-03-23 18:09:57 +00:00
Christopher Faylor e633fde1ba * configure.host: For cygwin, redefine CC with cygwin include directory first
to mimic the behavior of the top-level configury.  Move include directory out
of newlib_cflags.
2005-03-23 17:09:29 +00:00
Jeff Johnston 859c94e8de 2005-03-22 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
        * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
        than errno.
2005-03-22 23:45:43 +00:00
Christopher Faylor 7e3fd32b1c * libc/include/machine/_types.h: Make trivial change to comment to avoid a
spurious warning from gcc.
2005-03-22 18:12:29 +00:00
Jeff Johnston d4eb892018 2005-03-21 Nicholas Wourms <nwourms@netscape.net>
* libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
        since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
        reent.h include.
2005-03-21 22:34:35 +00:00
Jeff Johnston 45030958d3 2005-03-18 Hans-Peter Nilsson <hp@axis.com>
Corinna Vinschen  <corinna@vinschen.de>

        * libc/include/ctype.h: Remove invalid +1 offset from
        ctype macro references to __ctype_ptr.
        (_ctype_): Move declaration outside #ifndef __cplusplus.
2005-03-18 17:18:59 +00:00
Corinna Vinschen 5c9b5ac72d * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
evaluate first parameter only once.
	(siglongjmp): Ditto.
2005-03-18 09:46:30 +00:00
Jeff Johnston dd801fdabd 2005-03-17 Jeff Johnston <jjohnstn@redhat.com>
* configure.in: Add new check to see if compiler supports
        aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
        * configure: Regenerated.
        * Makefile.in: Ditto.
        * newlib.hin: Add _HAVE_ARRAY_ALIASING.
        * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
        aliasing the _ctype_ array to _ctype_b.
        * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
        _ctype_ as deprecated.
2005-03-17 20:11:23 +00:00
Hans-Peter Nilsson 333eabc6f8 * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
-DCOMPACT_CTYPE.
2005-03-17 02:31:57 +00:00
Jeff Johnston df5a5b3592 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
* libc/sys/rtems/include/inttypes.h: New file.
        * libc/sys/rtems/include/stdint.h: Ditto.
2005-03-06 20:51:38 +00:00
Jeff Johnston 9d385fb06d 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
* libc/string/memcmp.c: Fix to avoid pointer signedness warning.
2005-03-06 20:40:05 +00:00
Jeff Johnston 2e7d9bf906 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
* libc/include/machine/_types.h: New file.
        * libc/include/sys/types.h: Do not check for __rtems__
        when including <machine/_types.h>.  Remove some redundant
        declarations now that <machine/_types.h> is included.
        * libc/sys/rtems/machine/_types.h: Removed.  Replaced with
        shared header file.
2005-03-06 20:32:16 +00:00
Jeff Johnston 92a7e06eb8 2005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
* libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
        L qualifier for these long constants.
2005-02-25 22:38:46 +00:00
Jeff Johnston 1139537a25 2005-02-25 Eric Blake <ebb9@byu.net>
* libc/include/time.h (__tzrule_struct): Make offset long, since
        a 16-bit int overflows on a 12-hour offset.
        * libc/sys/linux/include/time.h: Ditto.
        * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
        * libc/time/mktm_r.c: Ditto.
        * libc/time/gettzinfo.c: Ditto.
        * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
        years.  Fix '%z' to use long, not int.
2005-02-25 22:31:21 +00:00
Jeff Johnston 2598f908ca Add (int) cast. 2005-02-24 19:02:35 +00:00
Jeff Johnston f4fd7b4c72 2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
* libm/common/s_fpclassify.c: Use __uint32_t instead of int to
        manipulate float values in integer form.
        * libm/common/sf_round.c: Ditto.
2005-02-24 18:50:06 +00:00
Jeff Johnston f2f8a9a229 2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
* libc/include/sys/types.h [__rtems__]: Include new
        header file machine/_types.h.
        * libc/include/machine/types.h: Ditto.
        * libc/sys/rtems/machine/_types.h: New file.
2005-02-24 18:29:31 +00:00
Joshua Daniel Franklin 45df57e8d8 Fix minor typo 2005-02-24 06:14:44 +00:00
Corinna Vinschen 39fd43d7fa * libc/include/time.h (_timezone): Change to long also for Cygwin.
(timezone): Drop cast from definition.
2005-02-23 22:20:55 +00:00
Jeff Johnston 6b9a74f9e6 2005-02-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/time.h [!CYGWIN](_timezone): Change to long.
        (__tzrule_type, __tzinfo_type): New types.
        (__gettzinfo): New function.
        * libc/sys/linux/include/time.h: Ditto.
        * libc/time/Makefile.am: Add gettzinfo.c.
        * libc/time/Makefile.in: Regenerated.
        * libc/time/local.h: Moved __tzrule_type to time.h.
        * libc/time/mktime.c: Call __gettzinfo to reference
        __tznorth, __tzyear, and __tzrule array.
        * libc/time/mktm_r.c: Ditto.
        * libc/time/strftime.c: Ditto.
        * libc/time/tzset_r.c: Ditto.  Also remove definition
        of __tzrule which is now in gettzinfo.c.  Change _timezone
        references to not cast to time_t.
        * libc/time/gettzinfo.c: New file.
2005-02-23 19:08:58 +00:00
Corinna Vinschen 6015cf9fc3 * libc/include/sys/unistd.h: Define getpeereid for Cygwin. 2005-02-23 17:42:07 +00:00
Corinna Vinschen 5e4c05da0b * libc/include/sys/unistd.h: Define fdatasync also for Cygwin. 2005-02-22 15:31:51 +00:00
Jeff Johnston f1d439fc64 2005-02-16 Eric Blake <ebb9@byu.net>
* libc/time/time.tex: Improve the documentation.
        * libc/time/strftime.c: Improve the documentation.
        (iso_year_adjust): New helper function.
        (strftime): Simplify '%E' and '%O'. Change '%c' to use
        recursion. Fix '%C', '%y', and '%Y' to deal with years with more
        than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
        '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
        Avoid core dumps on valid inputs (maxsize == 0, or
        tim_p->tm_isdst > 1).
2005-02-16 21:15:37 +00:00
Corinna Vinschen 18d3a03bd4 * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
members to uid_t and gid_t according to SUSv3.
	* libc/include/sys/time.h (utimes):  Change second parameter
	to const according to SUSv3.
2005-02-08 20:55:18 +00:00
Jeff Johnston 1159e0fd94 2005-02-07 Antony King <antony.king@st.com>
* libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
        called before _flockfile to prevent lock object use before
        initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
        take a struct _reent * instead of a FILE *.
        * libc/stdio/fclose.c (_fclose_r): Ditto.
        * libc/stdio/feof.c (feof): Ditto.
        * libc/stdio/ferror.c (ferror): Ditto.
        * libc/stdio/fflush.c (fflush): Ditto.
        * libc/stdio/fgetc.c (fgetc): Ditto.
        * libc/stdio/fgets.c (fgets): Ditto.
        * libc/stdio/fileno.c (fileno): Ditto.
        * libc/stdio/fputc.c (fputc): Ditto.
        * libc/stdio/fputs.c (fputs): Ditto.
        * libc/stdio/fread.c (fread): Ditto.
        * libc/stdio/freopen.c (_freopen_r): Ditto.
        * libc/stdio/fseek.c (_fseek_r): Ditto.
        * libc/stdio/ftell.c (_ftell_r): Ditto.
        * libc/stdio/fwrite.c (fwrite): Ditto.
        * libc/stdio/getc.c (getc): Ditto.
        * libc/stdio/getdelim.c (__getdelim): Ditto.
        * libc/stdio/putc.c (putc): Ditto.
        * libc/stdio/setvbuf.c (setvbuf): Ditto.
        * libc/stdio/ungetc.c (_ungetc_r): Ditto.
        * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
        * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
        * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
        * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
        * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
        _reent * instead of a FILE * and so replace incorrect use of
        _REENT with argument.
        * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
        * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
        CHECK_INIT() take a struct _reent * instead of a FILE *.
        * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
        * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
        * libc/stdio/perror.c (perror): Ditto.
        * libc/stdio/printf.c (printf, _printf_r): Ditto.
        * libc/stdio/putchar.c (putchar): Ditto.
        * libc/stdio/puts.c (puts): Ditto.
        * libc/stdio/refill.c (__srefill): Ditto.
        * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
        * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
        * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
        * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
        * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
        * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
        * libc/stdio/wbuf.c (__swbuf): Ditto.
        * libc/stdio/wsetup.c (__swsetup): Ditto.
        * libc/stdlib/mallocr.c (malloc_stats): Ditto.
        * libc/stdlib/mstats.c (_mstats_r): Ditto.
        * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
        * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
        * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
        to _flockfile and _funlockfile; rely on locking in _ftell_r.
        * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
        * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
        initialision of _data field in FILE structure.
        * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.
2005-02-08 01:33:19 +00:00
Jeff Johnston 3d91567088 2005-02-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/findfp.c (__sinit): Protect with new lock.
        (__sinit_lock): New lock.
        (__sinit_lock_acquire, __sinit_lock_release): New functions.
        * libc/stdio/local.h: Add reference to new __sinit locking
        functions.
2005-02-08 01:05:50 +00:00
Jeff Johnston b59cab1e2e 2005-02-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (isfinite, isnormal, isunordered): Change
        input variable names to avoid mixups with nesting macros.
2005-02-07 21:04:22 +00:00
Nick Clifton 7823d9bb14 Import from FSF mainline 2005-02-02 19:00:30 +00:00
Jeff Johnston 1815fdeab4 2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* configure.host: Add support for cris-*-* and crisv32-*-*.
        * libc/include/machine/ieeefp.h: Ditto.
        * libc/include/machine/setjmp.h: Ditto.
        * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
        libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
        libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
        libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
        libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
        libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
        libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
        files.
2005-01-27 23:54:46 +00:00
Jeff Johnston f7d4d41acd 2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* testsuite/newlib.string/memmove1.c: New test.
2005-01-27 20:52:42 +00:00
Jeff Johnston e9743354fe Update previous ChangeLog entry with missing info. 2005-01-27 20:29:49 +00:00
Jeff Johnston 1319dec602 2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* testsuite/include/check.h: Include stdlib.h.
2005-01-27 20:25:54 +00:00
Jeff Johnston b45e65b0da 2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* Makefile.am (stmp-targ-include): Support include header files
        from machine directories.
        * Makefile.in: Regenerate.
2005-01-27 19:13:54 +00:00
Jeff Johnston dbfa92dd94 2005-01-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/string.h: Remove Linux-specific declaration of
        strsignal and add #include <sys/string.h>.
        * libc/include/sys/string.h: New file.
        * libc/include/sys/linux/sys/string.h: New file with strsignal
        declaration deleted above.
2005-01-24 18:46:09 +00:00
Jeff Johnston 6cb0c05514 2005-01-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/time/strftime.c (strftime): Change %r and %x to be compliant
        to POSIX standard for "C" locale.  Allow %E and %O modifiers
        to be ignored as long as they precede valid specifiers according
        to POSIX.
2005-01-20 19:56:27 +00:00
Jeff Johnston 524298079c 2005-01-19 Shaun Jackman <sjackman@gmail.com>
* libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
        environment variable is set.
2005-01-20 17:31:04 +00:00
Jeff Johnston f693170ab3 2005-01-19 Shaun Jackman <sjackman@gmail.com>
* tzset_r.c (_tzname): Add a comma.
2005-01-19 16:44:42 +00:00
Aldy Hernandez 464d01bf6e * libc/machine/powerpc/vfprintf.c: Use _REENT when calling
_VFPRINTF_R.
2005-01-18 17:08:55 +00:00
Jeff Johnston 7cd6e35969 Fix typo. 2005-01-10 16:24:12 +00:00
Jeff Johnston f7a74742e6 2005-01-07 Paul Brook <paul@codesourcery.com>
* configure.in: Add test for .init_array.
        * configure: Regenerate.
        * newlib.hin: Add HAVE_INITFINI_ARRAY.
        * libc/misc/Makefile.am: Add init.c
        * libc/misc/Makefile.in: Regenerate.
        * libc/misc/init.c: New file.
        * libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
        _init/_fini if they exist.
2005-01-07 18:04:39 +00:00
Jeff Johnston 8fa6cb9a5d 2005-01-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/strtod.c (_strtod_r): Add NaN support.
        * (strtof): Ditto.
        * libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
        * Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
        functions for use by strtod and strtof.
        * Makefile.in: Regenerated.
2005-01-06 23:31:56 +00:00
Jeff Johnston 034a3909ae 2005-01-06 Hans-Peter Nilsson <hp@axis.com>
* libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
        bit-test in combination with NULL test.
2005-01-06 20:10:56 +00:00
Jeff Johnston 5cc3f59253 Add missing ChangeLog entry for 1.13.0 release.
2004-12-17  Jeff Johnston  <jjohnstn@redhat.com>

        * NEWS: Update with 1.13.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 1.13.0.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
        * libm/libm.texinfo: Ditto.
        * libc/sys/linux/shared.ld: Add VERS_1.13.
2005-01-06 20:05:37 +00:00
Jeff Johnston 9918ea2da9 2005-01-06 Hans-Peter Nilsson <hp@axis.com>
* README: Fix typo of LGPL.  Change "license" to "copyright".
2005-01-06 19:38:30 +00:00
Jeff Johnston a9c42bde0b 2004-12-17 Jeff Johnston <jjohnstn@redhat.com>
* NEWS: Update with 1.13.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 1.13.0.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * iconvdata/aclocal.m4: Ditto.
        * iconvdata/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
        * libm/libm.texinfo: Ditto.
        * libc/sys/linux/shared.ld: Add VERS_1.13.
2004-12-17 22:48:16 +00:00
Jeff Johnston d8ae996c41 2004-12-17 Christian Groessler <chris@groessler.org>
* libc/machine/z8k/memcmp.S: New file.
        * libc/machine/z8k/memcpy.S: Ditto.
        * libc/machine/z8k/memmove.S: Ditto.
        * libc/machine/z8k/memset.S: Ditto.
        * libc/machine/z8k/Makefile.am: Add new files.
        * libc/machine/z8k/Makefile.in: Regenerated.
        * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
        part.  Implement Z8002 stdcall version.
2004-12-17 20:17:13 +00:00
Jeff Johnston 82673116e1 2004-12-13 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/fread.c (fread): For unbuffered I/O, attempt
        a low-level read if we don't get the full amount of bytes so
        EOF or error flags will be set.
2004-12-13 19:42:16 +00:00
Jeff Johnston 0082d4cf57 2004-12-09 Alex Mogilnikov <alx@intellectronika.ru>
* libc/time/tzset_r (_tzset_r): Properly skip over
        '/' when it is detected.
2004-12-09 21:36:48 +00:00
Jeff Johnston 3b54b74f3a 2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
* libc/time/tzset_r (_tzset_r): Fix loop.
2004-12-08 18:12:28 +00:00
Jeff Johnston 4b30e15471 2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
* libc/time/mktm_r (_mktm_r): Fix overflow calculation for
        m_day.
        (__tzcalc_limits): Fix reference to month array to be zero-based.
2004-12-08 17:54:38 +00:00
Jeff Johnston 465eab2eb4 2004-12-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
        and usleep.
2004-12-07 18:54:28 +00:00
Jeff Johnston a2b1a849d1 2004-12-03 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
        libgcc dependencies.
        (libm_la_LDFLAGS): Ditto.
        * Makefile.in: Regenerated.
2004-12-03 23:46:28 +00:00
Jeff Johnston c80a17311c 2004-12-03 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
        our link to use readlink so as to preserve any relative link created
        by install-toollibLIBRARIES.
        * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
2004-12-03 21:20:15 +00:00
Jeff Johnston 70e9da4249 2004-12-02 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
        time_t before including sys/stat.h, which uses it.
        * libc/sys/linux/sys/stat.h: Include <sys/types.h> and
        <linux/time.h> just prior to definition of __KERNEL__ so as to
        allow building on Debian Linux where otherwise, mktime would
        be redefined.
2004-12-02 19:30:56 +00:00
Jeff Johnston a330d85a45 2004-11-26 Paul Brook <paul@codesourcery.com>
* libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
2004-11-26 16:42:10 +00:00
Jeff Johnston 9aa189be83 2004-11-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdlib.h (putenv, _putenv_r): Change to remove
        const for value string parameter to match Single Unix and glibc.
        * libc/stdlib/putenv.c: Ditto.
        * libc/stdlib/putenv_r.c: Ditto.
2004-11-24 22:34:47 +00:00
Jeff Johnston c41a1cb7d8 2004-11-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdlib.h (putenv, _putenv_r): Change to remove
        const for value string parameter.
        * libc/stdlib/putenv.c: Ditto.
        * libc/stdlib/putenv_r.c: Ditto.
2004-11-24 22:34:15 +00:00
Jeff Johnston 16ac96ee69 2004-11-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/Makefile.am: Fix missing vfscanf.
        * libc/stdio/Makefile.in: Regenerated.
2004-11-24 22:31:05 +00:00
Jeff Johnston 3bf091476a 2004-11-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h: Add new iprintf and iscanf variants.  Also
        do some reordering.
        * libc/machine/powerpc/vfscanf.c: Remove __sccl function.
        * libc/stdio/Makefile.am: Add support for new iprintf and iscanf
        family functions.
        * libc/stdio/Makefile.in: Regenerated.
        * libc/stdio/fiprintf.c: Remove doc to siprintf.c.
        * libc/stdio/iprintf.c: Ditto.
        * libc/stdio/local.h (__svfiscanf_r): New prototype.
        * libc/stdio/siprintf.c: Add docs for various iprintf family functions.
        * libc/stdio/sniprintf.c: Move docs to siprintf.c.
        * libc/stdio/stdio.tex: Add new functions.
        * libc/stdio/vfscanf.c: Split out __sccl function to separate
        file and add special name defines so this file can be used
        to build vfiscanf.o.
        * libc/stdio/asiprintf.c: New file.
        * libc/stdio/fiscanf.c: Ditto.
        * libc/stdio/iscanf.c: Ditto.
        * libc/stdio/sccl.c: Ditto.
        * libc/stdio/siscanf.c: Ditto.
        * libc/stdio/vasiprintf.c: Ditto.
        * libc/stdio/viprintf.c: Ditto.
        * libc/stdio/viscanf.c: Ditto.
        * libc/stdio/vsiprintf.c: Ditto.
        * libc/stdio/vsiscanf.c: Ditto.
        * libc/stdio/vsniprintf.c: Ditto.
2004-11-24 00:45:41 +00:00
Jeff Johnston 0f0fcb042a 2004-11-19 Shaun Jackman <sjackman@gmail.com>
* libc/include/stdio.h: Add sniprintf.
        * libc/stdio/Makefile.am: Add sniprintf.c.
        * libc/stdio/Makefile.in: Regenerated.
        * libc/stdio/sniprintf.c: New file.
        * libc/stdio/stdio.tex: Add sniprintf.
2004-11-20 01:42:35 +00:00
Christopher Faylor 1f8f7e2d54 * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin. Clear EOF
flag if successful.
2004-11-17 17:02:10 +00:00
Christopher Faylor 334ba104fe tweak wording 2004-10-28 15:55:22 +00:00
Christopher Faylor b08d08c7c4 * libc/include/sys/signal.h: Move <signal.h> include to bottom of file so that
all relevant definitions have been handled for use in the include.
2004-10-28 15:06:47 +00:00
Jeff Johnston 65b1964f1a 2004-10-26 Jason Tishler <jason@tishler.net>
* libc/stdio/fread.c (fread): Fix return value for unbuffered
        fread.
2004-10-26 18:21:09 +00:00
Jeff Johnston 6382b7e379 Fix date typo. 2004-10-25 17:56:05 +00:00
Jeff Johnston 06b5ef6e7d 2001-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/include/machine/setjmp.h: Add AVR support.
        * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
2004-10-25 17:53:19 +00:00
Jeff Johnston 73131c2d20 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/signal.h: If <signal.h> didn't include
        this header file, include <signal.h> to account for
        applications that take advantage that the two header
        files are the same in glibc.
2004-10-08 17:40:57 +00:00
Jeff Johnston 1185687a7b 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
* configure.host: Add support for crx.
        * libc/include/machine/ieeefp.h: Ditto.
        * libc/include/machine/setjmp.h: Ditto.
        * libc/machine/crx/Makefile.am: New file.
        * libc/machine/crx/configure.in: Ditto.
        * libc/machine/crx/setjmp.S: Ditto.
        * libc/machine/crx/getenv.c: Ditto.
        * libc/machine/crx/aclocal.m4: Generate.
        * libc/machine/crx/configure: Ditto.
        * libc/machine/crx/Makefile.in: Ditto.
        * libc/machine/crx/sys/asm.h: New file.
        * libc/machine/crx/sys/libh.h: Ditto.
        * libc/machine/crx/sys/syscall.h: Ditto.
2004-10-05 19:44:24 +00:00
Jeff Johnston 423152ed0a 2004-10-05 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am (stmp-targ-include): Support sys header files
        from machine directories.
        * Makefile.in: Regenerated.
2004-10-05 19:34:25 +00:00
Jeff Johnston 3ea9de7644 2004-10-04 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
        count skipped zero characters as part of the nread count for %n.
        * libc/machine/powerpc/vfscanf.c: Ditto.
2004-10-04 17:51:50 +00:00