Commit Graph

927 Commits

Author SHA1 Message Date
Jeff Johnston ef79d97d9f 2006-03-29 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/include/netinet/ip.h: Include netinet/in_systm.h
        for the declaration of n_long.
2006-03-29 22:38:46 +00:00
Jeff Johnston 15a1b33c00 2006-03-29 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/include/net/if.h: Include sys/socket.h for
        struct sockaddr.
        (IFF_SMART): Replace this define with IFF_NOTRAILERS.
        (IFF_CANTCHANGE): Replace IFF_SMART reference with IFF_NOTRAILERS.
        (IFF_NOTRAILERS): New define.
        (struct ifreq): Add ifru_netmask.
        (ifr_netmask): New define.
2006-03-29 22:23:00 +00:00
Jeff Johnston bcc4ff0540 2006-03-29 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/sys/ioccom.h (ioctl): Change declaration to
        match sys/ioctl.h.
2006-03-29 22:09:56 +00:00
Jeff Johnston 8fed3e2ea5 2006-03-29 Shaun Jackman <sjackman@gmail.com>
* libtool.m4: Set lt_cv_deplibs_check_method=pass_all for
        linux-newlib libc implementations.
2006-03-29 22:04:27 +00:00
Jeff Johnston 6507c09718 2006-03-29 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r) [__SCLE]: Fix typo.
        * libc/stdio64/freopen64.c (_freopen64_r) [__SCLE]: Likewise.
2006-03-29 21:57:21 +00:00
Jeff Johnston 084fba647c Fix reference to __mknod syscall to pass proper third argument. 2006-03-29 21:50:52 +00:00
Jeff Johnston fac690bef7 2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/io.c (__mknod): Fix declaration of
        syscall to pass a dev_t as third argument rather than
        a pointer to dev_t.
2006-03-29 21:49:58 +00:00
Jeff Johnston 9e443adbaf 2006-03-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/net/name6.c: Fix struct references.
2006-03-29 21:45:17 +00:00
Mark Mitchell ce93dfe415 * configure.host: Allow hosts to set the default
newlib_atexit_dynamic_alloc value.
	* configure.in: Likewise.
	* configure: Regenerated.
2006-03-21 20:02:13 +00:00
Mark Mitchell 3078fb4f36 * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.
* configure.in (--disable-newlib-atexit-dynamic-alloc): New
	option.
	* configure: Regenerated.
	* newlib.hin: Regenerated.
	* libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc
	if _ATEXIT_DYNAMIC_ALLOC is undefined.
	* libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free
	if _ATEXIT_DYNAMIC_ALLOC is undefined.
2006-03-21 00:57:34 +00:00
Jeff Johnston 9d5cff74ae 2006-03-17 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/linuxthreads/config.h: Remove definition
        of UINT32_C.
2006-03-17 22:27:37 +00:00
Jeff Johnston 490cfb83e9 2006-03-15 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/wsetup.c (__swsetup): Don't make a buffer
        for a string I/O file that isn't using the asprintf family.
2006-03-15 22:38:59 +00:00
Jeff Johnston ce10f1789e 2006-03-07 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL
        filename, allow read-only or write-only FILE atop O_RDWR file
        descriptor.
        * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
2006-03-07 22:20:18 +00:00
Jeff Johnston ddf12e6b76 2006-03-07 Jeff Johnston <jjohnstn@redhat.com>
* libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf.
        * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
2006-03-07 22:14:04 +00:00
Jeff Johnston cb1975812d 2006-03-02 Jeff Johnston <jjohnstn@redhat.com>
* libm/math/math.tex: Fix reference to sisnan.def which
        is now in common subdirectory.
        * libm/mathfp/mathfp.tex: Ditto.
