summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* 2011-12-13 Richard Earnshaw <rearnsha@arm.com>Jeff Johnston2011-12-131-8/+36
| | | | | | | | | Thomas Klein <th.r.klein@web.de> * libc/sys/arm/crt0.S: Manually set the target architecture when compiling for Thumb1 on EABI targets. Don't use SWI on M-profile cores. Avoid v6-only Thumb-1 MOV instruction.
* * libc/time/strftime.c (get_era_info): Fix off-by-one error in monthCorinna Vinschen2011-12-121-3/+3
| | | | calculation.
* * libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.Corinna Vinschen2011-12-062-2/+2
| | | | * libc/iconv/Makefile.in: Regenerate.
* [libgloss]DJ Delorie2011-11-2910-2/+6348
| | | | | | | | | | | | | * configure.in: Add rl78. * configure: Regenerate. * rl78: New directory [newlib] * configure.host: Add rl78. * libc/include/machine/ieeefp.h: Add rl78 support. * libc/include/machine/setjmp.h: Add rl78 support. * libc/machine/configure.in: Add rl78. * libc/machine/rl78: New directory.
* * libc/iconv/ccs/Makefile.am: Add missing backslash.Corinna Vinschen2011-11-082-8/+19
| | | | * libc/iconv/ccs/Makefile.in: Regenerate.
* * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,Nick Clifton2011-10-187-3/+382
| | | | | | | | | | | | | | | | memchr.S. * libc/machine/arm/arm_asm.h: Add ifdef to allow it to be included in .S files. * libc/machine/arm/memchr-stub.c: New file - just selects what to compile. * libc/machine/arm/memchr.S: New file - ARMv6t2/v7 version. * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add strlen-armv7.S. * libc/machine/arm/strlen-armv7.S: New file. * libc/machine/arm/strlen.c: Add ifdef optimised code so it isn't for v7 or 6t2. * libc/machine/arm/Makefile.in: Regenerate.
* * libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.Corinna Vinschen2011-10-112-13/+34
| | | | | * libc/time/mktime.c: (mktime) Fix tm_yday, tm_mday updating when timezone causes roll over.
* oops - fix typo in previous delta.Nick Clifton2011-10-111-11/+390
|
* oops - omitted from previous delta.Nick Clifton2011-10-111-248/+31
|
* * libc/sys/arm/crt0.S: Synchronise with libgloss version.Nick Clifton2011-10-101-0/+62
| | | | * libc/sys/arm/arm.h: Imported from libgloss.
* * libc/machine/arm/memcpy.S: Fix unaligned access copying.Nick Clifton2011-10-041-4/+10
|
* * libc/machine/arm/memcpy.S: New file. Contains a hand codedNick Clifton2011-09-294-3/+472
| | | | | | | | memcpy function optimized for the cortex-a15. * libc/machine/arm/memcpy-stub.c: New file. * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memcpy-stub.c, memcpy.S. * libc/machine/arm/Makefile.in: Regenerate.
* * libc/time/mktm_r.c (_mktm_r): Fix previous fix.Corinna Vinschen2011-08-261-2/+1
|
* * libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.Corinna Vinschen2011-08-241-1/+1
|
* 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-08-232-2/+2
| | | | | * libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index". * libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".
* 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-08-238-12/+14
| | | | | | | * libc/misc/ffs.c, libc/string/bcmp.c, libc/string/bcopy.c, libc/string/bzero.c, libc/string/index.c, libc/string/rindex.c, libc/string/strcasecmp.c, libc/string/strncasecmp.c: Let synopsis reference "#include <strings.h>".