summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 2005-09-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-09-021-0/+1
| | | | * libc/include/stdio.h: Add prototype for viprintf.
* 2005-08-31 Paul Brook <paul@codesourcery.com>Jeff Johnston2005-08-317-10/+22
| | | | | | | | | | | | | | | | * 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.
* * libc/include/string.h: Revert previous change.Christopher Faylor2005-08-261-4/+0
|
* * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C.Christopher Faylor2005-08-251-0/+4
|
* 2005-08-22 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-08-221-3/+12
| | | | | | | * 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-10 DJ Delorie <dj@redhat.com>Jeff Johnston2005-08-109-0/+2760
| | | | | | | | | | | | | | * 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.
* * libc/machine/cris/libcdtor.c (defaultors): Mark artificially asHans-Peter Nilsson2005-07-261-3/+6
| | | | used.
* 2005-07-19 Paul Brook <paul@codesourcery.com>Jeff Johnston2005-07-191-0/+7
| | | | * libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
* 2005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>Jeff Johnston2005-07-081-0/+1
| | | | * libc/string/wcsspn.c (wcsspn): Add missing increment of q.
* *** empty log message ***Jeff Johnston2005-07-071-5/+3
|
* * configure.host: Added entry for ms1*.Aldy Hernandez2005-07-068-0/+2704
| | | | | | | | | | | * 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-06-16 Christopher Faylor <cgf@timesys.com>Jeff Johnston2005-06-162-14/+28
| | | | | | | | | * 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-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-06-031-1/+7
| | | | | * libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove instead of memcpy.
* 2005-05-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-05-125-27/+32
| | | | | | | | | | * 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-04-28 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-04-281-1/+2
| | | | | * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko when checking for multiple flags.
* 2005-04-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-04-085-1/+79
| | | | | | | | | | | * 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-07 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-04-071-0/+1
| | | | * libc/sys/linux/inode.c (lchown): New function.
* 2005-04-07 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-04-072-3/+1
| | | | | | * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no ELIX level is defined. * libc/unix/Makefile.in: Regenerated.
* 2005-04-05 Dave Korn <dave.korn@artimi.com>Jeff Johnston2005-04-051-2/+19
| | | | | * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing something that looks like a "NaN", put back the characters processed.
* * libc/stdlib/strtod.c (_strtod_r): Never change s00.Corinna Vinschen2005-04-011-3/+3
|
* 2005-03-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-03-221-7/+8
| | | | | | * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on. * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather than errno.
* * libc/include/machine/_types.h: Make trivial change to comment to avoid aChristopher Faylor2005-03-221-1/+1
| | | | spurious warning from gcc.
* 2005-03-21 Nicholas Wourms <nwourms@netscape.net>Jeff Johnston2005-03-211-2/+1
| | | | | | * 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-18 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2005-03-181-12/+12
| | | | | | | | 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.
* * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension toCorinna Vinschen2005-03-181-0/+23
| | | | | evaluate first parameter only once. (siglongjmp): Ditto.
* 2005-03-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-03-172-20/+42
| | | | | | | | | | | | * 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-06 Ralf Corsepious <ralf.corsepius@rtems.org>Jeff Johnston2005-03-062-0/+570
| | | | | * libc/sys/rtems/include/inttypes.h: New file. * libc/sys/rtems/include/stdint.h: Ditto.
* 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>Jeff Johnston2005-03-061-2/+2
| | | | * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
* 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>Jeff Johnston2005-03-062-22/+2
| | | | | | | | | * 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-02-25 Eric Blake <ebb9@byu.net>Jeff Johnston2005-02-256-22/+31
| | | | | | | | | | | * 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-24 Ralf Corsepious <ralf.corsepius@rtems.org>Jeff Johnston2005-02-243-18/+156
| | | | | | | * 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.
* Fix minor typoJoshua Daniel Franklin2005-02-241-3/+3
|
* * libc/include/time.h (_timezone): Change to long also for Cygwin.Corinna Vinschen2005-02-231-5/+1
| | | | (timezone): Drop cast from definition.
* 2005-02-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-02-2310-82/+128
| | | | | | | | | | | | | | | | | | * 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.
* * libc/include/sys/unistd.h: Define getpeereid for Cygwin.Corinna Vinschen2005-02-231-0/+3
|
* * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.Corinna Vinschen2005-02-221-2/+0
|
* 2005-02-16 Eric Blake <ebb9@byu.net>Jeff Johnston2005-02-162-173/+424
| | | | | | | | | | | | * 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).
* * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gidCorinna Vinschen2005-02-082-3/+3
| | | | | | 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-07 Antony King <antony.king@st.com>Jeff Johnston2005-02-0849-87/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-02-082-0/+26
| | | | | | | | * 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-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-02-071-9/+9
| | | | | * libc/include/math.h (isfinite, isnormal, isunordered): Change input variable names to avoid mixups with nesting macros.
* Import from FSF mainlineNick Clifton2005-02-021-0/+19
|
* 2005-01-27 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2005-01-2716-0/+4232
| | | | | | | | | | | | | | * 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-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-01-243-2/+12
| | | | | | | | * 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-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-01-201-17/+96
| | | | | | | * 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-19 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-01-201-1/+1
| | | | | * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ environment variable is set.
* 2005-01-19 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-01-191-1/+1
| | | | * tzset_r.c (_tzname): Add a comma.
* * libc/machine/powerpc/vfprintf.c: Use _REENT when callingAldy Hernandez2005-01-181-2/+1
| | | | _VFPRINTF_R.
* 2005-01-07 Paul Brook <paul@codesourcery.com>Jeff Johnston2005-01-074-4/+71
| | | | | | | | | | | * 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-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-01-062-8/+62
| | | | | | | | | * 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.