2006-03-02 16:46:12 +00:00
Jeff Johnston bc88ea65a1 Add missing comment regarding math.h. 2006-02-28 00:03:46 +00:00
Jeff Johnston e48682cff5 2006-02-27 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff,
        s_isnand, and sf_isnanf object files.
        * Makefile.in: Regenerated.
        * libc/include/ieeefp.h: Undef isnan and isinf to avoid
        conflict if <math.h> has previously been included.
        * libc/include/math.h
        * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff,
        and sf_isnanf files.  Also support s_isnan, sf_isnan, s_isinf, and
        sf_isinf files which have been moved from math/mathfp directories.
        * libm/common/Makefile.in: Regenerated.
        * libm/common/s_isinfd.c: New file.
        * libm/common/s_isnand.c: Ditto.
        * libm/common/sf_isinff.c: Ditto.
        * libm/common/sf_isnanf.c: Ditto.
        * libm/common/s_isinf.c: Moved from libm/math directory.
        * libm/common/s_isnan.c: Ditto.
        * libm/common/sf_isinf.c: Ditto.
        * libm/common/sf_isnan.c: Ditto.
        * libm/math/Makefile.am: Remove isinf and isnan family functions
        which have been moved into common directory.
        * libm/mathfp/Makefile.am: Ditto.
        * libm/math/Makefile.in: Regenerated.
        * libm/mathfp/Makefile.in: Ditto.
        * libm/math/s_isinf.c: Removed.
        * libm/math/s_isnan.c: Ditto.
        * libm/math/sf_isinf.c: Ditto.
        * libm/math/sf_isnan.c: Ditto.
        * libm/mathfp/s_isinf.c: Ditto.
        * libm/mathfp/s_isnan.c: Ditto.
        * libm/mathfp/sf_isinf.c: Ditto.
        * libm/mathfp/sf_isnan.c: Ditto.
2006-02-27 23:51:28 +00:00
Jeff Johnston 99db626d21 2006-02-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/fflush.c (fflush): For an fflush on a read-only
        stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
        * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
        seek, turn off the __SNPT no-optimization flag.
2006-02-20 23:24:00 +00:00
Jeff Johnston 49103e2ba4 2006-02-16 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
        will be defined.
        * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
        <features.h> to preset special flags.
2006-02-16 21:25:45 +00:00
Corinna Vinschen 680e0f1ffd * libc/include/sys/time.h (struct timeval): Change member types
according to SUSv3.
	* libc/include/sys/types.h (useconds_t): Change to unsigned
	according to SUSv3.
	(suseconds_t): Define type.
2006-02-15 10:26:30 +00:00
Jeff Johnston d6593503c6 2006-02-13 Jeff Johnston <jjohnstn@redhat.com>
David Carne  <davidcarne@gmail.com>

        * libc/string/strndup_r.c (_strndup_r): Use strnlen logic
        instead of strlen to determine number of bytes to copy.
        * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
        before looking at storage location.
2006-02-13 17:27:50 +00:00
Jeff Johnston 9bbe6d5d28 2006-02-07 Paul Brook <paul@codesourcery.com>
* libc/machine/arm/setjmp.S: Add Thumb-2 support.
        * libc/sys/arm/crt0.S: Add Thumb-2 startup code.
        * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
        * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
        * libc/sys/arm/trap.S: Disable for Thumb-2.
2006-02-07 18:44:54 +00:00
Jeff Johnston d968b3c86f 2006-01-31 Leif Ekblad <leif@rdos.net>
* configure.host: RDOS support added
        * libc/include/sys/config.h: Ditto.
        * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files.
        * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto.
        * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto.
        * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto.
        * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto.
        * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto.
        * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto.
        * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto.
        * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto.
        * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto.
        * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto.
        * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto.
        * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto.
        * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto.
        * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto.
        * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto.
        * libc/sys/rdos/write.c: Ditto.
2006-01-31 19:33:56 +00:00
Jeff Johnston 3acaaf543f 2006-01-24 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation
        so as not to define PACKAGE and VERSION in newlib.h.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * newlib.hin: Ditto.
2006-01-24 17:24:02 +00:00
Jeff Johnston 54abc854d0 2006-01-20 Jeff Johnston <jjohnstn@redhat.com>
* acconfig.h: New file to generate newlib.hin from.
        * newlib.hin: Regenerated.
        * stamp-h.in: Regenerated.
        * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be
        called automatically.
        * Makefile.in: Regenerated.
        * acinclude.m4: Add proper comment for hack in previous change.
        * aclocal.m4 */aclocal.m4: Regenerated.
        * configure */configure: Regenerated.
