Jeff Johnston
6a15098793
2004-01-15 Thomas Pfaff <tpfaff@gmx.net>
...
* libc/stdio/fclose.c: Include sys/lock.h.
(fclose): Destroy lock when file is closed.
* libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
member.
* libc/stdio/freopen.c: Include sys/lock.h.
(_freopen_r): Destroy lock when file is closed.
* libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
_lock member.
2004-01-15 19:12:17 +00:00
Jeff Johnston
c9524c0cd8
2004-01-08 Joel Sherrill <joel@oarcorp.com>
...
* libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
Remove warnings.
2004-01-08 19:33:13 +00:00
Jeff Johnston
9f13ccb356
2004-01-08 Joel Sherrill <joel@oarcorp.com>
...
* libc/sys/rtems/sys/queue.h: New file.
* libc/include/sys/signal.h: Reflect renumbering of signals to
fit into 32-bit mask.
* libc/include/sys/unistd.h: Add fdatasync() prototype.
* libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
required. In particular, add the reentrant variants of libc calls.
* libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
2004-01-08 19:25:21 +00:00
Jeff Johnston
9488c41488
2004-01-06 Mark Mitchell <mark@codesourcery.com>
...
* libc/sys/arm/syscalls.c (unistd.h): Include it.
(remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
Similarly for stdout and stderr.
2004-01-06 19:27:21 +00:00
Jeff Johnston
5125f91910
2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/libc.texinfo: Correct escape character for @ sign
so file will be processed by make info. Update copyright years.
* libm/libm.texinfo: Ditto.
2004-01-06 19:26:10 +00:00
Jeff Johnston
9fc92ceb06
2003-12-05 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/stat.h: No longer include stat-dj.h.
* libc/include/sys/stat-dj.h: Removed.
2003-12-05 21:09:13 +00:00
Jeff Johnston
25c7dad1fb
2003-12-05 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/wchar.h: Include <sys/reent.h>.
2003-12-05 20:51:57 +00:00
Christopher Faylor
f36d3b6a0d
Revert accidental checkin.
2003-12-05 06:15:18 +00:00
Christopher Faylor
576593dd72
* libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when
...
defining _mbrtowc.
* libc/stdlib/mbsinit.c: Ditto.
* libc/stdlib/mbsrtowcs.c: Ditto.
* libc/stdlib/wcrtomb.c: Ditto.
* libc/stdlib/wcsrtombs.c: Ditto.
* libc/stdlib/wctob.c: Ditto.
* libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when
defining _mbrtowc.
* libc/stdlib/mbsinit.c: Ditto.
* libc/stdlib/mbsrtowcs.c: Ditto.
2003-12-05 06:13:44 +00:00
Christopher Faylor
4c889d629d
* libc/stdlib/mbrtowc.c: Change include order to prevent compiler errors when
...
defining _mbrtowc.
2003-12-05 06:02:31 +00:00
Jeff Johnston
5d109bdeb0
2003-12-04 Artem B. Bityuckiy <abitytsky@softminecorp.com>
...
* libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions
of mb routines for %lc and %ls support.
* libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C,
%ls, and %S support. Remove CYGNUS_NEC markers and
code within.
2003-12-05 01:42:26 +00:00
Jeff Johnston
3aca088831
2003-12-04 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/wchar.h: Add prototypes for _mbrtowc_r,
_wcrtomb_r, and _wcsrtombs_r.
2003-12-05 01:36:32 +00:00
Corinna Vinschen
18dcb16757
* libc/include/sys/fcntl.h: Don't define struct flock when on
...
Cygwin. This is done in winsup/cygwin/include/cygwin/types.h now.
2003-12-01 17:27:01 +00:00
Christopher Faylor
93f8e67384
* libc/include/sys/signal.h: Use system specific signal file when building on
...
cygwin.
2003-11-28 21:05:51 +00:00
Jeff Johnston
cc2a11e0d0
2003-11-27 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdlib.h (_atoi_r): New prototype.
* libc/stdlib/atoi.c (_atoi_r): New reentrant function.
2003-11-27 20:54:12 +00:00
Jeff Johnston
83bf7d2f89
2003-11-27 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes.
* libc/stdlib/atol.c (_atol_r): New reentrant function.
* libc/stdlib/atoll.c (_atoll_r): Ditto.
2003-11-27 20:15:47 +00:00
Jeff Johnston
6bbb700c34
2003-11-27 Artem B. Bityuckiy <mail_lists@mail.ru>
...
Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdlib.h (lldiv_t): New type.
(atoll, llabs, lldiv): New prototypes.
* libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
* libc/stdlib/stdlib.tex: Ditto.
* libc/stdlib/Makefile.in: Regenerated.
* libc/stdlib/atoll.c: New file.
* libc/stdlib/llabs.c: Ditto.
* libc/stdlib/lldiv.c: Ditto.
2003-11-27 19:47:19 +00:00
Jeff Johnston
0a707c79e9
2003-11-26 Corinna Vinschen <corinna@vinschen.de>
...
* libc/include/fcntl.h: Declare syscalls only when building newlib.
* libc/include/unistd.h: Ditto.
* libc/include/stat.h: Ditto. Also declare struct stat64.
2003-11-26 19:15:17 +00:00
Jeff Johnston
6db165c2a5
2003-11-24 Artem B. Bityuckiy <mail_lists@mail.ru>
...
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
specifier to use ch instead of *fmt.
2003-11-24 18:39:04 +00:00
Jeff Johnston
759a097e72
2003-11-21 Artem B. Bityuckiy <mail_lists@mail.ru>
...
* libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific
code within checks for MB_CAPABLE. For non-mb-capable platforms,
use simple byte logic.
2003-11-22 01:07:24 +00:00
Jeff Johnston
4f6149d6f0
2003-11-21 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use
_strtold routine for processing floats and doubles since it
is not as fast as _strtod_r.
2003-11-21 20:48:49 +00:00
Jeff Johnston
7343eefbde
2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
...
* libc/machine/h8300/defines.h : Correct pointer register defines
for normal mode.
* libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
for normal mode.
* libc/machine/h8300/reg_memcpy.S : Likewise.
* libc/machine/h8300/reg_memset.S : Likewise.
* libc/machine/h8300/strcmp.S : Likewise.
2003-11-20 19:59:03 +00:00
Jeff Johnston
dd9f316d65
2003-11-19 Nicholas Wourms <nwourms@netscape.net>
...
* configure.host: Enable positional arguments for printf
family for Cygwin.
* libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
pointer reference for quad_ptr_t.
2003-11-19 21:57:52 +00:00
Jeff Johnston
64cfc6f213
2003-11-19 Nicholas Wourms <nwourms@netscape.net>
...
* configure.host: Enable positional arguments for printf
family for Cygwin.
* libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous
pointer reference for quad_ptr_t.
2003-11-19 17:07:36 +00:00
Jeff Johnston
e1dc8171ae
2003-11-19 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/scanf.c: Don't include local.h more than once.
2003-11-19 16:57:51 +00:00
Jeff Johnston
a472290f3e
2003-11-18 Corinna Vinschen <corinna@vinschen.de>
...
* libc/include/sys/fcntl.h: Declare _open64.
* libc/include/sys/stat.h: Declare _fstat64.
* libc/include/sys/unistd.h: Declare _lseek64.
2003-11-18 19:17:17 +00:00
Corinna Vinschen
a2f1155cf2
* libc/include/stdlib.h (getprogname): Declare for Cygwin.
...
(setprogname): Ditto.
2003-11-17 17:30:30 +00:00
Jeff Johnston
030441fc69
2003-11-10 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts
to use (Ebits + 1) which accounts for the sign-bit.
2003-11-10 21:36:38 +00:00
Jeff Johnston
fe359733a4
2003-11-07 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux
x86 build.
* iconvdata/Makefile.am: Make dependent on newlib's configure.host
and set up default flags to pass to aclocal.
* iconvdata/Makefile.in: Regenerated.
* libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam,
and getpwuid routines.
* libc/sys/linux/Makefile.in: Regenerated.
* libc/sys/linux/getlogin.c: New stub file to allow x86-linux
applications to link with newlib's shared libc library.
* libc/sys/linux/getpwnam.c: Ditto.
* libc/sys/linux/getpwuid.c: Ditto.
* libc/sys/linux/sys/types.h: Include <features.h> and supply types
that were formerly supplied by /usr/include/linux/types.h with
kernel types.
* testsuite/newlib.wctype/twctype.c: Fix testcase to properly
test _ELIX_LEVEL macro.
2003-11-07 23:47:05 +00:00
Jeff Johnston
2985521f84
2003-11-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be
referring to _NO_LONGLONG macro.
2003-11-07 16:01:17 +00:00
Jeff Johnston
dcad6a899a
2003-11-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/linuxthreads/td_init.c: Replace function name
in LOG() macro so this will compile on gcc 3.4 and up.
* libc/sys/linux/linuxthreads/td_log.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_new.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto.
* libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto.
* libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
2003-11-06 22:58:52 +00:00
Jeff Johnston
d2ffac097d
2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
...
Artem B. Bityuckiy <mail_lists@mail.ru>
* libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for
%ls, %S, %lc, and %C format specifiers.
(get_arg): Ditto.
* libc/stdio/sprintf.c: Add documentation regarding new
format specifiers added in vfprintf.c.
2003-11-06 00:50:57 +00:00
Jeff Johnston
da2d12279b
2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes
to make code work as specified in standard.
2003-11-06 00:46:59 +00:00
Jeff Johnston
3ef05bac21
2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.in: Use absolute newlib basedir when forming
CC_FOR_NEWLIB include options.
* configure: Regenerated.
2003-10-23 21:46:06 +00:00
Jeff Johnston
4340b63bc1
2003-10-23 Artem B. Bityuckiy <mail_lists@mail.ru>
...
* libc/string/wcsnlen.c: New file.
* libc/include/wchar.h: Add wcsnlen prototype.
* libc/string/Makefile.am: Add wcsnlen support.
* libc/string/Makefile.in: Regenerated.
* libc/string/wcstrings.tex: Add wcsnlen documentation.
2003-10-23 18:07:13 +00:00
Richard Sandiford
63a823f8f4
* libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
2003-10-22 08:45:01 +00:00
Jeff Johnston
76a7df5256
2003-10-20 Bob Wilson <bob.wilson@acm.org>
...
* libc/locale/locale.c: Use double quotes in code.
* libc/locale/locale.tex: Likewise.
* libc/libc.texinfo: Hyphenate "floating-point".
* libc/machine/necv70/necv70.tex: Likewise.
* libc/stdio/sprintf.c: Likewise.
* libc/stdio/sscanf.c: Likewise.
* libc/stdlib/atof.c: Likewise.
* libc/stdlib/ldtoa.c: Fix comment typo.
* libc/stdlib/div.c: Use @ifnottex instead of @ifinfo.
* libc/stdlib/ldiv.c: Likewise.
* libm/common/s_expm1.c: Likewise.
* libm/common/s_ilogb.c: Hyphenate "floating-point". Use "nonzero".
* libm/common/s_infinity: Hyphenate "double- and single-precision".
* libm/common/s_nan.c: Likewise. Also correct the FUNCTION summary.
* libm/common/s_nextafter.c: Fix typo. Hyphenate "double-precision"
and "floating-point".
* libm/common/s_scalbn.c: Correct the FUNCTION summary.
* libm/math/e_pow.c: Fix comment typo.
* libm/math/math.tex: Hyphenate "single-precision" and "floating-point".
* libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo.
* libm/math/s_atan.c: Likewise.
* libm/math/s_frexp.c: Likewise. Also use "nonzero".
* libm/math/s_isnan.c: Hyphenate "single-precision" and
"floating-point". Use "nonzero".
* libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo.
* libm/math/w_acos.c: Likewise.
* libm/math/w_acosh.c: Likewise.
* libm/math/w_asin.c: Likewise.
* libm/math/w_atan2.c: Likewise.
* libm/math/w_atanh.c: Likewise.
* libm/math/w_cosh.c: Likewise.
* libm/math/w_exp.c: Likewise.
* libm/math/w_exp2.c: Likewise. Add missing @end and missing @tex
version of 2^x in the description.
* libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo.
* libm/math/w_gamma.c: Likewise.
* libm/math/w_hypot.c: Likewise.
* libm/math/w_j0.c: Likewise.
* libm/math/w_sinh.c: Likewise.
* libm/math/w_pow.c: Replace "exp1.0nt" with "exponent".
* libm/mathfp/mathfp.tex: Hyphenate "single-precision" and
"floating-point".
* libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo.
* libm/mathfp/e_atanh.c: Likewise.
* libm/mathfp/e_hypot.c: Likewise.
* libm/mathfp/er_lgamma.c: Likewise.
* libm/mathfp/s_acos.c: Likewise.
* libm/mathfp/s_asine.c: Likewise.
* libm/mathfp/s_asinh.c: Likewise.
* libm/mathfp/s_atan.c: Likewise.
* libm/mathfp/s_atan2.c: Likewise.
* libm/mathfp/s_atangent.c: Likewise.
* libm/mathfp/s_cosh.c: Likewise.
* libm/mathfp/s_exp.c: Likewise.
* libm/mathfp/s_fmod.c: Likewise.
* libm/mathfp/s_frexp.c: Likewise. Also use "nonzero".
* libm/mathfp/s_isnan.c: Hyphenate "single-precision" and
"floating-point". Use "nonzero".
* libm/math/s_pow.c: Replace "exp1.0nt" with "exponent".
* libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo.
* libm/mathfp/s_sineh.c: Likewise.
* libm/mathfp/w_jn.c: Likewise.
2003-10-20 18:46:38 +00:00
Jeff Johnston
b11926e717
2003-10-15 Alexandre Oliva <aoliva@redhat.com>
...
* Makefile.am: Add $(MAKE) comments to multido and multiclean
lines, to enable parallel make.
* Makefile.in: Rebuilt.
2003-10-15 17:33:32 +00:00
Christopher Faylor
31271d5cb4
* libc/time/clock.c: Clarify documentation of return value when no measurement
...
is available.
2003-10-14 17:41:30 +00:00
Jeff Johnston
bc707cbd17
2003-09-29 Ian Lance Taylor <ian@wasabisystems.com>
...
* libm/configure.in: Check libm_machine_dir, not machine_dir.
* libm/configure: Regenerate.
* libm/Makefile.in: Ditto.
2003-09-29 21:04:09 +00:00
Joern Rennecke
f4b1060529
* libc/machine/sh/strncpy.S: New file.
...
* libc/machine/sh/Makefile.am: Add entry & rule for new file.
* libc/machine/sh/Makefile.in: Regenerate.
2003-09-29 12:42:49 +00:00
Jim Wilson
ce044d8fe0
* MAINTAINERS: Update my e-mail address.
2003-09-11 18:08:32 +00:00
Corinna Vinschen
080ef41135
* libc/include/sys/unistd.h: Declare function daemon for Cygwin.
2003-09-10 15:53:44 +00:00
Jeff Johnston
3a767b69fd
2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
prototype.
* libc/machine/powerpc/simdldtoa.c: Remove prototype for
_simdldcheck(). Also add unsigned cast for index variable in
for loop using sizeof operators.
* libc/machine/powerpc/strtoufix32.c: Remove unused variable.
* libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
* libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
plus fix shift calculation for determining if there is a
carry from word2.
2003-09-09 22:53:27 +00:00
Corinna Vinschen
84154fcc00
* libc/include/grp.h: Don't define setgrfile, group_from_gid and
...
setgroupent for Cygwin.
2003-09-09 13:14:50 +00:00
Jeff Johnston
f1b1505827
2003-09-05 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
is different for _REENT_SMALL than when using regular reent
struct.
2003-09-05 18:22:00 +00:00
Ben Elliston
b73263e401
* libc/ctype/wctype.c (_DEFUN): Remove empty default case, as
...
modern versions of GCC issue a warning.
2003-09-05 02:21:41 +00:00
Ben Elliston
cf88c20fd9
Fix mail address in most recent commit.
2003-09-05 00:48:01 +00:00
Ben Elliston
0a8fd4dc31
* libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
...
after continuation characters that induces a warning from modern
versions of GCC.
2003-09-05 00:45:54 +00:00
Ben Elliston
10a32423f8
* libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards. #ifndef FOO ||
...
FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead.
2003-09-05 00:13:15 +00:00