summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* * libc/include/math.h: The C++ standard adds the single-precisionGeoffrey Keating2001-10-231-0/+8
| | | | versions of the elementary functions.
* * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations throughout.Christopher Faylor2001-10-224-24/+3
| | | | | | * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__. * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__. * system.c (_system_r): Ditto.
* Add __rtems__ as system defining fchdir().Corinna Vinschen2001-10-171-1/+1
|
* * libc/include/sys/unistd.h: Add prototype for fchdir() whenCorinna Vinschen2001-10-171-0/+3
| | | | __CYGWIN__ is defined.
* 2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>Jeff Johnston2001-10-019-22/+306
| | | | | | | | | | | | | | | | | | | * libc/include/stdlib.h: add declarations for _strtoull_r, _strtoll_r, strtoull, and strtoll. * libc/stdio/local.h: remove declarations of __strtoull_r and __strtoll_r. * libc/stdio/vfscanf.c(__svfscanf_r): call _strtoull_r instead of __strtoull_r. Ditto _strtoll_r vs. __strtoll_r. * libc/stdlib/Makefile.am: add new files to .c list and .def list * libc/stdlib/Makefile.in: regenerate * libc/stdlib/strtoll_r.c: rename __strtoll_r as _strtoll_r * libc/stdlib/strtoull_r.c: rename __strtoull_r as _strtoull_r * libc/stdlib/strtoull.c: new file * libc/stdlib/strtoll.c: new file
* oops omitted in previous deltaNick Clifton2001-09-181-14/+26
|
* * libc/include/process.h: Add getpid() declaration.Christopher Faylor2001-09-171-0/+1
|
* 2001-09-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-09-136-3/+307
| | | | | | | | | | | | * libc/stdlib/Makefile.am: Add support to build strtoll_r.c and strtoull_r.c. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/strtoll_r.c: New file. * libc/stdlib/strtoull_r.c: New file. * libc/stdio/local.h: Add prototypes for long long string conversion routines. * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support tied to %L integer conversion specifier.
* Thu Sep 13 08:49:49 2001 Jason Tishler <jason@tishler.net>Jeff Johnston2001-09-131-2/+3
| | | | | * strftime.c (strftime): Fix "%W" implementation to properly handle Mondays too.
* 2001-09-07 Jeff Law <law@redhat.com>Jeff Johnston2001-09-071-3/+3
| | | | | * libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of __fini with "mov.l" instead of "mov.w".
* * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.hCorinna Vinschen2001-09-051-0/+9
| | | | and getopt.h.
* 2001-09-04 Jason Merrill <jason_merrill@redhat.com>Jeff Johnston2001-09-041-0/+18
| | | | * libc/sys/h8300hms/crt0.S: Support ELF initialization.
* * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version numberCorinna Vinschen2001-09-031-1/+4
| | | | | field. (__DIRENT_VERSION): New define.
* * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.Corinna Vinschen2001-09-031-1/+4
|
* 2001-08-29 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2001-08-2917-3/+61
| | | | | | | | | | | | | | | | | * libc/include/sys/unistd.h: Prototype chroot() for RTEMS. 2001-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S, libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c, libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S, libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S, libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S, libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S, libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c, libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S: Add conditional compilation to avoid HW FPU instructions when compiled for soft-float.
* 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-294-6/+23
| | | | | | | | | | | | | * libc/include/sys/reent.h: Add include of <sys/_types.h>. No longer include time.h. Add struct __tm to use for _localtime_buf in the reentrant structure. Add a _NULL definition to use in initializing the reentrant struct. * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in <sys/_types.h>. * libc/include/sys/unistd.h: Include <sys/_types.h>. * libc/time/lcltime.c (localtime): Cast the reentrant struct _localtime_buf to be struct tm *.
* * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.Joern Rennecke2001-08-292-0/+11
| | | | | | | * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors / __ctors_end. * libc/sys/h8300hms/syscalls.c: Include errno.h. (_unlink): New stub function.
* * libc/include/sys/errno.h: Add a cautionary comment.Christopher Faylor2001-08-261-0/+2
|
* 2001-08-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-211-1/+1
| | | | | * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional for SIZE_SZ so that alignment ends up a minimum of 8.
* * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro arguments.Christopher Faylor2001-08-142-4/+12
| | | | * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under Cygwin.
* 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-131-0/+14
| | | | | | * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New macro constants for mallopt options. (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
* 2001-08-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-021-1/+6
| | | | | * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided, otherwise default.
* 2001-07-12 Aldy Hernandez <aldyh@redhat.com>Aldy Hernandez2001-07-131-2/+0
| | | | * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
* Handle ARMs with big endian IEEE words but little endian IEEE bytesNick Clifton2001-06-282-3/+5
|
* 2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>Jeff Johnston2001-06-111-0/+2
| | | | * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
* 2001-06-11 Egor Duda <deo@logos-m.ru>Jeff Johnston2001-06-111-16/+62
| | | | | | | | | * libc/ctype/ctype_.c: When compiled with gcc on platforms with signed char, make _ctype_[-128] ... _ctype[-1] refer to initialized memory region. Platform can define COMPACT_CTYPE to avoid allocation of the additional 128 bytes of data. Add pointer to _ctype_ array. Always initialize all _ctype_ array elements.
* * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencingJonathan Larmour2001-06-111-2/+4
| | | | NULL pointer.
* Handle printf ("%#.0o",0);Nick Clifton2001-05-281-0/+12
|
* Fix bug when both pointers have matching, non-word alignment, and the lengthNick Clifton2001-05-251-85/+88
| | | | | is <= 4 but more than enough to move them over a word boundary. Add comments explaining what each instruction does.
* * libc/include/sys/stat.h: Revert March 3, Cygwin change.Christopher Faylor2001-05-082-20/+1
| | | | * libc/include/sys/Ditto.h: Ditto.
* 2001-05-04 Earnie Boyd <earnie@users.sourceforge.net>Jeff Johnston2001-05-041-8/+6
| | | | * libc/string/strrchr.c: Use strchr for the speed improvements.
* 2001-05-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-05-011-0/+9
| | | | | | * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have real file systems, let __smakebuf() determine if line buffering should be used for stdout.
* 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-271-1/+1
| | | | * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
* 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-271-0/+1
| | | | * libc/include/stdlib.h: Add prototype for _strtod_r.
* 2001-04-24 Charles Wilson <cwilson@ece.gatech.eduJeff Johnston2001-04-243-25/+34
| | | | | | | | | | | * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN * libc/stdio/vprintf.c (_vprintf_r): new function * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use _DEFUN, and call _vfprintf_r, not vfprintf. * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use _DEFUN, and call _vfprintf_r, not vfprintf.
* * libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OKChristopher Faylor2001-04-221-6/+7
| | | | definitions in sys/file.h.
* * libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,Christopher Faylor2001-04-211-2/+2
| | | | too.
* 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-21104-1508/+2704
| | | | | | | | | | | | | | * acinclude.m4: Added --enable-malloc-debugging configure flag. * configure.host: For Cygwin specify -DMALLOC_PROVIDED if --enable-malloc-debugging selected. * aclocal.m4 configure: Regenerated. libm/aclocal.m4 libm/configure: Ditto. * libc/aclocal.m4 libc/configure: Ditto. * libc/machine/aclocal.m4 libc/machine/configure: Ditto. * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto. * libc/sys/aclocal.m4 libc/sys/configure: Ditto. * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto. * doc/aclocal.m4 doc/configure: Ditto.
* 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-2012-50/+403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together into one list. [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list. (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New function prototypes. (_fscanf_r, _sscanf_r): Ditto. * libc/include/stdlib.h: Added _strtod_r prototype. * libc/stdio/Makefile.am: Add new v*scanf functions. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r. * libc/stdio/scanf.c: Changed to call __svfscanf_r. * libc/stdio/sscanf.c: Changed documentation to add reentrant routines. (sscanf): Changed to call __svfscanf_r with _REENT argument. (_sscanf_r): New routine. * libc/stdio/local.h: Removed __svfscanf prototype and replaced it with __svfscanf_r prototype. * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New routines. (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy structure as argument as calls reentrant versions of helper functions (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof to _strtol_r and _strtod_r respectively. * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r. * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with _REENT argument. * libc/stdio/vscanf.c: New file. * libc/stdio/vsscanf.c: Ditto.
* 2001-04-19 Robert Collins <rbtcollins@hotmail.com>Jeff Johnston2001-04-191-1/+13
| | | | | | | * include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined. Define daylight to _daylight if it is not defined Prepare a variable export of timezone based on timezonevariable. (Cannot be used with the timezone() function.)
* * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).Christopher Faylor2001-04-131-0/+3
|
* * libc/include/sys/errno.h: Add ECASECLASH to indicate case clashCorinna Vinschen2001-04-121-0/+1
| | | | on case insensitve file systems.
* * libc/include/sys/features.h: Add appropriate defines for Cygwin pthreadChristopher Faylor2001-04-123-4/+20
| | | | | | | support. * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection. * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads types. Include <cygwin/types.h> for the cygwin specific typedefs.
* * libc/include/machine/ieeefp.h: Comment about new configurationRichard Sandiford2001-04-041-0/+18
| | | | | | | | macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS. * libm/common/fdlib.h: Define new macros for testing floats. * libm/common/sf_*: Use them. * libm/math/ef_*: Likewise. * libm/math/sf_*: Likewise.
* 2001-03-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-03-301-0/+1
| | | | | * libc/sys/arm/setjmp.S: Added .code 16 specifier for thumb-mode prolog to by-pass possible assembler error.
* 2001-03-21 Egor Duda <deo@logos-m.ru>Jeff Johnston2001-03-212-4/+17
| | | | | | | Allow building internal stubs for non-reentrant syscalls if target provides its own malloc * libc/reent/reent.c (errno): Move definition here. * libc/reent/sbrkr.c: From here.
* * libc/include/sys/types.h (BSD int typedefs): Guard with _BSDTYPES_DEFINEDChristopher Faylor2001-03-202-9/+16
| | | | | | | rather than _WINSOCK_H. (fd_set): Add !defined __USE_W32_SOCKETS to guard; define _SYS_TYPES_FD_SET. * libc/include/sys/unistd.h (gethostname): Don't declare if defined (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
* * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS andCorinna Vinschen2001-03-191-0/+6
| | | | _PC_POSIX_SECURITY constants for Cygwin.
* * libc/sys/cygwin/crt0.c: Add copyright hint.Corinna Vinschen2001-03-145-1/+38
| | | | | | | * libc/sys/cygwin/sys/dirent.h: Ditto. * libc/sys/cygwin/sys/param.h: Ditto. * libc/sys/cygwin/sys/utime.h: Ditto. * libc/sys/cygwin/sys/utmp.h: Ditto.
* * libc/stdio/vfprintf.c (QUADINT) [_NO_LONGLONG]: Make itAlexandre Oliva2001-03-131-0/+6
| | | | equivalent to LONGINT.