Commit Graph

580 Commits

Author SHA1 Message Date
Christopher Faylor ec48a95394 * libc/sys/cygwin/sys/dirent.h (struct dirent): Accommodate (slightly) 64 bit
inodes.
2003-05-11 00:23:41 +00:00
Corinna Vinschen a3cc585138 * libc/include/sys/config.h: Remove all Cygwin specific configuration.
Include cygwin/config.h instead.
2003-05-09 21:38:31 +00:00
Jeff Johnston 57ff95d35b 2003-04-16 Jeff Johnston <jjohnstn@redhat.com>
* newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield
        all code with #ifdef __SPE__ test.
        * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto.
2003-04-16 15:45:29 +00:00
Christopher Faylor cfd2c7bea8 * newlib/libc/include/sys/unistd.h: add declaration for gethostid on Cygwin. 2003-04-15 20:13:49 +00:00
Joern Rennecke 6f48c0ae7a * libc/machine/sh/memset.S: Avoid clobbering volatile
objects following a tiny to-be-set array in the same quadword.
2003-04-09 10:48:02 +00:00
Corinna Vinschen 8f8d09c041 * libc/include/wchar.h: Add definitions for wcswidth and wcwidth.
* libc/string/Makefile.am: Add wcswidth.c and wcwidth.c
	* libc/string/Makefile.in: Regenerated.
	* libc/string/wcswidth.c: New file.
	* libc/string/wcwidth.c: New file.
	* libc/string/wcstrings.tex: Add wcswidth and wcwidth.
2003-04-09 10:42:12 +00:00
Joern Rennecke 40c3b2d03b * libc/machine/sh/memset.S: Fix problem with alloco region
exceeding destination region for length >= 88 bytes, start
	& 0x16 == 0, end & 0x1f == 18.
2003-04-03 13:06:02 +00:00
Corinna Vinschen 8ae6a3ddaa * libc/string/wcscoll.c: Fix comment. 2003-04-03 08:30:22 +00:00
Corinna Vinschen d122b1cc73 * libc/include/wchar.h: Add definition for wcscoll.
* libc/string/Makefile.am: Add wcscoll.c.
	* libc/string/Makefile.in: Regenerated.
	* libc/string/wcscoll.c: New file.
	* libc/string/wcstrings.tex: Add wcscoll.
2003-04-03 08:26:07 +00:00
Corinna Vinschen 31ee99a41e * libc/stdio/sscanf.c: Update flags description.
* libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target
	type.
	(__svfscanf_r): Add 'hh' and 'll' handling.
2003-04-01 16:27:52 +00:00
Corinna Vinschen d78045eed0 * libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of
__d_position member to _off_t.
2003-04-01 14:53:02 +00:00
Jeff Johnston e6bdc6c5eb 2003-03-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
        count all characters used to create number against maximum width.
        * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.
2003-03-20 17:23:57 +00:00
Jeff Johnston e65d559e71 2003-03-18 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
        support.
        * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
        flag to support simulator only extensions.
2003-03-18 20:38:04 +00:00
Jeff Johnston 6b3bb52b84 2003-03-17 Bob Cassels <bcassels@abinitio.com>
* libc/string/wcschr.c: (wcschr): Look for character first,
        then for end of string, so you can do wcschr(x, '\0').
2003-03-17 17:12:32 +00:00
Corinna Vinschen 2a940c1a22 * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
with internal (_fpos_t and _off_t) datatypes when compiling newlib.
	* libc/include/sys/unistd.h: Declare _lseek using _off_t.
	* libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
	* libc/stdio/fseeko.c (fseeko): Ditto.
	* libc/stdio/ftello.c (ftello): Ditto.
	* libc/stdio/stdio.c (__swrite): Ditto.
	(__sseek): Ditto.
	* libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
	* libc/stdio/fseek.c (fseek): Ditto.
	* libc/stdio/fsetpos.c (fsetpos): Ditto.
	* libc/stdio/ftell.c (ftell): Ditto.
	* libc/stdio/local.h: Declare __sseek using _off_t.
2003-03-14 18:39:05 +00:00
Corinna Vinschen 150c2818b6 * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t. 2003-03-09 22:10:14 +00:00
Corinna Vinschen 2c440f9c1a * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
Cygwin.
2003-03-09 21:52:23 +00:00
Corinna Vinschen f882fd15b0 * libc/include/pwd.h: Add guards to avoid type clashes when compiling
Cygwin.
	* libc/include/sys/stat.h: Ditto.
	* libc/include/sys/unistd.h: Ditto.
	* libc/sys/cygwin/sys/dirent.h: Ditto.
2003-03-09 21:08:51 +00:00
Christopher Faylor 01d615435c * libc/include/sys/unistd.h: Guard getopt.h call to force only declaration of
getopt and avoid getopt_long declaration.
* libc/sys/cygwin/include/unistd.h: Remove.
2003-03-08 04:57:41 +00:00
Corinna Vinschen 5582abd2c7 * configure.host: Define stdio64_dir for Cygwin.
* libc/include/stdio.h: Change definition of fpos_t to fulfill
	Cygwin 64bit file access requirements.
	Drop definition of f*64() functions when compiled for Cygwin.
	* libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
	* libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
	* libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.
