summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 2008-02-11 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-02-121-0/+180
| | | | | | | | | | * libc/machine/spu/straddr.h: New file, supplies _straddr. * libc/machine/spu/strcat.c: Use _straddr and _strcpy. * libc/machine/spu/strcpy.c: Use _strcpy. * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU str[n]cpy and str[n]cat. * libc/machine/spu/strncat.c: Use _straddr and _strcpy. * libc/machine/spu/strncpy.c: Use _strcpy.
* 2008-02-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-02-121-16/+15
| | | | | | | * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare for user specifying --disable-newlib-io-long-long on configure. Call _fflush_r instead of fflush. For _mbtowc_r, pass the reentrant pointer passed in rather than _REENT.
* 2008-02-12 Peter Rosin <peda@lysator.liu.se>Jeff Johnston2008-02-121-7/+2
| | | | | | * libc/stdlib/getopt.c (getopt_internal): Handle optional arguments better for long options and short options not appearing as the first option in a sequence.
* 2008-02-11 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-02-115-142/+103
| | | | | | | | | | * libc/machine/spu/straddr.h: New file, supplies _straddr. * libc/machine/spu/strcat.c: Use _straddr and _strcpy. * libc/machine/spu/strcpy.c: Use _strcpy. * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU str[n]cpy and str[n]cat. * libc/machine/spu/strncat.c: Use _straddr and _strcpy. * libc/machine/spu/strncpy.c: Use _strcpy.
* 2008-02-11 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-02-111-10/+12
| | | | | * libc/machine/spu/strlen.c: Remove the len variable and unneeded calculation of its value.
* * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.Hans-Peter Nilsson2008-01-251-3/+3
| | | | Make ISO C.
* * libc/sys/sh/syscalls.c (_isatty): New.DJ Delorie2008-01-221-0/+7
|
* * libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.Eric Blake2008-01-152-26/+41
| | | | * libc/string/Makefile: Regenerate.
* * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define asCorinna Vinschen2008-01-151-4/+16
| | | | | | | | pthread_sigmask or sigprocmask depending on _POSIX_THREADS. (sigsetjmp): Use __SIGMASK_FUNC. (siglongjmp): Ditto. (_setjmp): Define as macro. (_longjmp): Ditto.
* Make strstr and strcasestr O(n), not O(n^2); add memmem.Eric Blake2008-01-127-15/+647
| | | | | | | | | | | | | | | * libc/string/str-two-way.h: New file. * libc/string/memmem.c (memmem): New file. * libc/include/string.h (memmem): Declare for all platforms. * libc/string/strstr.c (strstr): Provide O(n) implementation when not optimizing for space. * libc/string/strcasestr.c (strcasestr): Likewise. * libc/string/Makefile.am (ELIX_SOURCES): Rename to... (ELIX_2_SOURCES): ...this. (ELIX_4_SOURCES): New category, for memmem. (lib_a_SOURCES, libstring_la_SOURCES): Build new file. (CHEWOUT_FILES): Build documentation for memmem. * libc/string/strings.tex: Include new docs.
* 2008-01-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-082-60/+60
| | | | | | * libc/machine/m68k/memcpy.S: Remove % from register references as this is already handled by m68kasm.h. * libc/machine/m68k/memset.S: Ditto.
* 2008-01-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-074-46/+51
| | | | | | | | | * libc/machine/m68k/m68kasm.h: New file. * libc/machine/m68k/setjmp.S: Remove common definitions and place in m68kasm.h. Include "m68kasm.h". * libc/machine/m68k/memcpy.S: Include "m68kasm.h" and use SYM() macro when referencing function name. * libc/machine/m68k/memset.S: Ditto.
* 2008-01-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-0324-93/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make isatty syscall handling consistent with other newlib syscalls. * libc/include/_syslist.h: Add _isatty. * libc/include/reent.h: Add _isatty_r. * libc/include/sys/unistd.h: Add _isatty. * libc/posix/Makefile.am: Add new _isatty.c file. * libc/posix/Makefile.in: Regenerated. * libc/posix/_isatty.c: New file. * libc/posix/isatty.c: Changed to call _isatty(). * libc/reent/Makefile.am: Add new isattyr.c file. * libc/reent/Makefile.in: Regenerated. * libc/reent/isattyr.c: New file. * libc/stdio/freopen.c: Changed to call _isatty_r(). * libc/stdio/makebuf.c: Ditto. * libc/sys/a29khif/_isatty.S: Change isatty to _isatty. * libc/sys/arc/isatty.c: Ditto. * libc/sys/arm/syscalls.c: Ditto. * libc/sys/d10v/syscalls.c: Ditto. * libc/sys/h8300hms/syscalls.c: Ditto. * libc/sys/h8500hms/syscalls.c: Ditto. * libc/sys/linux/Makefile.am: Add new isatty.c file. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/isatty.c: New file. * libc/syscalls/Makefile.am: Add new sysisatty.c file. * libc/syscalls/Makefile.in: Regenerated. * libc/syscalls/sysisatty.c: New file.
* 2008-01-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-01-0318-76/+0
| | | | | | | | | | | | | | | | | | | | | | * libc/syscalls/sysclose.c: Always call reentrant version of the underlying syscall since one is guaranteed to exist in libc/reent. * libc/syscalls/sysexecve.c: Ditto. * libc/syscalls/sysfcntl.c: Ditto. * libc/syscalls/sysfork.c: Ditto. * libc/syscalls/sysfstat.c: Ditto. * libc/syscalls/sysgetpid.c: Ditto. * libc/syscalls/sysgettod.c: Ditto. * libc/syscalls/syskill.c: Ditto. * libc/syscalls/syslink.c: Ditto. * libc/syscalls/syslseek.c: Ditto. * libc/syscalls/sysopen.c: Ditto. * libc/syscalls/sysread.c: Ditto. * libc/syscalls/syssbrk.c: Ditto. * libc/syscalls/sysstat.c: Ditto. * libc/syscalls/systimes.c: Ditto. * libc/syscalls/sysunlink.c: Ditto. * libc/syscalls/syswait.c: Ditto. * libc/syscalls/syswrite.c: Ditto.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-19165-103438/+155192
| | | | | | | | | | | | | | | | | * NEWS: Update with 1.16.0 info. * README: Ditto. * acinclude.m4: Change version number to 1.16.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.16.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-1919-34/+781
| | | | | | | | | | | | | | | | | | | | | | | * libc/string/strcasestr.c: Remove id macro. * libc/sys/linux/linuxthreads/attr.c: Fix up sched_priority field reference to be __sched_priority. * libc/sys/linux/linuxthreads/joinrace.c: Ditto. * libc/sys/linux/linuxthreads/manager.c: Ditto. * libc/sys/linux/stdlib/collate.c: Remove id macro. * libc/sys/linux/stdlib/collcmp.c: Ditto. * libc/sys/linux/stdlib/engine.c: Ditto. * libc/sys/linux/stdlib/fnmatch.c: Ditto. * libc/sys/linux/stdlib/glob.c: Ditto. * libc/sys/linux/stdlib/reallocf.c: Ditto. * libc/sys/linux/stdlib/regcomp.c: Ditto. * libc/sys/linux/stdlib/regerror.c: Ditto. * libc/sys/linux/stdlib/regexec.c: Ditto. * libc/sys/linux/stdlib/regfree.c: Ditto. * libc/sys/linux/sys/cdefs.h: Replace with latest version. * libc/sys/linux/include/argp.h: Ditto. * libc/sys/linux/sys/libc-lock.h: New file. * libc/sys/linux/sys/stdint.h: Ditto. * libc/sys/linux/include/sched.h: New file.
* 2007-12-19 Dave Korn <dave.korn@artimi.com>Jeff Johnston2007-12-193-8/+57
| | | | | | | | | | | | | | | | | Jeff Johnston <jjohnstn@redhhat.com> * libc/include/_ansi.h: Add _LONG_LONG definition. * libc/include/math.h (llrint, llrintf, rintl, lrintl, llrintl): Add prototypes. * libc/machine/i386/machine/fastmath.h: Add support for new i386 fast math versions of rint, lrint, and llrint family functions. * libm/machine/i386/Makefile.am: Add new files. * libm/machine/i386/Makefile.in: Regenerated. * libm/machine/i386/f_llrint.c, libm/machine/i386/f_lrint.c, libm/machine/i386/f_rint.c, libm/machine/i386/f_llrintf.c, libm/machine/i386/f_lrintf.c, libm/machine/i386/f_rintf.c, libm/machine/i386/f_llrintl.c, libm/machine/i386/f_lrintl.c, libm/machine/i386/f_rintl.c: New files with fast math implementations.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-191-1/+4
| | | | | * libc/include/sys/features.h: Add checks for C90 compilers using -ansi.
* 2007-11-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-193-182/+198
| | | | | | | | | * libc/include/sys/_default_fcntl.h: New header file that is the default version of sys/fcntl.h. * libc/include/sys/fcntl.h: Changed to simply include sys/_default_fcntl.h. * libc/sys/arm/sys/fcntl.h: New file that includes sys/_default_fcntl.h and defines O_BINARY.
* * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.Corinna Vinschen2007-12-196-6/+137
| | | | | | | | | | * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and wcpncpy.c. (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def. * libc/string/Makefile.in: Regenerate. * libc/string/wcpcpy.c: New file. * libc/string/wcpncpy.c: New file. * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call toCorinna Vinschen2007-12-191-2/+2
| | | | _wcsrtombs_r.
* 2007-11-19 Nick Clifton <nickc@redhat.com>Jeff Johnston2007-11-1910-98/+365
| | | | | | | | | | | | | | * libc/machine/mn10300/Makefile.am (CCASFLAGS): Add -Wa,--gdwarf-2. * libc/machine/mn10300/Makefile.in: Regenerate. * libc/machine/mn10300/memchar.S: Remove redundant labels. Add .debug_frame section. * libc/machine/mn10300/memcmp.S: Likewise. * libc/machine/mn10300/memcpy.S: Likewise. * libc/machine/mn10300/memset.S: Likewise. * libc/machine/mn10300/strchr.S: Likewise. * libc/machine/mn10300/strcmp.S: Likewise. * libc/machine/mn10300/strcpy.S: Likewise. * libc/machine/mn10300/strlen.S: Likewise.
* * libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.Corinna Vinschen2007-11-081-4/+1
|
* 2007-11-07 Dave Brolley <brolley@redhat.com>Dave Brolley2007-11-0710-14/+5445
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/machine/configure: Regenerated to pick up mep-elf changes. * Contribute mep-elf from Red Hat 2006-10-27 DJ Delorie <dj@redhat.com> * libc/include/machine/setjmp.h: Add MeP support. 2003-04-17 DJ Delorie <dj@redhat.com> * configure.host (mep-*-*): Support "long long" type. 2001-06-06 DJ Delorie <dj@redhat.com> * libc/include/machine/ieeefp.h (mep): Support little endian too. 2001-05-14 DJ Delorie <dj@redhat.com> * configure.host: Add mep's machine_dir. * libc/include/setjmp.h: Add mep support. * libc/machine/mep: New. * libc/machine/mep/setjmp.S: New, support mep's setjmp/longjmp. 2001-05-04 DJ Delorie <dj@redhat.com> * configure.host: Add mep. * libc/include/machine/ieeefp.h: Ditto.
* * libc/signal/signal.c (_raise_r): Don't attempt to initialize theDJ Delorie2007-10-311-4/+5
| | | | | signal table, just use a default, in case initialization cause recursion.
* 2007-10-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-10-231-13/+22
| | | | | * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating size if output buffer is NULL.
* Fix typo.Jeff Johnston2007-10-171-1/+1
|
* 2007-10-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-10-171-0/+84
| | | | * libc/machine/i386/machine/fastmath.h: New file.
* * libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:Eric Blake2007-10-131-2/+4
| | | | | Correctly nest else within conditionals. Reported by Artur Lipowski.
* * libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with the STT_COMMON type.Nick Clifton2007-10-091-3/+4
|
* 2007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-211-0/+26
| | | | * libc/machine/spu/sys/uio.h: New file for readv and writev use.
* 2007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-213-0/+43
| | | | | | | | * libc/include/sched.h: New file, just include sys/sched.h. * libc/machine/spu/sys/sched.h: New file, has just sched_yield prototype. * libc/machine/spu/sys/utime.h: New file, has utime prototype and struct utimbuf definition.
* 2007-09-21 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-211-0/+57
| | | | | * libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU specific struct and typedef.
* 2007-09-18 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-183-23/+38
| | | | | | | | | | | * libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to typedef dev_t, gid_t, and uid_t. * libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead. Change to lower case for all __foo_t_defined names. * libc/machine/spu/machine/_types.h: Add SPU specific __dev_t, __uid_t, and __gid_t making them all four bytes. Change to lower case for all __foo_t_defined names.
* 2007-09-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-184-40/+91
| | | | | | | | * libc/reent/renamer.c: New file. * libc/reent/Makefile.am: Add new file. * libc/reent/Makefile.in: Regenerated. * libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c and add check for rename syscall.
* Obey POSIX on printf("%.s", (char*)NULL).Eric Blake2007-09-171-2/+9
| | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account for %s on NULL. Skip NULL check when optimizing for size.
* 2007-09-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-071-0/+13
| | | | | * libc/include/sys/_types.h: Protect all types with flag checks to allow definition in machine/_types.h.
* 2007-09-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-071-0/+3
| | | | | * libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t definitions in light of the previous change.
* 2007-09-07 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-09-075-126/+190
| | | | | | | | | | | | * libc/include/machine/_default_types.h: New file, contains what was previously in libc/include/machine/_types.h. * libc/include/machine/_types.h: Now only includes machine/_default_types.h. * libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t. * libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here, with conditional declarations. * libc/machine/spu/machine/_types.h: New file, add SPU specific typedefs for _fpos_t and _fpos64_t.
* 2007-09-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-071-7/+6
| | | | | | * libc/include/math.h (_M_LOG2E): Replace with.. (_M_LOG2_E): New macro. (log2, log2f, M_LOG2_E): Use _M_LOG2_E.
* * libc/reent/getreent.c: Allow for case where __getreent isBrian Dessent2007-09-071-0/+4
| | | | defined as a macro.
* Fix typo in ChangeLog and math.h.Jeff Johnston2007-09-061-2/+2
|
* 2007-09-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-09-061-3/+7
| | | | | | | * libc/include/math.h (_M_LOG2E): New log2 of e macro. (log2): Use _M_LOG2E instead of M_LOG2E. (log2f): Ditto. (M_LOG2E): Define to be _M_LOG2E.
* 2007-08-31 Antony King <antony.king@st.com>Jeff Johnston2007-08-313-13/+17
| | | | | | | | * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith bits and redefine associated dword0 macro (rvalue issue). * libc/stdio/vfieeefp.h: Ditto. * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS to prevent setting dword1 which is an rvalue only.
* 2007-08-28 Hans Kester <hans.kester@ellips.nl>Jeff Johnston2007-08-2813-37/+5822
| | | | | | | | | | | | | | | | * configure.host: Added support for x86_64. * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64. * libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64. * libc/machine/x86_64/aclocal.m4: Generated. * libc/machine/x86_64/configure.in: New. * libc/machine/x86_64/configure: Generated. * libc/machine/x86_64/Makefile.am: New. * libc/machine/x86_64/Makefile.in: Generated. * libc/machine/x86_64/setjmp.S: New. * libc/machine/x86_64/memcpy.S: New. * libc/machine/x86_64/memset.S: New. * libc/machine/configure.in: Added support for x86_64. * libc/machine/configure: Regenerated.
* * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)Hans-Peter Nilsson2007-08-231-0/+11
| | | | | (EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP): Define.
* 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>Jeff Johnston2007-08-2335-712/+1045
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce the memory consumption of variable argument functions for SPU (cell): * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources to assembler sources. * libc/machine/spu/Makefile.in: Regenerated. * libc/machine/spu/stdio.c: Add __check_init function wrapping CHECK_INIT macro to use from assembler routines. * libc/machine/spu/c99ppe.h: Add definitions for assembler code. * libc/machine/spu/fiprintf.S: New file. * libc/machine/spu/fiscanf.S: Ditto. * libc/machine/spu/fprintf.S: Ditto. * libc/machine/spu/fscanf.S: Ditto. * libc/machine/spu/iprintf.S: Ditto. * libc/machine/spu/iscanf.S: Ditto. * libc/machine/spu/printf.S: Ditto. * libc/machine/spu/scanf.S: Ditto. * libc/machine/spu/siprintf.S: Ditto. * libc/machine/spu/siscanf.S: Ditto. * libc/machine/spu/sniprintf.S: Ditto. * libc/machine/spu/snprintf.S: Ditto. * libc/machine/spu/sprintf.S: Ditto. * libc/machine/spu/sscanf.S: Ditto. * libc/machine/spu/stack_reg_va.S: Ditto. * libc/machine/spu/syscall.def: Ditto. (for maintenance) * libc/machine/spu/mk_syscalls: Ditto. (for maintenance) * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S) * libc/machine/spu/fiscanf.c: Ditto. * libc/machine/spu/fprintf.c: Ditto. * libc/machine/spu/fscanf.c: Ditto. * libc/machine/spu/iprintf.c: Ditto. * libc/machine/spu/iscanf.c: Ditto. * libc/machine/spu/printf.c: Ditto. * libc/machine/spu/scanf.c: Ditto. * libc/machine/spu/siprintf.c: Ditto. * libc/machine/spu/siscanf.c: Ditto. * libc/machine/spu/sniprintf.c: Ditto. * libc/machine/spu/snprintf.c: Ditto. * libc/machine/spu/sprintf.c: Ditto. * libc/machine/spu/sscanf.c: Ditto.
* 2007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2007-08-031-0/+39
| | | | * libc/include/tar.h: New.
* 2007-08-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-08-033-17/+17
| | | | | | | | * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string. * libc/sys/linux/intl/Makefile.in: Regenerated. * libc/sys/linux/intl/stpcpy.c: Renamed to... * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
* Implement fmemopen and open_memstream.Eric Blake2007-08-027-10/+765
| | | | | | | | | | | | | | * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file. * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream): New file. * libc/stdio/fopencookie.c (fcwriter): Minor optimization. * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x functions together. (fmemopen, open_memstream): Declare new functions. * libc/stdio/stdio.tex: Document them. * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add fmemopen and open_memstream. * libc/stdio/Makefile.in: Regenerate.