2006-01-20 22:42:46 +00:00
Jeff Johnston 33c9cfbde9 2006-01-11 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Add hack to prevent INSTALL in subdirs
        from being set to "../".
        * Makefile.am: Pass INSTALL in AM_MAKEFLAGS.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * Makefile.in: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * iconvdata/aclocal.m4: Ditto.
        * iconvdata/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
2006-01-11 23:50:33 +00:00
Jeff Johnston dea958bc06 2006-01-10 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r): Fix use of oflags.
	* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2006-01-10 17:09:43 +00:00
Jeff Johnston 216633f73c 2006-01-10 Jeff Johnston <jjohnstn@redhat.com>
* libm/mathfp/s_frexp.c: Check for special values on
        the original input, not the manipulated output value.
        * libm/mathfp/sf_frexp.c: Ditto.
        * libm/mathfp/s_atangent.c: Don't use local value branch
        when checking for quadrant.
        * libm/mathfp/sf_atangent.c: Ditto.
2006-01-10 16:51:58 +00:00
Jeff Johnston 64ae8ab5f0 2006-01-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
        * libc/stdio64/freopen64.c: Ditto.
2006-01-09 20:01:09 +00:00
Jeff Johnston 0da7297ef1 2006-01-09 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
        * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
2006-01-09 17:51:01 +00:00
Jeff Johnston a37aaf88a8 2006-01-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/getopt.h: Add macros needed by
        new version of getopt.c in libc/stdlib.
2006-01-06 20:59:13 +00:00
Jeff Johnston 791c9bda57 2006-01-04 Gregory Pietsch <gpietsch@comcast.net>
* libc/stdlib/getopt.c: Replaced with version
        that adds getopt_long and getopt_long_only support.
        * libc/include/getopt.h: New file.
2006-01-04 21:21:52 +00:00
Jeff Johnston 0217078f77 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>
* NEWS: Update with 1.14.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 1.14.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.14.
2005-12-16 20:49:42 +00:00
Jeff Johnston a4cd7f20f7 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/sys/stat.h: Change *stat64 prototypes to
        take a pointer to struct stat64 rather than struct stat.
2005-12-16 19:11:10 +00:00
Jeff Johnston 843e635aaa 2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Prefer long over int for int32_t.
	Use __have_long32 to set up int32_t.
	* libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx"
	(Sync with stdint.h).
2005-12-16 19:03:12 +00:00
Corinna Vinschen 10cba930d4 * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
typo in O_NDELAY comment.
2005-12-14 09:06:00 +00:00
Jeff Johnston c8ba5c2205 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
* libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
        * libc/include/machine/setjmp.h (__mt__): Likewise.
        * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
        * libc/machine/configure.in: Ditto.