2003-03-07 20:41:49 +00:00
Jeff Johnston 641da1ebcf 2003-03-07 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/reent.h: Remove extraneous _sig_func
        declaration.
2003-03-07 15:56:49 +00:00
Jeff Johnston 41a639dea8 2002-02-25 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* libc/sys/h8300hms/Makefile.am: Add support for new files.
        * libc/sys/h8300hms/Makefile.in: Regenerated.
        * libc/sys/h8300hms/close.S: New file.
        * libc/sys/h8300hms/fstat.S: Ditto.
        * libc/sys/h8300hms/lseek.S: Ditto.
        * libc/sys/h8300hms/open.S: Ditto.
        * libc/sys/h8300hms/stat.S: Ditto.
        * libc/sys/h8300hms/read.S: New file to replace read.c.
        * libc/sys/h8300hms/read.c: Removed.
        * libc/sys/h8300hms/syscalls.c: Removed functions _open,
        _lseek, _close, _stat, _fstat.
        * libc/sys/h8300hms/write.S: New file to replace write.c.
        * libc/sys/h8300hms/write.c: Removed.
2003-02-25 20:36:29 +00:00
Nick Clifton bac50d6b6e Add support for Cirrus Maverick ARM co-processor 2003-02-20 19:14:12 +00:00
Jeff Johnston 12ee7037a3 2003-02-19 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mallocr.c (unlink): Revert 02/18 fix.
2003-02-19 19:00:11 +00:00
Jeff Johnston 1e810ba04d 2003-02-18 Christian Groessler <chris@groessler.org>
* libc/machine/z8k/setjmp.S (_setjmp / _longjmp): Fix to
        support z8001 segmented mode.
2003-02-18 22:41:16 +00:00
Jeff Johnston b1ca765e84 2003-02-18 Earnie Boyd <earnie@users.sf.net>
* libc/stdlib/mallocr.c (unlink): Don't assign a value to a pointer
        with a NULL value.
