summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 2005-12-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-12-1870-682/+686
| | | | | | | | | | | | | | | | | * 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 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-12-1810-4/+396
| | | | | | | | | | | | | * 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 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-12-18164-419/+238
| | | | | * aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6. * Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
* 2006-12-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-12-181-1/+1
| | | | | | * 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 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-12-181-1/+1
| | | | * libc/include/machine/setjmp.h: Replace vector with __vector.
* 2006-12-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-12-142-2/+51
| | | | | | | | | 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-13 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-12-131-13/+13
| | | | | * libc/machine/spu/setjmp.S: Fix to handle registers past 115 correctly.
* 2006-12-13 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-12-131-0/+2
| | | | * newlib/include/alloca.h: add undef alloca to work with xlc
* 2006-12-12 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-12-131-1/+1
| | | | | * libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for cell spu
* 2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-12-041-0/+5
| | | | * libc/machine/spu/strncpy.c: Add padding.
* 2006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-12-012-2/+2
| | | | | * libc/machine/spu/strchr.c: Fix mask for misaligned string. * libc/machine/spu/strrchr.c: Ditto.
* 2006-11-30 Lev Bishop <lev.bishop@gmail.com>Jeff Johnston2006-11-301-2/+2
| | | | | * libc/include/math.h: Allow C99 functions/macros to be defined for C++ even when __STRICT_ANSI__.
* 2006-11-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-11-301-1/+7
| | | | | * libc/stdio/makebuf.c (__smakebuf): If dealing with an asprintf-family buffer, make the default initial size 64.
* 2006-11-29 Eric Blake <ebb9@byu.net>Jeff Johnston2006-11-291-5/+16
| | | | | * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in asprintf, as well as quadratic realloc behavior.
* 2006-11-29 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-11-294-5/+5
| | | | | | | * 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-22 Luca Barbato <lu_zero@gentoo.org>Jeff Johnston2006-11-229-30/+29
| | | | | | | | | | | | * 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-15 Till Straumann <strauman@slac.stanford.edu>Jeff Johnston2006-11-151-0/+1
| | | | * libc/time/tzset_r.c (_tzset_r): Initialize local variable.
* 2006-11-14 Eric Blake <ebb9@byu.net>Jeff Johnston2006-11-141-4/+10
| | | | | * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag. (chclass): ' is a flag. j, t, and z are modifiers.
* 2006-11-08 Jie Zhang <jzhang918@gmail.com>Jeff Johnston2006-11-0811-1/+5630
| | | | | | | | | | | | | | | * 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.
* * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.Corinna Vinschen2006-11-071-1/+6
| | | | | | (_PC_FILESIZEBITS): Add definition. (_PC_2_SYMLINKS): Ditto. (_PC_SYMLINK_MAX): Ditto.
* 2006-10-27 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-10-2719-47/+1724
| | | | | | | | | | | | | | | | | | | | | | | | * 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-25 Vladimir Prus <vladimir@codesourcery.com>Jeff Johnston2006-10-251-1/+2
| | | | | * libc/include/math.h: (exception): Add a comment telling fixincludes that we handle C vs. C++ issue.
* 2006-10-11 Yang Tse <yangsita@gmail.com>Jeff Johnston2006-10-111-0/+2
| | | | * setjmp.h: Use __extension__ keyword for gcc's braced-groups.
* * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.Corinna Vinschen2006-10-111-0/+2
|
* 2006-09-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-09-2634-58/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-22 Paul Brook <paul@codesourcery.com>Jeff Johnston2006-09-221-2/+3
| | | | * libc/include/sys/reent.h: Define and use __reent_assert.
* 2006-09-13 Joel Sherrill <joel@oarcorp.com>Jeff Johnston2006-09-133-64/+155
| | | | | | | | | | | * 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 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2006-09-131-1/+1
| | | | | | * 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-12 Paul Brook <paul@codesourcery.com>Jeff Johnston2006-09-121-1/+2
| | | | * libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
* 2006-09-07 Masaki Muranaka <monaka@monami-software.com>Jeff Johnston2006-09-072-10/+36
| | | | | | | * 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-06 Eric Blake <ebb9@byu.net>Jeff Johnston2006-09-061-5/+102
| | | | | * libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j', 't', and 'z' modifiers.
* 2006-08-29 Paul Brook <paul@codesourcery.com>Jeff Johnston2006-08-291-0/+4
| | | | * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
* 2006-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>Jeff Johnston2006-08-281-0/+5
| | | | | | * 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-23 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-08-233-1/+9
| | | | | | * libc/machine/configure.in: Add configuration for SPU. * libc/machine/configure: Regenerated. * libc/machine/spu/memcpy.c: Include string.h.
* 2006-08-22 Eric Blake <ebb9@byu.net>Jeff Johnston2006-08-221-2/+11
| | | | | | * 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.
* * sys/types.h: Correct syntax error caused by missing '\' on #ifdef line.Christopher Faylor2006-08-191-1/+1
|
* 2006-08-17 Brian Ford <Brian.Ford@FlightSafety.com>Jeff Johnston2006-08-171-5/+5
| | | | | * libc/time/gmtime.c: Correct man page; clock is not a local time and no conversion occurs.
* 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-08-1612-6/+5645
| | | | | | | | | | | | | | | | * 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-03 J"orn Rennecke <joern.rennecke@st.com>Jeff Johnston2006-08-031-0/+8
| | | | | * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case properly.
* 2006-08-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-08-013-8/+14
| | | | | | | | | * 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 Thiemo Seufer <ths@mips.com>Jeff Johnston2006-08-011-0/+4
| | | | | | | 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-07-31 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-07-31159-76/+5674
| | | | | | * 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 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-07-311-1/+0
| | | | | * libc/sys/linux/mmap.c: Remove include of sys/mman.h to avoid conflict with newer glibc's revision of mremap.
* 2006-07-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-07-052-4/+46
| | | | | | | | * 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-06-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-06-229-635/+1816
| | | | | | | | | | | | | | | | * 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-15 Corinna Vinschen <corinna@vinschen.de>Jeff Johnston2006-06-154-4/+25
| | | | | | | * 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-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-06-1426-92/+428
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-13 Sandra Loosemore <sandra@codesourcery.com>Jeff Johnston2006-06-131-4/+50
| | | | | * /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename): Make them do something useful in the ARM_RDI_MONITOR case.
* 2006-06-07 Fred Fish <fnf@specifix.com>Jeff Johnston2006-06-071-4/+0
| | | | | * libc/search/hash_bigkey.c (MIN,MAX): Remove defines that are already supplied by <sys/param.h>.
* 2006-06-05 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2006-06-062-0/+44
| | | | | | | | * 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.