2005-12-13 22:57:31 +00:00
Nathan Sidwell 74ecef0dea Rename ms1 to mt, part 1
* config.sub: Replace ms1 arch with mt.  Allow ms1 as alias.
	* configure.in: Replace ms1 arch with mt.
	* configure: Rebuilt.

	* bfd/Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES,
	BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt.
	(cpu_mt.lo, elf32-mt.lo): Update target and dependency names.
	* bfd/Makefile.in: Rebuilt.
	* bfd/config.bfd: Replace ms1 arch with mt.
	* bfd/configure.in: Replace ms1 files with mt files.
	* bfd/configure: Rebuilt.
	* bfd/elf32-mt.c: Renamed from elf32-ms1.c.  Update include files.
	* bfd/cpu-mt.c: Renamed from cpu-ms1.c.

	* cpu/mt.cpu: Rename from ms1.cpu.
	* cpu/mt.opc: Rename from ms1.opc.

	* binutils/Makefile.am: Replace ms1 files with mt files.
	* binutils/Makefile.in: Rebuilt.
	* binutils/readelf.c (elf/mt.h): Adjust #include.

	* gas/configure.in: Replace ms1 arch with mt arch.
	* gas/configure: Rebuilt.
	* gas/configure.tgt: Replace ms1 arch with mt arch.
	* gas/config/tc-mt.c: Renamed from tc-ms1.c: Update include files.

	* gas/doc/Makefile.am (CPU_DOCS): Replace ms1 files with mt files.
	* gas/doc/Makefile.in: Rebuilt.

	* gas/testsuite/gas/mt: Renamed from ms1 dir.  Update file names as
	needed.
	* gas/testsuite/gas/mt/errors.exp: Replace ms1 arch with mt arch.
	* gas/testsuite/gas/mt/mt.exp: Replace ms1 arch with mt arch.
	* gas/testsuite/gas/mt/relocs.exp: Replace ms1 arch with mt arch.

	* gdb/configure.tgt: Replace ms1 arch with mt arch.
	* gdb/config/mt: Renamed from ms1 dir.  Update file names as needed.
	* gdb/config/mt/mt.mt (TDEPFILES): Replace ms1 file with mt file.

	* include/elf/mt.h: Renamed from ms1.h

	* ld/Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
	(eelf32mt.c): Update target name and dependencies.
	* ld/Makefile.in: Rebuilt.
	* ld/configure.tgt: Replace ms1 arch with mt arch.
	* ld/emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
	comment.

	* libgloss/configure.in: Replace ms1 arch with mt arch.
	* libgloss/configure: Rebuilt.
	* libgloss/mt: Renamed from ms1 dir.

	* newlib/configure.host: Replace ms1 arch with mt arch.
	* newlib/libc/machine/mt: Renamed from ms1 dir.

	* opcodes/Makefile.am (CLEANFILES, CGEN_CPUS, MT_DEPS): Replace ms1
	with mt.
	* opcodes/Makefile.in: Rebuilt.
	* opcodes/configure.in: Replace ms1 files with mt files.
	* opcodes/configure: Rebuilt.

	* sid/component/cgen-cpu/mt: Renamed from ms1 dir.  Update file
	names as appropriate.
	* sid/component/cgen-cpu/mt/Makefile.am: Replace ms1 files with mt
	files.
	* sid/component/cgen-cpu/mt/Makefile.in: Rebuilt.
2005-12-12 11:25:07 +00:00
Nathan Sidwell ad83f0cc13 Rename ms1 files to mt files (part 1 -- renames only) 2005-12-12 11:16:41 +00:00
Jeff Johnston 2a1fc53c92 2005-12-08 Shaun Jackman <sjackman@gmail.com>
* libc/include/sys/types.h: Remove the ifdef armour around
	standard POSIX types.
2005-12-08 19:45:43 +00:00
Jeff Johnston 77e70d34ce 2005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
        rtems_gxx_key_delete, rtems_gxx_getspecific,
        rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
        rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
        rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
2005-12-06 21:58:45 +00:00
Christopher Faylor b1da33a0b0 * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific file.
Declare unsetenv and _unsetenv_r when not cygwin.
2005-12-05 22:15:21 +00:00
Jeff Johnston 6b1a6ec67b 2005-11-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/time/strptime.c (strptime): Don't abort for %c and %Z.
        Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
2005-11-18 19:00:29 +00:00
Corinna Vinschen ef1206e45b * libc/include/ieeefp.h: Add C++ guards. 2005-11-18 17:40:21 +00:00
Christopher Faylor d7d477b7f7 * include/sys/time.h: Move more cygwin stuff to cygwin-specific header. 2005-11-18 16:08:10 +00:00
Christopher Faylor c1534dbe09 * include/time.h: Remove more cygwin-specific stuff. 2005-11-18 15:57:24 +00:00
Christopher Faylor d3e81bdac8 * include/time.h: Move cygwin declarations to cygwin-specific header.
* include/sys/time.h: Rename cygwin include to "sys_time.h".
2005-11-18 15:45:54 +00:00
Jeff Johnston 1396951b20 2005-11-17 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
        in libc/sys/linux/include.
        * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
        * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
        * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
        in libc/sys/linux/dl.
2005-11-17 21:51:21 +00:00
Christopher Faylor 37bd11ed12 * libc/include/sys/time.h: For cygwin, use general header rather than specific
"sys/select.h".
2005-11-11 16:23:36 +00:00
Jeff Johnston b397593c94 2005-11-08 Tom Walsh <tom@openhardware.net>
* libc/time/tzvars.c: New file.
        * libc/time/tzset_r.c: Moved globals into tzvars.c
        so other time functions needn't link in __tzset_r and its
        dependencies.
        * libc/time/Makefile.am: Add the new file.
        * libc/time/Makefile.in: Regenerated.
2005-11-08 22:44:16 +00:00