2003-02-18 22:34:02 +00:00
Christopher Faylor 51a46b54ba * libc/include/sys/types.h: Don't define __MS_types__ for Cygwin. Don't define
some types under cygwin.
2003-02-10 22:13:35 +00:00
Jeff Johnston 313f134979 2003-02-07 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4 (--disable-newlib-supplied-syscalls): New configuration
        option to allow disabling of syscalls being supplied in newlib.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * configure.host: Add support of new configuration option and add
        -D__NO_SYSCALLS__ if newlib supplied syscalls are disabled.
        * doc/aclocal.m4: Regenerated.
        * doc/configure: Ditto.
        * libc/*aclocal.m4: Ditto.
        * libc/*configure: Ditto.
        * libm/*aclocal.m4: Ditto.
        * libm/*configure: Ditto.
        * libc/sys/arm/Makefile.am: Don't build syscalls.o if new option
        is disabled.
        * libc/sys/arm/Makefile.in: Regenerated.
2003-02-08 04:30:58 +00:00
Jeff Johnston 5017a3dafa 2003-02-05 Jonathan Larmour <jifl@eCosCentric.com>
* libc/stdio/vsprintf.c (vsprintf, _vsprintf_r): Set _file fd to
    -1 to be sure it cannot later match a valid file fd causing
    isatty() to return 1.
    * libc/stdio/asprintf.c (asprintf, _asprintf_r): Ditto.
    * libc/stdio/sprintf.c (sprintf, _sprintf_r): Ditto.
    * libc/stdio/vasprintf.c (vasprintf, _vasprintf_r): Ditto.
2003-02-05 16:52:34 +00:00
Jeff Johnston ad36f7d19a 2003-02-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate the format
        buffer based on the precision, after we have processed the input value
        in a local buffer and know its relative magnitude.
2003-02-03 21:29:45 +00:00
Jeff Johnston a74181ee01 2003-01-31 Michael Snyder <msnyder@redhat.com>
* libc/sys/h8300hms/_exit.c (_exit, __exit):  Slip a magic cookie
	into registers r1 and r2, so that the simulator can distinguish
	this trap from a breakpoint trap.  Copied from libgloss.
2003-01-31 20:44:26 +00:00
Jeff Johnston b85498d44c 2003-01-31 Michael Snyder <msnyder@redhat.com>
* libc/sys/h8300hms/crt0.S (_start): Change local label
	from .loop to .Loop, so that ld and gdb will ignore it.
2003-01-31 20:35:24 +00:00
Jeff Johnston 4700b8293a 2003-01-29 Jason Tishler <jason@tishler.net>
* libc/include/time.h: Declare nanosleep() under Cygwin.
2003-01-29 23:29:30 +00:00
Nick Clifton 0127ae4041 Add sh2e support 2003-01-24 15:46:04 +00:00
Corinna Vinschen 8bbcd9a1a5 * libc/include/sys/unistd.h: Add setregid and setreuid declarations
for Cygwin.
2003-01-24 15:25:24 +00:00
Jeff Johnston b8838e6f75 2003-01-21 Anita Kulkarni <anitak@kpit.com>
* libc/time/difftime.c : Typecast the result to double.
2003-01-21 19:37:04 +00:00
Christopher Faylor f9e41155f0 * libc/include/sys/unistd.h: Add rresvport declaration for cygwin. 2003-01-20 15:28:02 +00:00
Nick Clifton 6b5a79886d Define __IEEE_BIG_ENDIAN, __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K. 2003-01-18 08:55:07 +00:00
Jeff Johnston c3e92877a9 2003-01-16 Joel Sherrill <joel@OARcorp.com>
* libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h,
        libc/sys/rtems/sys/syslimits.h: Update to be in sync with what
        constants are defined in each file in the shared versions in
        libc/include.
        * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
        autoconf can link programs.
        * libc/include/machine/types.h: Explicitly specify signed on
        intXX_t types to ensure they are signed.
2003-01-16 22:37:54 +00:00
Christopher Faylor 845102177a * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU extensions. 2003-01-15 18:52:02 +00:00
Richard Sandiford b3934ab3cc * configure.host (mips64vr-elf, mips64vrel-elf): New config. 2003-01-08 12:51:23 +00:00
Jeff Johnston be9c60e52e 2003-01-07 Charles Wilson <cwilson@ece.gatech.edu>
* libc/stdio/sprintf.c: fix typo
        * libc/stdio/vfprintf.c: fix typo
2003-01-07 20:02:33 +00:00
Jeff Johnston d4c3a750e7 2003-01-07 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Support long double I/O for x86-linux.
        * libc/stdlib/ldtoa.c (_ldtoa_r): Fix code to allocate a buffer
        large enough to hold formatted result.
        * libc/machine/powerpc/simdldtoa.c (_simdldtoa_r): Ditto.
2003-01-07 19:52:27 +00:00
Jeff Johnston b2294aaa30 2003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
* Makefile.am: Add vasprintf.
        * Makefile.in: Regenerated.
2003-01-07 01:45:32 +00:00
Jeff Johnston ea5e5daf7c 2003-01-06 Charles Wilson <cwilson@ece.gatech.edu>
* asprintf.c (_asprintf_r): insure both declarations
	are the same.
2003-01-06 20:51:25 +00:00
Christopher Faylor 5c581ecaf6 * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather than
defining getopt directly.
2002-12-28 23:20:47 +00:00
Jeff Johnston 60b0838fc6 2002-12-20 Jeff Johnston <jjohnstn@redhat.com>
* NEWS: Update with 1.11.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 1.11.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.11.
2002-12-21 01:42:03 +00:00
Jeff Johnston 10501d5766 2002-12-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/machine/i386/f_atan2.S: Change copyright from Cygnus
        Solutions to Red Hat Inc.
        * libc/machine/i386/f_atan2f.S: Ditto.
        * libc/machine/i386/f_exp.c: Ditto.
        * libc/machine/i386/f_expf.c: Ditto.
        * libc/machine/i386/f_frexp.S: Ditto.
        * libc/machine/i386/f_frexpf.S: Ditto.
        * libc/machine/i386/f_ldexp.S: Ditto.
        * libc/machine/i386/f_ldexpf.S: Ditto.
        * libc/machine/i386/f_log.S: Ditto.
        * libc/machine/i386/f_log10.S: Ditto.
        * libc/machine/i386/f_log10f.S: Ditto.
        * libc/machine/i386/f_logf.S: Ditto.
        * libc/machine/i386/f_pow.c: Ditto.
        * libc/machine/i386/f_powf.c: Ditto.
        * libc/machine/i386/f_tan.S: Ditto.
        * libc/machine/i386/f_tanf.S: Ditto.
        * libc/machine/i386/memchr.S: Ditto.
        * libc/machine/i386/memcmp.S: Ditto.
        * libc/machine/i386/memcpy.S: Ditto.
        * libc/machine/i386/memmove.S: Ditto.
        * libc/machine/i386/memset.S: Ditto.
        * libc/machine/i386/strchr.S: Ditto.
        * libc/machine/i386/strlen.S: Ditto.
        * libm/machine/i386/f_atan2.S: Ditto.
        * libm/machine/i386/f_atan2f.S: Ditto.
        * libm/machine/i386/f_exp.c: Ditto.
        * libm/machine/i386/f_expf.c: Ditto.
        * libm/machine/i386/f_frexp.S: Ditto.
        * libm/machine/i386/f_frexpf.S: Ditto.
        * libm/machine/i386/f_ldexp.S: Ditto.
        * libm/machine/i386/f_ldexpf.S: Ditto.
        * libm/machine/i386/f_log.S: Ditto.
        * libm/machine/i386/f_log10.S: Ditto.
        * libm/machine/i386/f_log10f.S: Ditto.
        * libm/machine/i386/f_logf.S: Ditto.
        * libm/machine/i386/f_pow.c: Ditto.
        * libm/machine/i386/f_powf.c: Ditto.
        * libm/machine/i386/f_tan.S: Ditto.
        * libm/machine/i386/f_tanf.S: Ditto.
2002-12-20 21:31:20 +00:00
Jeff Johnston 9b3f0d160a 2002-12-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/environ.c: Update license to Red Hat.
        * libc/machine/hppa/setjmp.S: Ditto.
        * libm/test/Makefile.in: Ditto.
2002-12-20 21:07:56 +00:00
Jeff Johnston d693ad8449 2002-12-19 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Remove references to go32.
        * libc/sys/go32/*: Removed.
2002-12-20 02:29:00 +00:00
Jeff Johnston 7da92d1527 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
* libc/include/sys/config.h: Change setting of INT_MAX
        and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
        __H8300S__.  Also consolidate flag settings for these
        platforms.
2002-12-16 22:35:32 +00:00
Jeff Johnston ea01c7f5d2 2002-12-10 Joel Sherrill <joel@OARcorp.com>
* libc/include/machine/setjmp.h: Make sure _JBLEN is defined
	for i386-rtems targets.
2002-12-10 19:46:49 +00:00
Jeff Johnston c049dd5a78 2002-12-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdlib.h (strtof): New prototype (from C99).
        (strtodf): Changed from prototype to macro which redefines
        to strtof.
        * libc/stdlib/atof.c: Change documentation to refer to strtof
        instead of strtodf.
        * libc/stdlib/atoff.c (atoff): Change to call strtof instead of
        strtodf.
        * libc/stdlib/strtod.c (strtodf): Renamed to strtof.
        (strtof): New function.
        * libm/test/convert.c (test_strtodf): Renamed to test_strtof which
        calls strtof.
2002-12-06 18:58:51 +00:00
Christopher Faylor 46a402e03e * libc/string/memset.c (memset): Fix comment. 2002-11-27 18:10:16 +00:00
Christopher Faylor b3cc01b02b * libc/string/memset.c (memset): Move initialization of 'd' earlier in
function.
2002-11-26 18:11:51 +00:00
Christopher Faylor d90f3dc1ba * libc/string/memset.c (memset): Minor optimization: Use new 'd' variable,
introduced below, everywhere.
2002-11-25 21:11:58 +00:00
Kazu Hirata f24585c6bb * libc/string/memset.c (memset): Make it safe even if
sizeof (int) = 2.
2002-11-25 20:56:17 +00:00
Jeff Johnston 2955fd7669 2002-11-22 Joe Buehler <jbuehler@hekimian.com>
* configure.in: Change check for libc/include in ${CC} to
        use an intermediate value so as to work with different shells.
        * configure: Regenerated.
        * Makefile.in: Ditto.
2002-11-22 19:54:22 +00:00
Jeff Johnston 40ce7368d9 2002-11-22 Vijay L. Khuspe <vijayk1@kpit.com>
* libc/sys/h8300hms/read.c: Add support for normal mode
        architecture.
2002-11-22 18:06:10 +00:00
Jeff Johnston 505746ad22 2002-11-20 Ryo Tsuruta <ryo@kitanet.ne.jp>
* libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
        code for __H8300H__ and __H8300S__.  Also return 32-bit return code
        when -mint32 is used.
2002-11-20 17:24:57 +00:00
Nick Clifton 28ecb2f58e Add NULL to end of argv array. 2002-11-18 15:21:24 +00:00
Jeff Johnston 665b994e3a 2002-11-14 Jeff Johnston <jjohnstn@redhat.com>
* testsuite/lib/passfail.exp (newlib_pass_fail): Changed to
        only issue one pass/fail message for a compile/link/execute.
        * testsuite/newlib.elix/elix.exp: New file.
        * testsuite/newlib.elix/tmmap.c: Ditto.
2002-11-14 23:04:05 +00:00
Christopher Faylor e91ec2e3e6 * libc/stdlib/malign.c: Don't compile if MALLOC_PROVIDED.
* libc/stdlib/mlock.c: Ditto.
* libc/stdlib/msize.c: Ditto.
* libc/stdlib/msize.c: Ditto.
* libc/stdlib/mtrim.c: Ditto.
* libc/stdlib/valloc.c: Ditto.
2002-11-13 01:20:31 +00:00
Jeff Johnston 944772c70a 2002-11-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/ldtoa.c (e64toe): When checking the exponent
        for inf/nan, make sure that the check ignores the sign bit.
2002-11-12 21:47:53 +00:00
Jeff Johnston dd7ee147db 2002-11-07 Joel Sherrill <joel@OARcorp.com>
* libc/sys/rtems/machine: New directory.
        * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h,
        libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h,
        libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib
        targets more BSD like when installed without requiring files to
        be overwritten at install point when RTEMS itself is installed.
        * Makefile.am: Pick up system dependent machine .h files such as
        might be found on a BSD-ish system.
        * Makefile.in: Regenerate.
        * libc/include/machine/types.h: When on an RTEMS target, define a
        few BSD flavor types.
2002-11-07 19:27:36 +00:00
Christopher Faylor 503430d83b * include/utmp.h: Define WTMP_FILE. Define and use UT_IDLEN. 2002-11-07 02:48:59 +00:00
Jeff Johnston 18cd62b7fb 2002-11-06 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
        * libc/include/wctype.h: Ditto.
2002-11-07 00:44:31 +00:00
Jeff Johnston d28888120d 2002-11-04 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/wchar.h: Add extern "C" specifier if C++.
        * libc/include/wctype.h: Ditto.
2002-11-04 19:04:09 +00:00
Jeff Johnston 978ea3cf1c 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
* testsuite/newlib.wctype/tiswctype.c: New test case.
        * testsuite/newlib.wctype/twctrans.c: Ditto.
2002-10-18 23:39:07 +00:00
Jeff Johnston a42cf80a9d 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/machine/i386/include/endian.h: New file.
        * libc/sys/linux/machine/i386/include/param.h: Ditto.
2002-10-18 22:52:40 +00:00
Jeff Johnston c9ccb1f20e 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
* libm/machine/i386/aclocal.m4: Regenerated.
        * libm/machine/i386/configure: Ditto.
2002-10-18 18:19:47 +00:00
Jeff Johnston 94c5b430a1 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>
* testsuite/include/check.h: New header file to use with
        test cases.
        * testsuite/lib/newlib.exp: Add testsuite/include directory
        to list of header files to use.
        * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns.
        * testsuite/newlib.wctype/wctype.exp: New file.
2002-10-18 18:18:49 +00:00
Richard Sandiford ccdae54335 Fix attribution. (Tsk, tsk. Force of habit, sorry.) 2002-10-11 10:30:49 +00:00
Richard Sandiford f770cf44c3 * libc/include/sys/config.h (SIZE_T_SMALLER_THAN_LONG): Undefine.
* libc/stdlib/mallocr.c (long_sub_size_t): Define in a way that
	doesn't require the SIZE_T_SMALLER_THAN_LONG macro.
2002-10-11 10:28:30 +00:00
Joel Sherrill 7397211686 2002-10-07 Joel Sherrill <joel@OARcorp.com>
* libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
	dummy programs.
2002-10-08 13:09:05 +00:00
Joel Sherrill 89e3fcba70 2002-10-07 Joel Sherrill <joel@OARcorp.com>
* libc/include/pthread.h: Define PTHREAD_CANCELED.
2002-10-08 13:03:07 +00:00
Joel Sherrill 54ec52e4a4 2002-10-07 Joel Sherrill <joel@OARcorp.com>
* libc/machine/hppa/DEFS.h, libc/machine/hppa/pcc_prefix.s,
	libc/machine/hppa/setjmp.S, libc/machine/hppa/DEFS.h: Make this
	compile with current GNU tools.
2002-10-08 13:01:02 +00:00
Jeff Johnston d389acbabf 2002-10-07 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Add EXTRA_DIRS to allow future dependencies on
        the build library.
        * configure.in: Ditto.
        * Makefile.in: Regenerated.
        * configure: Ditto.
        * libc/sys/linux/Makefile.am: Add EXTRA_SUBDIRS and EXTRA_SUBLIBS
        for specifying configured libraries/directories.
        * libc/sys/linux/configure.in: Ditto.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/configure: Ditto.
2002-10-07 23:10:13 +00:00
Jeff Johnston af5a221f60 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/reent.h: Update documentation at start of file.
2002-10-03 19:33:08 +00:00
Jim Wilson 59a758bd31 The v850 does not have a ctbp register.
Add myself to write-after-approval section of MAINTAINERS file.
	* libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
	the ctbp register.
2002-09-27 20:26:00 +00:00
Jeff Johnston 1ed3c86dd7 2002-09-27 Jeff Johnston <jjohnstn@redhat.com>
* libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
        Also convert to EUCJP before using arrays.  For values not in
        the conversion arrays, return WEOF.
        * libc/ctype/jp2uc.h: Change from one array to a number of
        arrays to account for the fact that the originating table
        is not contiguous for the input values since some are invalid.
2002-09-27 20:17:52 +00:00
Jeff Johnston 6e1dfd2d96 2002-09-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/time/ctime.c: Fix prototype documentation.
2002-09-24 21:26:45 +00:00
Corinna Vinschen 06f1353ae8 * libc/include/sys/errno.h: Add EOVERFLOW. 2002-09-24 14:10:12 +00:00
Jeff Johnston 1e0e64c9d8 2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/wctype.h: New file.
2002-09-20 21:56:13 +00:00
Jeff Johnston 1525d127da 2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/ctype/Makefile.am: Add new files.
        * libc/ctype/Makefile.in: Regenerated.
        * libc/ctype/ctype.tex: Add new iswxxxx, towxxxx, wctype,
        and wctrans functions to documentation index.
        * libc/ctype/iswalnum.c: New file.
        * libc/ctype/iswalpha.c: Ditto.
        * libc/ctype/iswblank.c: Ditto.
        * libc/ctype/iswcntrl.c: Ditto.
        * libc/ctype/iswctype.c: Ditto.
        * libc/ctype/iswdigit.c: Ditto.
        * libc/ctype/iswgraph.c: Ditto.
        * libc/ctype/iswlower.c: Ditto.
        * libc/ctype/iswprint.c: Ditto.
        * libc/ctype/iswpunct.c: Ditto.
        * libc/ctype/iswspace.c: Ditto.
        * libc/ctype/iswupper.c: Ditto.
        * libc/ctype/iswxdigit.c: Ditto.
        * libc/ctype/jp2uc.c: Ditto.
        * libc/ctype/jp2uc.h: Ditto.
        * libc/ctype/local.h: Ditto.
        * libc/ctype/towctrans.c: Ditto.
        * libc/ctype/towlower.c: Ditto.
        * libc/ctype/towupper.c: Ditto.
        * libc/ctype/utf8alpha.h: Ditto.
        * libc/ctype/utf8print.h: Ditto.
        * libc/ctype/utf8punct.h: Ditto.
        * libc/ctype/wctrans.c: Ditto.
        * libc/ctype/wctype.c: Ditto.
        * libc/locale/locale.c (__lc_ctype): New external array to
        replace static lc_ctype array.
        * libc/stdlib/mbtowc_r.c: Use __lc_ctype to check current lc_ctype
        rather than reentrancy structure's _current_locale field.
        * libc/stdlib/wctomb_r.c: Ditto.
2002-09-20 20:13:11 +00:00
Jeff Johnston da25e61f59 2002-09-20 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Minor comment and formatting changes.
        * libc/Makefile.am: Add libc_la_DEPENDENCIES.
        * libc/Makefile.in: Regenerated.
        * libc/include/sys/config.h: Minor format change.
2002-09-20 17:11:29 +00:00
Jeff Johnston 5b9ee5393b 2002-09-19 Jeff Johnston <jjohnstn@redhat.com>
* libc/syscalls/sysfcntl.c (fcntl): Fix typo in preprocessor
        statement comment.
2002-09-19 21:37:20 +00:00
Jeff Johnston 50558bf3bd 2002-09-19 Jeff Johnston <jjohnstn@redhat.com>
* libc/posix/opendir.c (opendir): Change code to check
        for HAVE_FCNTL before calling fcntl.
        * libc/search/hash.c (hash_open): Ditto.
        * libc/search/hash_page.c (open_tmp): Ditto.
        * libc/reent/Makefile.am: Add fcntlr.c.
        * libc/reent/Makefile.in: Regenerated.
        * libc/reent/fcntlr.c: New file.
        * libc/stdio/fdopen.c (_fdopen_r): Change to call _fcntl_r
        instead of _fcntl when HAVE_FCNTL flag is set.
        * libc/syscalls/sysfcntl.c (fcntl): Check for HAVE_FCNTL flag
        to see if _fcntl or _fcntl_r should be called.  If flag is not
        set, default to ENOSYS stub.
2002-09-19 21:28:52 +00:00
Jeff Johnston 9211a1adec 2002-09-16 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/wchar.h (mbstate_t): Change protective flag to
        be _MBSTATE_T.
        * libc/include/sys/_types.h (_mbstate_t): Remove protective flag.
        [__CYGWIN__]: Remove special code that defines mbstate_t and WEOF
        for Cygwin.
        * libc/sys/linux/sys/_types.h (_mbstate_t): Remove protective flag.
2002-09-16 18:55:25 +00:00
Jeff Johnston a861509239 2002-09-11 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4 (enable-newlib-mb): Change check to
        default newlib_mb variable to empty string rather than "no".
        * configure.host: Remove hard-coding of -DMB_CAPABLE for
        x86-linux and Cygwin.  Add code to check for newlib_mb
        being unset in which case set to "yes" for x86-linux and
        Cygwin.  Change check for newlib_mb being "yes" to allow
        for an empty string.
        * configure.in (_MB_LEN_MAX): New AC_DEFINE.
        * newlib.hin (_MB_LEN_MAX): New define to configure.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * libc/include/limits.h: New file.
        * libc/sys/linux/include/limits.h: Ditto.
        * doc/aclocal.m4 doc/configure libc/aclocal.m4
          libc/configure libc/machine/aclocal.m4
          libc/machine/configure libc/machine/a29k/aclocal.m4
          libc/machine/a29k/configure libc/machine/arm/aclocal.m4
          libc/machine/arm/configure libc/machine/d10v/aclocal.m4
          libc/machine/d10v/configure libc/machine/d30v/aclocal.m4
          libc/machine/d30v/configure libc/machine/fr30/aclocal.m4
          libc/machine/fr30/configure libc/machine/frv/aclocal.m4
          libc/machine/frv/configure libc/machine/h8300/aclocal.m4
          libc/machine/h8300/configure libc/machine/h8500/aclocal.m4
          libc/machine/h8500/configure libc/machine/hppa/aclocal.m4
          libc/machine/hppa/configure libc/machine/i386/aclocal.m4
          libc/machine/i386/configure libc/machine/i960/aclocal.m4
          libc/machine/i960/configure libc/machine/m32r/aclocal.m4
          libc/machine/m32r/configure libc/machine/m68hc11/aclocal.m4
          libc/machine/m68hc11/configure libc/machine/m68k/aclocal.m4
          libc/machine/m68k/configure libc/machine/m88k/aclocal.m4
          libc/machine/m88k/configure libc/machine/mips/aclocal.m4
          libc/machine/mips/configure libc/machine/mn10200/aclocal.m4
          libc/machine/mn10200/configure libc/machine/mn10300/aclocal.m4
          libc/machine/mn10300/configure libc/machine/necv70/aclocal.m4
          libc/machine/necv70/configure libc/machine/powerpc/aclocal.m4
          libc/machine/powerpc/configure libc/machine/sh/aclocal.m4
          libc/machine/sh/configure libc/machine/sparc/aclocal.m4
          libc/machine/sparc/configure libc/machine/tic80/aclocal.m4
          libc/machine/tic80/configure libc/machine/v850/aclocal.m4
          libc/machine/v850/configure libc/machine/w65/aclocal.m4
          libc/machine/w65/configure libc/machine/xscale/aclocal.m4
          libc/machine/xscale/configure
          libc/machine/xstormy16/aclocal.m4
          libc/machine/xstormy16/configure libc/machine/z8k/aclocal.m4
          libc/machine/z8k/configure libc/sys/aclocal.m4
          libc/sys/configure libc/sys/a29khif/aclocal.m4
          libc/sys/a29khif/configure libc/sys/arc/aclocal.m4
          libc/sys/arc/configure libc/sys/arm/aclocal.m4
          libc/sys/arm/configure libc/sys/cygwin/aclocal.m4
          libc/sys/cygwin/configure libc/sys/d10v/aclocal.m4
          libc/sys/d10v/configure libc/sys/decstation/aclocal.m4
          libc/sys/decstation/configure libc/sys/go32/aclocal.m4
          libc/sys/go32/configure libc/sys/h8300hms/aclocal.m4
          libc/sys/h8300hms/configure libc/sys/h8500hms/aclocal.m4
          libc/sys/h8500hms/configure libc/sys/idt/aclocal.m4
          libc/sys/idt/configure libc/sys/linux/aclocal.m4
          libc/sys/linux/configure libc/sys/linux/machine/aclocal.m4
          libc/sys/linux/machine/configure
          libc/sys/linux/machine/i386/aclocal.m4
          libc/sys/linux/machine/i386/configure
          libc/sys/m88kbug/aclocal.m4 libc/sys/m88kbug/configure
          libc/sys/mmixware/aclocal.m4 libc/sys/mmixware/configure
          libc/sys/netware/aclocal.m4 libc/sys/netware/configure
          libc/sys/rtems/aclocal.m4 libc/sys/rtems/configure
          libc/sys/sh/aclocal.m4 libc/sys/sh/configure
          libc/sys/sparc64/aclocal.m4 libc/sys/sparc64/configure
          libc/sys/sun4/aclocal.m4 libc/sys/sun4/configure
          libc/sys/sysmec/aclocal.m4 libc/sys/sysmec/configure
          libc/sys/sysnec810/aclocal.m4 libc/sys/sysnec810/configure
          libc/sys/sysnecv850/aclocal.m4 libc/sys/sysnecv850/configure
          libc/sys/sysvi386/aclocal.m4 libc/sys/sysvi386/configure
          libc/sys/sysvnecv70/aclocal.m4 libc/sys/sysvnecv70/configure
          libc/sys/tic80/aclocal.m4 libc/sys/tic80/configure
          libc/sys/w65/aclocal.m4 libc/sys/w65/configure
          libc/sys/z8ksim/aclocal.m4 libc/sys/z8ksim/configure
          libm/aclocal.m4 libm/configure: Regenerated.
2002-09-11 18:36:55 +00:00
Jeff Johnston be83844e4c 2002-09-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/machine/i386/crt0.c (_start): Remove
        code that clears the .bss section.
2002-09-10 00:46:45 +00:00
Jeff Johnston 9c64d2a7ba 2002-09-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/_types.h (_mbstate_t): Changed to use
        unsigned char internally.
        * libc/sys/linux/sys/_types.h: Ditto.
        * libc/include/sys/reent.h
        * libc/stdlib/mblen.c (mblen): Use function-specific state
        value from default reentrancy structure.
        * libc/stdlib/mblen_r.c (_mblen_r):  If return code from
        _mbtowc_r is less than 0, reset state __count value and
        return -1.
        * libc/stdlib/mbrlen.c (mbrlen): If the input state pointer
        is NULL, use the function-specific pointer provided in the
        default reentrancy structure.
        * libc/stdlib/mbrtowc.c: Add reentrant form of function.
        If input state pointer is NULL, use function-specific area
        provided in reentrancy structure.
        * libc/stdlib/mbsrtowcs.c: Ditto.
        * libc/stdlib/wcrtomb.c: Ditto.
        * libc/stdlib/wcsrtombs.c: Ditto.
        * libc/stdlib/mbstowcs.c: Reformat.
        * libc/stdlib/wcstombs.c: Ditto.
        * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): If an error occurs,
        reset the state's __count value and return -1.
        * libc/stdlib/mbtowc.c: Ditto.
        * libc/stdlib/mbtowc_r.c (_mbtowc_r): Add restartable functionality.
        If number of bytes is used up before completing a valid multibyte
        character, return -2 and save the state.
        * libc/stdlib/wctomb_r.c (_wctomb_r): Define __state as __count
        and change some __count references to __state for clarity.
2002-09-09 21:42:14 +00:00
Jeff Johnston 218b7a5638 2002-09-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/config.h (MB_LEN_MAX): Removed as this
        is defined by <limits.h>.
2002-09-06 15:45:58 +00:00
Jeff Johnston c210a6ea06 2002-09-05 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* libc/include/wchar.h (WCHAR_MAX): Only define if not already
        defined.
2002-09-05 15:26:42 +00:00
Jeff Johnston efa077ce22 2002-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* libc/include/sys/config.h: Define accordingly __WCHAR_MAX__.
        * libc/include/wchar.h: Define WCHAR_MIN as 0 and WCHAR_MAX as
        __WCHAR_MAX__ or 0x7fffffffu.
        * libc/string/wcscmp.c: Delete wrong and unnecessary type cast.
        * libc/string/wcsncmp.c: Ditto.
2002-09-04 18:16:55 +00:00
Jeff Johnston e4b0ebc1d3 2002-09-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/string/wcschr.c: Add include of <stddef.h>.
        * libc/string/wcspbrk.c: Ditto.
        * libc/string/wcsrchr.c: Ditto.
        * libc/string/wcsstr.c: Ditto.
2002-09-03 19:52:10 +00:00
Jeff Johnston 3db40db7d8 2002-09-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/_types.h (_flock_t): Added.
        * libc/include/sys/lock.h (__lock_try_acquire): New interface.
        (__lock_try_acquire_recursive): Ditto.
        * libc/include/sys/reent.h (__sFILE, __sFILE64): Add new
        _lock field.
        * libc/stdio/findfp.c (std)[!__SINGLE_THREAD__]: Initialize _lock
        field.
        * libc/stdio/fopen.c (_fopen_r)[!__SINGLE_THREAD__]: Ditto.
        * libc/stdio64/fopen64.c (_fopen64_r)[!__SINGLE_THREAD__]: Ditto.
        * libc/sys/linux/include/time.h (struct timespec): Moved from
        <sys/types.h> and added check for __need_timespec flag so type
        can be defined by itself.
        * libc/sys/linux/sys/_types.h (_flock_t): New type.
        * libc/sys/linux/sys/types.h (struct timespec): Moved to
        <time.h>.
2002-09-03 19:40:36 +00:00
Thomas Fitzsimmons cd45f029c2 * libc/sys/linux/argp: New directory.
* libc/sys/linux/getopt.c: New file.
	* libc/sys/linux/getopt1.c: New file.
	* libc/sys/linux/getoptlong.c: Remove file.
	* libc/sys/linux/include/argp.h: New file.
	* libc/sys/linux/Makefile.am: Define argp_dir and ARGP_LIB,
	based on ELIX level.
	(SUBDIRS): Add argp_dir.
	(SUBLIBS): Add ARGP_LIB.
	(ELIX_2_OBJS): Add getopt.$(oext), getopt1.$(oext), remove
	getopt_long.$(oext).
	* libc/sys/linux/configure.in (AC_OUTPUT): Add argp/Makefile.
2002-08-29 23:53:06 +00:00
Jeff Johnston 3c6891852a 2002-08-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/libc.texinfo: Add node reference to wide-character strings.
        * libc/string/wcstrings.tex: New file.
        * libc/string/strtok_r.c: Remove outdated advertising clause.
        * libc/string/Makefile.am (doc): Add wide-character string
        chapter to documentation.
        * libc/string/Makefile.in: Regenerated.
2002-08-29 19:47:43 +00:00
Jeff Johnston 890e7a1d1a 2002-08-29 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* libc/include/wchar.h: Define NULL. Define WEOF more general
        way. Declare functions in newlib manner.
        * libc/stdlib/Makefile.am: Delete wmem*.c
        * libc/stdlib/Makefile.in: Regenerated.
        * libc/stdlib/wmemchr.c: Delete.
        * libc/stdlib/wmemcmp.c: Ditto.
        * libc/stdlib/wmemcpy.c: Ditto.
        * libc/stdlib/wmemmove.c: Ditto.
        * libc/stdlib/wmemset.c: Ditto.
        * libc/string/Makefile.am: Add wmem*.c and wcs*.c.
        * libc/string/Makefile.in: Regenerated.
        * libc/string/wcscat.c: New file derived from the NetBSD C Library.
        * libc/string/wcschr.c: Ditto.
        * libc/string/wcscmp.c: Ditto.
        * libc/string/wcscpy.c: Ditto.
        * libc/string/wcscspn.c: Ditto.
        * libc/string/wcslcat.c: Ditto.
        * libc/string/wcslcpy.c: Ditto.
        * libc/string/wcslen.c: Ditto.
        * libc/string/wcsncat.c: Ditto.
        * libc/string/wcsncmp.c: Ditto.
        * libc/string/wcsncpy.c: Ditto.
        * libc/string/wcspbrk.c: Ditto.
        * libc/string/wcsrchr.c: Ditto.
        * libc/string/wcsspn.c: Ditto.
        * libc/string/wcsstr.c: Ditto.
        * libc/string/wmemchr.c: Ditto.
        * libc/string/wmemcmp.c: Ditto.
        * libc/string/wmemcpy.c: Ditto.
        * libc/string/wmemmove.c: Ditto.
        * libc/string/wmemset.c: Ditto.
2002-08-29 19:38:25 +00:00