summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 2005-01-06 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2005-01-061-1/+1
| | | | | * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR bit-test in combination with NULL test.
* 2004-12-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-12-17127-276/+332
| | | | | | | | | | | | | | | | | | | * NEWS: Update with 1.13.0 info. * README: Ditto. * acinclude.m4: Change version number to 1.13.0. * aclocal.m4: Regenerated. * configure: Ditto. * doc/aclocal.m4: Ditto. * doc/configure: Ditto. * iconvdata/aclocal.m4: Ditto. * iconvdata/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.13.
* 2004-12-17 Christian Groessler <chris@groessler.org>Jeff Johnston2004-12-177-15/+680
| | | | | | | | | | | * libc/machine/z8k/memcmp.S: New file. * libc/machine/z8k/memcpy.S: Ditto. * libc/machine/z8k/memmove.S: Ditto. * libc/machine/z8k/memset.S: Ditto. * libc/machine/z8k/Makefile.am: Add new files. * libc/machine/z8k/Makefile.in: Regenerated. * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002 part. Implement Z8002 stdcall version.
* 2004-12-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-12-131-9/+13
| | | | | | * libc/stdio/fread.c (fread): For unbuffered I/O, attempt a low-level read if we don't get the full amount of bytes so EOF or error flags will be set.
* 2004-12-09 Alex Mogilnikov <alx@intellectronika.ru>Jeff Johnston2004-12-091-1/+1
| | | | | * libc/time/tzset_r (_tzset_r): Properly skip over '/' when it is detected.
* 2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>Jeff Johnston2004-12-081-3/+6
| | | | * libc/time/tzset_r (_tzset_r): Fix loop.
* 2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>Jeff Johnston2004-12-081-3/+5
| | | | | | * libc/time/mktm_r (_mktm_r): Fix overflow calculation for m_day. (__tzcalc_limits): Fix reference to month array to be zero-based.
* 2004-12-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-12-071-6/+3
| | | | | * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate, and usleep.
* 2004-12-03 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2004-12-032-6/+12
| | | | | | | * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix our link to use readlink so as to preserve any relative link created by install-toollibLIBRARIES. * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
* 2004-12-02 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2004-12-022-2/+4
| | | | | | | | | * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines time_t before including sys/stat.h, which uses it. * libc/sys/linux/sys/stat.h: Include <sys/types.h> and <linux/time.h> just prior to definition of __KERNEL__ so as to allow building on Debian Linux where otherwise, mktime would be redefined.
* 2004-11-26 Paul Brook <paul@codesourcery.com>Jeff Johnston2004-11-261-0/+9
| | | | * libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
* 2004-11-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-11-243-4/+4
| | | | | | | * libc/include/stdlib.h (putenv, _putenv_r): Change to remove const for value string parameter. * libc/stdlib/putenv.c: Ditto. * libc/stdlib/putenv_r.c: Ditto.
* 2004-11-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-11-242-2/+2
| | | | | * libc/stdio/Makefile.am: Fix missing vfscanf. * libc/stdio/Makefile.in: Regenerated.
* 2004-11-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-11-2422-420/+1416
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/stdio.h: Add new iprintf and iscanf variants. Also do some reordering. * libc/machine/powerpc/vfscanf.c: Remove __sccl function. * libc/stdio/Makefile.am: Add support for new iprintf and iscanf family functions. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/fiprintf.c: Remove doc to siprintf.c. * libc/stdio/iprintf.c: Ditto. * libc/stdio/local.h (__svfiscanf_r): New prototype. * libc/stdio/siprintf.c: Add docs for various iprintf family functions. * libc/stdio/sniprintf.c: Move docs to siprintf.c. * libc/stdio/stdio.tex: Add new functions. * libc/stdio/vfscanf.c: Split out __sccl function to separate file and add special name defines so this file can be used to build vfiscanf.o. * libc/stdio/asiprintf.c: New file. * libc/stdio/fiscanf.c: Ditto. * libc/stdio/iscanf.c: Ditto. * libc/stdio/sccl.c: Ditto. * libc/stdio/siscanf.c: Ditto. * libc/stdio/vasiprintf.c: Ditto. * libc/stdio/viprintf.c: Ditto. * libc/stdio/viscanf.c: Ditto. * libc/stdio/vsiprintf.c: Ditto. * libc/stdio/vsiscanf.c: Ditto. * libc/stdio/vsniprintf.c: Ditto.
* 2004-11-19 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2004-11-205-11/+160
| | | | | | | | * libc/include/stdio.h: Add sniprintf. * libc/stdio/Makefile.am: Add sniprintf.c. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/sniprintf.c: New file. * libc/stdio/stdio.tex: Add sniprintf.
* * libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin. Clear EOFChristopher Faylor2004-11-171-0/+8
| | | | flag if successful.
* * libc/include/sys/signal.h: Move <signal.h> include to bottom of file so thatChristopher Faylor2004-10-281-7/+6
| | | | all relevant definitions have been handled for use in the include.
* 2004-10-26 Jason Tishler <jason@tishler.net>Jeff Johnston2004-10-261-10/+6
| | | | | * libc/stdio/fread.c (fread): Fix return value for unbuffered fread.
* 2001-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Jeff Johnston2004-10-252-0/+12
| | | | | * libc/include/machine/setjmp.h: Add AVR support. * libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
* 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-10-081-0/+6
| | | | | | | * libc/include/sys/signal.h: If <signal.h> didn't include this header file, include <signal.h> to account for applications that take advantage that the two header files are the same in glibc.
* 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>Jeff Johnston2004-10-0512-0/+3213
| | | | | | | | | | | | | | | | * configure.host: Add support for crx. * libc/include/machine/ieeefp.h: Ditto. * libc/include/machine/setjmp.h: Ditto. * libc/machine/crx/Makefile.am: New file. * libc/machine/crx/configure.in: Ditto. * libc/machine/crx/setjmp.S: Ditto. * libc/machine/crx/getenv.c: Ditto. * libc/machine/crx/aclocal.m4: Generate. * libc/machine/crx/configure: Ditto. * libc/machine/crx/Makefile.in: Ditto. * libc/machine/crx/sys/asm.h: New file. * libc/machine/crx/sys/libh.h: Ditto. * libc/machine/crx/sys/syscall.h: Ditto.
* 2004-10-04 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-10-042-2/+6
| | | | | | * libc/stdio/vfscanf.c (__svfscanf_r): For int conversions, count skipped zero characters as part of the nread count for %n. * libc/machine/powerpc/vfscanf.c: Ditto.
* 2004-09-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-09-241-0/+1
| | | | * libc/stdio/local.h: Include <stdlib.h>.
* * libc/stdio/fread.c (fread): Include <malloc.h>.Corinna Vinschen2004-09-241-0/+1
|
* 2004-09-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-09-221-18/+75
| | | | | | * libc/stdio/fread.c (fread): For non-space-optimized case, add special code for unbuffered files to use user buffer and only require one low-level system read.
* * libc/machine/xscale/setjmp.S: New file, copied fromIan Lance Taylor2004-09-213-3/+142
| | | | | | libc/machine/arm/setjmp.S. * libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S. * libc/machine/xscale/Makefile.in: Regenerate.
* 2004-09-16 Antony King <antony.king@st.com>Jeff Johnston2004-09-168-23/+33
| | | | | | | | | | | | | | | | | | | * libc/include/sys/lock.h: Replaced empty {} with (0) to conform with locking API. * libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add check for__SSTR in _flags and if set, skip lock request. (_funlockfile)[!SINGLE_THREAD]: Ditto. * libc/stdio/local.h (CHECK_INIT): Added check that _REENT is not NULL. * libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing initialisation of _file to -1 in local FILE. * libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto. * libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto. * libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto. * libc/stdio/vsscanf.c (_vsscanf_r): Ditto. * libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to _flags in local FILE to prevent locking. * libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
* 2004-09-16 Antony King <antony.king@st.com>Jeff Johnston2004-09-162-16/+6
| | | | | | | * libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT and only walk the reentrancy parameter. (_fwalk_reent): Ditto. * libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
* 2004-09-16 Antony King <antony.king@st.com>Jeff Johnston2004-09-161-1/+1
| | | | | * libc/stdio64/freopen64.c: Remove casting of fp lock to _LOCK_RECURSIVE_T.
* 2004-09-16 Antony King <antony.king@st.com>Jeff Johnston2004-09-161-7/+19
| | | | | * libc/time/tzlock.c: Add default stubs that use generic locking code.
* 2004-09-16 Antony King <antony.king@st.com>Jeff Johnston2004-09-166-35/+79
| | | | | | | | | * libc/ctype/ctype.tex: Added missing documentation. * libc/stdio/stdio.tex Ditto. * libc/stdlib/stdlib.tex Ditto. * libc/string/strings.tex Ditto. * libc/time/time.tex: Ditto. * libc/stdio/setbuffer.c: Removed setlinebuf documentation.
* 2004-09-15 Corinna Vinschen <vinschen@redhat.com>Jeff Johnston2004-09-152-1/+4
| | | | | | | * libc/reent/impure.c (reent_data): Define as alias to impure_data when building for Cygwin. * libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to _global_impure_ptr.
* 2004-09-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-09-1516-3434/+4
| | | | | | | | | | | | | | | | | | | | | | | * configure.host: Reverting 2004-09-14 change as fix has occurred on Cygwin side. * configure.in: Ditto. * libc/configure.in: Ditto. * libc/sys/configure.in: Ditto. * configure: Ditto. * libc/configure: Ditto. * libc/sys/configure: Ditto. * libc/include/sys/reent.h: Ditto. * libc/stdlib/__atexit.c: Ditto. * libc/stdlib/__call_atexit.c: Ditto. * libc/stdlib/cxa_atexit.c: Ditto. * libc/stdlib/cxa_finalize.c: Ditto. * libc/sys/cygwin/Makefile.am: Removed again. * libc/sys/cygwin/Makefile.in: Ditto. * libc/sys/cygwin/aclocal.m4: Ditto. * libc/sys/cygwin/configure: Ditto. * libc/sys/cygwin/configure.in: Ditto. * libc/sys/cygwin/dummy.c: Ditto. * libc/sys/cygwin/sys/reent.h: Ditto.