Commit Graph

214 Commits

Author SHA1 Message Date
Thomas Fitzsimmons fc50413595 * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal
$(COMPILE) rather than $(CC).
	* libc/stdio/Makefile.am (LIB_COMPILE): Likewise.
	(vfprintf.$(oext)): Remove $(INCLUDES), made redundant by
	$(LIB_COMPILE) change.
	(vfiprintf.$(oext)): Likewise.
2001-12-18 02:22:55 +00:00
Corinna Vinschen efeae9a317 * libc/sys/cygwin/include/unistd.h: Add __UNISTD_GETOPT_ to allow
conditionalized including of getopt stuff.
2001-12-17 21:32:25 +00:00
Thomas Fitzsimmons f85be99c51 (vfiprintf.$(oext)): Likewise. 2001-12-14 19:27:46 +00:00
Thomas Fitzsimmons cdf7120d2d * libc/stdio/Makefile.am (vfprintf.$(oext)): Add $(INCLUDES) to
compile line.
2001-12-14 19:14:27 +00:00
Thomas Fitzsimmons 2e1a71756e * Makefile.shared: New file.
* libc/sys/linux/shared.ld: New file.
	* libm/machine/*: New files.
	* libm/machine/i386/*: New files.
	* Makefile.am: Add libtool support.  Change math and mathfp
	references to variables.
	* configure.host: Add variables for libtool support.  Add
	libm_machine_dir variable.
	* configure.in: Add objectlist variables, for libtool
	support.  Add CC_FOR_BUILD tests.
	* libc/Makefile.am: Add libtool support.  Change crt0.o
	reference to be a variable reference.
	* libc/configure.in: Add libtool support.  Change sublib
	names to be lib${subdir}.la when using libtool.
	* libc/ctype/Makefile.am: Add libtool support.
	* libc/errno/Makefile.am: Likewise.
	* libc/locale/Makefile.am: Likewise.
	* libc/machine/Makefile.am: Likewise.
	* libc/machine/configure.in: Likewise.
	* libc/machine/i386/Makefile.am: Likewise.
	* libc/machine/i386/configure.in: Likewise.
	* libc/misc/Makefile.am: Likewise.
	* libc/posix/Makefile.am: Likewise.
	* libc/reent/Makefile.am: Likewise.
	* libc/signal/Makefile.am: Likewise.
	* libc/stdio/Makefile.am: Likewise.
	* libc/stdlib/Makefile.am: Likewise.
	* libc/string/Makefile.am: Likewise.
	* libc/sys/Makefile.am: Likewise.
	* libc/sys/configure.in: Likewise.
	* libc/sys/linux/Makefile.am: Add libtool support.  Change
	awk reference to a variable reference.  Change signal.h
	reference to a variable reference.
	* libc/sys/linux/configure.in: Add libtool support.
	* libc/syscalls/Makefile.am: Likewise.
	* libc/time/Makefile.am: Likewise.
	* libc/unix/Makefile.am: Likewise.
	* libm/Makefile.am: Add libtool support.  Change math and
	mathfp references to variables.
	* libm/configure.in: Add libtool support.  Add
	LIBM_MACHINE_LIB variable.
	* libm/common/Makefile.am: Add libtool support.
	* libm/math/Makefile.am: Likewise.
	* libm/mathfp/Makefile.am: Likewise.
	Regenerate all Makefile.in, aclocal.m4, and configure.
2001-12-13 23:50:11 +00:00
Jeff Johnston b92591a1fc 2001-12-13 Anita Kulkarni <anitak@kpit.com>
* libc/sys/sh/crt0.S: Remove stack symbol definition 0xdeaddead.
2001-12-13 20:10:16 +00:00
Christopher Faylor 355b664e8c * libc/include/sys/unistd.h: Correct ualarm declaration. 2001-12-06 19:00:14 +00:00
Nick Clifton e9853806c7 For __USES_INITFINI__ preserve the argument vector before calling the
initialisation functions.
2001-12-05 11:51:43 +00:00
Christopher Faylor a8e091b0bc * libc/include/dirent.h: Protect against multiple inclusion. 2001-11-30 17:26:47 +00:00
Christopher Faylor ab6341231f * libc/include/sys/types.h: Define useconds_t.
* libc/include/sys/ulimit.h: Declare ualarm.
2001-11-28 00:16:58 +00:00
Christopher Faylor d37e401ef3 * libc/sys/cygwin/sys/dirent.h (DIR): Add another internal element. 2001-11-21 06:57:44 +00:00
Hans-Peter Nilsson 8ac90051e6 * libc/sys/mmixware/*: Tweak license header in all source files. 2001-11-18 23:47:59 +00:00
Corinna Vinschen d7ca37e413 * libc/include/alloca.h: Move libc/sys/linux/include/alloca.h
to here.  Rearrange for general inclusion by stdlib.h.
	* libc/include/stdlib.h: Include <alloca.h> if __STRICT_ANSI__
	isn't defined.
	* libc/sys/linux/include/alloca.h: Move to libc/include.
2001-11-14 10:25:35 +00:00
Anthony Green 28f8744e02 Add __stack_base__ 2001-11-13 03:31:14 +00:00
Hans-Peter Nilsson 4cede8c4ce * libc/sys/mmixware/*: Correct spacing in all source files.
* libc/sys/mmixware/syscall.h: Move misplaced file...
	* libc/sys/mmixware/sys/syscall.h: ...here.
2001-11-13 02:49:12 +00:00
Jeff Johnston 8be9b48be6 2001-11-12 Hans-Peter Nilsson <hp@bitrange.com>
* libc/include/machine/ieeefp.h: Add support for mmix target.
        * libc/include/machine/setjmp.h: Ditto.
        * configure.host: Ditto.
        * libc/sys/mmixware/Makefile.am, libc/sys/mmixware/_exit.c,
        libc/sys/mmixware/access.c, libc/sys/mmixware/aclocal.m4,
        libc/sys/mmixware/chmod.c, libc/sys/mmixware/chown.c,
        libc/sys/mmixware/close.c, libc/sys/mmixware/configure.in,
        libc/sys/mmixware/creat.c, libc/sys/mmixware/crt0.c,
        libc/sys/mmixware/execv.c, libc/sys/mmixware/execve.c,
        libc/sys/mmixware/fork.c, libc/sys/mmixware/fstat.c,
        libc/sys/mmixware/getpid.c, libc/sys/mmixware/gettime.c,
        libc/sys/mmixware/isatty.c, libc/sys/mmixware/kill.c,
        libc/sys/mmixware/lseek.c, libc/sys/mmixware/open.c,
        libc/sys/mmixware/pipe.c, libc/sys/mmixware/read.c,
        libc/sys/mmixware/sbrk.c, libc/sys/mmixware/setjmp.S,
        libc/sys/mmixware/stat.c, libc/sys/mmixware/sys/syscall.h,
        libc/sys/mmixware/time.c, libc/sys/mmixware/times.c,
        libc/sys/mmixware/unlink.c, libc/sys/mmixware/utime.c,
        libc/sys/mmixware/wait.c, libc/sys/mmixware/write.c: New files.
        * libc/sys/mmixware/configure, libc/sys/mmixware/Makefile.in,
        libc/sys/mmixware/aclocal.m4: Generate.
2001-11-12 21:04:41 +00:00
Corinna Vinschen c7dd4f9511 * libc/include/sys/unistd.h: Add prototypes for endusershell(),
getusershell(), iruserok(), revoke(), ruserok() and setusershell()
	when __CYGWIN__ is defined.
	* libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
	logwtmp().
2001-11-05 18:06:24 +00:00
Jeff Johnston a6a6f9fece 2001-11-01 Arati Dikey <aratidikey@hotmail.com>
* libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
        [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
        * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
        [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
2001-11-01 19:47:32 +00:00
Jeff Johnston d0504c353f 2001-10-24 Christopher Faylor <cgf@redhat.com>
* libc/stdio/fseek.c: Reset pointer to buffer base
        when forced to seek outside of current buffer contents.
        This prevents the code from erroneously thinking there is
        anything in the current buffer.
2001-10-24 18:10:30 +00:00
Geoffrey Keating 0280c8c0f3 * libc/include/math.h: The C++ standard adds the single-precision
versions of the elementary functions.
2001-10-23 17:43:16 +00:00
Christopher Faylor 333d609843 * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations throughout.
* signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__.
* popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__.
* system.c (_system_r): Ditto.
2001-10-22 16:40:26 +00:00
Corinna Vinschen b4e98df6bc Add __rtems__ as system defining fchdir(). 2001-10-17 19:28:35 +00:00
Corinna Vinschen c711831918 * libc/include/sys/unistd.h: Add prototype for fchdir() when
__CYGWIN__ is defined.
2001-10-17 18:16:43 +00:00
Jeff Johnston 5665b0e1d0 2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>
* libc/include/stdlib.h: add declarations for
        _strtoull_r, _strtoll_r, strtoull, and strtoll.
        * libc/stdio/local.h: remove declarations of
        __strtoull_r and __strtoll_r.
        * libc/stdio/vfscanf.c(__svfscanf_r): call
        _strtoull_r instead of __strtoull_r. Ditto
        _strtoll_r vs. __strtoll_r.
        * libc/stdlib/Makefile.am: add new files to
        .c list and .def list
        * libc/stdlib/Makefile.in: regenerate
        * libc/stdlib/strtoll_r.c: rename __strtoll_r
        as _strtoll_r
        * libc/stdlib/strtoull_r.c: rename __strtoull_r
        as _strtoull_r
        * libc/stdlib/strtoull.c: new file
        * libc/stdlib/strtoll.c: new file
2001-10-01 18:05:11 +00:00
Nick Clifton b244a68909 oops omitted in previous delta 2001-09-18 15:42:41 +00:00
Christopher Faylor d2d5eb41e4 * libc/include/process.h: Add getpid() declaration. 2001-09-17 21:30:58 +00:00
Nick Clifton 448e3c1454 oops - omitted from previous delta 2001-09-14 11:43:41 +00:00
Jeff Johnston 7a2afbbb85 2001-09-13 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/Makefile.am: Add support to build strtoll_r.c
        and strtoull_r.c.
        * libc/stdlib/Makefile.in: Regenerated.
        * libc/stdlib/strtoll_r.c: New file.
        * libc/stdlib/strtoull_r.c: New file.
        * libc/stdio/local.h: Add prototypes for long long string
        conversion routines.
        * libc/stdio/vfscanf.c (__svfscanf_r): Add optional long long support
        tied to %L integer conversion specifier.
2001-09-13 21:12:33 +00:00
Jeff Johnston 6342caa4e6 Thu Sep 13 08:49:49 2001 Jason Tishler <jason@tishler.net>
* strftime.c (strftime): Fix "%W" implementation to properly handle
        Mondays too.
2001-09-13 20:40:49 +00:00
Jeff Johnston b2d319cb3e 2001-09-07 Jeff Law <law@redhat.com>
* libc/sys/h8300hms/crt0.S: For H8/300H and H8/S, load address of
        __fini with "mov.l" instead of "mov.w".
2001-09-07 18:21:33 +00:00
Corinna Vinschen 233823ba36 * libc/sys/cygwin/include/unistd.h: New file, wrapping sys/unistd.h
and getopt.h.
2001-09-05 15:56:01 +00:00
Jeff Johnston 63c17b5426 2001-09-04 Jason Merrill <jason_merrill@redhat.com>
* libc/sys/h8300hms/crt0.S: Support ELF initialization.
2001-09-04 19:05:44 +00:00
Corinna Vinschen a3e67ddfe6 * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
field.
        (__DIRENT_VERSION): New define.
2001-09-03 19:04:05 +00:00
Corinna Vinschen 4f79e37e4d Add missing ChangeLog entries. 2001-09-03 16:39:49 +00:00
Corinna Vinschen 6d47f33adb * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member. 2001-09-03 16:33:53 +00:00
Jeff Johnston 348c5e06c2 2001-08-29 Joel Sherrill <joel@OARcorp.com>
* libc/include/sys/unistd.h: Prototype chroot() for RTEMS.

2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

        * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
          libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
          libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
          libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
          libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
          libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
          libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
          libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
        Add conditional compilation to avoid HW FPU instructions
        when compiled for soft-float.
2001-08-29 20:09:31 +00:00
Jeff Johnston f29865c5ff 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Add check for ln failing when creating libg.a
        so that cp gets used as a backup.
        * Makefile.in: Regenerated.
2001-08-29 19:55:20 +00:00
Jeff Johnston 9e2a4ef876 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/reent.h: Add include of <sys/_types.h>.
        No longer include time.h.  Add struct __tm to use for
        _localtime_buf in the reentrant structure.  Add a
        _NULL definition to use in initializing the reentrant struct.
        * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
        the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
        <sys/_types.h>.
        * libc/include/sys/unistd.h: Include <sys/_types.h>.
        * libc/time/lcltime.c (localtime): Cast the reentrant struct
        _localtime_buf to be struct tm *.
2001-08-29 19:47:43 +00:00
Joern Rennecke 1ae900d62f * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
* libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
	__ctors_end.
	* libc/sys/h8300hms/syscalls.c: Include errno.h.
	(_unlink): New stub function.
2001-08-29 13:26:32 +00:00
Christopher Faylor 8e26d5b5a7 * libc/include/sys/errno.h: Add a cautionary comment. 2001-08-26 02:28:33 +00:00
Jeff Johnston e826766445 2001-08-21 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
        for SIZE_SZ so that alignment ends up a minimum of 8.
2001-08-21 20:23:16 +00:00
Christopher Faylor 4acf3edf6a * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro arguments.
* libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under Cygwin.
2001-08-14 14:36:58 +00:00
Jeff Johnston 52c80be814 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
        macro constants for mallopt options.
        (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
2001-08-13 22:54:42 +00:00
Jeff Johnston a7061f7f50 2001-08-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
        otherwise default.
2001-08-02 22:28:40 +00:00
Aldy Hernandez 0b4bfdd527 2001-07-12 Aldy Hernandez <aldyh@redhat.com>
* libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.
2001-07-13 15:41:39 +00:00
Nick Clifton 2b6b730c98 Handle ARMs with big endian IEEE words but little endian IEEE bytes 2001-06-28 10:40:09 +00:00
Jeff Johnston 25842b68c7 2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
* /libc/include/ctype.h (is* and to* macros): Do not define if C++.
2001-06-11 21:51:41 +00:00
Jeff Johnston 371b76ef3e 2001-06-11 Egor Duda <deo@logos-m.ru>
* libc/ctype/ctype_.c: When compiled with gcc on platforms
        with signed char, make _ctype_[-128] ... _ctype[-1] refer to
        initialized memory region. Platform can define COMPACT_CTYPE
        to avoid allocation of the additional 128 bytes of data.
        Add pointer to _ctype_ array. Always initialize all _ctype_
        array elements.
2001-06-11 19:25:59 +00:00
Jonathan Larmour 43b44bc5ad * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencing
NULL pointer.
2001-06-11 17:21:18 +00:00
Nick Clifton 188bc140c0 Handle printf ("%#.0o",0); 2001-05-28 18:22:44 +00:00