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
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
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
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
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
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
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
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
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
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
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
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