Jeff Johnston
f570da9508
2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
_execve(), _exit().
2008-12-12 17:11:33 +00:00
Jeff Johnston
7851320a41
2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* configure.host: Let *rtems* default to c99-formats.
2008-12-12 17:07:37 +00:00
Corinna Vinschen
6897665e67
* libc/stdio/freopen.c: Add <string.h> for memset prototype.
...
* libc/stdio/fseek.c: Ditto.
* libc/stdio/fwide.c: Add <wchar.h> for fwide prototype.
2008-12-12 15:45:19 +00:00
Jeff Johnston
6b9838a343
Formatting fix.
2008-12-11 22:49:58 +00:00
Jeff Johnston
04e4752943
2008-12-11 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/time.h(gettimeofday): Change prototype so
2nd parameter is void *, matching SUSV2.
* libc/syscalls/sysgettod.c(gettimeofday): Ditto.
2008-12-11 22:48:38 +00:00
Jeff Johnston
0e859ad10f
2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
...
* configure.host: Add lm32
* libc/include/machine/ieeefp.h: Add __lm32__
* libc/include/machine/setjmp.h: Add __lm32__
* libc/machine/configure.in: Add lm32
* libc/machine/configure: Regenerated.
* libc/machine/lm32/aclocal.m4: New file.
* libc/machine/lm32/configure.in: Ditto.
* libc/machine/lm32/configure: Ditto.
* libc/machine/lm32/Makefile.am: Ditto.
* libc/machine/lm32/Makefile.in: Ditto.
* libc/machine/lm32/setjmp.s: Ditto.
2008-12-11 20:05:38 +00:00
Jeff Johnston
7dd0c33097
2008-12-11 Craig Howland <howland@LGSInnovations.com>
...
* libc/include/sys/lock.h: Add void cast to avoid "statement has no
effect" warnings from gcc.
* libc/include/sys/stdio.h: Ditto.
* libc/include/sys/time.h: Correct gettimeofday() prototype.
* libc/stdlib/__exp10.c: Add #include "std.h" for function prototype.
* libc/stdlib/__ten_mu.c: Ditto.
* libc/stdlib/std.h: Correct __exp10's ANSI prototype.
* libc/stdlib/ldtoa.c: Change eiisinf definition to ANSI form. (Are
already others in file without _ansi method, so did not bother.)
* libc/stdlib/system.c: Use _ansi forms for function prototypes and
definitions.
* libc/time/mktime.c: Ditto.
* libc/misc/__dprintf.c: Ditto.
* libc/include/stdio.h: Add function prototypes for _fgetc_r,
_fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
_funopen_r, and _fopencookie_r.
* libc/include/reent.h: Add function prototype for _stat64_r, align
_execve_r prototype with POSIX definition for execve.
* libc/reent/execr.c: Align function prototype with POSIX definition.
* libc/stdio/asniprintf.c: Add #include "local.h".
* libc/stdio/vasniprintf.c: Ditto.
* libc/stdio/fread.c: Remove unused variable newcount.
* libc/stdio/local.h: Add function prototype for __sccl.
* libc/stdio/open_memstream.c: Remove unused variable flags.
* libc/stdio/vfscanf.c: Proper prototyping for ccfn, remove prototype
for __sccl since now in local.h.
* libc/string/memcpy.c: Add #include <string.h> (for real and for
traditional synopsis), remove extraneous stddef.h and limits.h.
* libc/syscalls/sysclose.c: Add #include <unistd.h>.
* libc/syscalls/sysfork.c: Ditto.
* libc/syscalls/sysgetpid.c: Ditto.
* libc/syscalls/sysexecve.c: Add #include <unistd.h>, align function
prototype with POSIX definition.
* libc/syscalls/sysfstat.c: Add #include <sys/stat.h>.
* libc/syscalls/sysgettod.c: Correct sys/times.h to sys/time.h.
* libc/syscalls/syskill.c: Add #include <signal.h>.
* libc/syscalls/syslink.c: Add #include <unistd.h>, fix prototype.
* libc/syscalls/sysunlink.c: Ditto.
* libc/syscalls/sysstat.c: Add #include <sys/stat.h>, fix prototype.
* libc/syscalls/syswait.c: Add #include <sys/wait.h>, fix prototype.
2008-12-11 17:27:56 +00:00
Jeff Johnston
0751f22675
2008-12-10 Corinna Vinschen <corinna@vinschen.de>
...
Implement basic wide char stdio functionality, based on FreeBSD.
* libc/include/stdio.h (__SORD): Define.
(__SWID): Define.
* libc/include/wchar.h: Add declarations for new wide char functions.
(getwc): Define as macro.
(getwchar): Ditto.
(putwc): Ditto.
(putwchar): Ditto.
* libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
(struct __sFILE64): Ditto.
* libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
and ungetwc.c.
(CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
ungetwc.def.
Add header dependency rules for the new files.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
* libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
* libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
(__sfmoreglue): Ditto.
* libc/stdio/fputs.c (_fputs_r): Set stream orientation.
* libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
* libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
* libc/stdio/fread.c (_fread_r): Set stream orientation.
* libc/stdio/freopen.c (_freopen_r): Reset stream orientation. Reset
_mbstate.
* libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
* libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
* libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
* libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
* libc/stdio/getwchar.c: New file, implementing getwchar and
_getwchar_r.
* libc/stdio/local.h (ORIENT): New macro.
* libc/stdio/puts.c (_puts_r): Set stream orientation.
* libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
* libc/stdio/putwchar.c: New file, implementing putwchar and
_putwchar_r.
* libc/stdio/refill.c (__srefill_r): Set stream orientation.
* libc/stdio/stdio.tex: Add documentation for new functions.
* libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
* libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
* libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
* libc/stdio/wbuf.c (__swbuf_r): Ditto.
2008-12-10 23:43:12 +00:00
Jeff Johnston
11a985e00f
2008-12-10 Joseph Myers <joseph@codesourcery.com>
...
* libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
constants with "long" types where appropriate.
(INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
Correct to match logic for defining corresponding types.
(INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
(SIZE_MAX): Define using __SIZE_MAX__ if available.
(PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
(PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
(WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
(UINT8_C, UINT16_C): Define to give signed values if corresponding
types would promote to int.
2008-12-10 21:27:58 +00:00
Corinna Vinschen
a81a17c43b
* libc/include/sys/features.h (_POSIX_V6_ILP32_OFF32): Always define.
...
(_POSIX_V6_LP64_OFF64): Ditto.
(_POSIX_V6_LPBIG_OFFBIG): Ditto.
2008-12-04 13:58:11 +00:00
Jeff Johnston
3ba3b001a2
2008-11-28 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/inode.c: Include <dirent.h> instead of
<linux/dirent.h>.
* libc/sys/linux/io64.c: Add weak alias for _stat64.
2008-11-28 17:15:47 +00:00
Jeff Johnston
27171a8cfa
2008-11-27 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/posix/telldir.c: Use #if !defined() instead of #ifndef
to fix GCC warning.
2008-11-27 21:01:40 +00:00
Jeff Johnston
8f337bfef9
2008-11-27 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c.
* libc/machine/spu/Makefile.in: Regenerated.
* libc/machine/spu/spu-gmon.c: New file.
* libc/machine/spu/spu-mcount.S: New file.
2008-11-27 20:57:46 +00:00
Jeff Johnston
e707c2c9e2
2008-11-27 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* configure.host (*-rtems*): Turn on using portion of unix subdirectory.
2008-11-27 20:50:31 +00:00
Jeff Johnston
bad5c314f7
2008-11-27 Craig Howland <howland@LGSInnovations.com>
...
* libc/argz/argz_add.c: Added #include <argz.h> to get function
prototypes.
* libc/argz/argz_append.c: Ditto.
* libc/argz/argz_count.c: Ditto.
* libc/argz/argz_create.c: Ditto.
* libc/argz/argz_create_sep.c: Ditto.
* libc/argz/argz_delete.c: Ditto.
* libc/argz/argz_next.c: Ditto.
* libc/argz/argz_stringify.c: Ditto
* libc/stdlib/strtod.c: Added #include <stdlib.h> to get function
prototypes.
* libc/stdlib/wcstoul.c: Added #include <wchar.h> to get function
prototypes, corrected traditional usage comment.
* libc/include/wchar.h: Added _mbsrtowcs_r() prototype.
2008-11-27 20:45:37 +00:00
Jeff Johnston
14535fc538
2008-11-26 Ken Werner <ken.werner@de.ibm.com>
...
* libm/machine/spu/headers/acosd2.h: Rebase against current simdmath.
* libm/machine/spu/headers/asind2.h: Likewise.
* libm/machine/spu/headers/asinhf4.h: Likewise.
* libm/machine/spu/headers/divd2.h: Likewise.
* libm/machine/spu/headers/erf_utils.h: Likewise.
* libm/machine/spu/headers/erfcd2.h: Likewise.
* libm/machine/spu/headers/erfcf4.h: Likewise.
* libm/machine/spu/headers/erfd2.h: Likewise.
* libm/machine/spu/headers/recipd2.h: Likewise.
2008-11-26 19:59:25 +00:00
Corinna Vinschen
a11451b353
* libc/stdio/gets.c (_gets_r): Lock stdin here and call
...
__sgetc_r instead of _getchar_r.
2008-11-25 09:33:43 +00:00
Jeff Johnston
6818a5c539
2008-11-24 Craig Howland <howland@LGSInnovations.com>
...
* libc/stdlib/wcstoull_r.c: Add EINVAL return for bad base value,
include wchar.h for prototype, remove extraneous includes, use
C99/POSIX ULLONG_MAX (but allow for poor limits.h).
* libc/stdlib/wcstoull.c: Fix usage comments (mistakes and to add
base value check noted above), remove extraneous includes.
* libc/stdio/asnprintf.c: Add #include "local.h" to get function
prototype for _svfprintf_r().
* libc/stdio/vasnprintf.c: Ditto.
* libc/stdio/local.h: Add function prototype for __submore().
* libc/include/stdio.h: Add function prototypes for _fseeko_r and
_ftello_r.
* libc/posix/namespace.h: Commented out define for write to
eliminate write() prototype being missing for collate.c (which is
the only file that presently includes namespace.h).
* libc/include/reent.h: Added _rename_r.
* libc/reent/renamer.c: Corrected function prototypes in synopses.
* libc/locale/ldpart.c: Use struct stat64 when calling fstat64.
2008-11-24 22:08:02 +00:00
Jeff Johnston
0aca33c823
2008-11-24 Craig Howland <howland@LGSInnovations.com>
...
* libc/stdlib/wcstoull_r.c: Add EINVAL return for bad base value,
include wchar.h for prototype, remove extraneous includes, use
C99/POSIX ULLONG_MAX (but allow for poor limits.h).
* libc/stdlib/wcstoull.c: Fix usage comments (mistakes and to add
base value check noted above), remove extraneous includes.
* libc/stdio/asnprintf.c: Add #include "local.h" to get function
prototype for _svfprintf_r().
* libc/stdio/vasnprintf.c: Ditto.
* libc/stdio/local.h: Add function prototype for __submore().
* libc/include/stdio.h: Add function prototypes for _fseeko_r and
_ftello_r.
* libc/posix/namespace.h: Commented out define for write to
eliminate write() prototype being missing for collate.c (which is
the only file that presently includes namespace.h).
* libc/include/reent.h: Added _rename_r.
* libc/reent/renamer.c: Corrected function prototypes in synopses.
* libc/locale/ldpart.c: Use struct stat64 when calling fstat64.
2008-11-24 21:27:33 +00:00
Jeff Johnston
0ef912dfc4
2008-11-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/search/hash_func.c: Comment out unused static hash functions.
* libc/reent/stat64r.c: New file.
* libc/reent/Makefile.am: Add stat64r.c support.
* libc/reent/Makefile.in: Regenerated.
2008-11-24 21:16:06 +00:00
Jeff Johnston
9aa929ef17
Fix typo.
2008-11-24 21:14:29 +00:00
Jeff Johnston
df913771a7
2008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/posix/scandir.c: Fix memory leaks.
2008-11-24 20:42:33 +00:00
Jeff Johnston
b45d16228b
2008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/posix/Makefile.am: Compile readdir_r.c
* libc/posix/Makefile.in: Regenerated.
2008-11-24 20:11:42 +00:00
Corinna Vinschen
14773e10a0
* libc/include/stdio.h (__SMOD): Remove definition of unused flag.
...
* libc/include/sys/reent.h (struct __sFILE): Add _flags2 member.
* libc/stdio/findfp.c (std): Initialize _flags2.
(__sfp): Ditto.
* libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag.
* libc/stdio/vfscanf.c (__ssrefill_r): Ditto.
* libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag.
* libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
2008-11-24 17:15:43 +00:00
Jeff Johnston
d5567b8d75
2008-11-20 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/sys/linux_syscalls.h: Additional syscall defines to
be in sync with current kernels.
2008-11-20 20:23:24 +00:00
Jeff Johnston
75cc619bb3
2008-11-20 Ken Werner <ken.werner@de.ibm.com>
...
Patrick Mansfield <patmans@us.ibm.com>
Joel Schopp <jschopp@austin.ibm.com>
* libc/machine/spu/configure.in: Add __ea detection.
* libc/machine/spu/Makefile.am: Add new files.
* libc/machine/spu/include/ea.h: New file.
* libc/machine/spu/ea_internal.h: Likewise.
* libc/machine/spu/sys/mman.h: Likewise.
* libc/machine/spu/mmap_ea.c: Likewise.
* libc/machine/spu/munmap_ea.c: Likewise.
* libc/machine/spu/mremap_ea.c: Likewise.
* libc/machine/spu/msync_ea.c: Likewise.
* libc/machine/spu/memchr_ea.c: Likewise.
* libc/machine/spu/memcmp_ea.c: Likewise.
* libc/machine/spu/memcpy_ea.c: Likewise.
* libc/machine/spu/memmove_ea.c: Likewise.
* libc/machine/spu/memset_ea.c: Likewise.
* libc/machine/spu/malloc_ea.c: Likewise.
* libc/machine/spu/realloc_ea.c: Likewise.
* libc/machine/spu/calloc_ea.c: Likewise.
* libc/machine/spu/free_ea.c: Likewise.
* libc/machine/spu/posix_memalign_ea.c: Likewise.
* libc/machine/spu/strcat_ea.c: Likewise.
* libc/machine/spu/strchr_ea.c: Likewise.
* libc/machine/spu/strcmp_ea.c: Likewise.
* libc/machine/spu/strcpy_ea.c: Likewise.
* libc/machine/spu/strcspn_ea.c: Likewise.
* libc/machine/spu/strlen_ea.c: Likewise.
* libc/machine/spu/strncat_ea.c: Likewise.
* libc/machine/spu/strncmp_ea.c: Likewise.
* libc/machine/spu/strncpy_ea.c: Likewise.
* libc/machine/spu/strpbrk_ea.c: Likewise.
* libc/machine/spu/strrchr_ea.c: Likewise.
* libc/machine/spu/strspn_ea.c: Likewise.
* libc/machine/spu/strstr_ea.c: Likewise.
* libc/machine/spu/read_ea.c: Likewise.
* libc/machine/spu/pread_ea.c: Likewise.
* libc/machine/spu/readv_ea.c: Likewise.
* libc/machine/spu/write_ea.c: Likewise.
* libc/machine/spu/pwrite_ea.c: Likewise.
* libc/machine/spu/writev_ea.c: Likewise.
2008-11-20 20:20:51 +00:00
Jeff Johnston
0e9810262d
2008-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/sys/config.h[__mips__]: Don't bother
setting __ATTRIBUTE_IMPURE_PTR__ here.
[__rtems__][__mips__]: No need to undef the __ATTRIBUTE_IMPURE_PTR__
macro anymore.
2008-11-19 21:05:31 +00:00
Jeff Johnston
8ee939ea9f
2008-11-19 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/bits/dirent.h: New header file.
* libc/sys/linux/sys/dirent.h: Include <bits/dirent.h> instead of
<linux/dirent.h>.
* libc/posix/Makefile.am: Remove reallocf.
* libc/posix/Makefile.in: Regenerated.
* libc/posix/reallocf.c: Moved to...
* libc/stdlib/reallocf.c: Here
* libc/stdlib/malloc.c: Add reallocf documentation.
* libc/include/stdlib.h: Add reallocf and _reallocf_r prototypes.
* libc/stdlib/Makefile.am: Add reallocf.
* libc/stdlib/Makefile.in: Regenerated.
* libc/posix/_isatty.c: Set errno.
2008-11-19 20:56:22 +00:00
Jeff Johnston
e231c7dae9
2008-11-19 Craig Howland <howland@LGSInnovations.com>
...
* libc/unix/collate.c (__collate_err): simplify to remove unnecessary
strdup() and strlen() calls, also getting rid of a compiler warning.
2008-11-19 20:04:09 +00:00
Jeff Johnston
34ff0a4e6f
2008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/include/sys/config.h: Don't put
__ATTRIBUTE_IMPURE_PTR__ into .sdata section for mips-rtems.
2008-11-19 19:48:31 +00:00
Jeff Johnston
c58cf6af0f
2008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/posix/runetype.h: Add include of stddef.h and remove
defining standard types: size_t and wchar_t.
2008-11-19 17:13:13 +00:00
Jeff Johnston
b8e9a7c099
2008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/include/pthread.h: Remove prototypes for
pthread_attr_getcputime and pthread_attr_setcputime which
were proposed but never approved by the POSIX standard.
2008-11-19 17:02:34 +00:00
Jeff Johnston
1f9aa7a3f0
2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
2008-11-18 22:55:06 +00:00
Jeff Johnston
efb00eb5da
2008-11-18 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
ignored if desired by a platform.
* libc/unix/dirname.c: Ditto except replace BASENAME with file name.
* libc/unix/getcwd.c: Ditto.
* libc/unix/getlogin.c: Ditto.
* libc/unix/getpass.c: Ditto.
* libc/unix/getpwent.c: Ditto.
* libc/unix/getut.c: Ditto.
* libc/unix/pread.c: Ditto.
* libc/unix/pwrite.c: Ditto.
* libc/unix/sigset.c: Ditto.
2008-11-18 22:40:40 +00:00
Jeff Johnston
fd450adfe7
2008-11-18 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be
ignored if desired by a platform.
* libc/unix/dirname.c: Ditto except replace BASENAME with file name.
* libc/unix/getcwd.c: Ditto.
* libc/unix/getlogin.c: Ditto.
* libc/unix/getpass.c: Ditto.
* libc/unix/getpwent.c: Ditto.
* libc/unix/getut.c: Ditto.
* libc/unix/pread.c: Ditto.
* libc/unix/pwrite.c: Ditto.
* libc/unix/sigset.c: Ditto.
2008-11-18 21:47:44 +00:00
Jeff Johnston
57f69f200e
2008-11-18 Craig Howland <howland@LGSInnovations.com>
...
* libc/unix/ttyname.c: Add ttyname_r and change ttyname to use
ttyname_r.
2008-11-18 21:39:10 +00:00
Jeff Johnston
aa677662af
2008-11-17 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* configure.host: RTEMS now uses posix subdirectory.
2008-11-17 22:08:05 +00:00
Jeff Johnston
0ea8752342
2008-11-17 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX.
* sys/rtems/sys/param.h: sys/rtprio.h not needed.
2008-11-17 22:05:12 +00:00
Jeff Johnston
1dc1ccd4ae
2008-10-31 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/diprintf.c: Modify documentation so eclipse newlib
libhover docs generate properly.
* libc/stdio/dprintf.c: Ditto.
* libc/stdio/fflush.c: Ditto.
* libc/stdio/fopencookie.c: Ditto.
* libc/stdio/fread.c: Ditto.
* libc/stdio/fsetpos.c: Ditto.
* libc/stdio/getc_u.c: Ditto.
* libc/stdio/getchar_u.c: Ditto.
* libc/stdio/putc_u.c: Ditto.
* libc/stdio/putchar_u.c: Ditto.
* libc/stdio/remove.c: Ditto.
* libc/stdio/siprintf.c: Ditto.
* libc/stdio/siscanf.c: Ditto.
* libc/stdio/sprintf.c: Ditto.
* libc/stdio/sscanf.c: Ditto.
* libc/stdio/vfprintf.c: Ditto.
* libc/stdio/vfscanf.c: Ditto.
* libc/stdio/viprintf.c: Ditto.
* libc/stdio/viscanf.c: Ditto.
* libc/stdlib/calloc.c: Ditto.
* libc/stdlib/efgcvt.c: Ditto.
* libc/stdlib/envlock.c: Ditto.
* libc/time/asctime.c: Ditto.
* libc/time/ctime.c: Ditto.
* libc/time/gmtime.c: Ditto.
* libc/time/lcltime.c: Ditto.
* libc/time/tzset.c: Ditto.
* libc/stdlib/envlock.h: Moved to libc/include.
2008-10-31 21:08:03 +00:00
Jeff Johnston
d456d606e3
2008-10-31 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/limits.h: Add ARG_MAX, PATH_MAX, and _POSIX2_RE_DUP_MAX.
* libc/include/envlock.h: New file.
* libc/include/fnmatch.h: Ditto.
* libc/include/glob.h: Ditto.
* libc/include/regex.h: Ditto.
* libc/include/wordexp.h: Ditto.
* libc/posix/Makefile.am: Add new files moved from
libc/sys/linux/stdlib.
* libc/posix/Makefile.in: Regenerated.
* libc/posix/COPYRIGHT: New file moved from libc/sys/linux/stdlib.
* libc/posix/cclass.h: Ditto.
* libc/posix/cname.h: Ditto.
* libc/posix/collate.c: Ditto.
* libc/posix/collate.h: Ditto.
* libc/posix/collcmp.c: Ditto.
* libc/posix/engine.c: Ditto.
* libc/posix/fnmatch.3: Ditto.
* libc/posix/glob.3: Ditto.
* libc/posix/fnmatch.c: Ditto.
* libc/posix/glob.c: Ditto.
* libc/posix/namespace.h: Ditto.
* libc/posix/reallocf.c: Ditto.
* libc/posix/regcomp.c: Ditto.
* libc/posix/regerror.c: Ditto.
* libc/posix/regex.3: Ditto.
* libc/posix/regex2.h: Ditto.
* libc/posix/regexec.c: Ditto.
* libc/posix/regfree.c: Ditto.
* libc/posix/rune.h: Ditto.
* libc/posix/runetype.h: Ditto.
* libc/posix/scandir.c: Remove advertising clause which is not in
effect.
* libc/posix/sysexits.h: Ditto.
* libc/posix/un-namespace.h: Ditto.
* libc/posix/utils.h: Ditto.
* libc/posix/wordexp.c: Ditto.
* libc/posix/wordfree.c: Ditto.
* libc/posix/execl.c: Add !_NO_EXECVE flag check.
* libc/posix/execle.c: Ditto.
* libc/posix/execlp.c: Ditto.
* libc/posix/execv.c: Ditto.
* libc/posix/execve.c: Ditto.
* libc/posix/execvp.c: Ditto.
* libc/posix/popen.c: Add !_NO_POPEN flag check.
* libc/sys/linux/configure: Regenerated.
* libc/sys/linux/configure.in: Remove stdlib.
* libc/sys/linux/include/limits.h: Add include of linux/limits.h.
* libc/sys/linux/stdlib/Makefile.am: Removed.
* libc/sys/linux/stdlib/Makefile.in: Ditto.
* libc/sys/linux/stdlib/COPYRIGHT: Moved to libc/posix.
* libc/sys/linux/stdlib/cclass.h: Ditto.
* libc/sys/linux/stdlib/cname.h: Ditto.
* libc/sys/linux/stdlib/collate.c: Ditto.
* libc/sys/linux/stdlib/collate.h: Ditto.
* libc/sys/linux/stdlib/collcmp.c: Ditto.
* libc/sys/linux/stdlib/engine.c: Ditto.
* libc/sys/linux/stdlib/fnmatch.3: Ditto.
* libc/sys/linux/stdlib/fnmatch.c: Ditto.
* libc/sys/linux/stdlib/glob.3: 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/regex.3: Ditto.
* libc/sys/linux/stdlib/regex2.h: Ditto.
* libc/sys/linux/stdlib/regexec.c: Ditto.
* libc/sys/linux/stdlib/regfree.c: Ditto.
* libc/sys/linux/stdlib/utils.h: Ditto.
* libc/sys/linux/stdlib/wordexp.c: Ditto.
* libc/sys/linux/stdlib/wordfree.c: Ditto.
2008-10-31 21:03:42 +00:00
Jeff Johnston
5d2b3a0a5a
2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/sys/unistd.h: RTEMS follows standard for sync().
2008-10-16 23:03:40 +00:00
Jeff Johnston
01bf0593df
2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/time.h: Add CLOCK_MONOTONIC.
* libc/include/sys/features.h: Define
_POSIX_MONOTONIC_CLOCK for RTEMS.
2008-10-16 21:53:58 +00:00
Jeff Johnston
f7b03c3c5b
2008-10-15 Jeff Johnston <jjohnstn@redhat.com>
...
* newlib.hin: Restore to previous 1.14 version which has no
PACKAGE_ macros.
2008-10-16 19:38:15 +00:00
Jeff Johnston
baa9e037cc
2008-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
2008-10-15 21:37:54 +00:00
Jeff Johnston
6b35caa257
Fix typo and make C99 check the same as is used in math.h
2008-10-15 20:49:56 +00:00
Jeff Johnston
bc5585e6e5
2008-10-15 Craig Howland <howland@LGSInnovations.com>
...
* libc/include/ctype.h (isblank): isblank is C99.
* libc/ctype/isblank.c (isblank comments): ditto. isblank does not
have a macro version (as was claimed in the description).
2008-10-15 20:36:26 +00:00
Jeff Johnston
236e5c4017
2008-10-15 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/vfscanf.c (__ssvfiscanf_r): Do not support %lc, %C, %ls or
%S conversions when the EL/IX level is 1.
2008-10-15 19:33:10 +00:00
Jeff Johnston
0d2597f5a0
2008-10-06 Eric Blake <ebb9@byu.net>
...
* libc/stdlib/ldtoa.c (etoasc): Fix rounding to even when fraction
is 0.5 or 0.75.
2008-10-06 19:47:06 +00:00
Jeff Johnston
75fb38a5fb
2008-10-06 Craig Howland <howland@LGSInnovations.com>
...
* libc/time/tzset_r.c (_tzset_r): Change US default start/end dates to
2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov.
2008-10-06 19:21:29 +00:00
Jeff Johnston
015b86d725
2008-10-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/string/str-two-way.h (critical_factorization): Cast the index
operation to ensure unsigned rollover occurs when adding to SIZE_MAX.
2008-10-02 20:12:34 +00:00
Jeff Johnston
eea95bd143
2008-10-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
be size of size_t, not int.
(SIZE_MIN): Remove.
* libc/sys/linux/sys/stdint.h: Ditto
2008-10-02 17:29:11 +00:00
Jeff Johnston
9d36d24f6e
2008-10-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
initialization of _rand_next to 1.
2008-10-02 16:43:23 +00:00
Steve Ellcey
fab8d8d808
* configure: Regenerate for new libtool.
...
* aclocal.m4: Ditto.
* Makefile.in: Ditto.
* newlib.hin: Ditto.
* doc/Makefile.in: Ditto.
* doc/configure: Ditto.
* iconvdata/Makefile.in: Ditto.
* iconvdata/aclocal.m4: Ditto.
* iconvdata/configure: Ditto.
* libc/Makefile.in: Ditto.
* libc/aclocal.m4: Ditto.
* libc/configure: Ditto.
* libc/argz/Makefile.in: Ditto.
* libc/ctype/Makefile.in: Ditto.
* libc/errno/Makefile.in: Ditto.
* libc/iconv/Makefile.in: Ditto.
* libc/iconv/ccs/Makefile.in: Ditto.
* libc/iconv/ccs/binary/Makefile.in: Ditto.
* libc/iconv/ces/Makefile.in: Ditto.
* libc/iconv/lib/Makefile.in: Ditto.
* libc/locale/Makefile.in: Ditto.
* libc/machine/Makefile.in: Ditto.
* libc/machine/aclocal.m4: Ditto.
* libc/machine/configure: Ditto.
* libc/machine/a29k/Makefile.in: Ditto.
* libc/machine/a29k/configure: Ditto.
* libc/machine/arm/Makefile.in: Ditto.
* libc/machine/arm/configure: Ditto.
* libc/machine/bfin/Makefile.in: Ditto.
* libc/machine/bfin/configure: Ditto.
* libc/machine/cris/Makefile.in: Ditto.
* libc/machine/cris/configure: Ditto.
* libc/machine/crx/Makefile.in: Ditto.
* libc/machine/crx/configure: Ditto.
* libc/machine/d10v/Makefile.in: Ditto.
* libc/machine/d10v/configure: Ditto.
* libc/machine/d30v/Makefile.in: Ditto.
* libc/machine/d30v/configure: Ditto.
* libc/machine/fr30/Makefile.in: Ditto.
* libc/machine/fr30/configure: Ditto.
* libc/machine/frv/Makefile.in: Ditto.
* libc/machine/frv/configure: Ditto.
* libc/machine/h8300/Makefile.in: Ditto.
* libc/machine/h8300/configure: Ditto.
* libc/machine/h8500/Makefile.in: Ditto.
* libc/machine/h8500/configure: Ditto.
* libc/machine/hppa/Makefile.in: Ditto.
* libc/machine/hppa/configure: Ditto.
* libc/machine/i386/Makefile.in: Ditto.
* libc/machine/i386/aclocal.m4: Ditto.
* libc/machine/i386/configure: Ditto.
* libc/machine/i960/Makefile.in: Ditto.
* libc/machine/i960/configure: Ditto.
* libc/machine/iq2000/Makefile.in: Ditto.
* libc/machine/iq2000/configure: Ditto.
* libc/machine/m32c/Makefile.in: Ditto.
* libc/machine/m32c/configure: Ditto.
* libc/machine/m32r/Makefile.in: Ditto.
* libc/machine/m32r/configure: Ditto.
* libc/machine/m68hc11/Makefile.in: Ditto.
* libc/machine/m68hc11/configure: Ditto.
* libc/machine/m68k/Makefile.in: Ditto.
* libc/machine/m68k/configure: Ditto.
* libc/machine/m88k/Makefile.in: Ditto.
* libc/machine/m88k/configure: Ditto.
* libc/machine/mep/Makefile.in: Ditto.
* libc/machine/mep/configure: Ditto.
* libc/machine/mips/Makefile.in: Ditto.
* libc/machine/mips/configure: Ditto.
* libc/machine/mn10200/Makefile.in: Ditto.
* libc/machine/mn10200/configure: Ditto.
* libc/machine/mn10300/Makefile.in: Ditto.
* libc/machine/mn10300/configure: Ditto.
* libc/machine/mt/Makefile.in: Ditto.
* libc/machine/mt/configure: Ditto.
* libc/machine/necv70/Makefile.in: Ditto.
* libc/machine/necv70/configure: Ditto.
* libc/machine/powerpc/Makefile.in: Ditto.
* libc/machine/powerpc/configure: Ditto.
* libc/machine/sh/Makefile.in: Ditto.
* libc/machine/sh/configure: Ditto.
* libc/machine/sparc/Makefile.in: Ditto.
* libc/machine/sparc/configure: Ditto.
* libc/machine/spu/Makefile.in: Ditto.
* libc/machine/spu/configure: Ditto.
* libc/machine/tic4x/Makefile.in: Ditto.
* libc/machine/tic4x/configure: Ditto.
* libc/machine/tic80/Makefile.in: Ditto.
* libc/machine/tic80/configure: Ditto.
* libc/machine/v850/Makefile.in: Ditto.
* libc/machine/v850/configure: Ditto.
* libc/machine/w65/Makefile.in: Ditto.
* libc/machine/w65/configure: Ditto.
* libc/machine/x86_64/Makefile.in: Ditto.
* libc/machine/x86_64/configure: Ditto.
* libc/machine/xscale/Makefile.in: Ditto.
* libc/machine/xscale/configure: Ditto.
* libc/machine/xstormy16/Makefile.in: Ditto.
* libc/machine/xstormy16/configure: Ditto.
* libc/machine/z8k/Makefile.in: Ditto.
* libc/machine/z8k/configure: Ditto.
* libc/misc/Makefile.in: Ditto.
* libc/posix/Makefile.in: Ditto.
* libc/reent/Makefile.in: Ditto.
* libc/search/Makefile.in: Ditto.
* libc/signal/Makefile.in: Ditto.
* libc/stdio/Makefile.in: Ditto.
* libc/stdio64/Makefile.in: Ditto.
* libc/stdlib/Makefile.in: Ditto.
* libc/string/Makefile.in: Ditto.
* libc/sys/Makefile.in: Ditto.
* libc/sys/aclocal.m4: Ditto.
* libc/sys/configure: Ditto.
* libc/sys/a29khif/Makefile.in: Ditto.
* libc/sys/a29khif/configure: Ditto.
* libc/sys/arc/Makefile.in: Ditto.
* libc/sys/arc/configure: Ditto.
* libc/sys/arm/Makefile.in: Ditto.
* libc/sys/arm/configure: Ditto.
* libc/sys/d10v/Makefile.in: Ditto.
* libc/sys/d10v/configure: Ditto.
* libc/sys/decstation/Makefile.in: Ditto.
* libc/sys/decstation/configure: Ditto.
* libc/sys/h8300hms/Makefile.in: Ditto.
* libc/sys/h8300hms/configure: Ditto.
* libc/sys/h8500hms/Makefile.in: Ditto.
* libc/sys/h8500hms/configure: Ditto.
* libc/sys/linux/Makefile.in: Ditto.
* libc/sys/linux/aclocal.m4: Ditto.
* libc/sys/linux/configure: Ditto.
* libc/sys/linux/argp/Makefile.in: Ditto.
* libc/sys/linux/cmath/Makefile.in: Ditto.
* libc/sys/linux/dl/Makefile.in: Ditto.
* libc/sys/linux/iconv/Makefile.in: Ditto.
* libc/sys/linux/intl/Makefile.in: Ditto.
* libc/sys/linux/linuxthreads/Makefile.in: Ditto.
* libc/sys/linux/linuxthreads/aclocal.m4: Ditto.
* libc/sys/linux/linuxthreads/configure: Ditto.
* libc/sys/linux/linuxthreads/machine/Makefile.in: Ditto.
* libc/sys/linux/linuxthreads/machine/aclocal.m4: Ditto.
* libc/sys/linux/linuxthreads/machine/configure: Ditto.
* libc/sys/linux/linuxthreads/machine/i386/Makefile.in: Ditto.
* libc/sys/linux/linuxthreads/machine/i386/aclocal.m4: Ditto.
* libc/sys/linux/linuxthreads/machine/i386/configure: Ditto.
* libc/sys/linux/machine/Makefile.in: Ditto.
* libc/sys/linux/machine/aclocal.m4: Ditto.
* libc/sys/linux/machine/configure: Ditto.
* libc/sys/linux/machine/i386/Makefile.in: Ditto.
* libc/sys/linux/machine/i386/aclocal.m4: Ditto.
* libc/sys/linux/machine/i386/configure: Ditto.
* libc/sys/linux/net/Makefile.in: Ditto.
* libc/sys/linux/stdlib/Makefile.in: Ditto.
* libc/sys/m88kbug/Makefile.in: Ditto.
* libc/sys/m88kbug/configure: Ditto.
* libc/sys/mmixware/Makefile.in: Ditto.
* libc/sys/mmixware/configure: Ditto.
* libc/sys/netware/Makefile.in: Ditto.
* libc/sys/netware/configure: Ditto.
* libc/sys/rdos/Makefile.in: Ditto.
* libc/sys/rdos/configure: Ditto.
* libc/sys/rtems/Makefile.in: Ditto.
* libc/sys/rtems/configure: Ditto.
* libc/sys/sh/Makefile.in: Ditto.
* libc/sys/sh/configure: Ditto.
* libc/sys/sparc64/Makefile.in: Ditto.
* libc/sys/sparc64/configure: Ditto.
* libc/sys/sun4/Makefile.in: Ditto.
* libc/sys/sun4/configure: Ditto.
* libc/sys/sysmec/Makefile.in: Ditto.
* libc/sys/sysmec/configure: Ditto.
* libc/sys/sysnec810/Makefile.in: Ditto.
* libc/sys/sysnec810/configure: Ditto.
* libc/sys/sysnecv850/Makefile.in: Ditto.
* libc/sys/sysnecv850/configure: Ditto.
* libc/sys/sysvi386/Makefile.in: Ditto.
* libc/sys/sysvi386/configure: Ditto.
* libc/sys/sysvnecv70/Makefile.in: Ditto.
* libc/sys/sysvnecv70/configure: Ditto.
* libc/sys/tic80/Makefile.in: Ditto.
* libc/sys/tic80/configure: Ditto.
* libc/sys/w65/Makefile.in: Ditto.
* libc/sys/w65/configure: Ditto.
* libc/sys/z8ksim/Makefile.in: Ditto.
* libc/sys/z8ksim/configure: Ditto.
* libc/syscalls/Makefile.in: Ditto.
* libc/time/Makefile.in: Ditto.
* libc/unix/Makefile.in: Ditto.
* libm/Makefile.in: Ditto.
* libm/aclocal.m4: Ditto.
* libm/configure: Ditto.
* libm/common/Makefile.in: Ditto.
* libm/machine/Makefile.in: Ditto.
* libm/machine/aclocal.m4: Ditto.
* libm/machine/configure: Ditto.
* libm/machine/i386/Makefile.in: Ditto.
* libm/machine/i386/aclocal.m4: Ditto.
* libm/machine/i386/configure: Ditto.
* libm/machine/spu/Makefile.in: Ditto.
* libm/machine/spu/configure: Ditto.
* libm/math/Makefile.in: Ditto.
* libm/mathfp/Makefile.in: Ditto.
2008-09-29 15:40:48 +00:00
Jeff Johnston
9e71090b9a
2008-09-26 Craig Howland <howland@LGSInnovations.com>
...
* libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name
contains an equal sign.
2008-09-26 16:23:58 +00:00
Jeff Johnston
610eefefdd
2008-09-25 Raphael Derossa Pereira <raphaelpereira@gmail.com>
...
* libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
new pthread_mutexattr_gettype and pthread_mutexattr_settype
prototypes.
* libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
new mutex type values.
(pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
field.
2008-09-26 16:15:50 +00:00
Jeff Johnston
57d7cfcdb7
2008-09-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/setenv_r.c (_unsetenv_r): Modify to return -1 only if
name is NULL, empty, or contains equal sign.
2008-09-25 03:00:04 +00:00
Jeff Johnston
37f996a2b2
2008-09-24 Pawel Veselov <pawel.veselov@gmail.com>
...
Fix setenv/getenv/unsetenv to be OpenGroup compliant:
* libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
return types.
* libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
names that contain equal chars.
* libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
* libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
EINVAL if name contains an equal sign. Do not remove any equal signs
from the value.
(_unsetenv_r): Modified to return int. Return -1 and set EINVAL
if name contains equal sign. Return -1 if no variable(s) were found
and return 0 otherwise.
2008-09-25 01:23:08 +00:00
Jeff Johnston
29212ab3cd
2008-09-19 Eric Blake <ebb9@byu.net>
...
Supply missing POSIX errno values.
* libc/include/sys/errno.h (ENOTRECOVERABLE, EOWNERDEAD): Define.
* libc/string/strerror.c (strerror): Decode them, and ECANCELED.
2008-09-19 16:11:35 +00:00
Jeff Johnston
0b840b0009
2008-09-10 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/strcpy.h: Add missing header.
* libc/machine/spu/spu_timer_slih.c: Remove unused Variable.
* libm/machine/spu/headers/lgammaf4.h: Add type cast.
2008-09-11 00:33:58 +00:00
Ben Elliston
fc378cf7ce
Remove bogus entry.
2008-09-09 04:43:43 +00:00
Jeff Johnston
da64e6bb4e
008-09-08 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/dl/atomicity.h (exchange_and_add): Fix asm statement to use "m" instead of "0".
(atomic_add): Ditto.
* libc/sys/linux/linuxthreads/spinlock.c (__pthread_release): Ditto.
* libc/sys/linux/net/getaddrinfo.c: Add limit.h include.
* libc/sys/linux/stdlib/glob.c: Ditto.
2008-09-08 22:25:14 +00:00
Jeff Johnston
27b975f6fd
2008-09-04 Ken Werner <ken.werner@de.ibm.com>
...
* libm/machine/spu/headers/acosd2.h: Duplicated preamble text removed.
* libm/machine/spu/headers/acosf4.h: Likewise.
* libm/machine/spu/headers/acoshd2.h: Likewise.
* libm/machine/spu/headers/acoshf4.h: Likewise.
* libm/machine/spu/headers/asind2.h: Likewise.
* libm/machine/spu/headers/asinf4.h: Likewise.
* libm/machine/spu/headers/asinhd2.h: Likewise.
* libm/machine/spu/headers/asinhf4.h: Likewise.
* libm/machine/spu/headers/atan2d2.h: Likewise.
* libm/machine/spu/headers/atan2f4.h: Likewise.
* libm/machine/spu/headers/atand2.h: Likewise.
* libm/machine/spu/headers/atanf4.h: Likewise.
* libm/machine/spu/headers/atanhd2.h: Likewise.
* libm/machine/spu/headers/atanhf4.h: Likewise.
* libm/machine/spu/headers/cos_sin.h: Likewise.
* libm/machine/spu/headers/cosd2.h: Likewise.
* libm/machine/spu/headers/cosf4.h: Likewise.
* libm/machine/spu/headers/coshd2.h: Likewise.
* libm/machine/spu/headers/coshf4.h: Likewise.
* libm/machine/spu/headers/divd2.h: Likewise.
* libm/machine/spu/headers/divf4.h: Likewise.
* libm/machine/spu/headers/erf_utils.h: Likewise.
* libm/machine/spu/headers/erfcd2.h: Likewise.
* libm/machine/spu/headers/erfcf4.h: Likewise.
* libm/machine/spu/headers/erfd2.h: Likewise.
* libm/machine/spu/headers/erff4.h: Likewise.
* libm/machine/spu/headers/exp2d2.h: Likewise.
* libm/machine/spu/headers/exp2f4.h: Likewise.
* libm/machine/spu/headers/expd2.h: Likewise.
* libm/machine/spu/headers/expf4.h: Likewise.
* libm/machine/spu/headers/expm1d2.h: Likewise.
* libm/machine/spu/headers/expm1f4.h: Likewise.
* libm/machine/spu/headers/floord2.h: Likewise.
* libm/machine/spu/headers/floorf4.h: Likewise.
* libm/machine/spu/headers/hypotd2.h: Likewise.
* libm/machine/spu/headers/hypotf4.h: Likewise.
* libm/machine/spu/headers/isnand2.h: Likewise.
* libm/machine/spu/headers/isnanf4.h: Likewise.
* libm/machine/spu/headers/ldexpd2.h: Likewise.
* libm/machine/spu/headers/ldexpf4.h: Likewise.
* libm/machine/spu/headers/lgammad2.h: Likewise.
* libm/machine/spu/headers/lgammaf4.h: Likewise.
* libm/machine/spu/headers/log10d2.h: Likewise.
* libm/machine/spu/headers/log1pd2.h: Likewise.
* libm/machine/spu/headers/log1pf4.h: Likewise.
* libm/machine/spu/headers/log2d2.h: Likewise.
* libm/machine/spu/headers/log2f4.h: Likewise.
* libm/machine/spu/headers/logbf4.h: Likewise.
* libm/machine/spu/headers/logd2.h: Likewise.
* libm/machine/spu/headers/logf4.h: Likewise.
* libm/machine/spu/headers/nearbyintf4.h: Likewise.
* libm/machine/spu/headers/nextafterd2.h: Likewise.
* libm/machine/spu/headers/nextafterf4.h: Likewise.
* libm/machine/spu/headers/powd2.h: Likewise.
* libm/machine/spu/headers/powf4.h: Likewise.
* libm/machine/spu/headers/recipd2.h: Likewise.
* libm/machine/spu/headers/recipf4.h: Likewise.
* libm/machine/spu/headers/rintf4.h: Likewise.
* libm/machine/spu/headers/scalbnf4.h: Likewise.
* libm/machine/spu/headers/signbitd2.h: Likewise.
* libm/machine/spu/headers/sincosd2.h: Likewise.
* libm/machine/spu/headers/sincosf4.h: Likewise.
* libm/machine/spu/headers/sind2.h: Likewise.
* libm/machine/spu/headers/sinf4.h: Likewise.
* libm/machine/spu/headers/sinhd2.h: Likewise.
* libm/machine/spu/headers/sinhf4.h: Likewise.
* libm/machine/spu/headers/sqrtd2.h: Likewise.
* libm/machine/spu/headers/sqrtf4.h: Likewise.
* libm/machine/spu/headers/tand2.h: Likewise.
* libm/machine/spu/headers/tanf4.h: Likewise.
* libm/machine/spu/headers/tanhd2.h: Likewise.
* libm/machine/spu/headers/tanhf4.h: Likewise.
* libm/machine/spu/headers/tgammad2.h: Likewise.
* libm/machine/spu/headers/tgammaf4.h: Likewise.
* libm/machine/spu/headers/truncd2.h: Likewise.
* libm/machine/spu/headers/truncf4.h: Likewise.
* libm/machine/spu/headers/simdmath.h: Likewise.
2008-09-04 17:50:56 +00:00
Jeff Johnston
06e514022d
2008-09-04 Ken Werner <ken.werner@de.ibm.com>
...
* libm/machine/spu/headers/acoshf4.h: Rebase against current simdmath.
* libm/machine/spu/headers/asinhd2.h: Likewise.
* libm/machine/spu/headers/atanhd2.h: Likewise.
* libm/machine/spu/headers/atanhf4.h: Likewise.
* libm/machine/spu/headers/erff4.h: Likewise.
* libm/machine/spu/headers/expd2.h: Likewise.
* libm/machine/spu/headers/ldexpd2.h: Likewise.
* libm/machine/spu/headers/lgammaf4.h: Likewise.
* libm/machine/spu/headers/logbf4.h: Likewise.
* libm/machine/spu/headers/nextafterd2.h: Likewise.
* libm/machine/spu/headers/nextafterf4.h: Likewise.
* libm/machine/spu/headers/recipd2.h: Likewise.
* libm/machine/spu/headers/simdmath.h: Likewise.
* libm/machine/spu/headers/acoshd2.: Likewise.
2008-09-04 17:46:14 +00:00
Jeff Johnston
db04da9279
2008-09-04 Ken Werner <ken.werner@de.ibm.com>
...
* libm/machine/spu/headers/cbrt.h: cbrt_factors[] declared.
* libm/machine/spu/headers/cbrtf.h: Likewise.
2008-09-04 17:27:49 +00:00
Jeff Johnston
2c73a5e682
2008-09-01 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/include/spu_timer.h: spu_timebase function added.
* libc/machine/spu/spu_timebase.c: New file.
* libc/machine/spu/Makefile.am: Add new file.
* libc/machine/spu/Makefile.in: Regenerated.
2008-09-02 16:48:48 +00:00
Jeff Johnston
b6ab3057f6
2008-08-28 Craig Howland <howland@LGSInnovations.com>
...
* libc/time/mktime.c (mktime): Fix tm_isdst value usage (allowing
any positive value from user (per std) rather than depending
upon 1).
2008-08-28 18:18:12 +00:00
Jeff Johnston
60ac13a0b0
2008-08-28 Corinna Vinschen <corinna@vinschen.de>
...
* libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Optimize condition
for accepting a converted character.
2008-08-28 17:36:49 +00:00
Jeff Johnston
cbeb458829
2008-08-27 Sandra Loosemore <sandra@codesourcery.com>
...
* libc/libc.texinfo: Remove "LOCAL KLUGE" that prevents it
from building pdfs.
* libm/libm.texinfo: Likewise.
2008-08-27 21:32:02 +00:00
Jeff Johnston
2d8d8175f1
2008-08-27 Corinna Vinschen <corinna@vinschen.de>
...
* libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Fix condition for
accepting a converted character and continuing the loop.
2008-08-27 18:31:04 +00:00
Jeff Johnston
410c1d122d
2008-07-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/ctype.h (_ctype_): Restore for C++ backward
compatability only.
2008-07-24 17:55:26 +00:00
Jeff Johnston
fa914bf8ab
2008-07-21 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
less than the old __ctype_ptr.
* libc/ctype/isalnum.c: Use __ctype_ptr__.
* libc/ctype/isalpha.c: Ditto.
* libc/ctype/iscntrl.c: Ditto.
* libc/ctype/isdigit.c: Ditto.
* libc/ctype/islower.c: Ditto.
* libc/ctype/isprint.c: Ditto.
* libc/ctype/ispunct.c: Ditto.
* libc/ctype/isspace.c: Ditto.
* libc/ctype/isupper.c: Ditto.
* libc/ctype/isxdigit.c: Ditto.
* libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
and add declaration of __ctype_ptr__. Remove older ctype table pointers
from here even though they can still work.
2008-07-21 21:28:34 +00:00
Jeff Johnston
b47d83c645
2008-07-18 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/strcpy.h: Fix error in previous patch.
2008-07-18 16:36:22 +00:00
Jeff Johnston
d2af9effc5
2008-07-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
__STDC_VERSION__ < 199901L and __GNUC__ >= 2.
2008-07-17 20:56:51 +00:00
Jeff Johnston
eb19b8f95a
2008-07-17 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/strcpy.h: Pad null bytes if necessary.
2008-07-17 19:00:44 +00:00
Jeff Johnston
17bfd1e083
2008-07-08 Kenji Tanaka <tanaka.ken2@jp.panasonic.com>
...
* libc/machine/mn10300/memset.S: Fix bug where return value is
incorrectly set if number of bytes set is a multiple of 4.
2008-07-08 20:36:27 +00:00
Jeff Johnston
2adedff8b3
2008-07-07 Hans-Peter Nilsson <hp@axis.com>
...
* libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
(strncpy): Cast src to uintptr_t before checking alignment with "&".
2008-07-07 15:51:55 +00:00
Jeff Johnston
18a635e315
2008-07-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/argz/argz_count.c: Include stddef.h to get size_t.
* libc/argz/argz_extract.c: Ditto.
* libc/argz/argz_stringify.c: Ditto.
* libc/search/hash.h: Ditto.
* libc/sys/linux/include/sched.h: Ditto.
* libc/sys/linux/sys/types.h: Ditto.
2008-07-02 18:38:45 +00:00
Jeff Johnston
a9f7d0a7a7
2008-07-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned
source data is taken care of before loop unrolling.
2008-07-02 18:17:48 +00:00
Hans-Peter Nilsson
5592f939b4
Fix strict-aliasing issues with _strtod_r and Storeinc.
...
* libc/stdlib/strtod.c (_strtod_r): Change local variables aadj,
rv, rv0 from double to type U. Use accessor macros dval, dword0
and dword1 for all accesses except for the ULtod call, where rv.i
replaces the pointer cast.
* libc/stdlib/mprec.h (U): Rename member L to i for easier re-use
of access macros. Tweak comment.
Remove #ifdef'd YES_ALIAS code.
(dword0, dword1, dval): Define in terms of uncast union member
access. Ditto for _DOUBLE_IS_32BITS variants.
(Storeinc): Replace aliasing-flawed microoptimized definition with
alternative suggested in comment. Remove now stale comment.
2008-06-25 01:45:02 +00:00
Corinna Vinschen
eb3f08acf8
* libc/include/machine/setjmp.h (_longjmp): Define as function on
...
Cygwin.
(_setjmp): Ditto.
2008-06-21 18:48:45 +00:00
Eric Blake
8fa475e4b1
Per Posix, strsignal returns non-const char*.
...
* libc/include/string.h (strsignal): Fix return type.
2008-06-18 15:27:41 +00:00
Jeff Johnston
12b0cae7d0
2008-06-17 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall
support.
2008-06-17 17:28:20 +00:00
Jeff Johnston
4e73927b06
2008-06-16 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++.
* libc/machine/spu/sys/sched.h: Likewise.
* libc/machine/spu/sys/syscall.h: Likewise.
2008-06-16 18:54:17 +00:00
Jeff Johnston
b243d287e4
2008-06-16 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/mk_syscalls: Provide .type and .size directives
in generated assembler files.
* libc/machine/spu/fprintf.S: Regenerate.
* libc/machine/spu/fscanf.S: Regenerate.
* libc/machine/spu/printf.S: Regenerate.
* libc/machine/spu/scanf.S: Regenerate.
* libc/machine/spu/snprintf.S: Regenerate.
* libc/machine/spu/sprintf.S: Regenerate.
* libc/machine/spu/sscanf.S: Regenerate.
* libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
and .size directives.
* libc/machine/spu/setjmp.S (setjmp): Likewise.
(longjmp): Likewise.
2008-06-16 18:51:10 +00:00
Jeff Johnston
2b4c1b417f
2008-06-11 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/machine/_default_types.h: Fix GNUC check to
handle 4.0 and greater.
2008-06-11 22:14:54 +00:00
Jeff Johnston
a0496b5e4f
2008-06-09 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/Makefile.am: Add new files.
* libc/machine/spu/Makefile.in: Likewise.
* libc/machine/spu/include/spu_timer.h: New file to add timer support
using interrupts.
* libc/machine/spu/spu_clock_stop.c: Likewise.
* libc/machine/spu/spu_clock_svcs.c: Likewise.
* libc/machine/spu/spu_timer_flih.S: Likewise.
* libc/machine/spu/spu_timer_free.c: Likewise.
* libc/machine/spu/spu_timer_internal.h: Likewise.
* libc/machine/spu/spu_timer_slih.c: Likewise.
* libc/machine/spu/spu_timer_slih_reg.c: Likewise.
* libc/machine/spu/spu_timer_stop.c: Likewise.
* libc/machine/spu/spu_timer_svcs.c: Likewise.
2008-06-10 02:13:22 +00:00
Jeff Johnston
3da06ba822
2008-06-09 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/strcat.c: Return value fixed.
* libc/machine/spu/strncat.c: Likewise.
2008-06-09 17:26:30 +00:00
Eric Blake
2dd1fb6ff5
Fix bug in previous patch.
...
* libc/machine/i386/memset.S (memset): Mask second arg correctly.
2008-05-28 14:00:39 +00:00
Jeff Johnston
676ae29038
2008-05-27 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/string/memset.c: Fix documented prototype to remove
erroneous const attribute on first parameter.
2008-05-27 18:44:40 +00:00
Jeff Johnston
70bff2d503
2008-05-26 Eric Blake <ebb9@byu.net>
...
Optimize the generic and x86 memchr.
* libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
Pre-align pointer so unaligned searches aren't penalized.
* libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
operations are faster than repnz byte searches.
2008-05-26 23:31:08 +00:00
Jeff Johnston
a6bd72a278
2008-05-26 Eric Blake <ebb9@byu.net>
...
Optimize the generic and x86 memset.
* libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
Pre-align pointer so unaligned stores aren't penalized.
* libc/machine/i386/memset.S (memset): [!__OPTIMIZE_SIZE__]:
Pre-align pointer so unaligned stores aren't penalized. Prefer
8-byte over 4-byte alignment. Reduce register pressure.
2008-05-26 23:23:15 +00:00
Jeff Johnston
cae28869c1
2008-05-26 Eric Blake <ebb9@byu.net>
...
Optimize the generic and x86 strlen.
* libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
data so unaligned searches aren't penalized.
* libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
Word operations are faster than repnz byte searches.
2008-05-26 22:56:14 +00:00
Corinna Vinschen
1fc3031588
* libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
2008-05-23 12:33:50 +00:00
Jeff Johnston
3c77dcff9e
2008-05-22 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/reent.h: Add _h_errno field.
* libc/sys/linux/libc-symbols.h: Add default stubs for new libc macros
now used in net directory.
* libc/sys/linux/bits/libc-lock.h: Always define _IO_MTSAFE_IO.
* libc/sys/linux/include/hesiod.h: Add needed macros for new code
in net directory.
* libc/sys/linux/include/netdb.h: Ditto.
* libc/sys/linux/include/resolv.h: Ditto.
* libc/sys/linux/include/stdint.h: Ditto.
* libc/sys/linux/include/arpa/nameser.h: Ditto.
* libc/sys/linux/include/net/ethernet.h: Ditto.
* libc/sys/linux/include/net/if_ppp.h: Ditto.
* libc/sys/linux/include/netinet/if_ether.h: Ditto.
* libc/sys/linux/machine/i386/get_clockfreq.c: Remove static memmem.
* libc/sys/linux/machine/i386/include/endian.h: Protect macros with
flags to avoid duplicate definition.
* libc/sys/linux/machine/i386/include/param.h: Ditto.
* libc/sys/linux/net/Makefile.am: Modified to account for removed and
added files.
* libc/sys/linux/net/Makefile.in: Regenerated.
* libc/sys/linux/net/base64.c: Replaced with glibc version of code.
* libc/sys/linux/net/getaddrinfo.c: Ditto.
* libc/sys/linux/net/getnameinfo.c: Ditto.
* libc/sys/linux/net/getproto.c: Ditto.
* libc/sys/linux/net/getservent.c: Ditto.
* libc/sys/linux/net/inet_netof.c: Ditto.
* libc/sys/linux/net/inet_lnaof.c: Ditto.
* libc/sys/linux/net/ns_name.c: Ditto.
* libc/sys/linux/net/ns_netint.c: Ditto.
* libc/sys/linux/net/inet_ntoa.c: Ditto.
* libc/sys/linux/net/ns_parse.c: Ditto.
* libc/sys/linux/net/ns_print.c: Ditto.
* libc/sys/linux/net/ns_ttl.c: Ditto.
* libc/sys/linux/net/nsap_addr.c: Ditto.
* libc/sys/linux/net/rcmd.c: Ditto.
* libc/sys/linux/net/res_comp.c: Ditto.
* libc/sys/linux/net/res_data.c: Ditto.
* libc/sys/linux/net/res_debug.c: Ditto.
* libc/sys/linux/net/res_init.c: Ditto.
* libc/sys/linux/net/res_mkquery.c: Ditto.
* libc/sys/linux/net/res_query.c: Ditto.
* libc/sys/linux/net/res_send.c: Ditto.
* libc/sys/linux/net/send.c: Ditto.
* libc/sys/linux/stdlib/collate.c: Ditto.
* libc/sys/linux/sys/ioctl.h: Ditto.
* libc/sys/linux/sys/socket.h: Ditto.
* libc/sys/linux/sys/unistd.h: Ditto.
* libc/sys/linux/iconv/iconvconfig.c: Removed either because no longer
used or because licensing includes advertising clause that cannot be
ignored.
* libc/sys/linux/iconv/strtab.c: Ditto.
* libc/sys/linux/include/libc_private.h: Ditto.
* libc/sys/linux/include/nsswitch.h: Ditto.
* libc/sys/linux/include/net/if_atm.h: Ditto.
* libc/sys/linux/include/net/if_media.h: Ditto.
* libc/sys/linux/include/net/if_pppvar.h: Ditto.
* libc/sys/linux/include/netinet/if_atm.h: Ditto.
* libc/sys/linux/include/netinet/ip_flow.h: Ditto.
* libc/sys/linux/intl/locale.alias: Ditto.
* libc/sys/linux/net/addr2ascii.3: Ditto.
* libc/sys/linux/net/bindresvport.c: Ditto.
* libc/sys/linux/net/byteorder.3: Ditto.
* libc/sys/linux/net/res_config.h: Ditto.
* libc/sys/linux/net/ether_addr.c: Ditto.
* libc/sys/linux/net/ethers.3: Ditto.
* libc/sys/linux/net/getaddrinfo.3: Ditto.
* libc/sys/linux/net/gethostbydns.c: Ditto.
* libc/sys/linux/net/gethostbyht.c: Ditto.
* libc/sys/linux/net/gethostbyname.3: Ditto.
* libc/sys/linux/net/gethostbynis.c: Ditto.
* libc/sys/linux/net/gethostnamadr.c: Ditto.
* libc/sys/linux/net/getifaddrs.3: Ditto.
* libc/sys/linux/net/getifaddrs.c: Ditto.
* libc/sys/linux/net/getipnodebyname.3: Ditto.
* libc/sys/linux/net/getnameinfo.3: Ditto.
* libc/sys/linux/net/getnetbydns.c: Ditto.
* libc/sys/linux/net/getnetbyht.c: Ditto.
* libc/sys/linux/net/getnetbynis.c: Ditto.
* libc/sys/linux/net/getnetent.3: Ditto.
* libc/sys/linux/net/getnetnamadr.c: Ditto.
* libc/sys/linux/net/getprotoent.3: Ditto.
* libc/sys/linux/net/getprotoent.c: Ditto.
* libc/sys/linux/net/getprotoname.c: Ditto.
* libc/sys/linux/net/getservbyname.c: Ditto.
* libc/sys/linux/net/getservbyport.c: Ditto.
* libc/sys/linux/net/getservent.3: Ditto.
* libc/sys/linux/net/herror.c: Ditto.
* libc/sys/linux/net/hesiod.3: Ditto.
* libc/sys/linux/net/hesiod.c: Ditto.
* libc/sys/linux/net/if_indextoname.3: Ditto.
* libc/sys/linux/net/inet.3: Ditto.
* libc/sys/linux/net/inet6_option_space.3: Ditto.
* libc/sys/linux/net/inet6_rthdr_space.3: Ditto.
* libc/sys/linux/net/inet_makeaddr.c: Ditto.
* libc/sys/linux/net/inet_net.3: Ditto.
* libc/sys/linux/net/inet_network.c: Ditto.
* libc/sys/linux/net/innetgr-stub.c: Ditto.
* libc/sys/linux/net/ip6opt.c: Ditto.
* libc/sys/linux/net/iso_addr.3: Ditto.
* libc/sys/linux/net/iso_addr.c: Ditto.
* libc/sys/linux/net/linkaddr.3: Ditto.
* libc/sys/linux/net/linkaddr.c: Ditto.
* libc/sys/linux/net/map_v4v6.c: Ditto.
* libc/sys/linux/net/name6.c: Ditto.
* libc/sys/linux/net/namespace.h: Ditto.
* libc/sys/linux/net/ns.3: Ditto.
* libc/sys/linux/net/ns_addr.c: Ditto.
* libc/sys/linux/net/ns_ntoa.c: Ditto.
* libc/sys/linux/net/nsdispatch.3: Ditto.
* libc/sys/linux/net/nsdispatch.c: Ditto.
* libc/sys/linux/net/nslexer.c: Ditto.
* libc/sys/linux/net/nslexer.l: Ditto.
* libc/sys/linux/net/nsparser.c: Ditto.
* libc/sys/linux/net/nsparser.h: Ditto.
* libc/sys/linux/net/nsparser.y: Ditto.
* libc/sys/linux/net/rcmd.3: Ditto.
* libc/sys/linux/net/rcmdsh.3: Ditto.
* libc/sys/linux/net/res_mkupdate.c: Ditto.
* libc/sys/linux/net/res_update.c: Ditto.
* libc/sys/linux/net/resolver.3: Ditto.
* libc/sys/linux/net/rthdr.c: Ditto.
* libc/sys/linux/net/vars.c: Ditto.
* libc/sys/linux/shlib-compat.h: New file.
* libc/sys/linux/machine/i386/atomic.h: Ditto.
* libc/sys/linux/net/XXX-lookup.c: Ditto.
* libc/sys/linux/net/alias-lookup.c: Ditto.
* libc/sys/linux/net/res_libc.c: Ditto.
* libc/sys/linux/net/aliases.h: Ditto.
* libc/sys/linux/net/check_pf.c: Ditto.
* libc/sys/linux/net/databases.def: Ditto.
* libc/sys/linux/net/digits_dots.c: Ditto.
* libc/sys/linux/net/ether_aton.c: Ditto.
* libc/sys/linux/net/ether_aton_r.c: Ditto.
* libc/sys/linux/net/ether_hton.c: Ditto.
* libc/sys/linux/net/ether_line.c: Ditto.
* libc/sys/linux/net/ether_ntoa.c: Ditto.
* libc/sys/linux/net/ether_ntoa_r.c: Ditto.
* libc/sys/linux/net/ether_ntoh.c: Ditto.
* libc/sys/linux/net/etherent.h: Ditto.
* libc/sys/linux/net/ethers-lookup.c: Ditto.
* libc/sys/linux/net/function.def: Ditto.
* libc/sys/linux/net/getXXbyYY.c: Ditto.
* libc/sys/linux/net/getXXbyYY_r.c: Ditto.
* libc/sys/linux/net/getXXent.c: Ditto.
* libc/sys/linux/net/getXXent_r.c: Ditto.
* libc/sys/linux/net/getaliasent.c: Ditto.
* libc/sys/linux/net/getaliasent_r.c: Ditto.
* libc/sys/linux/net/getaliasname.c: Ditto.
* libc/sys/linux/net/getaliasname_r.c: Ditto.
* libc/sys/linux/net/gethstbyad.c: Ditto.
* libc/sys/linux/net/gethstbyad_r.c: Ditto.
* libc/sys/linux/net/gethstbynm.c: Ditto.
* libc/sys/linux/net/gethstbynm2.c: Ditto.
* libc/sys/linux/net/gethstbynm2_r.c: Ditto.
* libc/sys/linux/net/gethstbynm_r.c: Ditto.
* libc/sys/linux/net/gethstent.c: Ditto.
* libc/sys/linux/net/gethstent_r.c: Ditto.
* libc/sys/linux/net/getnetbyad.c: Ditto.
* libc/sys/linux/net/getnetbyad_r.c: Ditto.
* libc/sys/linux/net/getnetbynm.c: Ditto.
* libc/sys/linux/net/getnetbynm_r.c: Ditto.
* libc/sys/linux/net/getnetent.c: Ditto.
* libc/sys/linux/net/getnetent_r.c: Ditto.
* libc/sys/linux/net/getnetgrent.c: Ditto.
* libc/sys/linux/net/getnetgrent_r.c: Ditto.
* libc/sys/linux/net/getnssent.c: Ditto.
* libc/sys/linux/net/getnssent_r.c: Ditto.
* libc/sys/linux/net/getproto_r.c: Ditto.
* libc/sys/linux/net/getprtent.c: Ditto.
* libc/sys/linux/net/getprtent_r.c: Ditto.
* libc/sys/linux/net/getprtname.c: Ditto.
* libc/sys/linux/net/getprtname_r.c: Ditto.
* libc/sys/linux/net/getrpcbyname.c: Ditto.
* libc/sys/linux/net/getrpcbyname_r.c: Ditto.
* libc/sys/linux/net/getrpcbynumber.c: Ditto.
* libc/sys/linux/net/getrpcbynumber_r.c: Ditto.
* libc/sys/linux/net/getrpcent.c: Ditto.
* libc/sys/linux/net/getrpcent_r.c: Ditto.
* libc/sys/linux/net/getservent_r.c: Ditto.
* libc/sys/linux/net/getsrvbynm.c: Ditto.
* libc/sys/linux/net/getsrvbynm_r.c: Ditto.
* libc/sys/linux/net/getsrvbypt.c: Ditto.
* libc/sys/linux/net/getsrvbypt_r.c: Ditto.
* libc/sys/linux/net/grp-lookup.c: Ditto.
* libc/sys/linux/net/herrno.c: Ditto.
* libc/sys/linux/net/hosts-lookup.c: Ditto.
* libc/sys/linux/net/ifaddrs.h: Ditto.
* libc/sys/linux/net/ifreq.c: Ditto.
* libc/sys/linux/net/ifreq.h: Ditto.
* libc/sys/linux/net/in6_addr.c: Ditto.
* libc/sys/linux/net/inet6_option.c: Ditto.
* libc/sys/linux/net/inet_mkadr.c: Ditto.
* libc/sys/linux/net/inet_net.c: Ditto.
* libc/sys/linux/net/key-lookup.c: Ditto.
* libc/sys/linux/net/local.h: Ditto.
* libc/sys/linux/net/netgroup.h: Ditto.
* libc/sys/linux/net/netgrp-lookup.c: Ditto.
* libc/sys/linux/net/network-lookup.c: Ditto.
* libc/sys/linux/net/not-cancel.h: Ditto.
* libc/sys/linux/net/ns_samedomain.c: Ditto.
* libc/sys/linux/net/nscd-types.h: Ditto.
* libc/sys/linux/net/nss.h: Ditto.
* libc/sys/linux/net/nsswitch.c: Ditto.
* libc/sys/linux/net/nsswitch.h: Ditto.
* libc/sys/linux/net/opensock.c: Ditto.
* libc/sys/linux/net/proto-lookup.c: Ditto.
* libc/sys/linux/net/pwd-lookup.c: Ditto.
* libc/sys/linux/net/res_debug.h: Ditto.
* libc/sys/linux/net/res_hconf.c: Ditto.
* libc/sys/linux/net/res_hconf.h: Ditto.
* libc/sys/linux/net/rexec.c: Ditto.
* libc/sys/linux/net/rpc-lookup.c: Ditto.
* libc/sys/linux/net/ruserpass.c: Ditto.
* libc/sys/linux/net/service-lookup.c: Ditto.
* libc/sys/linux/net/spwd-lookup.c: Ditto.
* libc/sys/linux/net/nscd/nscd-client.h: Ditto.
* libc/sys/linux/net/nscd/nscd_proto.h: Ditto.
2008-05-22 21:30:28 +00:00
Eric Blake
ae47b14a12
Optimize the generic strchr.
...
* libc/string/strchr.c (strchr) [!__OPTIMIZE_SIZE__]: Pre-align
data so unaligned searches aren't penalized. Special-case
searching for 0.
2008-05-22 02:31:46 +00:00
Eric Blake
4962a9453a
Optimize strchr for x86.
...
* libc/machine/i386/strchr.S (strchr): Pre-align data so unaligned
searches aren't penalized. Special-case searching for 0.
2008-05-21 21:46:04 +00:00
Nick Clifton
cb1f8161c1
* libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak).
...
* iq2000/crt0.S (__dso_handle): Define (weak).
* frv/crt0.S (__dso_handle): Define (weak).
* mn10300/crt0.S (___dso_handle): Define (weak).
2008-05-21 07:44:32 +00:00
Jeff Johnston
a9309ff5b6
2008-05-20 DJ Delorie <dj@redhat.com>
...
* libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty.
2008-05-20 18:00:12 +00:00
Jeff Johnston
26432b0bb5
2008-05-14 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/reent.h: Change _REENT_INIT... macros to
access macro parameter with parentheses around it.
2008-05-14 22:09:10 +00:00
Mark Mitchell
df93e6f193
* libc/include/stdint.h (SIZE_MIN): Remove.
...
(SIZE_MAX): Define.
* testsuite/newlib.stdlib/stdlib.exp: New.
* testsuite/newlib.stdlib/size_max.c: Likewise.
2008-05-02 14:52:56 +00:00
Eric Blake
f77a1a8848
Fix 2008-04-14 regression in asprintf(ptr,"").
...
* libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): Avoid stdio
baggage.
* libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): Likewise.
* libc/stdio/asiprintf.c (asiprintf, _asiprintf_r): Likewise.
* libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
* libc/stdio/vsnprintf.c (_vsnprintf_r): Likewise.
* libc/stdio/vfprintf.c (_VFPRINTF_R) [STRING_ONLY]: Always malloc
an initial buffer for asprintf.
2008-04-30 02:47:14 +00:00
Corinna Vinschen
78970a51f3
* libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__.
...
(fstatat): Fix type of third parameter.
2008-04-26 07:49:39 +00:00
Nick Clifton
026f9d290f
* libc/machine/arm/setjmp.S: Fix thumb2 support.
...
* arm/crt0.S: Allow assembly under ARMv7 ISA. Support for
initializing stack pointers for interrupt modes is still pending.
2008-04-25 09:02:40 +00:00
Nick Clifton
51bef6a9c6
* libc/include/machine/ieeefp.h: Fix typo: _DOUBLE_IS_32_BITS
...
should be _DOUBLE_IS_32BITS.
2008-04-24 11:26:41 +00:00
Corinna Vinschen
0d02384a48
* libc/include/sys/stat.h (UTIME_NOW): Define for Cygwin.
...
(UTIME_OMIT): Ditto.
(utimensat): Declare for Cygwin.
(futimens): Ditto.
2008-04-24 09:39:21 +00:00
Jeff Johnston
e2af45bfd1
2008-04-23 Ken Werner <ken.werner@de.ibm.com>
...
* libc/include/_ansi.h: _LONG_LONG renamed to _LONG_LONG_TYPE.
* libc/include/math.h: Likewise.
2008-04-23 23:10:54 +00:00
Corinna Vinschen
ca48eb65e9
* libc/include/stdio.h (renameat): Declare for Cygwin.
...
(symlinkat): Ditto.
* libc/include/sys/unistd.h (readlink): Align declaration to POSIX.
(faccessat): Declare for Cygwin.
(fchownat): Ditto.
(linkat): Ditto.
(readlinkat): Ditto.
* libc/include/sys/_default_fcntl.h (AT_FDCWD): Define for Cygwin.
(AT_EACCESS): Ditto.
(AT_SYMLINK_NOFOLLOW): Ditto.
(AT_SYMLINK_FOLLOW): Ditto.
(AT_REMOVEDIR): Ditto.
(futimesat): Declare for Cygwin.
(openat): Ditto.
(unlinkat): Ditto.
* libc/include/sys/stat.h (fchmodat): Ditto.
(fstatat): Ditto.
(mkdirat): Ditto.
(mkfifoat): Ditto.
(mknodat): Ditto.
2008-04-23 11:13:24 +00:00
Jeff Johnston
e950505015
2008-04-16 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
2008-04-16 20:04:08 +00:00
Jeff Johnston
c2bd84bc27
2008-04-16 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/impure.c: Add missing underscore to impure_data.
2008-04-16 18:46:20 +00:00
Jeff Johnston
45b142890d
2008-04-14 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/impure.c: New file, supply a non-static _impure_data.
* libc/machine/spu/Makefile.am: Add new file impure.c.
* libc/machine/spu/Makefile.in: Regenerate.
* libc/machine/spu/sys/errno.h: Define errno to be _reent_data._errno.
2008-04-15 19:57:48 +00:00
Jeff Johnston
eabd7de028
2008-04-14 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/Makefile.am: Build vfprintf.c and vfscanf.c with
-DSTRING_ONLY defined with and without -DINTEGER_ONLY defined
to build special versions for sprintf/sscanf family functions.
* libc/stdio/Makefile.in: Regenerated.
* libc/stdio/vfprintf.c[STRING_ONLY][INTEGER_ONLY](_VFPRINTF_R):
Redefine to be _svfiprintf_r which is optimized to work with siprintf
family of functions (i.e. no I/O) and does not support floating-point.
[STRING_ONLY][!INTEGER_ONLY](_VFPRINTF_R): Redefine to be
_svfprintf_r which is optimized to work with sprintf family of
functions and not use I/O.
[STRING_ONLY](__sprint_r): New string only version of static function.
designed to work with sprintf family of functions.
* libc/stdio/vfscanf.c[STRING_ONLY][INTEGER_ONLY](_SVFSCANF_R):
Redefine to be _ssvfiscanf_r which is optimized to work with siscanf
family of functions (i.e. no I/O) and no float-point support.
[STRING_ONLY][!INTEGER_ONLY](_SVFSCANF_R): Redefine to be
__ssvfscanf_r which is optimized to work with sscanf family of
functions and does not require I/O functions.
* libc/stdio/asprintf.c: Call _svfprintf_r instead of _vfprintf_r.
* libc/stdio/snprintf.c: Ditto.
* libc/stdio/sprintf.c: Ditto.
* libc/stdio/vasnprintf.c: Ditto.
* libc/stdio/vasprintf.c: Ditto.
* libc/stdio/siprintf.c: Call _svfiprintf_r instead of _vfiprintf_r.
* libc/stdio/sniprintf.c: Ditto.
* libc/stdio/vasiprintf.c: Ditto.
* libc/stdio/vsiprintf.c: Ditto.
* libc/stdio/vsniprintf.c: Ditto.
* libc/stdio/vsprintf.c: Ditto.
* libc/stdio/local.h: Add prototypes for _svfprintf_r, _svfiprintf_r,
_ssvfscanf_r, and _ssvfiscanf_r.
* libc/stdio/sscanf.c: Call _ssvfscanf_r instead of _svfscanf_r.
* libc/stdio/vsscanf.c: Ditto.
* libc/stdio/siscanf.c: Call _ssvfiscanf_r instead of _svfiscanf_r.
* libc/stdio/vsiscanf.c: Ditto.
2008-04-14 21:14:55 +00:00
DJ Delorie
6f810581fb
[newlib]
...
* libm/machine/spu/configure: Regenerate with autoconf 2.61.
* libc/sys/configure: Regenerate with autoconf 2.61.
* libc/machine/configure: Regenerate with autoconf 2.61.
[libgloss]
* hp74x/configure: Regenerate with autoconf 2.61.
* fr30/configure: Regenerate with autoconf 2.61.
* mips/configure: Regenerate with autoconf 2.61.
* xstormy16/configure: Regenerate with autoconf 2.61.
* rs6000/configure: Regenerate with autoconf 2.61.
* d30v/configure: Regenerate with autoconf 2.61.
* i386/configure: Regenerate with autoconf 2.61.
* configure: Regenerate with autoconf 2.61.
* wince/configure: Regenerate with autoconf 2.61.
* pa/configure: Regenerate with autoconf 2.61.
* m32r/configure: Regenerate with autoconf 2.61.
* mn10200/configure: Regenerate with autoconf 2.61.
* iq2000/configure: Regenerate with autoconf 2.61.
* cris/configure: Regenerate with autoconf 2.61.
* m68k/configure: Regenerate with autoconf 2.61.
* spu/configure: Regenerate with autoconf 2.61.
* m32c/configure: Regenerate with autoconf 2.61.
* mn10300/configure: Regenerate with autoconf 2.61.
* i960/configure: Regenerate with autoconf 2.61.
* arm/configure: Regenerate with autoconf 2.61.
* libnosys/configure: Regenerate with autoconf 2.61.
* m68hc11/configure: Regenerate with autoconf 2.61.
* bfin/configure: Regenerate with autoconf 2.61.
* crx/configure: Regenerate with autoconf 2.61.
* mt/configure: Regenerate with autoconf 2.61.
* sparc/configure: Regenerate with autoconf 2.61.
* sparc/libsys/configure: Regenerate with autoconf 2.61.
* mcore/configure: Regenerate with autoconf 2.61.
* mep/configure: Regenerate with autoconf 2.61.
* frv/configure: Regenerate with autoconf 2.61.
* doc/configure: Regenerate with autoconf 2.61.
2008-04-04 21:52:01 +00:00
Jeff Johnston
bd6e30d59a
2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
* libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
* libc/machine/spu/Makefile.am: Add memcmp.c.
* libc/machine/spu/Makefile.in: Rebuild.
* libc/machine/spu/strncmp.c: Use _strncmp_internal.
2008-04-01 19:02:16 +00:00
Jeff Johnston
71f3a8f566
2008-04-01 Patrick Mansfield <patmans@us.ibm.com>
...
* configure.host: Build SPU with -DREENTRANT_SYSCALLS_PROVIDED and
-DMISSING_SYSCALL_NAMES.
2008-04-01 18:58:07 +00:00
Jeff Johnston
1d4a4944e5
2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/Makefile.am: Add assert.c.
* libc/machine/spu/Makefile.in: Regenerate.
* libc/machine/spu/assert.c: New file.
2008-04-01 18:53:41 +00:00
Jeff Johnston
3ab380aaa8
2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/include/reent.h: Define _func_r functions in this file to
func if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES are
defined.
2008-03-27 23:28:17 +00:00
Corinna Vinschen
4af0c5e8f3
* libc/include/sys/unistd.h: Declare lockf(2) and define lockf
...
constants when building for Cygwin.
2008-03-27 09:55:05 +00:00
Jeff Johnston
d84985f794
2008-03-11 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
stdin gets resolved properly before refilling.
2008-03-11 19:13:30 +00:00
Jeff Johnston
88348faf5b
2008-03-11 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/rgetc.c (__srget): Invoke CHECK_INIT to ensure
stdin gets resolved properly before refilling.
2008-03-11 19:08:39 +00:00
Jeff Johnston
c622842865
2008-03-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/getopt.h: Hide newlib extensions under
the __need_getopt_newlib flag.
* libc/stdlib/getopt.c: #define __need_getopt_newlib before including
getopt.h. Put entire code under !HAVE_GETOPT to support platforms
with their own getopt implementation.
* configure.host: Specify HAVE_GETOPT for x86-linux.
2008-03-07 18:16:35 +00:00
Jeff Johnston
0382d26727
2008-03-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
this macro completely instead of referring to CHECK_STD_INIT which
is only found in libc/stdio/local.h.
* libc/stdio/dprintf.c: Add include of local.h.
* libc/stdio/vdprintf.c: Ditto.
* libc/stdio/vdiprintf.c: Ditto.
2008-03-07 16:45:04 +00:00
Eric Blake
beb0ab6466
Fix strtod("nan()", ptr).
...
* libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
n-char-sequence is omitted, still parse the ().
-------------------------------------------------------------------
2008-03-04 18:27:01 +00:00
Eric Blake
9ae00e9e07
Fix ftell bug after ungetc.
...
* libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
ftell.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
repositioning underlying fd offset.
-------------------------------------------------------------------
2008-03-04 02:22:36 +00:00
Jeff Johnston
be62101c60
2008-03-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/getopt.h (no_argument): Added for glibc compatibility.
(required_argument, optional_argument): Ditto.
2008-03-03 19:47:59 +00:00
Jeff Johnston
76ff710cfa
2008-02-29 Gregory Pietsch <gpietsch@comcast.net>
...
* libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
data area so as to support reentrant calls. Change all callers
to fill in data area with global values and restore any changes
to the global values after call.
(__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
to support reentrancy that add a data area argument.
* libc/include/getopt.h: Add new _r routines and provide macros
so they can be called with using double-underscores.
2008-02-29 21:11:57 +00:00
Eric Blake
7a44c13ecb
Fix strtod("-0x", NULL).
...
* libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
fails.
2008-02-21 17:14:14 +00:00
Jeff Johnston
9cb5dea0e2
2008-02-11 Patrick Mansfield <patmans@us.ibm.com>
...
* 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 21:21:13 +00:00
Jeff Johnston
de20111eba
2008-02-12 Jeff Johnston <jjohnstn@redhat.com>
...
* 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 18:07:55 +00:00
Jeff Johnston
f46f40b54e
2008-02-12 Peter Rosin <peda@lysator.liu.se>
...
* 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-12 17:20:09 +00:00
Jeff Johnston
74d928bf7a
2008-02-11 Patrick Mansfield <patmans@us.ibm.com>
...
* 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 22:19:59 +00:00
Jeff Johnston
9b924fc304
2008-02-11 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/strlen.c: Remove the len variable and unneeded
calculation of its value.
2008-02-11 22:14:46 +00:00
Brian Ford
17bccd4120
Remove conflict marker as obvious.
2008-01-30 18:49:59 +00:00
Hans-Peter Nilsson
77ec26b04a
* libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
...
Make ISO C.
2008-01-25 04:31:11 +00:00
DJ Delorie
226f5a32da
* libc/sys/sh/syscalls.c (_isatty): New.
2008-01-22 00:24:45 +00:00
Jeff Johnston
cece11c511
2008-01-21 Neal H. Walfield <neal@gnu.org>
...
* Makefile.am (crt1.o): Use correct source.
* Makefile.in: Regenerated.
2008-01-21 18:29:17 +00:00
Eric Blake
dc26a86fbb
* libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
...
* libc/string/Makefile: Regenerate.
2008-01-15 13:35:33 +00:00
Corinna Vinschen
12df8a5b53
* libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
...
pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
(sigsetjmp): Use __SIGMASK_FUNC.
(siglongjmp): Ditto.
(_setjmp): Define as macro.
(_longjmp): Ditto.
2008-01-15 09:41:06 +00:00
Eric Blake
40617efc8b
Make strstr and strcasestr O(n), not O(n^2); add memmem.
...
* 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-12 04:25:55 +00:00
Jeff Johnston
ceb32a183c
2008-01-08 Jeff Johnston <jjohnstn@redhat.com>
...
* 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-08 21:48:06 +00:00
Jeff Johnston
a32113705f
2008-01-07 Jeff Johnston <jjohnstn@redhat.com>
...
* 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-07 18:59:45 +00:00
Jeff Johnston
a639937a9a
2008-01-03 Jeff Johnston <jjohnstn@redhat.com>
...
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-03 22:33:37 +00:00
Jeff Johnston
7c8bd7a075
2008-01-02 Jeff Johnston <jjohnstn@redhat.com>
...
* 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.
2008-01-03 00:16:49 +00:00
Jeff Johnston
26b8429317
2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
...
* 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 22:36:48 +00:00
Jeff Johnston
6af69de3d3
2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
...
* 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 22:27:00 +00:00
Jeff Johnston
3cc8a378d1
2007-12-19 Dave Korn <dave.korn@artimi.com>
...
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 22:20:25 +00:00
Jeff Johnston
41e94f2488
2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/features.h: Add checks for C90 compilers using
-ansi.
2007-12-19 18:51:19 +00:00
Jeff Johnston
7f9b49e427
2007-11-15 Jeff Johnston <jjohnstn@redhat.com>
...
* 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.
2007-12-19 18:49:17 +00:00
Corinna Vinschen
ac26b72723
* libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
...
* 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.
2007-12-19 17:33:12 +00:00
Corinna Vinschen
478df8bb91
* libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
...
_wcsrtombs_r.
2007-12-19 17:06:19 +00:00
Jeff Johnston
60bef55d30
2007-11-19 Nick Clifton <nickc@redhat.com>
...
* 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.
2007-11-19 20:03:25 +00:00
Corinna Vinschen
815774e87f
* libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
2007-11-08 16:20:12 +00:00
Dave Brolley
7b4cad4ae6
2007-11-07 Dave Brolley <brolley@redhat.com>
...
* 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.
2007-11-07 21:42:24 +00:00
DJ Delorie
69bfb481a8
* libc/signal/signal.c (_raise_r): Don't attempt to initialize the
...
signal table, just use a default, in case initialization cause
recursion.
2007-10-31 22:22:31 +00:00
Jeff Johnston
2a3a02a687
2007-10-23 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
size if output buffer is NULL.
2007-10-23 19:50:29 +00:00
Jeff Johnston
70317d8506
2007-10-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/mathfp/s_logarithm.c: Fix error introduced by previous
fix when handling negative input values. Make function
consistent with math directory and glibc version such that
inf and nan values return inf and nan respectively with no
errno setting.
* libm/mathfp/sf_logarithm.c: Ditto.
* libm/math/w_log.c: Set errno to ERANGE when input is 0.0.
* libm/math/wf_log.c: Ditto.
* libm/math/w_log10.c: Ditto.
* libm/math/wf_log10.c: Ditto.
2007-10-18 00:03:32 +00:00
Jeff Johnston
923f9573a3
2007-10-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/mathfp/s_logarithm.c: Fix case where input is 0 to
return -inf.
* libm/mathfp/sf_logarithm.c: Ditto.
2007-10-17 20:14:49 +00:00
Jeff Johnston
ec828b8bf1
Fix typo.
2007-10-17 19:36:43 +00:00
Jeff Johnston
8b6308401d
2007-10-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/machine/i386/machine/fastmath.h: New file.
2007-10-17 19:21:32 +00:00
Eric Blake
c99e78b85c
* libc/stdio/vfprintf.c (_VFPRINTF_R) [__OPTIMIZE_SIZE__]:
...
Correctly nest else within conditionals.
Reported by Artur Lipowski.
2007-10-13 15:26:20 +00:00
Nick Clifton
97f0a0ecf6
* libc/sys/linux/dl/do-lookup.h (FCT): Support symbols with the STT_COMMON type.
2007-10-09 16:01:43 +00:00
Ben Elliston
b7bc4cccd6
* libm/machine/spu/headers/acosd2.h: Include spu_intrinsics.h
...
before simdmath.h to get a definition for `vector'.
* libm/machine/spu/headers/asind2.h: Likewise.
2007-10-09 04:24:11 +00:00
Jeff Johnston
1671fbe1ca
2007-09-28 Patrick Mansfield <patmans@us.ibm.com>
...
* libm/machine/spu/headers/dom_chkd_less_than.h: New file.
* libm/machine/spu/headers/dom_chkd_negone_one.h: Ditto.
* libm/machine/spu/headers/dom_chkf_less_than.h: Ditto.
* libm/machine/spu/headers/dom_chkf_negone_one.h: Ditto.
* libm/machine/spu/headers/acos.h: Add domain check.
* libm/machine/spu/headers/acosf.h: Ditto.
* libm/machine/spu/headers/acosh.h: Ditto.
* libm/machine/spu/headers/acoshf.h: Ditto.
* libm/machine/spu/headers/asin.h: Ditto.
* libm/machine/spu/headers/asinf.h: Ditto.
* libm/machine/spu/headers/atanh.h: Ditto.
* libm/machine/spu/headers/atanhf.h: Ditto.
* libm/machine/spu/headers/fmod.h: Ditto.
* libm/machine/spu/headers/fmodf.h: Ditto.
* libm/machine/spu/headers/log.h: Ditto.
* libm/machine/spu/headers/log10.h: Ditto.
* libm/machine/spu/headers/log1p.h: Ditto.
* libm/machine/spu/headers/log1pf.h: Ditto.
* libm/machine/spu/headers/log2.h: Ditto.
* libm/machine/spu/headers/log2f.h: Ditto.
* libm/machine/spu/headers/sqrt.h: Ditto.
* libm/machine/spu/headers/sqrtf.h: Ditto.
* libm/machine/spu/headers/tgamma.h: Ditto.
* libm/machine/spu/headers/tgammaf.h: Ditto.
2007-09-28 18:58:10 +00:00
Jeff Johnston
e30a7b84aa
2007-09-28 Patrick Mansfield <patmans@us.ibm.com>
...
* libm/machine/spu/Makefile.am: Add new C files.
* libm/machine/spu/Makefile.in: Regenerate.
* libm/machine/spu/headers/acos.h: New file.
* libm/machine/spu/headers/acosd2.h: Ditto.
* libm/machine/spu/headers/acosf.h: Ditto.
* libm/machine/spu/headers/acosf4.h: Ditto.
* libm/machine/spu/headers/acosh.h: Ditto.
* libm/machine/spu/headers/acoshd2.h: Ditto.
* libm/machine/spu/headers/acoshf.h: Ditto.
* libm/machine/spu/headers/acoshf4.h: Ditto.
* libm/machine/spu/headers/asin.h: Ditto.
* libm/machine/spu/headers/asind2.h: Ditto.
* libm/machine/spu/headers/asinf.h: Ditto.
* libm/machine/spu/headers/asinf4.h: Ditto.
* libm/machine/spu/headers/asinh.h: Ditto.
* libm/machine/spu/headers/asinhd2.h: Ditto.
* libm/machine/spu/headers/asinhf.h: Ditto.
* libm/machine/spu/headers/asinhf4.h: Ditto.
* libm/machine/spu/headers/atan.h: Ditto.
* libm/machine/spu/headers/atan2.h: Ditto.
* libm/machine/spu/headers/atan2d2.h: Ditto.
* libm/machine/spu/headers/atan2f.h: Ditto.
* libm/machine/spu/headers/atan2f4.h: Ditto.
* libm/machine/spu/headers/atand2.h: Ditto.
* libm/machine/spu/headers/atanf4.h: Ditto.
* libm/machine/spu/headers/atanh.h: Ditto.
* libm/machine/spu/headers/atanhd2.h: Ditto.
* libm/machine/spu/headers/atanhf.h: Ditto.
* libm/machine/spu/headers/atanhf4.h: Ditto.
* libm/machine/spu/headers/cos.h: Ditto.
* libm/machine/spu/headers/cos_sin.h: Ditto.
* libm/machine/spu/headers/cosd2.h: Ditto.
* libm/machine/spu/headers/cosf.h: Ditto.
* libm/machine/spu/headers/cosf4.h: Ditto.
* libm/machine/spu/headers/cosh.h: Ditto.
* libm/machine/spu/headers/coshd2.h: Ditto.
* libm/machine/spu/headers/coshf.h: Ditto.
* libm/machine/spu/headers/coshf4.h: Ditto.
* libm/machine/spu/headers/divd2.h: Ditto.
* libm/machine/spu/headers/divf4.h: Ditto.
* libm/machine/spu/headers/erf.h: Ditto.
* libm/machine/spu/headers/erf_utils.h: Ditto.
* libm/machine/spu/headers/erfc.h: Ditto.
* libm/machine/spu/headers/erfcd2.h: Ditto.
* libm/machine/spu/headers/erfcf.h: Ditto.
* libm/machine/spu/headers/erfcf4.h: Ditto.
* libm/machine/spu/headers/erfd2.h: Ditto.
* libm/machine/spu/headers/erff.h: Ditto.
* libm/machine/spu/headers/erff4.h: Ditto.
* libm/machine/spu/headers/exp.h: Ditto.
* libm/machine/spu/headers/exp2.h: Ditto.
* libm/machine/spu/headers/exp2d2.h: Ditto.
* libm/machine/spu/headers/exp2f4.h: Ditto.
* libm/machine/spu/headers/expd2.h: Ditto.
* libm/machine/spu/headers/expf4.h: Ditto.
* libm/machine/spu/headers/expm1.h: Ditto.
* libm/machine/spu/headers/expm1d2.h: Ditto.
* libm/machine/spu/headers/expm1f.h: Ditto.
* libm/machine/spu/headers/expm1f4.h: Ditto.
* libm/machine/spu/headers/floord2.h: Ditto.
* libm/machine/spu/headers/floorf4.h: Ditto.
* libm/machine/spu/headers/hypot.h: Ditto.
* libm/machine/spu/headers/hypotd2.h: Ditto.
* libm/machine/spu/headers/hypotf.h: Ditto.
* libm/machine/spu/headers/hypotf4.h: Ditto.
* libm/machine/spu/headers/isnan.h: Ditto.
* libm/machine/spu/headers/isnand2.h: Ditto.
* libm/machine/spu/headers/isnanf.h: Ditto.
* libm/machine/spu/headers/isnanf4.h: Ditto.
* libm/machine/spu/headers/ldexpd2.h: Ditto.
* libm/machine/spu/headers/ldexpf4.h: Ditto.
* libm/machine/spu/headers/lgamma.h: Ditto.
* libm/machine/spu/headers/lgammad2.h: Ditto.
* libm/machine/spu/headers/lgammaf.h: Ditto.
* libm/machine/spu/headers/lgammaf4.h: Ditto.
* libm/machine/spu/headers/log.h: Ditto.
* libm/machine/spu/headers/log10.h: Ditto.
* libm/machine/spu/headers/log10d2.h: Ditto.
* libm/machine/spu/headers/log1p.h: Ditto.
* libm/machine/spu/headers/log1pd2.h: Ditto.
* libm/machine/spu/headers/log1pf.h: Ditto.
* libm/machine/spu/headers/log1pf4.h: Ditto.
* libm/machine/spu/headers/log2.h: Ditto.
* libm/machine/spu/headers/log2d2.h: Ditto.
* libm/machine/spu/headers/log2f4.h: Ditto.
* libm/machine/spu/headers/logbf.h: Ditto.
* libm/machine/spu/headers/logbf4.h: Ditto.
* libm/machine/spu/headers/logd2.h: Ditto.
* libm/machine/spu/headers/logf4.h: Ditto.
* libm/machine/spu/headers/nearbyintf.h: Ditto.
* libm/machine/spu/headers/nearbyintf4.h: Ditto.
* libm/machine/spu/headers/nextafter.h: Ditto.
* libm/machine/spu/headers/nextafterd2.h: Ditto.
* libm/machine/spu/headers/nextafterf.h: Ditto.
* libm/machine/spu/headers/nextafterf4.h: Ditto.
* libm/machine/spu/headers/pow.h: Ditto.
* libm/machine/spu/headers/powd2.h: Ditto.
* libm/machine/spu/headers/powf.h: Ditto.
* libm/machine/spu/headers/powf4.h: Ditto.
* libm/machine/spu/headers/recipd2.h: Ditto.
* libm/machine/spu/headers/recipf4.h: Ditto.
* libm/machine/spu/headers/rintf.h: Ditto.
* libm/machine/spu/headers/rintf4.h: Ditto.
* libm/machine/spu/headers/scalbnf4.h: Ditto.
* libm/machine/spu/headers/signbit.h: Ditto.
* libm/machine/spu/headers/signbitd2.h: Ditto.
* libm/machine/spu/headers/simdmath.h: Ditto.
* libm/machine/spu/headers/sin.h: Ditto.
* libm/machine/spu/headers/sincos.h: Ditto.
* libm/machine/spu/headers/sincosd2.h: Ditto.
* libm/machine/spu/headers/sincosf.h: Ditto.
* libm/machine/spu/headers/sincosf4.h: Ditto.
* libm/machine/spu/headers/sind2.h: Ditto.
* libm/machine/spu/headers/sinf.h: Ditto.
* libm/machine/spu/headers/sinf4.h: Ditto.
* libm/machine/spu/headers/sinh.h: Ditto.
* libm/machine/spu/headers/sinhd2.h: Ditto.
* libm/machine/spu/headers/sinhf.h: Ditto.
* libm/machine/spu/headers/sinhf4.h: Ditto.
* libm/machine/spu/headers/sqrtd2.h: Ditto.
* libm/machine/spu/headers/sqrtf.h: Ditto.
* libm/machine/spu/headers/sqrtf4.h: Ditto.
* libm/machine/spu/headers/tan.h: Ditto.
* libm/machine/spu/headers/tand2.h: Ditto.
* libm/machine/spu/headers/tanf.h: Ditto.
* libm/machine/spu/headers/tanf4.h: Ditto.
* libm/machine/spu/headers/tanh.h: Ditto.
* libm/machine/spu/headers/tanhd2.h: Ditto.
* libm/machine/spu/headers/tanhf.h: Ditto.
* libm/machine/spu/headers/tanhf4.h: Ditto.
* libm/machine/spu/headers/tgamma.h: Ditto.
* libm/machine/spu/headers/tgammad2.h: Ditto.
* libm/machine/spu/headers/tgammaf.h: Ditto.
* libm/machine/spu/headers/tgammaf4.h: Ditto.
* libm/machine/spu/headers/truncd2.h: Ditto.
* libm/machine/spu/headers/truncf4.h: Ditto.
* libm/machine/spu/log2.c: Ditto.
* libm/machine/spu/s_asinh.c: Ditto.
* libm/machine/spu/s_atan.c: Ditto.
* libm/machine/spu/s_cos.c: Ditto.
* libm/machine/spu/s_erf.c: Ditto.
* libm/machine/spu/s_expm1.c: Ditto.
* libm/machine/spu/s_isnan.c: Ditto.
* libm/machine/spu/s_log1p.c: Ditto.
* libm/machine/spu/s_nextafter.c: Ditto.
* libm/machine/spu/s_sin.c: Ditto.
* libm/machine/spu/s_tan.c: Ditto.
* libm/machine/spu/s_tanh.c: Ditto.
* libm/machine/spu/sf_asinh.c: Ditto.
* libm/machine/spu/sf_cos.c: Ditto.
* libm/machine/spu/sf_erf.c: Ditto.
* libm/machine/spu/sf_expm1.c: Ditto.
* libm/machine/spu/sf_log1p.c: Ditto.
* libm/machine/spu/sf_logb.c: Ditto.
* libm/machine/spu/sf_nearbyint.c: Ditto.
* libm/machine/spu/sf_nextafter.c: Ditto.
* libm/machine/spu/sf_rint.c: Ditto.
* libm/machine/spu/sf_sin.c: Ditto.
* libm/machine/spu/sf_tan.c: Ditto.
* libm/machine/spu/sf_tanh.c: Ditto.
* libm/machine/spu/w_acos.c: Ditto.
* libm/machine/spu/w_acosh.c: Ditto.
* libm/machine/spu/w_asin.c: Ditto.
* libm/machine/spu/w_atan2.c: Ditto.
* libm/machine/spu/w_atanh.c: Ditto.
* libm/machine/spu/w_cosh.c: Ditto.
* libm/machine/spu/w_exp.c: Ditto.
* libm/machine/spu/w_exp2.c: Ditto.
* libm/machine/spu/w_hypot.c: Ditto.
* libm/machine/spu/w_lgamma.c: Ditto.
* libm/machine/spu/w_log.c: Ditto.
* libm/machine/spu/w_log10.c: Ditto.
* libm/machine/spu/w_pow.c: Ditto.
* libm/machine/spu/w_sincos.c: Ditto.
* libm/machine/spu/w_sinh.c: Ditto.
* libm/machine/spu/w_tgamma.c: Ditto.
* libm/machine/spu/wf_acos.c: Ditto.
* libm/machine/spu/wf_acosh.c: Ditto.
* libm/machine/spu/wf_asin.c: Ditto.
* libm/machine/spu/wf_atan2.c: Ditto.
* libm/machine/spu/wf_atanh.c: Ditto.
* libm/machine/spu/wf_cosh.c: Ditto.
* libm/machine/spu/wf_hypot.c: Ditto.
* libm/machine/spu/wf_lgamma.c: Ditto.
* libm/machine/spu/wf_pow.c: Ditto.
* libm/machine/spu/wf_sincos.c: Ditto.
* libm/machine/spu/wf_sinh.c: Ditto.
* libm/machine/spu/wf_sqrt.c: Ditto.
* libm/machine/spu/wf_tgamma.c: Ditto.
2007-09-28 18:44:24 +00:00
Jeff Johnston
505ea71432
2007-09-28 Patrick Mansfield <patmans@us.ibm.com>
...
* configure.host: Define _POSIX_MODE to match the existing vector
math code, as we don't support the matherr callout.
* libm/machine/spu/Makefile.am: New file.
* libm/machine/spu/Makefile.in: Auto-generated.
* libm/machine/spu/headers/atanf.h: New file.
* libm/machine/spu/headers/cbrt.h: Ditto.
* libm/machine/spu/headers/cbrtf.h: Ditto.
* libm/machine/spu/headers/ceil.h: Ditto.
* libm/machine/spu/headers/ceilf.h: Ditto.
* libm/machine/spu/headers/copysign.h: Ditto.
* libm/machine/spu/headers/copysignf.h: Ditto.
* libm/machine/spu/headers/exp2f.h: Ditto.
* libm/machine/spu/headers/expf.h: Ditto.
* libm/machine/spu/headers/fabs.h: Ditto.
* libm/machine/spu/headers/fabsf.h: Ditto.
* libm/machine/spu/headers/fdim.h: Ditto.
* libm/machine/spu/headers/fdimf.h: Ditto.
* libm/machine/spu/headers/floor.h: Ditto.
* libm/machine/spu/headers/floorf.h: Ditto.
* libm/machine/spu/headers/fma.h: Ditto.
* libm/machine/spu/headers/fmaf.h: Ditto.
* libm/machine/spu/headers/fmax.h: Ditto.
* libm/machine/spu/headers/fmaxf.h: Ditto.
* libm/machine/spu/headers/fmin.h: Ditto.
* libm/machine/spu/headers/fminf.h: Ditto.
* libm/machine/spu/headers/fmod.h: Ditto.
* libm/machine/spu/headers/fmodf.h: Ditto.
* libm/machine/spu/headers/frexp.h: Ditto.
* libm/machine/spu/headers/frexpf.h: Ditto.
* libm/machine/spu/headers/ilogb.h: Ditto.
* libm/machine/spu/headers/ilogbf.h: Ditto.
* libm/machine/spu/headers/ldexp.h: Ditto.
* libm/machine/spu/headers/ldexpf.h: Ditto.
* libm/machine/spu/headers/llrint.h: Ditto.
* libm/machine/spu/headers/llrintf.h: Ditto.
* libm/machine/spu/headers/llround.h: Ditto.
* libm/machine/spu/headers/llroundf.h: Ditto.
* libm/machine/spu/headers/log10f.h: Ditto.
* libm/machine/spu/headers/log2f.h: Ditto.
* libm/machine/spu/headers/logf.h: Ditto.
* libm/machine/spu/headers/lrint.h: Ditto.
* libm/machine/spu/headers/lrintf.h: Ditto.
* libm/machine/spu/headers/lround.h: Ditto.
* libm/machine/spu/headers/lroundf.h: Ditto.
* libm/machine/spu/headers/nearbyint.h: Ditto.
* libm/machine/spu/headers/remainder.h: Ditto.
* libm/machine/spu/headers/remainderf.h: Ditto.
* libm/machine/spu/headers/remquo.h: Ditto.
* libm/machine/spu/headers/remquof.h: Ditto.
* libm/machine/spu/headers/rint.h: Ditto.
* libm/machine/spu/headers/round.h: Ditto.
* libm/machine/spu/headers/roundf.h: Ditto.
* libm/machine/spu/headers/scalbn.h: Ditto.
* libm/machine/spu/headers/scalbnf.h: Ditto.
* libm/machine/spu/headers/sqrt.h: Ditto.
* libm/machine/spu/headers/trunc.h: Ditto.
* libm/machine/spu/headers/truncf.h: Ditto.
* libm/machine/spu/headers/vec_literal.h: Ditto.
* libm/machine/spu/llrint.c: Ditto.
* libm/machine/spu/llrintf.c: Ditto.
* libm/machine/spu/llround.c: Ditto.
* libm/machine/spu/llroundf.c: Ditto.
* libm/machine/spu/log2f.c: Ditto.
* libm/machine/spu/s_cbrt.c: Ditto.
* libm/machine/spu/s_ceil.c: Ditto.
* libm/machine/spu/s_copysign.c: Ditto.
* libm/machine/spu/s_fabs.c: Ditto.
* libm/machine/spu/s_fdim.c: Ditto.
* libm/machine/spu/s_floor.c: Ditto.
* libm/machine/spu/s_fma.c: Ditto.
* libm/machine/spu/s_fmax.c: Ditto.
* libm/machine/spu/s_fmin.c: Ditto.
* libm/machine/spu/s_frexp.c: Ditto.
* libm/machine/spu/s_ilogb.c: Ditto.
* libm/machine/spu/s_ldexp.c: Ditto.
* libm/machine/spu/s_lrint.c: Ditto.
* libm/machine/spu/s_lround.c: Ditto.
* libm/machine/spu/s_nearbyint.c: Ditto.
* libm/machine/spu/s_remquo.c: Ditto.
* libm/machine/spu/s_rint.c: Ditto.
* libm/machine/spu/s_round.c: Ditto.
* libm/machine/spu/s_scalbn.c: Ditto.
* libm/machine/spu/s_trunc.c: Ditto.
* libm/machine/spu/sf_atan.c: Ditto.
* libm/machine/spu/sf_cbrt.c: Ditto.
* libm/machine/spu/sf_ceil.c: Ditto.
* libm/machine/spu/sf_copysign.c: Ditto.
* libm/machine/spu/sf_fabs.c: Ditto.
* libm/machine/spu/sf_fdim.c: Ditto.
* libm/machine/spu/sf_floor.c: Ditto.
* libm/machine/spu/sf_fma.c: Ditto.
* libm/machine/spu/sf_fmax.c: Ditto.
* libm/machine/spu/sf_fmin.c: Ditto.
* libm/machine/spu/sf_frexp.c: Ditto.
* libm/machine/spu/sf_ilogb.c: Ditto.
* libm/machine/spu/sf_ldexp.c: Ditto.
* libm/machine/spu/sf_lrint.c: Ditto.
* libm/machine/spu/sf_lround.c: Ditto.
* libm/machine/spu/sf_remquo.c: Ditto.
* libm/machine/spu/sf_round.c: Ditto.
* libm/machine/spu/sf_scalbn.c: Ditto.
* libm/machine/spu/sf_trunc.c: Ditto.
* libm/machine/spu/w_fmod.c: Ditto.
* libm/machine/spu/w_remainder.c: Ditto.
* libm/machine/spu/w_sqrt.c: Ditto.
* libm/machine/spu/wf_exp.c: Ditto.
* libm/machine/spu/wf_exp2.c: Ditto.
* libm/machine/spu/wf_fmod.c: Ditto.
* libm/machine/spu/wf_log.c: Ditto.
* libm/machine/spu/wf_log10.c: Ditto.
* libm/machine/spu/wf_remainder.c: Ditto.
2007-09-28 18:32:57 +00:00
Jeff Johnston
364faf910a
2007-09-21 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/sys/uio.h: New file for readv and writev use.
2007-09-21 21:11:14 +00:00
Jeff Johnston
2f3d28fca2
2007-09-21 Patrick Mansfield <patmans@us.ibm.com>
...
* 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 21:02:15 +00:00
Jeff Johnston
63fbe1fd64
2007-09-21 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
specific struct and typedef.
2007-09-21 20:36:02 +00:00
Jeff Johnston
cebf33e402
2007-09-18 Patrick Mansfield <patmans@us.ibm.com>
...
* 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 20:05:17 +00:00
Jeff Johnston
3908c98592
2007-09-18 Jeff Johnston <jjohnstn@redhat.com>
...
* 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.
2007-09-18 19:32:43 +00:00
Eric Blake
ba21046d03
Obey POSIX on printf("%.s", (char*)NULL).
...
* libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
for %s on NULL. Skip NULL check when optimizing for size.
2007-09-17 20:14:29 +00:00
Jeff Johnston
e5ae72300f
2007-09-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/_types.h: Protect all types with flag
checks to allow definition in machine/_types.h.
2007-09-07 21:24:55 +00:00
Jeff Johnston
36fe6da675
2007-09-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
definitions in light of the previous change.
2007-09-07 21:18:03 +00:00
Jeff Johnston
dde223343c
2007-09-07 Patrick Mansfield <patmans@us.ibm.com>
...
* 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 21:16:25 +00:00
Jeff Johnston
78e66fb978
2007-09-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/math.h (_M_LOG2E): Replace with..
(_M_LOG2_E): New macro.
(log2, log2f, M_LOG2_E): Use _M_LOG2_E.
2007-09-07 15:30:59 +00:00
Brian Dessent
345c159562
* libc/reent/getreent.c: Allow for case where __getreent is
...
defined as a macro.
2007-09-07 00:45:55 +00:00
Jeff Johnston
e65aa07ac6
Fix typo in ChangeLog and math.h.
2007-09-06 19:55:34 +00:00
Jeff Johnston
6494ee837c
2007-09-06 Jeff Johnston <jjohnstn@redhat.com>
...
* 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-09-06 19:51:46 +00:00
Jeff Johnston
86a934d225
2007-09-04 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libm/math/wf_tgamma.c: Add missing include.
2007-09-04 17:33:10 +00:00
Jeff Johnston
6ddf8bef40
2007-08-31 Antony King <antony.king@st.com>
...
* 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-31 21:21:27 +00:00
Jeff Johnston
d4a2788652
2007-08-28 Hans Kester <hans.kester@ellips.nl>
...
* 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.
2007-08-28 21:56:50 +00:00
Jeff Johnston
309faeb5ca
2007-08-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/common/sf_lround.c (lroundf): Cast sizeof calculation
to int before comparing it to a signed int value.
2007-08-24 20:49:59 +00:00
Hans-Peter Nilsson
8d44415e4f
* libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
...
(EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
Define.
2007-08-23 23:40:28 +00:00
Jeff Johnston
e6e56f7c72
2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
...
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-23 18:45:22 +00:00
Jeff Johnston
90c6084b56
2007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/include/tar.h: New.
2007-08-03 21:03:40 +00:00
Jeff Johnston
8fb8816259
2007-08-03 Jeff Johnston <jjohnstn@redhat.com>
...
* 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.
2007-08-03 21:01:11 +00:00
Eric Blake
6ddcdb9da5
Implement fmemopen and open_memstream.
...
* 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.
2007-08-02 20:23:06 +00:00
Eric Blake
f7c978d50f
More POSIX stream corner cases.
...
* libc/stdio/findfp.c (__sinit): Open stderr read/write.
* libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
requested.
* libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.
2007-07-31 20:49:40 +00:00
Eric Blake
391b530a05
Fix 'make info'.
...
* libc/stdio/stdio.tex: Add missing include.
* libc/stdio/vfprintf.c: Use expected node name.
* libc/stdio/vfscanf.c: Likewise.
* libc/stdio/sscanf.c: Likewise.
* libc/stdio/sprintf.c: Likewise.
* libc/stdio/siscanf.c: Likewise.
* libc/stdio/siprintf.c: Likewise.
* libc/stdio/fopencookie.c: Quote raw {}.
Reported by DJ Delorie.
2007-07-19 03:42:21 +00:00
Jeff Johnston
5fdec53f8c
Fix date type for 1.15 release.
2007-07-18 18:27:04 +00:00
Eric Blake
08146e5adb
Fix fflush issues.
...
* libc/stdio/fflush.c (_fflush_r): New function.
(fflush): Fix reentrancy and large offset behavior.
* libc/include/stdio.h (_fflush_r): Add prototype.
* libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/fseek.c (_fseek_r): Likewise.
* libc/stdio/ftell.c (_ftell_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/setvbuf.c (setvbuf): Likewise.
* libc/stdio/ungetc.c (_ungetc_r): Likewise.
* libc/stdio/vfprintf.c (__sbprintf): Likewise.
* libc/stdio/wbuf.c (__swbuf_r): Likewise.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise. Defer to
32-bit version if not large file.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
2007-07-13 20:37:53 +00:00
Eric Blake
88c8888127
Documentation updates.
...
* libc/stdio/ungetc.c: Document ungetc.
* libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
of files with documentation.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/stdio.tex: Sort and update stdio documentation index.
2007-07-13 17:07:28 +00:00
Jeff Johnston
c4ccbcce6c
2007-07-11 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/math.h: Fix so C99 functions/macros are accessible
when -std=c99 is used when compiling and not when using C89.
2007-07-11 18:09:08 +00:00
Corinna Vinschen
dec27025b2
* libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
...
wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
(EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
wcstoull_r.c.
(CHEWOUT_FILES): Add .def files accordingly.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/stdlib.tex: Add documentation links for above functions.
* libc/stdlib/strtoll.c: Fix portability note.
* libc/stdlib/strtoull.c: Ditto.
* libc/stdlib/wcstol.c: New file.
* libc/stdlib/wcstoll.c: New file.
* libc/stdlib/wcstoll_r.c: New file.
* libc/stdlib/wcstoul.c: New file.
* libc/stdlib/wcstoull.c: New file.
* libc/stdlib/wcstoull_r.c: New file.
2007-07-06 20:03:28 +00:00
Jeff Johnston
0be2bc94e7
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/time.h (gettimeofday): Change to proper
prototype where second parameter is void *.
* libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
accordingly.
* libc/include/reent.h: Fix prototype for _gettimeofday_r.
* libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
* libc/sys/rdos/gettod.c: Ditto.
* libc/sys/sh/syscalls.c: Ditto.
* libc/time/time.c (time): Change call to _gettimeofday_r
to pass NULL as 2nd argument.
2007-07-06 16:56:30 +00:00
Jeff Johnston
ba9af2d7ec
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
* libc/sys/linux/intl/l10nflist.c: Ditto.
2007-07-06 16:42:48 +00:00
Corinna Vinschen
a37215120b
* libc/include/wchar.h: Add prototype for wcsxfrm.
...
* libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
(CHEWOUT_FILES): Add wcsxfrm.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/wcsxfrm.c: New file.
* libc/string/wcstrings.tex: Add wcsxfrm.
2007-07-04 16:18:34 +00:00
Corinna Vinschen
5d8b97a694
* libc/include/string.h: Add prototypes for stpcpy and stpncpy.
...
* libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
stpncpy.c.
(CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/stpcpy.c: New file.
* libc/string/stpncpy.c: New file.
* libc/string/strings.tex: Add stpcpy and stpncpy.
2007-06-28 17:07:23 +00:00
Eric Blake
3473e6bd7b
Support __func__ in assert, as required by C99.
...
* libc/stdlib/assert.c (__assert_func): New function.
(__assert): Use __assert_func.
* libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
possible.
2007-06-27 12:44:41 +00:00
Jeff Johnston
be97722968
2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/perror.c: Pass errno as the second argument to
the assist call.
2007-06-20 21:54:47 +00:00
Jeff Johnston
d360ef1865
2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/include/sys/unistd.h[__SPU__]: Add lockf prototype and related
defines; expose ftruncate, truncate and sync prototypes.
2007-06-20 21:49:06 +00:00
Jeff Johnston
f75c75183f
2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
* libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
visible.
2007-06-20 17:30:58 +00:00
Jeff Johnston
438b07b09f
2007-06-15 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/Makefile.am: Remove mktemp.c, it was left in
from a dropped patch.
* libc/machine/spu/Makefile.in: Regenerate.
2007-06-15 16:00:46 +00:00
Jeff Johnston
c33ff7855e
2007-06-13 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/creat.c: New file copied from libc/posix/creat.c,
it just calls open with appropriate arguments.
* libc/machine/spu/Makefile.am: Add creat.c.
* libc/machine/spu/Makefile.in: Regenerate.
2007-06-13 17:55:28 +00:00
Jeff Johnston
ae473bdc48
2007-06-13 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/machine/spu/Makefile.am: Re-add back setjmp.S which
I accidentally dropped.
* libc/machine/spu/Makefile.in: Regenerated.
2007-06-13 17:50:13 +00:00
Jeff Johnston
a8b08518c1
2007-06-13 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
* libc/include/sys/unistd.h: Change usleep prototype to Posix
form and move outside of OS flag checks.
* libc/machine/spu/Makefile.am: Add sleep and usleep.
* libc/machine/spu/Makefile.in: Regenerate.
* libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
* libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
2007-06-13 17:44:24 +00:00
Corinna Vinschen
f4cd2a1d71
* libc/include/sys/unistd.h: Declare confstr for Cygwin.
...
Define confstr constants for Cygwin. Add comment.
2007-06-11 17:33:43 +00:00
Hans-Peter Nilsson
32f67ec6ff
* libc/sys/mmixware/access.c (access): Do not try to use a magic
...
file-handle and a direct syscall, just use _open.
* libc/sys/mmixware/sys/syscall.h (TMPFNO): Remove this magic
file-handle.
* libc/sys/mmixware/_exit.c (_exit): Update comment about
passing on the exit value.
2007-06-10 12:54:35 +00:00
Jeff Johnston
6fb374754d
2007-06-08 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/string/strcasestr.c: New file.
* libc/include/string.h: Add strcasestr.
* libc/string/strings.tex: Add strcasestr.
* libc/string/Makefile.am: Ditto.
* libc/string/Makefile.in: Regenerated.
2007-06-08 18:38:51 +00:00
Jeff Johnston
1eeaeab855
2007-06-06 Christian Groessler <chris@groessler.org>
...
* libc/stdlib/ldtoa (_ldcheck): Make sure the setting of
rnd is done after the last local variable declaration.
2007-06-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mprec.h[Just_16]: Make sure that Pack_16 is defined.
2007-06-06 19:24:28 +00:00
Jeff Johnston
a874abaf37
Fix entry to refer to function instead of variable.
2007-06-05 21:42:17 +00:00
Jeff Johnston
a5da131d8d
2007-06-05 Christian Groessler <chris@groessler.org>
...
* libc/argz/argz_insert.c (delta): Move variable declaration
to top of function in keeping with C89 standard.
2007-06-05 21:40:48 +00:00
Eric Blake
17c61d6a2c
Implement funopen, fopencookie.
...
* libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
Switch to reentrant callbacks.
* libc/include/stdio.h (funopen): Fix declaration.
(fopencookie): Declare.
* libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
(__sseek64, __swrite64): Fix prototypes.
[__SCLE]: Pull in setmode declaration.
* libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
reentrancy.
* libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
(__sseek64, __swrite64): Fix reentrancy.
* libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
reentrancy.
* libc/stdio/ftell.c (_ftell_r): Likewise.
* libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
* libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/siscanf.c (eofread): Likewise.
* libc/stdio/sscanf.c (eofread): Likewise.
* libc/stdio/vsiscanf.c (eofread1): Likewise.
* libc/stdio/vsscanf.c (eofread1): Likewise.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio/fflush.c (fflush): Improve reentrancy, although more
could be fixed.
* libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
* libc/stdio/funopen.c (_funopen_r, funopen): New file.
* libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
new files.
* libc/stdio/Makefile.in: Regenerate.
2007-06-04 18:10:17 +00:00
Eric Blake
b206478328
Avoid more compiler warnings.
...
* libc/stdlib/btowc.c: Add missing header.
* libc/stdlib/getopt.c (getopt_internal): Initialize variable.
* libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration.
* libc/stdlib/wctob.c: Add missing header.
* libc/string/strcpy.c (strcpy): Avoid warnings.
* libc/string/strrchr.c (strrchr): Likewise.
2007-05-29 21:26:59 +00:00
Corinna Vinschen
76a2ee78b6
* libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string
...
argument.
* libc/argz/argz_append.c (argz_append): Handle empty buf argument.
* libc/argz/argz_create_sep.c (argz_create_sep): Return (NULL, 0)
on empty input strings.
* libc/argz/argz_extract.c (argz_extract): Check argz_len before
looping through argz.
* libc/argz/argz_stringify.c (argz_stringify): Ditto.
2007-05-29 07:49:14 +00:00
Eric Blake
75acf0bb2e
* libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when
...
handling %p.
2007-05-27 14:19:15 +00:00
Eric Blake
f5c58e9a34
* libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22.
2007-05-25 17:05:09 +00:00
Steve Ellcey
d9a1ecc006
* ltmain.sh: Update from GCC.
...
* libtool.m4: Update from GCC.
* ltsugar.m4: New. Update from GCC.
* ltversion.m4: New. Update from GCC.
* ltoptions.m4: New. Update from GCC.
* ltconfig: Remove.
* ltcf-c.sh: Remove.
* ltcf-cxx.sh: Remove.
* ltcf-gcj.sh: Remove.
* src-release: Update with new libtool file list.
* newlib/*/configure.in: invoke _LD_DECL_SED.
* newlib/*/Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
* Regenerate subdirectories
2007-05-24 17:33:42 +00:00
Eric Blake
aa5341f9ac
* libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when
...
sizeof(void*) is 8 but sizeof(long) is 4.
* libc/stdio/vfscanf.c (__SVFSCANF_R): Likewise. Fix %i scanning
of "-0x". Support "-nan" and "inf" for %e. Audit usage of ungetc
to fix reentrancy and bug on encoding error in multibyte locales.
Always return EOF on read error.
2007-05-24 04:25:18 +00:00
Jeff Johnston
4a9880e071
2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/sys/syscall.h: Update the __send_to_ppe
prototype.
* libc/machine/spu/fclose.c: Use the __send_to_ppe return value
instead of the slot 0 value, remove any now unused variables, and
for some cases, now store the result in an int vs int*.
* libc/machine/spu/feof.c: Ditto.
* libc/machine/spu/ferror.c: Ditto.
* libc/machine/spu/fflush.c: Ditto.
* libc/machine/spu/fgetc.c: Ditto.
* libc/machine/spu/fgetpos.c: Ditto.
* libc/machine/spu/fgets.c: Ditto.
* libc/machine/spu/fileno.c: Ditto.
* libc/machine/spu/fopen.c: Ditto.
* libc/machine/spu/fprintf.c: Ditto.
* libc/machine/spu/fputc.c: Ditto.
* libc/machine/spu/fputs.c: Ditto.
* libc/machine/spu/fread.c: Ditto.
* libc/machine/spu/freopen.c: Ditto.
* libc/machine/spu/fscanf.c: Ditto.
* libc/machine/spu/fseek.c: Ditto.
* libc/machine/spu/fsetpos.c: Ditto.
* libc/machine/spu/ftell.c: Ditto.
* libc/machine/spu/fwrite.c: Ditto.
* libc/machine/spu/getc.c: Ditto.
* libc/machine/spu/getchar.c: Ditto.
* libc/machine/spu/gets.c: Ditto.
* libc/machine/spu/printf.c: Ditto.
* libc/machine/spu/putc.c: Ditto.
* libc/machine/spu/putchar.c: Ditto.
* libc/machine/spu/puts.c: Ditto.
* libc/machine/spu/remove.c: Ditto.
* libc/machine/spu/rename.c: Ditto.
* libc/machine/spu/scanf.c: Ditto.
* libc/machine/spu/setvbuf.c: Ditto.
* libc/machine/spu/snprintf.c: Ditto.
* libc/machine/spu/sprintf.c: Ditto.
* libc/machine/spu/sscanf.c: Ditto.
* libc/machine/spu/tmpfile.c: Ditto.
* libc/machine/spu/tmpnam.c: Ditto.
* libc/machine/spu/ungetc.c: Ditto.
* libc/machine/spu/vfprintf.c: Ditto.
* libc/machine/spu/vfscanf.c: Ditto.
* libc/machine/spu/vprintf.c: Ditto.
* libc/machine/spu/vscanf.c: Ditto.
* libc/machine/spu/vsnprintf.c: Ditto.
* libc/machine/spu/vsprintf.c: Ditto.
* libc/machine/spu/vsscanf.c: Ditto.
2007-05-23 21:41:17 +00:00
Eric Blake
9a3ec8622b
* libc/stdio/vfscanf.c (__SVFSCANF_R): Support scanf(%1$s).
...
Avoid warning when !FLOATING_POINT.
* libc/stdio/vfprintf.c (_VFPRINTF_R): Simplify _NO_POS_ARGS
slightly.
2007-05-23 20:36:28 +00:00
Corinna Vinschen
d48670ed78
* libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len
...
to zero.
* libc/include/argz.h: Guard against multiple inclusion. Guard for
use with C++.
2007-05-23 16:36:23 +00:00
Eric Blake
8aab2bc260
* libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gcc
...
compilers.
* libc/stdio/vfscanf.c: Likewise.
2007-05-18 14:33:30 +00:00
Jeff Johnston
b2250c70bd
2007-05-17 Cary R. <cygcary <at> yahoo.com>
...
* libm/math/w_atan2.c: Fix atan2 to be consistent with glibc
(atan2(+0,-0), atan2(-0,-0) and atan(-0,+0))
* libm/math/wf_atan2.c: Ditto.
2007-05-17 21:52:11 +00:00
Jeff Johnston
e0500490bc
2007-05-17 Yaakov Selkowitz <yselkowitz <at> users.sourceforge.net>
...
* libm/common/Makefile.am: Add support for exp10, exp10f,
pow10, and pow10f functions.
* libm/common/Makefile.in: Regenerated.
* libm/common/s_pow10.c: New file.
* libm/common/sf_pow10.c: Ditto.
* libm/common/s_exp10.c: Ditto.
* libm/common/sf_exp10.c: Ditto.
* libc/include/math.h [!pow10]: New pow10 prototype.
[!pow10f]: New pow10f prototype.
[!exp10]: New exp10 prototype.
[!exp10f]: New exp10f prototype.
2007-05-17 18:50:57 +00:00
Eric Blake
487e9075d0
* stdio/tmpfile.c: Include <sys/stat.h>.
...
* stdio64/tmpfile64.c: Ditto.
2007-05-17 12:10:29 +00:00
Eric Blake
d009633d30
Close security hole in tmpfile.
...
* libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
generation and opening the fd.
* libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
2007-05-16 20:06:08 +00:00
Eric Blake
895d76fed6
* libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)
...
(MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros
required by POSIX.
* libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to
avoid clash with <math.h>.
2007-05-16 19:59:40 +00:00
Eric Blake
f65607751c
* libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.
...
* libc/search/hash.c (__hash_open): Likewise.
2007-05-16 19:31:08 +00:00
Eric Blake
34507ce026
Reduce stack size of *printf.
...
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point
in %f. Avoid malloc when possible for %S.
(BUF): Improve stack locality by using smaller size.
(MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define.
(exponent): Use smaller stack size.
2007-05-14 19:42:47 +00:00
Eric Blake
0962fe9178
Minimize printf/scanf size on platforms that don't need C99.
...
* acconfig.h (_WANT_IO_C99_FORMATS): New macro.
* newlib.hin (_WANT_IO_C99_FORMATS): Likewise.
* configure.in (newlib-io-c99-formats): New configure option.
(_WANT_IO_C99_FORMATS): Define appropriately.
* configure.host (*-linux*, cygwin): Default c99-formats to yes.
* libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]:
Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers.
* libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]:
Likewise.
* configure: Regenerate.
2007-05-11 20:09:00 +00:00
Eric Blake
b8a37af936
* libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)
...
(get_arg): Support '%a' and '%A'.
2007-05-11 13:09:44 +00:00
Eric Blake
81274c6726
Allow zero size with non-null buf in *asnprintf.
...
* libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing
user's buf.
* libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise.
* libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise.
* libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
2007-05-09 19:27:30 +00:00
Eric Blake
38ed4e5111
* libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.
2007-05-08 03:59:13 +00:00
Eric Blake
b9db529222
Add support for asnprintf, and improve *printf documentation.
...
* libc/stdio/Makefile.am (ELIX_SOURCES): Rename...
(ELIX_2_SOURCES): ...to this.
(ELIX_4_SOURCES): Add new variable. Build asnprintf.
(GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES.
(CHEWOUT_FILES): Include diprintf in documentation.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/diprintf.c: Improve documentation.
* libc/stdio/dprintf.c: Likewise.
* libc/stdio/siprintf.c: Likewise.
* libc/stdio/sprintf.c: Likewise.
* libc/stdio/vfprintf.c: Likewise.
* libc/stdio/viprintf.c: Likewise.
* libc/stdio/vsniprintf.c: Consolidate documentation.
* libc/stdio/asiprintf.c: Refer to documentation.
* libc/stdio/asprintf.c: Likewise.
* libc/stdio/fiprintf.c: Likewise.
* libc/stdio/fprintf.c: Likewise.
* libc/stdio/iprintf.c: Likewise.
* libc/stdio/printf.c: Likewise.
* libc/stdio/sniprintf.c: Likewise.
* libc/stdio/vdiprintf.c: Likewise.
* libc/stdio/vdprintf.c: Likewise.
* libc/stdio/vsiprintf.c: Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf.
* libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file.
* libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file.
* libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New
file.
* libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file.
* libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in
typical case.
* libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise.
* libc/include/stdio.h: Add prototypes for new functions; sort
existing functions.
2007-05-04 02:55:16 +00:00
Kazu Hirata
fb3937fade
* libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
...
and memset.S.
* libc/machine/m68k/Makefile.in: Regenerate.
* libc/machine/m68k/memcpy.S: Use sub.l followed by dbra.
* libc/machine/m68k/memset.S: Likewise.
2007-05-03 19:45:26 +00:00
Eric Blake
b4f095585f
* libc/stdio64/local64.h: Delete, move contents to...
...
* libc/stdio/local.h: ...here.
* libc/stdio64/fdopen64.c: Update includes.
* libc/stdio64/fopen64.c: Likewise.
* libc/stdio64/freopen64.c: Likewise.
* libc/stdio64/fseeko64.c: Likewise.
* libc/stdio64/ftello64.c: Likewise.
* libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
and stderr with 64-bit offset.
* libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
* libc/stdio/makebuf.c (__smakebuf_r): Likewise.
* libc/stdio/mktemp.c (_gettemp): Likewise.
2007-05-01 23:03:36 +00:00
Jeff Johnston
2babeb3d94
2007-05-01 Cary R. <cygcary <at> yahoo.com>
...
* libm/math/e_pow.c: Fix to be consistent with glibc with regards
to treatment of NaN and +-inf arguments.
* libm/math/ef_pow.c: Ditto.
* libm/math/w_pow.c: Ditto.
* libm/math/wf_pow.c: Ditto.
* libm/math/w_acos.c: Fix domain errors to return NaN.
* libm/math/w_asin.c: Ditto.
* libm/math/wf_acos.c: Ditto.
* libm/math/wf_asin.c: Ditto.
* libm/math/w_log.c: Fix to return NaN for negative number inputs.
* libm/math/wf_log.c: Ditto.
* libm/math/wf_log10.c: Ditto.
* libm/math/w_log10.c: Ditto.
2007-05-01 18:42:15 +00:00
Jeff Johnston
643aff874d
2007-04-27 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/machine/m68k/Makefile.am: Temporarily remove
memcpy.S and memset.S until logic can be confirmed for
!(__mcoldfile__) case.
* libc/machine/m68k/Makefile.in: Regenerated.
2007-04-27 22:10:47 +00:00
Jeff Johnston
9e5957de57
2007-04-27 Kazu Hirata <kazu@codesourcery.com>
...
* libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S
and memset.S.
* libc/machine/m68k/Makefile.in: Regenerate.
* libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
2007-04-27 16:05:35 +00:00
Jeff Johnston
976e9d281b
2007-04-26 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be
overridden via machine/ieeefp.h.
* libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp
macros for isnan and related macros.
* libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be
overridden via machine/ieeefp.h.
* libm/machine/spu/Makefile.am: Add new files.
* libm/machine/spu/Makefile.in: Autogenerate with new files.
* libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf.
* libm/machine/spu/sf_finite.c: Add SPU specific finitef.
* libm/machine/spu/sf_isinf.c: Add SPU specific isinff.
* libm/machine/spu/sf_isinff.c: Add SPU specific __isinff.
* libm/machine/spu/sf_isnan.c: Add SPU specific isnanf.
* libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf.
* libm/machine/spu/sf_nan.c: Add SPU specific nanf.
2007-04-26 19:23:37 +00:00
Jeff Johnston
34450bd565
2007-04-25 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/common/s_fpclassify.c (__fpclassifyf): Move this to...
* libm/common/sf_fpclassify.c: ...here. New file.
* libm/common/Makefile.am: Add sf_fpclassify.c.
* libm/common/Makefile.in: Regenerated.
2007-04-25 22:28:19 +00:00
Jeff Johnston
42cd3e6c52
2007-04-25 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/sys/errno.h: New file, so spu errno values match
ppu linux values. This file is a copy of the cris/sys/errno.h plus
a few changes (see spu errno.h comments).
2007-04-25 20:45:39 +00:00
Jeff Johnston
8b36608695
2007-04-25 Eric Blake <ebb9@byu.net>
...
* libc/stdio/vfprintf.c (get_arg): Support %1$lc. Simplify types
that promote to int.
2007-04-25 19:47:36 +00:00
Jeff Johnston
245240b5e9
2007-04-25 Patrick Mansfield <patmans@us.ibm.com>
...
* feholdexcept.h: Use *envp not env so we clear the proper bits in
the fpscr, and don't set some random ones.
2007-04-25 17:36:32 +00:00
Eric Blake
5866c02352
* libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
...
or NaN with %05f.
2007-04-24 20:09:50 +00:00
Eric Blake
27e5e9ab05
* libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
...
_MB_CAPABLE.
2007-04-24 19:55:28 +00:00
Eric Blake
68f2517f72
* libc/include/limits.h (NL_ARGMAX): Define a default value.
...
* libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
NL_ARGMAX, if present.
2007-04-24 16:01:15 +00:00
Jeff Johnston
714d0b7a88
2007-04-23 Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
...
* confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New
file. Override Autoconf-2.59's version of these macros with
fixed handling of multiple adjacent whitespace in arguments.
* aclocal.m4: Regenerated forcefully.
* configure: Ditto.
* Makefile.in: Ditto.
* libc/*Makefile.in: Ditto.
* libc/*aclocal.m4: Ditto.
* libc/*configure: Ditto.
* libm/*Makefile.in: Ditto.
* libm/*aclocal.m4: Ditto.
* libm/*configure: Ditto.
2007-04-23 22:52:37 +00:00
Jeff Johnston
930b1861ce
2007-04-23 Brian Dessent <brian@dessent.net>
...
* libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag
has been specified with types 'f', 'F', 'g', or 'G', ensure the
trailing decimal is printed.
2007-04-23 21:55:31 +00:00
Jeff Johnston
8aebc414ec
2007-04-23 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule.
* libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES
and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule.
* libc/sys/arc/Makefile.in: Regenerated.
2007-04-23 19:46:08 +00:00
Jeff Johnston
fb5750bfb4
2007-04-17 Brian Dessent <brian@dessent.net>
...
* libc/stdio/sscanf.c: Update documentation comments.
* libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
2007-04-17 20:53:24 +00:00
Eric Blake
ba3ccd633d
* libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
...
(chclass): Recognize 'F', 'X', 'n', and not 'W'.
(get_arg): Handle %1$F, %1$n.
2007-04-13 01:57:33 +00:00
Eric Blake
503e2d1c76
* libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
...
CFLAGS=-O0.
2007-04-10 12:49:18 +00:00
Eric Blake
17c0c97d7c
* libc/include/stdio.h: Add gcc format attributes to printf and
...
scanf families.
2007-04-10 12:47:13 +00:00
Jeff Johnston
abe43f4262
2007-04-09 Joel Schopp <jschopp@austin.ibm.com>
...
* libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data
even if the passed in length n is shorter than the source string.
This matches both the non-spu specific and the glibc strxfrm
behaviour.
2007-04-09 16:03:26 +00:00
Kazu Hirata
07278e6cc7
* testsuite/lib/flags.exp (newlib_include_flags): Drop
...
-I${newlib_dir}.
2007-04-05 16:53:17 +00:00
Kazu Hirata
0efa93c061
* libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit
...
functions registering additional atexit functions.
2007-04-05 16:47:38 +00:00
Jeff Johnston
748c191767
2007-04-04 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/sys/syscall.h: New file for __send_to_ppe
prototype.
* libc/machine/spu/c99ppe.h: Remove static version of send_to_ppe.
* libc/machine/spu/clearerr.c: Call __send_to_ppe vs send_to_ppe.
* libc/machine/spu/fclose.c: Ditto.
* libc/machine/spu/feof.c: Ditto.
* libc/machine/spu/ferror.c: Ditto.
* libc/machine/spu/fflush.c: Ditto.
* libc/machine/spu/fgetc.c: Ditto.
* libc/machine/spu/fgetpos.c: Ditto.
* libc/machine/spu/fgets.c: Ditto.
* libc/machine/spu/fileno.c: Ditto.
* libc/machine/spu/fopen.c: Ditto.
* libc/machine/spu/fprintf.c: Ditto.
* libc/machine/spu/fputc.c: Ditto.
* libc/machine/spu/fputs.c: Ditto.
* libc/machine/spu/fread.c: Ditto.
* libc/machine/spu/freopen.c: Ditto.
* libc/machine/spu/fscanf.c: Ditto.
* libc/machine/spu/fseek.c: Ditto.
* libc/machine/spu/fsetpos.c: Ditto.
* libc/machine/spu/ftell.c: Ditto.
* libc/machine/spu/fwrite.c: Ditto.
* libc/machine/spu/getc.c: Ditto.
* libc/machine/spu/getchar.c: Ditto.
* libc/machine/spu/gets.c: Ditto.
* libc/machine/spu/perror.c: Ditto.
* libc/machine/spu/printf.c: Ditto.
* libc/machine/spu/putc.c: Ditto.
* libc/machine/spu/putchar.c: Ditto.
* libc/machine/spu/puts.c: Ditto.
* libc/machine/spu/remove.c: Ditto.
* libc/machine/spu/rename.c: Ditto.
* libc/machine/spu/rewind.c: Ditto.
* libc/machine/spu/scanf.c: Ditto.
* libc/machine/spu/setbuf.c: Ditto.
* libc/machine/spu/setvbuf.c: Ditto.
* libc/machine/spu/snprintf.c: Ditto.
* libc/machine/spu/sprintf.c: Ditto.
* libc/machine/spu/sscanf.c: Ditto.
* libc/machine/spu/tmpfile.c: Ditto.
* libc/machine/spu/tmpnam.c: Ditto.
* libc/machine/spu/ungetc.c: Ditto.
* libc/machine/spu/vfprintf.c: Ditto.
* libc/machine/spu/vfscanf.c: Ditto.
* libc/machine/spu/vprintf.c: Ditto.
* libc/machine/spu/vscanf.c: Ditto.
* libc/machine/spu/vsnprintf.c: Ditto.
* libc/machine/spu/vsprintf.c: Ditto.
* libc/machine/spu/vsscanf.c: Ditto.
2007-04-04 21:03:13 +00:00
Jeff Johnston
a706aa2e1c
2007-04-04 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/argz/argz_insert.c: Add stddef.h to get ptrdiff_t type.
2007-04-04 20:49:07 +00:00
Jeff Johnston
db7aa4b168
2007-04-04 Eric Blake <ebb9@byu.net>
...
* libc/stdio/asiprintf.c (_asiprintf_r): Fix reentrancy.
(asiprintf): Avoid overhead.
* libc/stdio/asprintf.c (_asprintf_r): Fix reentrancy.
(asprintf): Avoid overhead.
* libc/stdio/diprintf.c (_diprintf_r, diprintf): New file.
* libc/stdio/dprintf.c (_dprintf_r, dprintf): Use _DEFUN.
* libc/stdio/fiprintf.c (_fiprintf_r): Add reentrant version.
(fiprintf): Avoid overhead.
* libc/stdio/fprintf.c (_fprintf_r): Add reentrant version.
(fprintf): Avoid overhead.
* libc/stdio/iprintf.c (_iprintf_r): Use _DEFUN.
(iprintf): Avoid overhead.
* libc/stdio/printf.c (_printf_r): Use _DEFUN.
(printf): Avoid overhead.
* libc/stdio/vasiprintf.c (vasiprintf): Reduce binary size.
* libc/stdio/vasprintf.c (vasprintf): Reduce binary size.
* libc/stdio/vdiprintf.c (_vdiprintf_r, vdiprintf): New file.
* libc/stdio/vdprintf.c (vdprintf): Avoid overhead.
* libc/stdio/vsiprintf.c (vsiprintf): Reduce binary size.
* libc/stdio/vsniprintf.c (vsniprintf): Reduce binary size.
* libc/stdio/vsnprintf.c (vsnprintf): Reduce binary size.
* libc/stdio/vsprintf.c (vsprintf): Reduce binary size.
* libc/stdio/Makefile.am (GENERAL_SOURCES): Add diprintf.c,
vdiprintf.c.
* libc/include/stdio.h (diprintf, _diprintf_r, vdiprintf)
(_vdiprintf_r, _fiprintf_r, _vfiprintf_r): Add prototypes.
2007-04-04 18:32:49 +00:00
Dave Korn
2c58b5a5e8
2007-03-30 Dave Korn <dave.korn@artimi.com>
...
* libc/include/stdio.h (_ELIDABLE_INLINE): New macro to conceal
conflicting inline semantics between C99 and GNU89.
(__sgetc_r): Replace static inline with _ELIDABLE_INLINE to be
compatible with -fkeep-inline-functions usage.
(__sputc_r): Likewise for consistency even though disabled.
2007-03-30 00:49:56 +00:00
Nick Clifton
519aec5d59
Reflect changes made to generic vfprintf.c:
...
* libc/machine/powerpc/vfprintf.c (__sprint): Rename to __sprint_r and add a "struct reent *" argument.
(__sbprintf): Rename to __sbprintf_r, add a "struct reent *" argument and call _VFPRINTF_R instead of VFPRINTF.
(_VFPRINTF_R): Add data pointer to call to cantwrite(). Fix uses of __sprint() and __sbprintf.
2007-03-29 06:25:44 +00:00
Jeff Johnston
443871a60b
2007-03-16 Charles Wilson <cygwin@...>
...
* libc/argz/argz_insert.c: "before" pointer is
invalid after *argz realloc. Compute offset
between "before" and *argz, and use it after
reallocation instead.
2007-03-16 21:16:09 +00:00
Jeff Johnston
a167bcd8e5
2007-03-16 Eric Blake <ebb9@byu.net>
...
* libc/stdio64/fseek064.c (_fseeko64_r): Fix reentrancy.
* libc/stdio64/freopen64.c (_freopen64_r): Ditto.
2007-03-16 20:05:10 +00:00
Jeff Johnston
826b5591dd
2007-03-15 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.in: Add new --enable-newlib-reent-small option.
* configure: Regenerated.
* acconfig.h: Add _WANT_REENT_SMALL.
* newlib.hin: Regenerated minus PACKAGE macros to add
_WANT_REENT_SMALL macro.
* libc/include/sys/config.h[_WANT_REENT_SMALL]: Set _REENT_SMALL
if not already set.
* libc/stdio/fflush.c[_REENT_SMALL]: Return immediately if
there is no buffer.
* libc/stdio/local.h[_REENT_SMALL]: Fix CHECK_INIT macro to
use reentrant pointer passed in when resetting the file
pointer to one of the std streams.
2007-03-15 21:32:13 +00:00
Jeff Johnston
14ba5e14d9
2007-03-15 Eric Blake <ebb9@byu.net>
...
* libc/stdio/local.h (cantwrite, FREEUB, FREELB): Make reentrant.
(__smakebuf): Rename...
(__smakebuf_r): to this.
* libc/stdio/fvwrite.h (__swsetup_r): Rename, from __swsetup.
* libc/stdio/makebuf.c (__smakebuf): Detect failed asprint
allocation, then rename...
(__smakebuf_r): ...to this and fix reentrancy.
* libc/stdio/wsetup.c (__swsetup): Detect failed asprintf
allocation, then rename...
(__swsetup_r): ...to this and fix reentrancy.
* libc/stdio/fseek.c (_fseek_r): Fix reentrancy.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/fclose.c (_fclose_r): Likewise.
* libc/stdio/fread.c (_fread_r): Likewise.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/wbuf.c (__swbuf_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Set errno properly on
failed asprintf allocation, and fix reentrancy.
* libc/stdio/snprintf.c (snprintf, _snprintf_r): Report overflow,
as required by POSIX.
* libc/stdio/sniprintf.c (sniprintf, _sniprintf_r): Likewise.
* libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Likewise.
* libc/stdio/vsniprintf.c (vsniprintf, _vsniprintf_r): Likewise.
2007-03-15 18:40:48 +00:00
Jeff Johnston
99304ce6c4
2007-03-12 Eric Blake <ebb9@byu.net>
...
* libc/stdio/fvwrite.c (__sfvwrite_r): Fix reentrancy.
* libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Pass failed
allocation to caller.
* libc/stdio/asprintf.c (_asprintf_r, asprintf): Likewise.
* libc/stdio/asiprintf.c (_asiprintf_r, asiprintf): Likewise.
* libc/stdio/vasiprintf.c (vasiprintf, _vasiprintf_r): Likewise.
2007-03-12 20:30:08 +00:00
Jeff Johnston
d9edc05f47
2007-02-23 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/math/w_pow.c: Fix typo in documentation comment.
2007-02-23 18:29:31 +00:00
Jeff Johnston
59673dbb2a
2007-02-21 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/reent/timer.c: Removed (split into two new files).
* libc/reent/timesr.c: New file for _times_r.
* libc/reent/gettimeofdayr.c: New file out _gettimeofday_r.
* reent/Makefile.in: Remove timer.c, add timesr.c and
gettimeofdayr.c.
* libc/reent/Makefile.am: Regenerate.
2007-02-21 19:22:33 +00:00
Jeff Johnston
547c5c6104
2007-02-20 Patrick Mansfield <patmans@us.ibm.com>
...
* configure.host: Build SPU with default_newlib_atexit_dynamic_alloc="no".
2007-02-20 21:02:36 +00:00
Jeff Johnston
3b7e017ec4
2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libc/machine/spu/Makefile.am: Add new objects.
* libc/machine/spu/Makefile.in: Regenerated.
* libc/machine/spu/fiprintf.c: New file. Add implementation of
integer-only version.
* libc/machine/spu/fiscanf.c: Ditto.
* libc/machine/spu/iprintf.c: Ditto.
* libc/machine/spu/iscanf.c: Ditto.
* libc/machine/spu/siprintf.c: Ditto.
* libc/machine/spu/siscanf.c: Ditto.
* libc/machine/spu/sniprintf.c: Ditto.
* libc/machine/spu/vfiprintf.c: Ditto.
* libc/machine/spu/vfiscanf.c: Ditto.
* libc/machine/spu/viprintf.c: Ditto.
* libc/machine/spu/viscanf.c: Ditto.
* libc/machine/spu/vsiprintf.c: Ditto.
* libc/machine/spu/vsiscanf.c: Ditto.
* libc/machine/spu/vsniprintf.c: Ditto.
* libc/machine/spu/fprintf.c: Add support for integer-only
version.
* libc/machine/spu/fscanf.c: Ditto.
* libc/machine/spu/printf.c: Ditto.
* libc/machine/spu/scanf.c: Ditto.
* libc/machine/spu/snprintf.c: Ditto.
* libc/machine/spu/sprintf.c: Ditto.
* libc/machine/spu/sscanf.c: Ditto.
* libc/machine/spu/vfprintf.c: Ditto.
* libc/machine/spu/vfscanf.c: Ditto.
* libc/machine/spu/vprintf.c: Ditto.
* libc/machine/spu/vscanf.c: Ditto.
* libc/machine/spu/vsnprintf.c: Ditto.
* libc/machine/spu/vsprintf.c: Ditto.
* libc/machine/spu/vsscanf.c: Ditto.
2007-02-20 20:58:38 +00:00
Jeff Johnston
960e5d8f19
2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libc/include/stdio.h: Add declaration for vsiprintf.
2007-02-20 20:53:35 +00:00
Jeff Johnston
958e329d59
2007-02-14 Patrick Mansfield <patmans@us.ibm.com>
...
Add a floating point environment for SPU (cell):
* configure.host: add libm_machine_dir=spu.
* libm/machine/configure: Add spu.
* libm/machine/configure.in: regenerated with spu added.
* libc/machine/spu/include/fenv.h: New file.
* libc/machine/spu/sys/fenv.h: Ditto.
* libm/machine/spu/Makefile.am: Ditto.
* libm/machine/spu/Makefile.in: Ditto.
* libm/machine/spu/aclocal.m4: Ditto.
* libm/machine/spu/configure: Ditto.
* libm/machine/spu/configure.in: Ditto.
* libm/machine/spu/fe_dfl_env.c: Ditto.
* libm/machine/spu/feclearexcept.c: Ditto.
* libm/machine/spu/fegetenv.c: Ditto.
* libm/machine/spu/fegetexceptflag.c: Ditto.
* libm/machine/spu/fegetround.c: Ditto.
* libm/machine/spu/feholdexcept.c: Ditto.
* libm/machine/spu/feraiseexcept.c: Ditto.
* libm/machine/spu/fesetenv.c: Ditto.
* libm/machine/spu/fesetexceptflag.c: Ditto.
* libm/machine/spu/fesetround.c: Ditto.
* libm/machine/spu/fetestexcept.c: Ditto.
* libm/machine/spu/feupdateenv.c: Ditto.
* libm/machine/spu/headers/feclearexcept.h: Ditto.
* libm/machine/spu/headers/fefpscr.h: Ditto.
* libm/machine/spu/headers/fegetenv.h: Ditto.
* libm/machine/spu/headers/fegetexceptflag.h: Ditto.
* libm/machine/spu/headers/fegetround.h: Ditto.
* libm/machine/spu/headers/feholdexcept.h: Ditto.
* libm/machine/spu/headers/feraiseexcept.h: Ditto.
* libm/machine/spu/headers/fesetenv.h: Ditto.
* libm/machine/spu/headers/fesetexceptflag.h: Ditto.
* libm/machine/spu/headers/fesetround.h: Ditto.
* libm/machine/spu/headers/fetestexcept.h: Ditto.
* libm/machine/spu/headers/feupdateenv.h: Ditto.
2007-02-14 23:18:25 +00:00
Corinna Vinschen
4f7e59f268
* libc/include/sys/features.h: Add _POSIX_MESSAGE_PASSING for
...
Cygwin.
2007-02-14 10:07:02 +00:00
Corinna Vinschen
d7e4c7a807
* libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for
...
Cygwin. Fix value of _POSIX_SEMAPHORES. Fix formatting.
2007-02-08 13:34:20 +00:00
Corinna Vinschen
0e37a2e6e5
* libc/include/sys/features.h: Add definition of all supported
...
_POSIX_xxx values for Cygwin.
* libc/include/sys/types.h (pthread_rwlock_t): Omit definition
on Cygwin.
(pthread_rwlockattr_t): Ditto.
* libc/include/sys/unistd.h: Define all _SC_xxx values as
required by SUSv3. Unify formatting.
2007-02-07 17:19:35 +00:00
Jeff Johnston
6699fabb91
2007-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libc/include/sys/errno.h: Add ECANCELED.
2007-02-02 16:22:28 +00:00
Jeff Johnston
22a339e8f2
2007-02-01 Joel Schopp <jschopp@austin.ibm.com>
...
Kazunori Asayama <asayama@sm.sony.co.jp>
* libc/machine/spu/Makefile.am: Add objects.
* libc/machine/spu/Makefile.in: Regenerated.
* libc/machine/spu/vsscanf.c: New file. Add a stdio function
implementation.
* libc/machine/spu/snprintf.c: Ditto.
* libc/machine/spu/sprintf.c: Ditto.
* libc/machine/spu/sscanf.c: Ditto.
* libc/machine/spu/remove.c: Ditto.
* libc/machine/spu/rename.c: Ditto.
* libc/machine/spu/tmpnam.c: Ditto.
* libc/machine/spu/vsnprintf.c: Add initialization routine of
stdio stuffs.
* libc/machine/spu/vsprintf.c: Ditto.
2007-02-01 16:43:45 +00:00
Jeff Johnston
7d592bb178
2007-02-01 Joel Schopp <jschopp@austin.ibm.com>
...
Kazunori Asayama <asayama@sm.sony.co.jp>
* configure.host: Enable SPU specific stdio directory.
* libc/machine/spu/Makefile.am: Add objects.
* libc/machine/spu/Makefile.in: Regenerated.
* libc/machine/spu/c99ppe.h: Add macros and function
declarations to initialize SPU specific stdio stuffs.
* libc/machine/spu/stdio.c: Add functions to manage Cell SPU
specific FILE structures.
* libc/machine/spu/perror.c: Add initialization routine of
stdio stuffs.
* libc/machine/spu/printf.c: Ditto.
* libc/machine/spu/putchar.c: Ditto.
* libc/machine/spu/puts.c: Ditto.
* libc/machine/spu/vprintf.c: Ditto.
* libc/machine/spu/clearerr.c: New file. Add a stdio function
implementation.
* libc/machine/spu/feof.c: Ditto.
* libc/machine/spu/ferror.c: Ditto.
* libc/machine/spu/fileno.c: Ditto.
* libc/machine/spu/fopen.c: Ditto.
* libc/machine/spu/fclose.c: Ditto.
* libc/machine/spu/freopen.c: Ditto.
* libc/machine/spu/fflush.c: Ditto.
* libc/machine/spu/fseek.c: Ditto.
* libc/machine/spu/ftell.c: Ditto.
* libc/machine/spu/rewind.c: Ditto.
* libc/machine/spu/fgetpos.c: Ditto.
* libc/machine/spu/fsetpos.c: Ditto.
* libc/machine/spu/fread.c: Ditto.
* libc/machine/spu/fwrite.c: Ditto.
* libc/machine/spu/getc.c: Ditto.
* libc/machine/spu/getchar.c: Ditto.
* libc/machine/spu/gets.c: Ditto.
* libc/machine/spu/fgetc.c: Ditto.
* libc/machine/spu/fgets.c: Ditto.
* libc/machine/spu/ungetc.c: Ditto.
* libc/machine/spu/putc.c: Ditto.
* libc/machine/spu/fputc.c: Ditto.
* libc/machine/spu/fputs.c: Ditto.
* libc/machine/spu/vfprintf.c: Ditto.
* libc/machine/spu/vfscanf.c: Ditto.
* libc/machine/spu/fprintf.c: Ditto.
* libc/machine/spu/fscanf.c: Ditto.
* libc/machine/spu/scanf.c: Ditto.
* libc/machine/spu/vscanf.c: Ditto.
* libc/machine/spu/setbuf.c: Ditto.
* libc/machine/spu/setvbuf.c: Ditto.
* libc/machine/spu/tmpfile.c: Ditto.
2007-02-01 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/config.h[__SPU__]: Define __CUSTOM_FILE_IO__.
* libc/include/stdio.h[!__CUSTOM_FILE_IO__]: Add flag check
around stdio macros that manipulate fields in the normal file
structure.
* libc/include/sys/reent.h[__CUSTOM_FILE_IO__]: Include
<sys/custom_file.h> to define custom FILE structure.
* libc/include/sys/custom_file.h: New default header file
that generates error if not overridden when __CUSTOM_FILE_IO__ set.
* libc/machine/spu/sys/custom_file.h: New file.
2007-02-01 16:33:05 +00:00
Jeff Johnston
0733ae3bca
2007-01-31 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* configure.host: Define stdio directory as a variable.
* libc/Makefile.am: Define stdio related names
as macros.
* libc/configure.in: Add detection routine of stdio directory.
* libc/Makefile.in: Regenerated.
* libc/configure: Ditto.
* libc/argz/Makefile.in: Ditto.
* libc/ctype/Makefile.in: Ditto.
* libc/errno/Makefile.in: Ditto.
* libc/iconv/Makefile.in: Ditto.
* libc/iconv/ccs/Makefile.in: Ditto.
* libc/iconv/ccs/binary/Makefile.in: Ditto.
* libc/iconv/ces/Makefile.in: Ditto.
* libc/iconv/lib/Makefile.in: Ditto.
* libc/locale/Makefile.in: Ditto.
* libc/misc/Makefile.in: Ditto.
* libc/posix/Makefile.in: Ditto.
* libc/reent/Makefile.in: Ditto.
* libc/search/Makefile.in: Ditto.
* libc/signal/Makefile.in: Ditto.
* libc/stdio/Makefile.in: Ditto.
* libc/stdio64/Makefile.in: Ditto.
* libc/stdlib/Makefile.in: Ditto.
* libc/string/Makefile.in: Ditto.
* libc/syscalls/Makefile.in: Ditto.
* libc/time/Makefile.in: Ditto.
* libc/unix/Makefile.in: Ditto.
2007-01-31 19:34:38 +00:00
Ben Elliston
c7cd784974
* libc/machine/spu/vsnprintf.c (c99_vsnprintf_t): Const-qualify
...
fmt member.
* libc/machine/spu/printf.c (c99_printf_t): Likewise.
(printf): Pass fmt to va_start to suppress a warning.
2007-01-30 03:18:52 +00:00
Ben Elliston
cb7ba0e119
* libc/search/hash.c (init_hash): Make `info' parameter const.
2007-01-30 03:13:29 +00:00
Jeff Johnston
f89533c1ff
2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libc/machine/spu/c99ppe.h: Replace vector with __vector.
* libc/machine/spu/vec_literal.h: Ditto.
* libc/machine/spu/strncmp.c: Ditto.
2007-01-19 23:53:07 +00:00
Jeff Johnston
94b91791ea
2007-01-15 Joseph Myers <joseph@codesourcery.com>
...
Kazu Hirata <kazu@codesourcery.com>
* libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support
for E500V1 and E500V2.
2007-01-15 16:41:08 +00:00
Jeff Johnston
26190be144
2007-01-11 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/configure.in: Always configure machine directory.
* libm/Makefile.am: Make machine subdirectory part of SUBDIRS
unconditionally.
* libm/configure: Regenerated.
* libm/Makefile.in: Ditto.
* libm/*/Makefile.in: Ditto.
2007-01-11 20:57:52 +00:00
Jeff Johnston
8e0e8f40fb
2007-01-05 Brian Ford <Brian.Ford@FlightSafety.com>
...
* configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.
2007-01-08 19:01:23 +00:00
Jeff Johnston
9cd4a2de61
2007-01-02 Ben Elliston <bje@au.ibm.com>
...
* doc/makedoc.c: Include <stdlib.h>.
(malloc, realloc): Remove extern declarations.
2007-01-02 16:59:59 +00:00
Jeff Johnston
a4b117829f
2005-12-18 Jeff Johnston <jjohnstn@redhat.com>
...
* NEWS: Update with 1.15.0 info.
* README: Ditto.
* acinclude.m4: Change version number to 1.15.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.15.
2006-12-18 22:21:56 +00:00
Jeff Johnston
def943c11c
2006-12-18 Kazu Hirata <kazu@codesourcery.com>
...
Merge from newlib-csl-20060320-branch:
2006-12-01 Nathan Sidwell <nathan@codesourcery.com>
Kazu Hirata <kazu@codesourcery.com>
* configure.host: Recognize fido.
2006-12-18 21:49:14 +00:00
Jeff Johnston
505ccc75c4
2006-12-18 Joel Schopp <jschopp@austin.ibm.com>
...
* libc/machine/spu/c99ppe.h: New file
* libc/machine/spu/perror.c: New file to override libc/stdio version.
* libc/machine/spu/printf.c: New file
* libc/machine/spu/putchar.c: New file
* libc/machine/spu/puts.c: New file
* libc/machine/spu/vprintf.c: New file
* libc/machine/spu/vsnprintf.c: New file
* libc/machine/spu/vsprintf.c: New file
* libc/machine/spu/Makefile.am: Add new targets.
* libc/machine/spu/Makefile.in: Regenerated.
2006-12-18 20:39:02 +00:00
Jeff Johnston
78b7c6f817
2006-12-18 Jeff Johnston <jjohnstn@redhat.com>
...
* aclocal.m4 */aclocal.m4: Regenerated using aclocal 1.9.6.
* Makefile.in */Makefile.in: Regenerated using automake 1.9.6.
2006-12-18 20:32:52 +00:00
Jeff Johnston
db029fca63
Remove entry for next patch that hasn't happened yet.
2006-12-18 20:24:48 +00:00
Jeff Johnston
f522256075
2006-12-18 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/mallocr.c (malloc_extend_top): Add patch from
2.6.5 version of Doug Lea's malloc which is the basis of
this code.
2006-12-18 20:21:48 +00:00
Jeff Johnston
9b354d7f3b
2006-12-18 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libc/include/machine/setjmp.h: Replace vector with __vector.
2006-12-18 16:48:03 +00:00
Jeff Johnston
4c0b8a072b
2006-12-14 Jeff Johnston <jjohnstn@redhat.com>
...
Eric Blake <ebb9@byu.net>
* libc/stdio/fflush.c (fflush): On seekable streams, always flush
read but unused data.
* libc/stdio/fclose.c (_fclose_r): Always flush streams, since
even read streams may have side effects that must happen.
2006-12-14 22:47:12 +00:00
Jeff Johnston
6a20095878
2006-12-13 Joel Schopp <jschopp@austin.ibm.com>
...
* libc/machine/spu/setjmp.S: Fix to handle registers past 115
correctly.
2006-12-13 23:06:02 +00:00
Jeff Johnston
dd52bb72fb
2006-12-13 Joel Schopp <jschopp@austin.ibm.com>
...
* newlib/include/alloca.h: add undef alloca to work with xlc
2006-12-13 23:01:21 +00:00
Jeff Johnston
4e051d914a
2006-12-12 Joel Schopp <jschopp@austin.ibm.com>
...
* libc/include/machine/setjmp.h[__SPU__]: Redefine _JBTYPE for
cell spu
2006-12-13 19:36:17 +00:00
Jeff Johnston
489bb390ce
2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libc/machine/spu/strncpy.c: Add padding.
2006-12-04 17:29:10 +00:00
Jeff Johnston
3e2d7a911f
2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* testsuite/newlib.string/tstring.c:
2006-12-04 17:25:13 +00:00
Jeff Johnston
0a2ef99804
2006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libc/machine/spu/strchr.c: Fix mask for misaligned string.
* libc/machine/spu/strrchr.c: Ditto.
2006-12-01 17:18:36 +00:00
Jeff Johnston
75190a8fa2
2006-11-30 Lev Bishop <lev.bishop@gmail.com>
...
* libc/include/math.h: Allow C99 functions/macros to be
defined for C++ even when __STRICT_ANSI__.
2006-11-30 23:40:12 +00:00
Jeff Johnston
7d79436443
2006-11-29 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/makebuf.c (__smakebuf): If dealing with
an asprintf-family buffer, make the default initial size 64.
2006-11-30 00:35:57 +00:00
Jeff Johnston
c4c7f13966
2006-11-29 Eric Blake <ebb9@byu.net>
...
* libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
asprintf, as well as quadratic realloc behavior.
2006-11-29 21:36:54 +00:00
Jeff Johnston
80c6ead242
2006-11-29 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libc/machine/spu/memset.c: Fix type of explicit cast.
* libc/machine/spu/strncmp.c: Add explicit cast.
* libc/machine/spu/strrchr.c: Ditto.
* libc/machine/spu/strspn.c: Ditto.
2006-11-29 19:54:05 +00:00
Jeff Johnston
9bc5b6181b
2006-11-22 Luca Barbato <lu_zero@gentoo.org>
...
* libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
* libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
* libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
* libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
* libc/machine/spu/strncat.c: Explicit cast.
* libc/machine/spu/strncmp.c: Use spu_splats.
* libc/machine/spu/strncpy.c: Explicit cast.
* libc/machine/spu/strrchr.c: Use spu_splats.
* libc/machine/spu/strspn.c: Use spu_splats.
2006-11-22 21:19:56 +00:00
Jeff Johnston
52077eb28c
2006-11-15 Till Straumann <strauman@slac.stanford.edu>
...
* libc/time/tzset_r.c (_tzset_r): Initialize local variable.
2006-11-15 20:10:25 +00:00
Jeff Johnston
d1a2fe1a62
2006-11-14 Eric Blake <ebb9@byu.net>
...
* libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
(chclass): ' is a flag. j, t, and z are modifiers.
2006-11-14 21:29:26 +00:00
Jeff Johnston
9842c7e4e8
Change Jie Zhang's e-mail address to work e-mail.
2006-11-09 16:24:06 +00:00
Jeff Johnston
292f8e2328
2006-11-08 Jie Zhang <jzhang918@gmail.com>
...
* configure.host: Add support for bfin.
* libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
* libc/include/machine/setjmp.h: Define _JBLEN for bfin.
* libc/machine/bfin/aclocal.m4: Generate.
* libc/machine/bfin/configure.in: New.
* libc/machine/bfin/configure: Generate.
* libc/machine/bfin/Makefile.am: New.
* libc/machine/bfin/Makefile.in: Generate.
* libc/machine/bfin/setjmp.S: New.
* libc/machine/bfin/longjmp.S: New.
* libc/machine/configure.in: Add bfin support.
* libc/machine/configure: Generate.
2006-11-08 19:26:43 +00:00
Corinna Vinschen
b1755fe736
* libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
...
(_PC_FILESIZEBITS): Add definition.
(_PC_2_SYMLINKS): Ditto.
(_PC_SYMLINK_MAX): Ditto.
2006-11-07 15:33:40 +00:00
Jeff Johnston
d384d86834
2006-10-27 Joel Schopp <jschopp@austin.ibm.com>
...
* libc/machine/spu/memcpy.c: Override generic function with vectorized
version optimized for the cell spu.
* libc/machine/spu/memmove.c: Ditto.
* libc/machine/spu/memset.c: Ditto.
* libc/machine/spu/strcat.c: Ditto.
* libc/machine/spu/strchr.c: Ditto.
* libc/machine/spu/strcmp.c: Ditto.
* libc/machine/spu/strcpy.c: Ditto.
* libc/machine/spu/strcspn.c: Ditto.
* libc/machine/spu/strlen.c: Ditto.
* libc/machine/spu/strncat.c: Ditto.
* libc/machine/spu/strncmp.c: Ditto.
* libc/machine/spu/strncpy.c: Ditto.
* libc/machine/spu/strpbrk.c: Ditto.
* libc/machine/spu/strrchr.c: Ditto.
* libc/machine/spu/strspn.c: Ditto.
* libc/machine/spu/strxfrm.c: Ditto.
* libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
removing altivec style initializers.
* libc/machine/spu/Makefile.am: Add new files to list so they build
* libc/machine/spu/Makefile.in: Regenerate from new Makefile.am
2006-10-27 23:02:00 +00:00
Jeff Johnston
f29fdb2f9d
2006-10-27 Jeff Johnston <jjohnstn@redhat.com>
...
* README: Add a brief section on how to regenerate
configuration files in newlib.
2006-10-27 19:22:57 +00:00
Jeff Johnston
884dc68fe0
2006-10-25 Vladimir Prus <vladimir@codesourcery.com>
...
* libc/include/math.h: (exception): Add a comment
telling fixincludes that we handle C vs. C++ issue.
2006-10-25 18:46:40 +00:00
Corinna Vinschen
6d44157687
* Fix ChangeLog entry to mention full path of changed file.
2006-10-19 08:36:02 +00:00
Jeff Johnston
f8fe93f9b8
2006-10-11 Yang Tse <yangsita@gmail.com>
...
* setjmp.h: Use __extension__ keyword for gcc's braced-groups.
2006-10-11 19:20:31 +00:00
Corinna Vinschen
d95c57921f
* libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.
2006-10-11 08:04:50 +00:00
Jeff Johnston
e5e148d15b
2006-09-26 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdio.h[_REENT_SMALL]: Do not allow macros
for clearerr, feof, or fileno.
* libc/include/sys/reent.h[_REENT_SMALL](struct _reent): Change
the dummy std stream scheme to use pointers to const external
fake files, one for each standard stream.
* libc/stdio/local.h (CHECK_INIT): Change to take a file pointer
argument. For _REENT_SMALL, reset the file pointer if it
matches one of the fake std stream pointers.
* libc/stdio/clearerr.c: Fix CHECK_INIT macro to add file pointer
argument.
* libc/stdio/fclose.c: Ditto.
* libc/stdio/feof.c: Ditto.
* libc/stdio/ferror.c: Ditto.
* libc/stdio/fflush.c: Ditto.
* libc/stdio/fgetc.c: Ditto.
* libc/stdio/fgets.c: Ditto.
* libc/stdio/fileno.c: Ditto.
* libc/stdio/findfp.c: Ditto.
* libc/stdio/fputc.c: Ditto.
* libc/stdio/fputs.c: Ditto.
* libc/stdio/fread.c: Ditto.
* libc/stdio/freopen.c: Ditto.
* libc/stdio/fseek.c: Ditto.
* libc/stdio/ftell.c: Ditto.
* libc/stdio/fwrite.c: Ditto.
* libc/stdio/getc.c: Ditto.
* libc/stdio/getdelim.c: Ditto.
* libc/stdio/putc.c: Ditto.
* libc/stdio/refill.c: Ditto.
* libc/stdio/setvbuf.c: Ditto.
* libc/stdio/ungetc.c: Ditto.
* libc/stdio/vfprintf.c: Ditto.
* libc/stdio/vfscanf.c: Ditto.
* libc/stdio/wbuf.c: Ditto.: Ditto.
* libc/stdio/wsetup.c: Ditto.
* libc/stdio64/freopen64.c: Ditto.
* libc/stdio64/fseeko64.c: Ditto.
* libc/stdio64/ftello64.c: Ditto.
* libc/machine/powerpc/vfprintf.c: Ditto.
* libc/machine/powerpc/vfscanf.c: Ditto.
2006-09-26 21:22:19 +00:00
Jeff Johnston
e83c3d0ae5
2006-09-22 Paul Brook <paul@codesourcery.com>
...
* libc/include/sys/reent.h: Define and use __reent_assert.
2006-09-22 19:33:11 +00:00
Jeff Johnston
23754b33c3
2006-09-13 Joel Sherrill <joel@oarcorp.com>
...
* libc/include/pthread.h: Add pthread barriers,
rwlocks, and spinlocks. Change const to
_CONST and prefix parameter names with
an underscore.
* libc/include/sys/types.h: Add id and attribute
types for barriers, wrlocks, and spinlocks.
* libc/include/sys/features.h: Enable barriers,
wrlocks, and spinlocks for RTEMS.
2006-09-13 22:09:27 +00:00
Jeff Johnston
ba1bb1b368
2006-09-13 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/include/math.h: Remove _CONST from _LIB_VERSION, as it is
supposed to be writable.
* libm/common/s_lib_ver.c: Ditto.
2006-09-13 22:06:43 +00:00
Jeff Johnston
8f9f25dad8
2006-09-12 Paul Brook <paul@codesourcery.com>
...
* libc/stdlib/rand.c (srand): Add _REENT_CHECK_RAND48.
2006-09-12 17:31:40 +00:00
Jeff Johnston
0324070e35
2006-09-07 Masaki Muranaka <monaka@monami-software.com>
...
* libc/machine/xstormy16/Makefile.am:
Add $(lpfx) prefix to LIBADD objects.
lib_a_DEPENDENCIES uses the value of lib_a_LIBADD.
* libc/machine/xstormy16/Makefile.in: Regenerated.
2006-09-07 17:32:19 +00:00
Jeff Johnston
d39002f9ca
2006-09-06 Eric Blake <ebb9@byu.net>
...
* libc/stdio/vfprintf.c (_vfprintf_r, get_arg): Add 'hh', 'j',
't', and 'z' modifiers.
2006-09-06 20:03:27 +00:00
Kazu Hirata
c023e783e9
libgloss/
...
Merge from newlib-csl-20060320-branch:
2006-08-31 Nathan Sidwell <nathan@codesourcery.com>
* m68k/bdm-crt1.c: Call hardware_init_hook before copying
initialized data.
* m68k/Makefile.in (CF_BDM_SCRIPTS): Rename to CF_RAM_SCRIPTS.
(CF_SCRIPTS): Update.
(%-bdm.ld): Rename to %-ram.ld.
2006-08-25 Nathan Sidwell <nathan@codesourcery.com>
* m68k/Makefile.in (DBUG_BSP, DBUG_OBJS): Remove.
(BDM_CRT0): New.
(BDM_OBJS): Add bdm-crt1.o.
(BDM_OTHER_OBJS): Remove print.o putnum.o
(CF_BOARDS): New.
(CF_BDM_SCRIPTS): Generated name of ram scripts.
(CF_ROM_SCRIPTS): Generated name of rom scripts.
(CF_SCRIPTS): Adjust.
(all): Add BDM_CRT0.
(bdm-crt0.o, bdm-crt1.o): New targets.
(bdm-isv.o): Remove.
(m5208evb, m5213evb, m52235evb, m5235evb, m5273c3, m5282evb,
m5329evb, m5485evb): New.
(%-bdm.ld, %-rom.ld): New. Replace individual linker script rules.
(install): Remove DBUG installs.
* m68k/bdm-crt0.S: New.
* m68k/bdm-crt1.c: New.
* m68k/bdm-exit.c: Call __reset.
* m68k/bdm-isv.c: Remove.
* m68k/cf.sc: Adjust to produce either rom or ram images.
* m68k/dbug-exit.S, m68k/dbug-inbyte.S, m68k/dbug-outbyte.S: Remove.
2006-07-24 Nathan Sidwell <nathan@codesourcery.com>
Bug 844
* m68k/cf.sc: Set entry point to _start.
* m68k/crt0.X (_start): New name for entrypoint
(start): Weak alias for start.
2006-06-09 Nathan Sidwell <nathan@codesourcery.com>
* m68k/bdm-system.c (_system): Support system(NULL).
2006-06-08 Nathan Sidwell <nathan@codesourcery.com>
* m68k/bdm-system.c (_system): Properly encode non failure exit
code.
2006-06-05 Nathan Sidwell <nathan@codesourcery.com>
* m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-inbyte.o.
Add bdm-time.o.
* m68k/bdm-close.c: Add copyright notice.
* m68k/bdm-fstat.c: Add copyright notice.
* m68k/bdm-gettimeofday.c: Add copyright notice.
* m68k/bdm-inbyte.c: Remove.
* m68k/bdm-isatty.c: Add copyright notice.
* m68k/bdm-lseek.c: Add copyright notice. Fix &/| thinko.
* m68k/bdm-open.c: Add copyright notice.
* m68k/bdm-read.c: Add copyright notice.
* m68k/bdm-rename.c: Add copyright notice.
* m68k/bdm-stat.c: Add copyright notice.
* m68k/bdm-system.c: Add copyright notice.
* m68k/bdm-time.c: New.
* m68k/bdm-unlink.c: Add copyright notice.
* m68k/bdm-write.c: Add copyright notice.
2006-05-25 Nathan Sidwell <nathan@codesourcery.com>
* m68k/Makefile.in (m52235-dbug.ld, m52235-bdm.ld): New
scripts.
2006-05-24 Nathan Sidwell <nathan@codesourcery.com>
* m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-outbyte.o.
* m68k/bdm-outbyte.c: Delete.
* m68k/bdm-semihost.h (BDM_OUTBYTE): Mark as obsolete.
2006-05-22 Sandra Loosemore <sandra@codesourcery.com>
* m68k/bdm-semihost.h: Add new constants for additional
semihosting functions. Add new BDM_TRAP macro to encapsulate
inline asm.
* m68k/bdm-exit.c (_exit): Use new BDM_TRAP macro.
* m68k/bdm-outbyte.c (outbyte): Ditto.
* m68k/bdm-isrs.c, m68k/bdm-isv.c: Former BDM_TRAP
now called BDM_TRAPNUM.
* m68k/bdm-gdb.h, m68k/bdm-gdb.c: New files
containing declarations and conversion functions for GDB's fileio
protocol.
* m68k/bdm-close.c: New file to define corresponding function.
* m68k/bdm-fstat.c: Ditto.
* m68k/bdm-gettimeofday.c: Ditto.
* m68k/bdm-isatty.c: Ditto.
* m68k/bdm-lseek.c: Ditto.
* m68k/bdm-open.c: Ditto.
* m68k/bdm-read.c: Ditto.
* m68k/bdm-rename.c: Ditto.
* m68k/bdm-stat.c: Ditto.
* m68k/bdm-system.c: Ditto.
* m68k/bdm-unlink.c: Ditto.
* m68k/bdm-write.c Ditto.
* m68k/Makefile.in: Add dependencies for new files.
2006-03-29 Nathan Sidwell <nathan@codesourcery.com>
* m68k/bdm-isv.c (software_init_hook): Fix trap numbering.
* m68k/Makefile.in (CF_SCRIPTS): Add m5329 board.
Reorder.
(*-dbug.ld, *-bdm.ld): Add appropriate IO definition.
(m5329evb-dbug.ld, m5329evb-bdm.ld): New.
* cf.sc (GROUP): Revert previous change. Add IO library.
* m68k/Makefile.in (BDM_BSP, BDM_OBJS, BDM_ISRS): New.
(CF_SCRIPTS): Rename dbug scripts. Add bdm scripts. Add m5485
scripts.
(all): Add new targets.
(BDM_BSP): New target.
(bdm-isv.o, bdm-exit.o, bdm-outbyte.o, bdm-semihost.o): New
targets.
(BDM_ISRS): New targets.
(m5208evb.ld, m5213evb.ld, m5235evb.ld, m5272c3.ld, m5282evb.ld):
Rename and adjust.
(m5485evb-dbug): New.
(m5208evb-bdm.ld, m5213evb-bdm.ld, m5235evb-bdm.ld,
m5272c3-bdm.ld, m5282evb-bdm.ld, m5485evb-bdm.ld): New.
(install): Add BDM_BSP.
* m68k/bdm-exit.c: New
* m68k/bdm-inbyte.c: New
* m68k/bdm-outbyte.c: New
* m68k/bdm-semihost.c: New
* m68k/bdm-semihost.h: New
* m68k/bdm-isrs.c: New.
* m68k/bdm-isv.c: New.
* dbug-cf.sc: Renamed to ...
* cf.sc: ... here. Add bdm flexibility. Remove GROUP
2006-05-22 Sandra Loosemore <sandra@codesourcery.com>
* m68k/bdm-semihost.h: Add new constants for additional
semihosting functions. Add new BDM_TRAP macro to encapsulate
inline asm.
* m68k/bdm-exit.c (_exit): Use new BDM_TRAP macro.
* m68k/bdm-outbyte.c (outbyte): Ditto.
* m68k/bdm-isrs.c, m68k/bdm-isv.c: Former BDM_TRAP
now called BDM_TRAPNUM.
* m68k/bdm-gdb.h, m68k/bdm-gdb.c: New files
containing declarations and conversion functions for GDB's fileio
protocol.
* m68k/bdm-close.c: New file to define corresponding function.
* m68k/bdm-fstat.c: Ditto.
* m68k/bdm-gettimeofday.c: Ditto.
* m68k/bdm-isatty.c: Ditto.
* m68k/bdm-lseek.c: Ditto.
* m68k/bdm-open.c: Ditto.
* m68k/bdm-read.c: Ditto.
* m68k/bdm-rename.c: Ditto.
* m68k/bdm-stat.c: Ditto.
* m68k/bdm-system.c: Ditto.
* m68k/bdm-unlink.c: Ditto.
* m68k/bdm-write.c Ditto.
* m68k/Makefile.in: Add dependencies for new files.
newlib/
Merge from newlib-csl-20060320-branch:
2006-05-22 Sandra Loosemore <sandra@codesourcery.com>
* configure.host: Tell it we have _rename and _system when
building m68k-unknown-elf.
2006-09-01 05:41:06 +00:00
Nick Clifton
9e8b8cdb9f
Remove references to %redact files
2006-08-30 08:40:26 +00:00
Jeff Johnston
859742654a
2006-08-29 Paul Brook <paul@codesourcery.com>
...
* libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
2006-08-29 21:00:59 +00:00
Jeff Johnston
c1f828e56e
2006-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>
...
* libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
BLKDEV_IOSIZE and MAXPHYS so it will fit into small memory targets.
This is needed to build all AVR and H8300 RTEMS multilib variants.
2006-08-28 17:17:24 +00:00
Jeff Johnston
b8e05321ba
2006-08-23 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libc/machine/configure.in: Add configuration for SPU.
* libc/machine/configure: Regenerated.
* libc/machine/spu/memcpy.c: Include string.h.
2006-08-23 16:07:36 +00:00
Jeff Johnston
380d8ec45d
2006-08-22 Eric Blake <ebb9@byu.net>
...
* libc/posix/popen.c (popen): Don't close output end of pipe in
child if stdout was closed on entry.
[HAVE_FCNTL]: In parent, mark file as close-on-exec, per POSIX.
2006-08-22 20:30:37 +00:00
Christopher Faylor
a0922fcb04
* sys/types.h: Correct syntax error caused by missing '\' on #ifdef line.
2006-08-19 16:13:23 +00:00
Jeff Johnston
84a7940382
2006-08-17 Brian Ford <Brian.Ford@FlightSafety.com>
...
* libc/time/gmtime.c: Correct man page; clock is not a
local time and no conversion occurs.
2006-08-17 15:53:15 +00:00
Jeff Johnston
0d8de89c9b
2006-08-16 Joel Schopp <jschopp@austin.ibm.com>
...
* configure.host (newlib_cflags) [spu]: Add special compiler
options to reduce size.
2006-08-16 21:51:13 +00:00
Jeff Johnston
734e841435
2006-08-16 Joel Schopp <jschopp@austin.ibm.com>
...
* configure.host: Add spu support.
* libc/include/stdint.h: Ditto.
* libc/include/machine/ieeefp.h: Ditto.
* libc/include/machine/setjmp.h: Ditto.
* libc/include/sys/config.h: Ditto.
* libc/include/sys/types.h: Ditto.
* libc/machine/spu/Makefile.am: New file.
* libc/machine/spu/Makefile.in: Ditto.
* libc/machine/spu/aclocal.m4: Ditto.
* libc/machine/spu/configure: Ditto.
* libc/machine/spu/configure.in: Ditto.
* libc/machine/spu/memcpy.c: Ditto.
* libc/machine/spu/setjmp.S: Ditto.
2006-08-16 21:39:43 +00:00
Jeff Johnston
079b45dc00
2006-08-03 J"orn Rennecke <joern.rennecke@st.com>
...
* dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case
properly.
2006-08-03 16:56:05 +00:00
Jeff Johnston
2ebf115df9
2006-08-01 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/Makefile.am: Add libc_TEXINFOS dependency on
generated .texi files.
* libm/Makefile.am: Add libm_TEXINFOS dependency on
generated .texi files.
* libc/Makefile.in: Regenerated.
* libm/Makefile.in: Ditto.
2006-08-01 20:20:25 +00:00
Jeff Johnston
a121349405
2006-08-01 Thiemo Seufer <ths@mips.com>
...
Nigel Stephens <nigel@mips.com>
* libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS
define this to force _impure_ptr to live in the .sdata section.
2006-08-01 15:54:04 +00:00
Jeff Johnston
0a85d87f03
2006-07-31 Jeff Johnston <jjohnstn@redhat.com>
...
* acinclude.m4: Check for readelf tool.
* configure.in: Use ${READELF} instead of hard-coding.
* Regenerate all aclocal.m4, Makefile.in, and configure files.
2006-07-31 23:01:28 +00:00
Jeff Johnston
cc023a7557
2006-07-31 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/mmap.c: Remove include of sys/mman.h
to avoid conflict with newer glibc's revision of mremap.
2006-07-31 22:21:24 +00:00
Jeff Johnston
b0b9243869
2006-07-05 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
floating-point format support. Also redefine
dword0 and dword1 macros.
* libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
to prevent setting dword1 which is an rvalue only.
2006-07-05 16:18:30 +00:00
Jeff Johnston
f489b5943c
2006-06-22 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/Makefile.am: Add new gdtoa routines.
* libc/stdlib/Makefile.in: Regenerated.
* libc/stdlib/gd_qnan.h: New file.
* libc/stdlib/gdtoa-gethex.c: Ditto.
* libc/stdlib/gdtoa-hexnan.c: Ditto.
* libc/stdlib/gdtoa.h: Ditto.
* libc/stdlib/mprec.c: Add new helper routines needed by
the new gdtoa code.
* libc/stdlib/mprec.h: Integrate some defines and prototypes
used by gdtoa routines here.
* libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
which adds C99 support such as nan, inf, and hexadecimal input
format.
2006-06-22 17:59:52 +00:00
Jeff Johnston
c8956c6fec
2006-06-15 Corinna Vinschen <corinna@vinschen.de>
...
* libc/include/stdio.h (__sgetc_r): Fix typo.
* libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
* libc/stdio/rget.c (__srbuf): Reinstantiate.
* libc/stdio/wbuf.c (__swbuf): Ditto.
2006-06-15 16:08:09 +00:00
Jeff Johnston
4dc0c0c4e5
2006-06-14 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdio.h: Add new reentrant I/O prototypes for
read/write functions. Change getc/putc macros to have reentrant underlying
macros/functions. This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
* libc/stdio/fgetc.c: Fix and/or add reentrant version to call
new reentrant I/O functions/macros for reading/writing.
* libc/stdio/fgets.c: Ditto.
* libc/stdio/fputc.c: Ditto.
* libc/stdio/fputs.c: Ditto.
* libc/stdio/fread.c: Ditto.
* libc/stdio/fseek.c: Ditto.
* libc/stdio64/fseeko64.c: Ditto.
* libc/stdio/fwrite.c: Ditto.
* libc/stdio/getc.c: Ditto.
* libc/stdio/getc_u.c: Ditto.
* libc/stdio/getchar.c: Ditto.
* libc/stdio/getchar_u.c: Ditto.
* libc/stdio/putc.c: Ditto.
* libc/stdio/putc_u.c: Ditto.
* libc/stdio/putchar.c: Ditto.
* libc/stdio/puts.c: Ditto.
* libc/stdio/vfprintf.c: Ditto.
* libc/stdio/vfscanf.c: Ditto.
* libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
Change all previous callers of __sfvwrite. Set errno to EBADF and
set error flag on if attempt is made to write to file that does not
allow writing.
* libc/stdio/fvwrite.h: Fix new reentrant prototypes.
* libc/stdio/local.h: Ditto.
* libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
Set errno to EBADF and the error flag on if attempt is made to
read unreadable file. Change all previous callers of __srefill.
* libc/stdio/rget.c
* libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r. Change
all previous callers of __swbuf.
* libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
huge value macros are already defined correctly for i386 by <math.h>.
2006-06-14 20:49:11 +00:00
Jeff Johnston
c4cac45fe9
2006-06-13 Sandra Loosemore <sandra@codesourcery.com>
...
* /libc/sys/arm/syscalls.c (_unlink, isatty, _system, _rename):
Make them do something useful in the ARM_RDI_MONITOR case.
2006-06-13 20:50:24 +00:00
Jeff Johnston
b5b6cbd8ec
2006-06-07 Fred Fish <fnf@specifix.com>
...
* libc/search/hash_bigkey.c (MIN,MAX): Remove
defines that are already supplied by <sys/param.h>.
2006-06-07 19:22:59 +00:00
Jeff Johnston
3cc3705ca0
2006-06-07 Fred Fish <fnf@specifix.com>
...
* configure.host: Remove references to HAVE_GETTIMEOFDAY.
2006-06-07 19:20:04 +00:00
Jeff Johnston
9b15ac9054
2006-06-05 Shaun Jackman <sjackman@gmail.com>
...
* libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
usleep.c.
* libc/posix/Makefile.in: Regenerate.
* libc/posix/sleep.c: New file.
* libc/posix/usleep.c: Ditto.
2006-06-06 15:41:10 +00:00
Jeff Johnston
512c2879a4
2006-06-05 Shaun Jackman <sjackman@gmail.com>
...
* libc/posix/Makefile.am (GENERAL_SOURCES): Add sleep.c and
usleep.c.
* libc/posix/Makefile.in: Regenerate.
* libc/posix/sleep.c: New file.
* libc/posix/usleep.c: Ditto.
2006-06-05 20:19:55 +00:00
Jeff Johnston
9eedc2e624
Fix format typo.
2006-06-05 19:46:40 +00:00
Jeff Johnston
6ea486a6df
2006-06-05 Shaun Jackman <sjackman@gmail.com>
...
configure.host (newlib_cflags) [arm, thumb, xscale]: Remove
-DABORT_PROVIDED flag.
* newlib/libc/sys/arm/syscalls.c (kill, exit): Sync with libgloss.
* newlib/libc/sys/arm/libcfunc.c (abort): Ditto.
2006-06-05 19:45:08 +00:00
Jeff Johnston
2e7c576aa7
2006-06-05 Jeff Johnston <jjohnstn@redhat.com>
...
* Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS.
* Makefile.in: Regenerated.
* libc/machine/sh/Makefile.am (AM_CCASFLAGS): Remove
extraneous CFLAGS reference now that CCASFLAGS are being extended
properly via multilib.
* libc/machine/sh/Makefile.in: Regenerated.
2006-06-05 17:42:57 +00:00
Jeff Johnston
3feae7b116
2006-06-02 Shaun Jackman <sjackman@gmail.com>
...
* libc/unix/sigset.c: Undefine sigfillset, sigdelset, and
sigismember.
2006-06-02 18:09:24 +00:00
Jeff Johnston
f383bda56a
2006-05-23 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/misc/dprintf.c: Removed.
* libc/misc/__dprintf.c: Renamed from dprintf.c.
* libc/misc/Makefile.am: Changed appropriately for rename.
* libc/misc/Makefile.in: Regenerated.
2006-05-23 20:30:48 +00:00
Jeff Johnston
8eeee74e95
2006-05-23 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdio.h: Protect dprintf prototype
with #ifndef dprintf so as to not interfere with
historical code defining their own dprintf macro.
2006-05-23 19:57:31 +00:00
Jeff Johnston
dc7798c6b0
2006-05-18 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdio.h: Add prototypes for fiscanf,
iscanf, and siscanf.
2006-05-18 18:07:19 +00:00
Joern Rennecke
302fad9217
* libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
...
* libc/machine/sh/Makefile.in: Regenerate.
2006-05-12 20:04:46 +00:00
Joern Rennecke
e1b888df24
* acinclude.m4 (_NEWLIB_VERSION): Rename to:
...
(DEF_NEWLIB_VERSION).
* configure.in (_NEWLIB_VERSION): Use NEWLIB_VERSION.
* configure: Regenerate.
2006-05-11 15:49:52 +00:00
Jeff Johnston
7f32c41d7f
2006-05-09 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/ctype/Makefile.am: Add $(ELIX_SOURCES) to
lib_a_SOURCES.
* libc/ctype/Makefile.in: Regenerated.
2006-05-09 21:53:35 +00:00
Jeff Johnston
bac01fc8f7
2006-05-09 Kazu Hirata <kazu@codesourcery.com>
...
* libc/machine/arm/Makefile.am: Fix a typo.
* libc/machine/arm/Makefile.in: Regenerated.
2006-05-09 17:55:21 +00:00
Joern Rennecke
6c47d5b7e7
* libc/machine/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
...
* libc/machine/sh/Makefile.in: Regenerate.
2006-05-08 14:01:52 +00:00
Joern Rennecke
7cc7e374c1
* libc/sys/sh/Makefile.am (AM_CCASFLAGS): Add $(CFLAGS).
...
* libc/sys/sh/Makefile.in (AM_CCASFLAGS): Likewise.
2006-05-03 22:16:34 +00:00
Jeff Johnston
a8b02d4693
2006-05-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/sysnec810/Makefile.am: Specify .S files instead of
.s.
* libc/sys/sysnec810/Makefile.in: Regenerated.
* libc/sys/sysnec810/crt0.S: Renamed from .s file.
* libc/sys/sysnec810/io.S: Ditto.
* libc/sys/sysnec810/crt0.s: Renamed to .S file.
* libc/sys/sysnec810/io.s: Ditto.
2006-05-02 18:20:12 +00:00
Jeff Johnston
8f8f1db12f
2006-05-01 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/argz/Makefile.am: Prefix any objects specified with $(lpfx). If source file can
be specified instead of object, do so.
* libc/ctype/Makefile.am: Ditto.
* libc/iconv/ccs/Makefile.am: Ditto.
* libc/iconv/ces/Makefile.am: Ditto.
* libc/iconv/lib/Makefile.am: Ditto.
* libc/locale/Makefile.am: Ditto.
* libc/posix/Makefile.am: Ditto.
* libc/reent/Makefile.am: Ditto.
* libc/search/Makefile.am: Ditto.
* libc/stdio/Makefile.am: Ditto.
* libc/stdio64/Makefile.am: Ditto.
* libc/stdlib/Makefile.am: Ditto.
* libc/string/Makefile.am: Ditto.
* libc/syscalls/Makefile.am: Ditto.
* libc/unix/Makefile.am: Ditto.
* libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get
prefix added automatically. Any specified rules must use $(lpfx) for
object file names.
* libc/machine/arm/Makefile.am: Ditto.
* libc/machine/cris/Makefile.am: Ditto.
* libc/machine/crx/Makefile.am: Ditto.
* libc/machine/d10v/Makefile.am: Ditto.
* libc/machine/d30v/Makefile.am: Ditto.
* libc/machine/fr30/Makefile.am: Ditto.
* libc/machine/frv/Makefile.am: Ditto.
* libc/machine/h8300/Makefile.am: Ditto.
* libc/machine/h8500/Makefile.am: Ditto.
* libc/machine/hppa/Makefile.am: Ditto.
* libc/machine/i386/Makefile.am: Ditto.
* libc/machine/i960/Makefile.am: Ditto.
* libc/machine/iq2000/Makefile.am: Ditto.
* libc/machine/m32c/Makefile.am: Ditto.
* libc/machine/m32r/Makefile.am: Ditto.
* libc/machine/m68hc11/Makefile.am: Ditto.
* libc/machine/m68k/Makefile.am: Ditto.
* libc/machine/m88k/Makefile.am: Ditto.
* libc/machine/mips/Makefile.am: Ditto.
* libc/machine/mn10200/Makefile.am: Ditto.
* libc/machine/mn10300/Makefile.am: Ditto.
* libc/machine/mt/Makefile.am: Ditto.
* libc/machine/necv70/Makefile.am: Ditto.
* libc/machine/powerpc/Makefile.am: Ditto.
* libc/machine/sh/Makefile.am: Ditto.
* libc/machine/sh/Makefile.in: Ditto.
* libc/machine/sparc/Makefile.am: Ditto.
* libc/machine/tic4x/Makefile.am: Ditto.
* libc/machine/tic80/Makefile.am: Ditto.
* libc/machine/v850/Makefile.am: Ditto.
* libc/machine/w65/Makefile.am: Ditto.
* libc/machine/xscale/Makefile.am: Ditto.
* libc/machine/xstormy16/Makefile.am: Ditto.
* libc/machine/z8k/Makefile.am: Ditto.
* libc/sys/a29khif/Makefile.am: Ditto.
* libc/sys/arm/Makefile.am: Ditto.
* libc/sys/d10v/Makefile.am: Ditto.
* libc/sys/h8300hms/Makefile.am: Ditto.
* libc/sys/h8500hms/Makefile.am: Ditto.
* libc/sys/linux/Makefile.am: Ditto.
* libc/sys/linux/linuxthreads/Makefile.am: Ditto.
* libc/sys/linux/net/Makefile.am: Ditto.
* libc/sys/linux/stdlib/Makefile.am: Ditto.
* libc/sys/m88kbug/Makefile.am: Ditto.
* libc/sys/mmixware/Makefile.am: Ditto.
* libc/sys/rdos/Makefile.am: Ditto.
* libc/sys/rtems/Makefile.am: Ditto.
* libc/sys/sh/Makefile.am: Ditto.
* libc/sys/sun4/Makefile.am: Ditto.
* libc/sys/sysmec/Makefile.am: Ditto.
* libc/sys/sysnec810/Makefile.am: Ditto.
* libc/sys/sysnecv850/Makefile.am: Ditto.
* libc/sys/sysvi386/Makefile.am: Ditto.
* libc/sys/sysvnecv70/Makefile.am: Ditto.
* libc/sys/tic80/Makefile.am: Ditto.
* libc/sys/w65/Makefile.am: Ditto.
* libc/sys/z8ksim/Makefile.am: Ditto.
* libc/machine/necv70/fastmath.S: Renamed from .s file.
* libc/machine/necv70/setjmp.S: Ditto.
* libc/machine/necv70/fastmath.s: Removed.
* libc/machine/necv70/setjmp.s: Ditto.
* libc/machine/w65/*.S: New files renamed from .s files.
* libc/machine/w65/*.s: Renamed and removed.
* libc/sys/a29khif/*.S: New files renamed from .s files.
* libc/sys/a29khif/*.s: Renamed and removed.
* libc/sys/sysvi386/*.S: New files renamed from .s files.
* libc/sys/sysvi386/*.s: Renamed and removed.
* libc/sys/sysvnecv70/*.S: New files renamed from .s files.
* libc/sys/sysvnecv70/*.s: Renamed and removed.
* libc/*Makefile.in: Regenerated as appropriate.
2006-05-01 22:01:07 +00:00
DJ Delorie
b34db572c1
* libc/machine/sh/configure.in: Avoid link tests.
...
* libc/machine/sh/configure: Regenerate.
2006-04-24 20:19:52 +00:00
Jeff Johnston
e163e3e138
2006-04-18 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/signal.h (sigdelset, sigfillset, sigismember): New macros.
(sigaddset, sigemptyset): Add return code.
2006-04-18 20:06:09 +00:00
Jeff Johnston
7ad962240c
2006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* acinclude.m4: New _NEWLIB_VERSION.
* acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION).
Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM.
Use new form of AC_INIT_AUTOMAKE.
* configure.in: AC_PREREQ(2.59).
Use autoconf-2.5.x version of AC_INIT.
Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of
autoconf-2.13's AC_OUTPUT.
* libm/configure.in: Ditto.
* libm/machine/configure.in: Ditto.
* libm/machine/i386/configure.in: Ditto.
* libc/configure.in: Ditto.
* libc/machine/a29k/configure.in: Ditto.
* libc/machine/arm/configure.in: Ditto.
* libc/machine/configure.in: Ditto.
* libc/machine/mn10300/configure.in: Ditto.
* libc/machine/powerpc/configure.in: Ditto.
* libc/machine/z8k/configure.in: Ditto.
* libc/machine/h8300/configure.in: Ditto.
* libc/machine/mips/configure.in: Ditto.
* libc/machine/crx/configure.in: Ditto.
* libc/machine/m68hc11/configure.in: Ditto.
* libc/machine/h8500/configure.in: Ditto.
* libc/machine/xscale/configure.in: Ditto.
* libc/machine/d10v/configure.in: Ditto.
* libc/machine/fr30/configure.in: Ditto.
* libc/machine/sh/configure.in: Ditto.
* libc/machine/tic80/configure.in: Ditto.
* libc/machine/m32r/configure.in: Ditto.
* libc/machine/xstormy16/configure.in: Ditto.
* libc/machine/i386/configure.in: Ditto.
* libc/machine/d30v/configure.in: Ditto.
* libc/machine/mn10200/configure.in: Ditto.
* libc/machine/frv/configure.in: Ditto.
* libc/machine/mt/configure.in: Ditto.
* libc/machine/i960/configure.in: Ditto.
* libc/machine/v850/configure.in: Ditto.
* libc/machine/necv70/configure.in: Ditto.
* libc/machine/tic4x/configure.in: Ditto.
* libc/machine/cris/configure.in: Ditto.
* libc/machine/m68k/configure.in: Ditto.
* libc/machine/m32c/configure.in: Ditto.
* libc/machine/hppa/configure.in: Ditto.
* libc/machine/w65/configure.in: Ditto.
* libc/machine/iq2000/configure.in: Ditto.
* libc/machine/sparc/configure.in: Ditto.
* libc/machine/m88k/configure.in: Ditto.
* libc/sys/linux/configure.in: Ditto.
* libc/sys/linux/machine/configure.in: Ditto.
* libc/sys/linux/machine/i386/configure.in: Ditto.
* libc/sys/linux/linuxthreads/configure.in: Ditto.
* libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
* libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto.
* libc/sys/arm/configure.in: Ditto.
* libc/sys/configure.in: Ditto.
* libc/sys/decstation/configure.in: Ditto.
* libc/sys/a29khif/configure.in: Ditto.
* libc/sys/sysnecv850/configure.in: Ditto.
* libc/sys/d10v/configure.in: Ditto.
* libc/sys/netware/configure.in: Ditto.
* libc/sys/mmixware/configure.in: Ditto.
* libc/sys/h8500hms/configure.in: Ditto.
* libc/sys/sh/configure.in: Ditto.
* libc/sys/tic80/configure.in: Ditto.
* libc/sys/rdos/configure.in: Ditto.
* libc/sys/sysmec/configure.in: Ditto.
* libc/sys/sysvi386/configure.in: Ditto.
* libc/sys/h8300hms/configure.in: Ditto.
* libc/sys/sparc64/configure.in: Ditto.
* libc/sys/arc/configure.in: Ditto.
* libc/sys/sysnec810/configure.in: Ditto.
* libc/sys/m88kbug/configure.in: Ditto.
* libc/sys/sysvnecv70/configure.in: Ditto.
* libc/sys/z8ksim/configure.in: Ditto.
* libc/sys/rtems/configure.in: Ditto.
* libc/sys/w65/configure.in: Ditto.
* libc/sys/sun4/configure.in: Ditto.
* doc/configure.in: Ditto.
* iconvdata/configure.in: Ditto.
* configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
2006-04-13 19:56:32 +00:00
Jeff Johnston
34e666798a
2006-04-11 Jeff Johnston <jjohnstn@redhat.com>
...
* acinclude.m4: Properly add square brackets for
AC_DEFUN macros. Rewrite LIB_AC_PROG_CC to remove
macros no longer available. Add LIB_AM_PROG_AS to
remove prereq of AC_PROG_CC. Add LIB_AC_PROG_CC_GNU
macro. Substitute lpfx (library object prefix).
* configure.host: Set lpfx depending on whether
libtool is used or not.
* configure.in: Individually specify libc and libm
to AC_CONFIG_SUBDIRS. Add square bracket quoting as
necessary.
* Makefile.am: Use $(lpfx) to get object names for
math-library functions that should also be in libc.
* libc/machine/configure.in: Use case statement to determine
AC_CONFIG_SUBDIRS statement.
* libc/sys/linux/linuxthreads/machine/configure.in: Ditto.
* libc/sys/linux/machine/configure.in: Ditto.
* libc/sys/configure.in: Ditto.
* libm/machine/configure.in: Ditto.
* libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS.
* libm/configure.in: Add AM_CONDITIONAL statement
for HAVE_LIBM_MACHINE_DIR.
* libc/machine/a29k/Makefile.am: Modified to work with
latest automake. Change includes setting AM_CCASFLAGS
so building .S files will properly pick up flags used
to build C files.
* libc/machine/arm/Makefile.am: Ditto.
* libc/machine/crx/Makefile.am: Ditto.
* libc/machine/d10v/Makefile.am: Ditto.
* libc/machine/d30v/Makefile.am: Ditto.
* libc/machine/fr30/Makefile.am: Ditto.
* libc/machine/frv/Makefile.am: Ditto.
* libc/machine/h8300/Makefile.am: Ditto.
* libc/machine/h8500/Makefile.am: Ditto.
* libc/machine/hppa/Makefile.am: Ditto.
* libc/machine/i386/Makefile.am: Ditto.
* libc/machine/iq2000/Makefile.am: Ditto.
* libc/machine/m32c/Makefile.am: Ditto.
* libc/machine/m32r/Makefile.am: Ditto.
* libc/machine/m68hc11/Makefile.am: Ditto.
* libc/machine/m68k/Makefile.am: Ditto.
* libc/machine/m88k/Makefile.am: Ditto.
* libc/machine/mips/Makefile.am: Ditto.
* libc/machine/mn10200/Makefile.am: Ditto.
* libc/machine/mn10300/Makefile.am: Ditto.
* libc/machine/mt/Makefile.am: Ditto.
* libc/machine/necv70/Makefile.am: Ditto.
* libc/machine/powerpc/Makefile.am: Ditto.
* libc/machine/sh/Makefile.am: Ditto.
* libc/machine/sparc/Makefile.am: Ditto.
* libc/machine/tic4x/Makefile.am: Ditto.
* libc/machine/tic80/Makefile.am: Ditto.
* libc/machine/v850/Makefile.am: Ditto.
* libc/machine/w65/Makefile.am: Ditto.
* libc/machine/xscale/Makefile.am: Ditto.
* libc/machine/xstormy16/Makefile.am: Ditto.
* libc/machine/z8k/Makefile.am: Ditto.
* libc/sys/a29khif/Makefile.am: Ditto.
* libc/sys/arc/Makefile.am: Ditto.
* libc/sys/arm/Makefile.am: Ditto.
* libc/sys/d10v/Makefile.am: Ditto.
* libc/sys/decstation/Makefile.am: Ditto.
* libc/sys/h8300hms/Makefile.am: Ditto.
* libc/sys/h8500hms/Makefile.am: Ditto.
* libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto.
* libc/sys/linux/machine/i386/Makefile.am: Ditto.
* libc/sys/m88kbug/Makefile.am: Ditto.
* libc/sys/mmixware/Makefile.am: Ditto.
* libc/sys/netware/Makefile.am: Ditto.
* libc/sys/rdos/Makefile.am: Ditto.
* libc/sys/rtems/Makefile.am: Ditto.
* libc/sys/sh/Makefile.am: Ditto.
* libc/sys/sparc64/Makefile.am: Ditto.
* libc/sys/sysmec/Makefile.am: Ditto.
* libc/sys/sysnec810/Makefile.am: Ditto.
* libc/sys/sysnecv850/Makefile.am: Ditto.
* libc/sys/sysvi386/Makefile.am: Ditto.
* libc/sys/sysvnecv70/Makefile.am: Ditto.
* libc/sys/tic80/Makefile.am: Ditto.
* libc/sys/w65/Makefile.am: Ditto.
* libc/sys/z8ksim/Makefile.am: Ditto.
* libm/machine/i386/Makefile.am: Ditto.
* libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including
trap.S so that automake will generate a .S.o suffix rule.
* libc/argz/Makefile.am: Modified to work with
latest automake. Change includes adding lib_a_CFLAGS
so automake doesn't complain about libtool and non-libtool
libraries sharing objects.
* libc/ctype/Makefile.am: Ditto.
* libc/errno/Makefile.am: Ditto.
* libc/iconv/ccs/Makefile.am: Ditto.
* libc/iconv/ces/Makefile.am: Ditto.
* libc/iconv/lib/Makefile.am: Ditto.
* libc/locale/Makefile.am: Ditto.
* libc/misc/Makefile.am: Ditto.
* libc/posix/Makefile.am: Ditto.
* libc/reent/Makefile.am: Ditto.
* libc/search/Makefile.am: Ditto.
* libc/signal/Makefile.am: Ditto.
* libc/stdio/Makefile.am: Ditto.
* libc/stdio64/Makefile.am: Ditto.
* libc/stdlib/Makefile.am: Ditto.
* libc/string/Makefile.am: Ditto.
* libc/sys/linux/Makefile.am: Ditto.
* libc/sys/linux/argp/Makefile.am: Ditto.
* libc/sys/linux/cmath/Makefile.am: Ditto.
* libc/sys/linux/dl/Makefile.am: Ditto.
* libc/sys/linux/iconv/Makefile.am: Ditto.
* libc/sys/linux/intl/Makefile.am: Ditto.
* libc/sys/linux/linuxthreads/Makefile.am: Ditto.
* libc/sys/linux/net/Makefile.am: Ditto.
* libc/sys/linux/stdlib/Makefile.am: Ditto.
* libc/syscalls/Makefile.am: Ditto.
* libc/time/Makefile.am: Ditto.
* libc/unix/Makefile.am: Ditto.
* libm/Makefile.am: Ditto.
* libm/common/Makefile.am: Ditto.
* libm/math/Makefile.am: Ditto.
* libm/mathfp/Makefile.am: Ditto.
* Regenerate all aclocal.m4, Makefile.in, and configure files.
2006-04-11 19:02:16 +00:00
Jeff Johnston
b577ecdf59
2006-04-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY
anymore. Assume there is a gettimeofday syscall.
2006-04-07 21:46:00 +00:00
Jeff Johnston
ef79d97d9f
2006-03-29 Shaun Jackman <sjackman@gmail.com>
...
* libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
for the declaration of n_long.
2006-03-29 22:38:46 +00:00
Jeff Johnston
15a1b33c00
2006-03-29 Shaun Jackman <sjackman@gmail.com>
...
* libc/sys/linux/include/net/if.h: Include sys/socket.h for
struct sockaddr.
(IFF_SMART): Replace this define with IFF_NOTRAILERS.
(IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
(IFF_NOTRAILERS): New define.
(struct ifreq): Add ifru_netmask.
(ifr_netmask): New define.
2006-03-29 22:23:00 +00:00
Jeff Johnston
bcc4ff0540
2006-03-29 Shaun Jackman <sjackman@gmail.com>
...
* libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
match sys/ioctl.h.
2006-03-29 22:09:56 +00:00
Jeff Johnston
8fed3e2ea5
2006-03-29 Shaun Jackman <sjackman@gmail.com>
...
* libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
linux-newlib libc implementations.
2006-03-29 22:04:27 +00:00
Jeff Johnston
6507c09718
2006-03-29 Eric Blake <ebb9@byu.net>
...
* libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
* libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
2006-03-29 21:57:21 +00:00
Jeff Johnston
084fba647c
Fix reference to __mknod syscall to pass proper third argument.
2006-03-29 21:50:52 +00:00
Jeff Johnston
fac690bef7
2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/io.c (__mknod): Fix declaration of
syscall to pass a dev_t as third argument rather than
a pointer to dev_t.
2006-03-29 21:49:58 +00:00
Jeff Johnston
9e443adbaf
2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/net/name6.c: Fix struct references.
2006-03-29 21:45:17 +00:00
Mark Mitchell
ce93dfe415
* configure.host: Allow hosts to set the default
...
newlib_atexit_dynamic_alloc value.
* configure.in: Likewise.
* configure: Regenerated.
2006-03-21 20:02:13 +00:00
Mark Mitchell
3078fb4f36
* acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
...
* configure.in (--disable-newlib-atexit-dynamic-alloc): New
option.
* configure: Regenerated.
* newlib.hin: Regenerated.
* libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
if _ATEXIT_DYNAMIC_ALLOC is undefined.
* libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
if _ATEXIT_DYNAMIC_ALLOC is undefined.
2006-03-21 00:57:34 +00:00
Jeff Johnston
9d5cff74ae
2006-03-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/linuxthreads/config.h: Remove definition
of UINT32_C.
2006-03-17 22:27:37 +00:00
Jeff Johnston
490cfb83e9
2006-03-15 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/wsetup.c (__swsetup): Don't make a buffer
for a string I/O file that isn't using the asprintf family.
2006-03-15 22:38:59 +00:00
Jeff Johnston
ce10f1789e
2006-03-07 Eric Blake <ebb9@byu.net>
...
* libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
filename, allow read-only or write-only FILE atop O_RDWR file
descriptor.
* libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
2006-03-07 22:20:18 +00:00
Jeff Johnston
ddf12e6b76
2006-03-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
* libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
2006-03-07 22:14:04 +00:00
Jeff Johnston
cb1975812d
2006-03-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/math/math.tex: Fix reference to sisnan.def which
is now in common subdirectory.
* libm/mathfp/mathfp.tex: Ditto.
2006-03-02 16:46:12 +00:00
Jeff Johnston
bc88ea65a1
Add missing comment regarding math.h.
2006-02-28 00:03:46 +00:00
Jeff Johnston
e48682cff5
2006-02-27 Jeff Johnston <jjohnstn@redhat.com>
...
* Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
s_isnand, and sf_isnanf object files.
* Makefile.in: Regenerated.
* libc/include/ieeefp.h: Undef isnan and isinf to avoid
conflict if <math.h> has previously been included.
* libc/include/math.h
* libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
and sf_isnanf files. Also support s_isnan, sf_isnan, s_isinf, and
sf_isinf files which have been moved from math/mathfp directories.
* libm/common/Makefile.in: Regenerated.
* libm/common/s_isinfd.c: New file.
* libm/common/s_isnand.c: Ditto.
* libm/common/sf_isinff.c: Ditto.
* libm/common/sf_isnanf.c: Ditto.
* libm/common/s_isinf.c: Moved from libm/math directory.
* libm/common/s_isnan.c: Ditto.
* libm/common/sf_isinf.c: Ditto.
* libm/common/sf_isnan.c: Ditto.
* libm/math/Makefile.am: Remove isinf and isnan family functions
which have been moved into common directory.
* libm/mathfp/Makefile.am: Ditto.
* libm/math/Makefile.in: Regenerated.
* libm/mathfp/Makefile.in: Ditto.
* libm/math/s_isinf.c: Removed.
* libm/math/s_isnan.c: Ditto.
* libm/math/sf_isinf.c: Ditto.
* libm/math/sf_isnan.c: Ditto.
* libm/mathfp/s_isinf.c: Ditto.
* libm/mathfp/s_isnan.c: Ditto.
* libm/mathfp/sf_isinf.c: Ditto.
* libm/mathfp/sf_isnan.c: Ditto.
2006-02-27 23:51:28 +00:00
Jeff Johnston
99db626d21
2006-02-20 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/fflush.c (fflush): For an fflush on a read-only
stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
* libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
seek, turn off the __SNPT no-optimization flag.
2006-02-20 23:24:00 +00:00
Jeff Johnston
49103e2ba4
2006-02-16 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
will be defined.
* libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
<features.h> to preset special flags.
2006-02-16 21:25:45 +00:00
Corinna Vinschen
680e0f1ffd
* libc/include/sys/time.h (struct timeval): Change member types
...
according to SUSv3.
* libc/include/sys/types.h (useconds_t): Change to unsigned
according to SUSv3.
(suseconds_t): Define type.
2006-02-15 10:26:30 +00:00
Jeff Johnston
d6593503c6
2006-02-13 Jeff Johnston <jjohnstn@redhat.com>
...
David Carne <davidcarne@gmail.com>
* libc/string/strndup_r.c (_strndup_r): Use strnlen logic
instead of strlen to determine number of bytes to copy.
* libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
before looking at storage location.
2006-02-13 17:27:50 +00:00
Jeff Johnston
9bbe6d5d28
2006-02-07 Paul Brook <paul@codesourcery.com>
...
* libc/machine/arm/setjmp.S: Add Thumb-2 support.
* libc/sys/arm/crt0.S: Add Thumb-2 startup code.
* libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
* libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
* libc/sys/arm/trap.S: Disable for Thumb-2.
2006-02-07 18:44:54 +00:00
Jeff Johnston
d968b3c86f
2006-01-31 Leif Ekblad <leif@rdos.net>
...
* configure.host: RDOS support added
* libc/include/sys/config.h: Ditto.
* libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
* libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
* libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
* libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
* libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
* libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
* libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
* libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
* libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
* libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
* libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
* libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
* libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
* libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
* libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
* libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
* libc/sys/rdos/write.c: Ditto.
2006-01-31 19:33:56 +00:00
Jeff Johnston
3acaaf543f
2006-01-24 Jeff Johnston <jjohnstn@redhat.com>
...
* acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
so as not to define PACKAGE and VERSION in newlib.h.
* aclocal.m4: Regenerated.
* configure: Ditto.
* newlib.hin: Ditto.
2006-01-24 17:24:02 +00:00
Jeff Johnston
54abc854d0
2006-01-20 Jeff Johnston <jjohnstn@redhat.com>
...
* acconfig.h: New file to generate newlib.hin from.
* newlib.hin: Regenerated.
* stamp-h.in: Regenerated.
* Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
called automatically.
* Makefile.in: Regenerated.
* acinclude.m4: Add proper comment for hack in previous change.
* aclocal.m4 */aclocal.m4: Regenerated.
* configure */configure: Regenerated.
2006-01-20 22:42:46 +00:00
Jeff Johnston
33c9cfbde9
2006-01-11 Jeff Johnston <jjohnstn@redhat.com>
...
* acinclude.m4: Add hack to prevent INSTALL in subdirs
from being set to "../".
* Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
* aclocal.m4: Regenerated.
* configure: Ditto.
* Makefile.in: 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.
2006-01-11 23:50:33 +00:00
Jeff Johnston
dea958bc06
2006-01-10 Eric Blake <ebb9@byu.net>
...
* libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2006-01-10 17:09:43 +00:00
Jeff Johnston
216633f73c
2006-01-10 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/mathfp/s_frexp.c: Check for special values on
the original input, not the manipulated output value.
* libm/mathfp/sf_frexp.c: Ditto.
* libm/mathfp/s_atangent.c: Don't use local value branch
when checking for quadrant.
* libm/mathfp/sf_atangent.c: Ditto.
2006-01-10 16:51:58 +00:00
Jeff Johnston
64ae8ab5f0
2006-01-09 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
* libc/stdio64/freopen64.c: Ditto.
2006-01-09 20:01:09 +00:00
Jeff Johnston
0da7297ef1
2006-01-09 Eric Blake <ebb9@byu.net>
...
* libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2006-01-09 17:51:01 +00:00
Jeff Johnston
a37aaf88a8
2006-01-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/include/getopt.h: Add macros needed by
new version of getopt.c in libc/stdlib.
2006-01-06 20:59:13 +00:00
Jeff Johnston
791c9bda57
2006-01-04 Gregory Pietsch <gpietsch@comcast.net>
...
* libc/stdlib/getopt.c: Replaced with version
that adds getopt_long and getopt_long_only support.
* libc/include/getopt.h: New file.
2006-01-04 21:21:52 +00:00