summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* * libc/include/sys/features.h (__GNUC_PREREQ): Define. UseCorinna Vinschen2012-10-169-19/+33
| | | | | | | throughout in place of explicit GNUC version checks. * libc/include/_ansi.h (_NOINLINE): Define. (_NOINLINE_STATIC): Define. * libc/stdio/vfprintf.c (__sbprintf): Define _NOINLINE_STATIC.
* * libc/posix/wordfree.c (wordfree): The wrong words are freedCorinna Vinschen2012-10-093-32/+64
| | | | | | | | when WRDE_DOOFFS is in use. Restructure the code so that the memory needed to be freed is instead kept in an internal linked list... * libc/posix/wordexp2.h: ...as defined here... * libc/posix/wordexp.c (wordexp): ...and build this internal linked list here, avoiding wasteful strdup calls in the process.
* * libc/posix/wordexp.c (wordexp): Return WRDE_NOSPACE on resourceCorinna Vinschen2012-10-091-27/+67
| | | | allocation failure. Cleanup leftover resources when failing.
* * libc/posix/wordexp.c (wordexp): Handle expanded words longerCorinna Vinschen2012-10-091-7/+20
| | | | than 500 bytes.
* * libc/posix/wordexp.c (wordexp): Don't leak file streams.Corinna Vinschen2012-10-091-2/+2
|
* * libc/machine/rl78/setjmp.S: Convert from CPP macros to GASDJ Delorie2012-10-031-34/+49
| | | | | | | | macros, to avoid dependence on the line separation character. * rl78/crt0.S (_interrupt_vector_table): Convert from CPP macros to GAS macros, to avoid dependence on the line separation character.
* * libc/sys/sysnecv850/sbrk.c (_sbrk): Change heap_start to be anDJ Delorie2012-10-021-2/+2
| | | | | | | | array of undefined size, to avoid problems when compiled with -msda=4. * v850/sbrk.c (_sbrk): Change heap_start to be an array of undefined size, to avoid problems when compiled with -msda=4.
* 2012-09-26 Ian Bolton <ian.bolton@arm.com>Jeff Johnston2012-09-2612-3/+6279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Jim MacArthur <jim.macarthur@arm.com> Marcus Shawcroft <marcus.shawcroft@arm.com> Nigel Stephens <nigel.stephens@arm.com> Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> Richard Earnshaw <rearnsha@arm.com> Sofiane Naci <sofiane.naci@arm.com> Tejas Belagod <tejas.belagod@arm.com> Yufeng Zhang <yufeng.zhang@arm.com> * configure.host: Add AArch64. * libc/include/machine/ieeefp.h: Add AArch64. * libc/include/machine/setjmp.h: Add AArch64. * libc/include/machine/time.h: Add AArch64. * libc/include/sys/config.h: Add AArch64. * libc/machine/aarch64/Makefile.am: New file. * libc/machine/aarch64/Makefile.in: Generated. * libc/machine/aarch64/aclocal.m4: Generated. * libc/machine/aarch64/configure: Generated. * libc/machine/aarch64/configure.in: New file. * libc/machine/aarch64/setjmp.S: New file. * libc/machine/configure.in: Add AArch64. * libc/machine/configure: Re-generated. * libm/machine/aarch64/Makefile.am: New file. * libm/machine/aarch64/Makefile.in: Generated. * libm/machine/aarch64/aclocal.m4: Generated. * libm/machine/aarch64/configure: Generated. * libm/machine/aarch64/configure.in: New file. * libm/machine/aarch64/s_ceil.c: New file. * libm/machine/aarch64/s_floor.c: New file. * libm/machine/aarch64/s_fma.c: New file. * libm/machine/aarch64/s_fmax.c: New file. * libm/machine/aarch64/s_fmin.c: New file. * libm/machine/aarch64/s_llrint.c: New file. * libm/machine/aarch64/s_llround.c: New file. * libm/machine/aarch64/s_lrint.c: New file. * libm/machine/aarch64/s_lround.c: New file. * libm/machine/aarch64/s_nearbyint.c: New file. * libm/machine/aarch64/s_rint.c: New file. * libm/machine/aarch64/s_round.c: New file. * libm/machine/aarch64/s_trunc.c: New file. * libm/machine/aarch64/sf_ceil.c: New file. * libm/machine/aarch64/sf_floor.c: New file. * libm/machine/aarch64/sf_fma.c: New file. * libm/machine/aarch64/sf_fmax.c: New file. * libm/machine/aarch64/sf_fmin.c: New file. * libm/machine/aarch64/sf_llrint.c: New file. * libm/machine/aarch64/sf_llround.c: New file. * libm/machine/aarch64/sf_lrint.c: New file. * libm/machine/aarch64/sf_lround.c: New file. * libm/machine/aarch64/sf_nearbyint.c: New file. * libm/machine/aarch64/sf_rint.c: New file. * libm/machine/aarch64/sf_round.c: New file. * libm/machine/aarch64/sf_trunc.c: New file. * libm/machine/configure.in: Add AArch64. * libm/machine/configure: Re-generated.
* bi-endian support for moxie.Anthony Green2012-09-131-0/+4
|
* * libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems whichChristopher Faylor2012-08-231-0/+2
| | | | do not provide it.
* * libc/stdio/flags.c (__sflags): Rewrite recognition of extended mode flags toChristopher Faylor2012-08-211-16/+27
| | | | | just loop over more allowed flags. Support glibc 'e' flag on systems defining _GLIBC_EXTENSION. Support C11 'x' flag.
* * libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.Corinna Vinschen2012-08-104-5/+6
| | | | | | | * libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid compiler warning. * libc/stdio/fgets.c (_fgets_r): Ditto. * libc/time/strftime.c (strftime): Ditto.
* * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state toCorinna Vinschen2012-08-101-2/+2
| | | | allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.
* * libc/posix/engine.c(dissect): Guard diagnostic pragma for rightCorinna Vinschen2012-08-082-0/+6
| | | | | | | versions of GCC only. * libc/string/strcasestr.c: Ditto. Fix typo in previous ChangeLog entry.
* Throughout, run newlib with -Wall -Werror option and fix bugs andCorinna Vinschen2012-08-0833-60/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiler warnings found this way. * libc/stdio/freopen.c (_freopen_r): Fix bug setting _flags. * libc/include/stdio.h (_rename): Define when building newlib. * libc/include/sys/signal.h (_kill): Ditto. * libc/include/sys/stat.h (_mkdir): Ditto. * libc/include/sys/time.h (_gettimeofday): Ditto. * libc/include/sys/times.h (_times): Ditto. * libc/include/sys/wait.h (_wait): Ditto. * libc/locale/lmessages.c (empty): Don't define for Cygwin. * libc/locale/lmonetary.c (cnv): Ditto. * libc/locale/nl_langinfo.c (nl_langinfo): Ditto for variable s. * libc/posix/collate.c: Throughout cast to avoid compiler warning. * libc/posix/engine.c (matcher): Initialize dp to avoid compiler warning. * libc/posix/glob.c: Disable on Cygwin. Explain why. * libc/posix/regcomp.c: Fix "uninitialized" compiler warnings. (dissect): Deliberately silence gcc compiler warning. Add comment to explain why. * libc/posix/wordexp.c (wordexp): Remove num_bytes variable since result is never used. * libc/posix/popen.c (popen): Ditto for variable last. * libc/reent/mkdirr.c: Include sys/stat.h. * libc/reent/renamer.c: Include stdio.h. * libc/search/hash.c: Throughout use underscored variants of the stat function family. (init_hash): Add missing definition for the __USE_INTERNAL_STAT64 case. * libc/search/hash_bigkey.c (__big_insert): Add parenthesis to avoid compiler warning. * libc/search/hash_page.c (overflow_page): Initalize freep to NULL to avoid compiler warning. * libc/stdio/asiprintf.c (_asiprintf_r): Cast unsigned char * to char * to avoid compiler warning. (asiprintf): Ditto. * libc/stdio/asprintf.c (_asprintf_r): Ditto. (asprintf): Ditto. * libc/stdio/vasiprintf.c (_vasiprintf_r): Ditto. * libc/stdio/vasprintf.c (_vasprintf_r): Ditto. * libc/stdio/mktemp.c (_gettemp): Cast to unsigned char in call to isdigit to avoid compiler warning. * libc/stdio/vfprintf.c (_VFPRINTF_R): Initialize variables used for grouping to avoid compiler warning. Only define and set nseps and nrepeats if they are really used. * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Ditto. Only define state if it is really used. * libc/stdio/vfscanf.c (u_char): Revert to be defined as unsigned char. (__SVFSCANF_R): Cast fmt in call to __mbtowc. * libc/stdlib/mbtowc_r.c (JIS_state_table): Disable when building Cygwin. (JIS_action_table): Ditto. * libc/stdlib/wctomb_r.c (__utf8_wctomb): Add parenthesis to avoid compiler warning. * libc/string/strcasestr.c: Deliberately silence gcc compiler warning. Add comment to explain why. * libc/time/strptime.c (strptime): Cast to unsigned char in calls to isspace to avoid compiler warning. * libm/math/e_atan2.c (__ieee754_atan2): Add parenthesis to avoid compiler warning. * libm/math/e_exp.c (__ieee754_exp): Initialize k to 0 to avoid compiler warning. Drop setting it to 0 later. * libm/math/ef_exp.c (__ieee754_expf): Ditto. * libm/math/e_pow.c (__ieee754_pow): Add braces to avoid compiler warning. * libm/math/ef_pow.c (__ieee754_powf): Ditto. * libm/math/er_lgamma.c (__ieee754_lgamma_r): Initialize nadj to 0 to avoid compiler warning. * libm/math/erf_lgamma.c (__ieee754_lgammaf_r): Ditto. * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Ditto for variable z. * libm/common/sf_round.c (roundf): Remove signbit variable since result is never used.
* * libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compilerCorinna Vinschen2012-08-071-1/+1
| | | | warning.
* * libc/sys/sysnecv850/crt0.S (_start): Use v850e-specificKevin Buettner2012-07-301-1/+1
| | | | start up code for v850e2 and v850e2v3 too.
* readdir: drop bogus codeEric Blake2012-07-201-6/+0
| | | | | * libc/posix/readdir.c (readdir): Drop bogus attempt to catch bogus pointers.
* 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2012-07-181-3/+3
| | | | | * libc/sys/rtems/machine/_types.h (_ssize_t): Use signed int for __v850__, __851__.
* 2012-07-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2012-07-171-1/+2
| | | | * libc/search/hcreate_r.c (hdestroy_r): #ifdef 0 unused vars ie, idx.
* 2012-07-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2012-07-161-0/+3
| | | | * libc/posix/telldir.c: Conditionally build dd_hash_lock.
* 2012-07-13 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2012-07-131-2/+3
| | | | | * libc/sys/rtems/machine/_types.h (_ssize_t): Add __ARM_EABI__, __v850__, __851__.
* * libc/stdio/fileno.c (fileno): Check if f is a valid stream. If not,Corinna Vinschen2012-07-091-1/+8
| | | | return -1 and set errno to EBADF per POSIX.
* Allow building of Cygwin using Mingw64 SDK headers:Corinna Vinschen2012-07-063-5/+5
| | | | | | | | * libc/include/sys/time.h: Drop _WINSOCK_H guard. Just use _TIMEVAL_DEFINED instead. * libc/include/sys/types.h: Check for _WINSOCKAPI_ along with _WINSOCK_H. * libc/include/sys/unistd.h: Ditto.
* * libc/include/sys/types.h: Don't use the same preprocessor guard for time_t,Christopher Faylor2012-06-261-1/+4
| | | | | timespec, and itimerspec. Add a separate guard specifically for timespec and always unconditionally define itimerspec.
* * libc/stdio/findfp.c (__sinit): Avoid infinite recursion onCorinna Vinschen2012-06-051-0/+5
| | | | _REENT_SMALL targets. Add comment to explain.
* * libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthreadCorinna Vinschen2012-05-311-1/+1
| | | | version.
* * libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather thanCorinna Vinschen2012-05-301-3/+7
| | | | _mbsrtowcs_r and restrict number of wide chars to n - 1.
* * libc/stdio/local.h (_newlib_flockfile_start): New macro toCorinna Vinschen2012-05-3045-161/+285
| | | | | | | | | | | | | | | secure stream related critical section against thread cancellation. (_newlib_flockfile_exit): Ditto. (_newlib_sfp_lock_end): Ditto. (_newlib_sfp_lock_start): Ditto for the list of streams. (_newlib_sfp_lock_exit): Ditto. (_newlib_sfp_lock_end): Ditto. Use aforementioned macros in place of _flockfile/_funlockfile and __sfp_lock_acquire/__sfp_lock_release throughout the code. * libc/stdio/fclose.c: Explicitely disable and re-enable thread cancellation. Explain why. * libc/stdio/freopen.c: Ditto. * libc/stdio64/freopen64.c: Ditto.
* * libc/machine/cr16/asm.h: Added some missing instructionsCorinna Vinschen2012-05-211-307/+166
| | | | and removed few unsupported instructions of cr16 target.
* * libc/include/string.h (memrchr): Declare.Corinna Vinschen2012-05-104-2/+147
| | | | | | | * libc/string/Makefile.am (ELIX_4_SOURCES): Add memrchr.c. (CHEWOUT_FILES): Add memrchr.def. * libc/string/Makefile.in: Regenerate. * libc/string/memrchr.c: New file.
* * libc/sys/rtems/machine/_types.h: Add Microblaze.Corinna Vinschen2012-05-101-1/+1
|
* * libc/sys/rtems/crt0.c: Add stubs for access(), ftruncate(),Corinna Vinschen2012-05-091-1/+8
| | | | | _getpid_r(), geteuid(), getgid, _getgid_r, getpid(), getppid(), and _getpid_r().
* * libc/locale/locale.c (__mb_cur_max): On Cygwin, align default valueCorinna Vinschen2012-03-291-0/+4
| | | | with default UTF-8 charset.
* * libc/stdio/findfp.c (__sinit): Set __sdidinit last.Corinna Vinschen2012-03-261-1/+2
|
* 2012-03-09 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-03-097-7/+7
| | | | | | | | | | | * libc/include/machine/setjmp-dj.h: Modify license to include modification in clause as permitted by DJ Delorie. * libc/machine/arm/access.c: Ditto. * libc/machine/i386/setjmp.S: Ditto. * libc/sys/h8300hms/sys/file.h: Ditto. * libc/sys/linux/machine/i386/setjmp.S: Ditto. * libc/sys/sysmec/access.c: Ditto. * libc/sys/sysnecv850/access.c: Ditto.
* 2012-03-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-03-021-1/+1
| | | | | * libc/posix/readdir_r.c: Fix return code when end of directory is reached.
* 2012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com>Jeff Johnston2012-02-2119-4/+12746
| | | | | | | | | | | | | Alan Lehotsky <apl@alum.mit.edu> Joern Rennecke <joern.rennecke@embecosm.com> * configure.host: Add Epiphany support. * libc/include/machine/ieeefp.h: Likewise. * libc/include/machine/setjmp.h: Likewise. * libc/machine/configure.in, libc/sys/configure.in: Likewise. * libc/machine/configure, libc/sys/configure: Regenerate. * libc/machine/epiphany, libc/sys/epiphany: New directories. * NEWS: Mention addition of Epiphany.
* * libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.Eric Blake2012-02-091-10/+13
|
* * libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide aCorinna Vinschen2012-02-091-0/+2
| | | | definition of time_h.
* * libc/machine/arm/strcmp.S: New File.Corinna Vinschen2012-02-094-453/+785
| | | | | | | * libc/machine/arm/strcmp.c: Deleted. * libc/machine/arm/Makefile.am: Replaces strcmp.c with strcmp.S * libc/machine/arm/Makefile.in: Regenerated. * testsuite/newlib.string/strcmp-1.c: New file.
* * libc/include/inttypes.h: Redefine pointer type macros.Corinna Vinschen2012-02-071-8/+8
|
* * libc/stdio/sprintf.c: Document 'm' conversion specifier.Yaakov Selkowitz2012-01-134-3/+35
| | | | | | | * libc/stdio/swprintf.c: Ditto. * libc/stdio/vfprintf.c (_VFPRINTF_R) [_GLIBC_EXTENSION]: Handle 'm' conversion specifier. * libc/stdio/vfwprintf.c (_VFWPRINTF_R) [_GLIBC_EXTENSION]: Ditto.
* * libc/include/tgmath.h: New header.Yaakov Selkowitz2012-01-121-0/+185
|
* * libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name):Yaakov Selkowitz2012-01-091-0/+3
| | | | Declare.
* * libc/include/complex.h: Fix "/*" within comment warning.Yaakov Selkowitz2012-01-091-1/+1
|
* * libc/include/process.h: Remove Cygwin-only header.Corinna Vinschen2012-01-091-37/+0
|
* 2012-01-03 Viachaslau Kulakouski <Viachaslau.Kulakouski@oracle.com>Jeff Johnston2012-01-031-1/+1
| | | | * libc/stdlib/__atexit.c: Refer to __atexit_lock instead of lock.
* * fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double free inCorinna Vinschen2011-12-201-1/+3
| | | | fclose. Enhance comment.
* 2011-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2011-12-19259-15501/+19360
| | | | | | | | | | | | | | | | | | * NEWS: Update with 1.20.0 info. * README: Ditto. * acinclude.m4: Change version number to 1.20.0. * aclocal.m4: Regenerated. * configure: Ditto. * Makefile.in: Regenerated. * 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.20