summaryrefslogtreecommitdiffstats
path: root/newlib
Commit message (Collapse)AuthorAgeFilesLines
* * utmp.h: Define more UNIX constants.Christopher Faylor2002-05-022-0/+9
|
* * Makefile.am: Add support for checking multilibs.Thomas Fitzsimmons2002-05-013-4/+14
|
* * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.Thomas Fitzsimmons2002-05-0119-3/+166
| | | | | | | | | | | | | | | | | (SUBDEFS): Add LIBC_EXTRA_DEF. * libc/configure.in (LIBC_EXTRA_LIB): New variable. (LIBC_EXTRA_DEF): Likewise. (extra_dir): Likewise. * libc/machine/xscale/machine: New directory. * libc/machine/xscale/machine/profile.h: New file. * Makefile.am (site.exp): Remove newlib_cflags. Add multibuildtop. * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's. * testsuite/lib/flags.exp: New file. * testsuite/lib/newlib.exp: Load flags.exp. (newlib_target_compile): Remove libgloss directory references. (newlib_init): Remove newlib_cflags references.
* * Add flags.exp.Thomas Fitzsimmons2002-05-011-0/+82
|
* * Makefile.am (site.exp): Remove newlib_cflags. AddThomas Fitzsimmons2002-05-015-20/+22
| | | | | | | | | multibuildtop. * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's. * testsuite/lib/flags.exp: New file. * testsuite/lib/newlib.exp: Load flags.exp. (newlib_target_compile): Remove libgloss directory references. (newlib_init): Remove newlib_cflags references.
* * testsuite/lib/newlib.exp (newlib_target_compile): ChangeThomas Fitzsimmons2002-04-302-1/+4
| | | | method of finding libgloss_target_dir.
* * Makefile.am (site.exp): Change host_alias, host_triplet,Thomas Fitzsimmons2002-04-304-20/+26
| | | | | | | | | | target_alias, target_triplet to refer to gcc's host and target variables (newlib's build and host variables). * testsuite/lib/newlib.exp (newlib_init): Change build references to host references, host references to target references to reflect Makefile.am changes. (newlib_target_compile): Likewise. (newlib_finish): Likewise.
* * Various formatting and whitespace changes.Thomas Fitzsimmons2002-04-3016-47/+44
|
* 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-292-0/+6
| | | | * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
* Fix trivial typo in last changeJonathan Larmour2002-04-291-1/+1
|
* * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.Jonathan Larmour2002-04-294-1/+31
| | | | | | | (_system): New function. Ditto. * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM. * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale targets.
* 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-2910-16/+342
| | | | | | | | | | | | * libc/include/sys/unistd.h (pread, pwrite): Added prototypes. * libc/unix/Makefile.am: Add pread.c and pwrite.c. * libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/unix/Makefile.in: Ditto. * libc/sys/linux/pread64.c: New file. * libc/sys/linux/pwrite64.c: Ditto. * libc/unix/pread.c: Ditto. * libc/unix/pwrite.c: Ditto.
* 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-266-15/+80
| | | | | | | | * libc/sys/linux/Makefile.am: Add io64.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls. * libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto. * libc/sys/linux/io64.c: New file.
* 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-265-12/+32
| | | | | | | | | | * configure.in (CC_FOR_NEWLIB): New variable that bases on $(CC) and adds targ-include and libc/include as -isystem directives if they are not already part of $(CC). * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal $(CC_FOR_NEWLIB). * configure: Regenerated. * Makefile.in: Ditto.
* 2002-04-25 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-255-8/+42
| | | | | | | * libc/sys/linux/Makefile.am: Add support for sched.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/sched.c: New file. * libc/sys/linux/sys/types.h: Add struct timespec.
* * configure.in (CC_FOR_BUILD): Set to gcc whetherThomas Fitzsimmons2002-04-254-10/+40
| | | | | | cross-compiling or not. (CC): Add -isystem's for targ-include and libc/include when they do not already appear in CC.
* * Makefile.am (check-DEJAGNU): New target.Thomas Fitzsimmons2002-04-24214-3632/+7713
| | | | | | | | | | | | | | | | | | | | | | | (site.exp): Likewise. * acinclude.m4 (NEWLIB_CONFIGURE): Replace AC_CANONICAL_HOST with AC_CANONICAL_SYSTEM. Remove AC_CANONICAL_BUILD. * libc/locale/locale.c (_setlocale_r): Add UTF-8 support. * libc/stdlib/mbtowc_r.c (_mbtowc_r): Likewise. * libc/stdlib/wctomb_r.c (_wctomb_r): Likewise. * testsuite: New directory. * testsuite/config: Likewise. * testsuite/lib: Likewise. * testsuite/newlib.locale: Likewise. * testsuite/newlib.string: Likewise. * testsuite/config/default.exp: New file. * testsuite/lib/checkoutput.exp: New file. * testsuite/lib/newlib.exp: New file. * testsuite/lib/passfail.exp: New file. * testsuite/newlib.locale/UTF-8.c: New file. * testsuite/newlib.locale/UTF-8.exp: New file. * testsuite/newlib.locale/locale.exp: New file. * testsuite/newlib.string/string.exp: New file. * testsuite/newlib.string/tstring.c: New file.
* 2002-04-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-237-11/+63
| | | | | | | | | * libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added. * libc/sys/linux/Makefile.am: Add support for mmap.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/mmap.c: New file. * libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro. * libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
* * acinclude.m4 (newlib_cflags): Remove include directories thatThomas Fitzsimmons2002-04-22124-1796/+325
| | | | are already specified in the top-level configure.in's FLAGS_FOR_TARGET.
* 2002-04-19 Bill SiegmundJeff Johnston2002-04-2010-452/+464
| | | | | | | | | | | | * libc/machine/xscale/memchr.c: Don't use multi-line strings. * libc/machine/xscale/memcmp.c: Ditto. * libc/machine/xscale/memcpy.c: Ditto. * libc/machine/xscale/memmove.c: Ditto. * libc/machine/xscale/memset.c: Ditto. * libc/machine/xscale/strchr.c: Ditto. * libc/machine/xscale/strcmp.c: Ditto. * libc/machine/xscale/strcpy.c: Ditto. * libc/machine/xscale/strlen.c: Ditto.
* 2002-04-19 Alexandre Oliva <aoliva@redhat.com>Jeff Johnston2002-04-192-5/+36
| | | | | | * libc/include/sys/config.h: Remove include of <limits.h>. (__INT_MAX__, __LONG_MAX__): Define like GCC's limits.h would define INT_MAX and LONG_MAX. Use them in tests.
* 2002-04-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-1921-6/+3350
| | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.host: Add support for powerpc-eabialtivec*. * libc/include/malloc.h: Add include of <machine/malloc.h>. * libc/include/stdlib.h: Add include of <machine/stdlib.h>. * libc/include/machine/malloc.h: New file. * libc/include/machine/stdlib.h: Ditto. * libc/include/machine/setjmp.h: Add support for powerpc altivec. * libc/machine/powerpc/Makefile.am: Add conditional objects and sources based on configuration. * libc/machine/powerpc/Makefile.in: Regenerated. * libc/machine/powerpc/configure: Ditto. * libc/machine/powerpc/configure.in: Add check for powerpc-eabialtivec* in which case add in additional source files. * libc/machine/powerpc/setjmp.S: Add altivec support. * libc/machine/powerpc/vec_calloc.c: New file. * libc/machine/powerpc/vec_free.c: Ditto. * libc/machine/powerpc/vec_malloc.c: Ditto. * libc/machine/powerpc/vec_mallocr.c: Ditto. * libc/machine/powerpc/vec_realloc.c: Ditto. * libc/machine/powerpc/machine/malloc.h: Ditto. * libc/machine/powerpc/machine/stdlib.h: Ditto. * libc/machine/powerpc/vfprintf.c: New file that is vfprintf.c with added altivec format specifiers. * libc/machine/powerpc/vfscanf.c: New file that is vfscanf.c with added altivec format specifiers.
* 2002-04-19 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-04-192-4/+6
| | | | | * libs/sys/rtems/crt0.c: Satisfy gcc's references to libc functions while autoconf is trying to link main(){}.
* 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-173-1/+6
| | | | | * libc/sys/linux/signal.c: Remove include of <bits/sigset.h>. * libc/sys/linux/sys/signal.h: Add include of <bits/sigset.h>.
* 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-172-0/+220
| | | | * libc/time/time.tex: Add tzset info.
* 2002-04-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-1716-118/+770
| | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/time.h (tzset, _tzset_r): Added prototypes. (strptime): Moved prototype to be within !__STRICT_ANSI__. (_tzname, _daylight, _timezone): No long __CYGWIN__ only. (tzname): Defined for all platforms. (daylight, timezone): Defined only for CYGWIN. * libc/sys/linux/machine/i386/crt0.c: Add call to tzset() after environment set up. * libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ environment variable is set. * libc/time/Makefile.am: Add support for tzset.c, tzlock.c, and tzset_r.c. * libc/time/Makefile.in: Regenerated. * libc/time/gmtime.c (gmtime): Changed to call gmtime_r. * libc/time/gmtime_r.c (gmtime_r): Changed to call _mktm_r. * libc/time/lcltime_r.c (lcltime_r): Ditto. * libc/time/local.h: New local header file. * libc/time/mktime.c (mktime): Add timezone support. * libc/time/mktm_r.c: New file which is the common engine for gmtime_r and lcltime_r. This code has timezone support. * libc/time/strftime.c (strftime): Add %Z timezone support. * libc/time/tzlock.c: New file containing timezone lock stubs. * libc/time/tzset.c: New file containing tzset() routine. * libc/time/tzset_r.c: New file containing _tzset_r and internal routine for calculating timezone changes for specified year.
* * configure.in (CRT0_DIR): Set to libc/.Thomas Fitzsimmons2002-04-179-56/+132
| | | | | | | | | | (CRT1_DIR): Set to ${crt1_dir}/ if crt1_dir is non-empty. * Makefile.am: Change all occurrences of $(CRT0_DIR)/$(CRT0) to $(CRT0_DIR)$(CRT0) to prevent make warnings. Likewise for $(CRT1_DIR)/$(CRT1). * libc/machine/xstormy16/Makefile.in: Regenerated. * libc/machine/xstormy16/aclocal.m4: Regenerated. * libc/machine/xstormy16/configure: Regenerated.
* * libc/stdlib/mallocr.c (malloc_extend_top): If correction sbrkAlexandre Oliva2002-04-132-4/+16
| | | | fails, don't bail out, and try to correct next time.
* * libc/include/sys/config.h: Include limits.h.Alexandre Oliva2002-04-132-0/+6
|
* 2002-04-12 Eric Norum <eric.norum@usask.com>Jeff Johnston2002-04-122-0/+12
| | | | | | | | * libc/sys/rtems/crt0.c (rtems_gxx_mutex_init): Dummy routine to allow autoconf to determine that building executables for rtems works. (rtems_gxx_mutex_lock, rtems_gxx_mutex_unlock): Ditto. (rtems_gxx_mutex_once): Ditto.
* Fix typo.Tom Rix2002-04-092-1/+5
|
* 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>Jeff Johnston2002-04-095-3/+452
| | | | | | | * libc/include/time.h: Fix strptime declaration. * libc/time/Makefile.am: Add strptime.c. * libc/time/Makefile.in: Regenerated. * libc/time/strptime.c: New file.
* 2002-04-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-085-7/+72
| | | | | | | | * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type, siglongjmp prototype, and sigsetjmp macro definition. * libc/sys/linux/siglongjmp.c: New file. * libc/sys/linux/Makefile.am: Add support for siglongjmp. * libc/sys/linux/Makefile.in: Regenerated.
* 2002-04-04 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-0411-11/+453
| | | | | | | | | | | | | | | * Makefile.am: Add support for installing crt1.o if one exists. * configure.host: Specify crt1.o for linux. * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use. * Makefile.in: Regenerated. * configure: Ditto. * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING): Added for non-Cygwin, non-RTEMS configurations. * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/crt1.c: New empty file to override one defaulted by gcc. This fixes problem with reconfiguring linux newlib build. * libc/sys/linux/sysconf.c: New file.
* 2002-04-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-0344-91/+8369
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.host: Add support for machine subdirectory of sys subdirectory. * configure.in: Add check for sys machine subdirectory. * Makefile.am: Ditto. * configure: Regenerated. * Makefile.in: Ditto. * libc/sys/linux/crt0.c: Moved to machine/i386 directory. * libc/sys/linux/sys/syscall.h: Ditto. * libc/sys/linux/sleep.c: New file. * libc/sys/linux/socket.c: Ditto. * libc/sys/linux/sockops.h: Ditto. * libc/sys/linux/stack.c: Ditto. * libc/sys/linux/usleep.c: Ditto. * libc/sys/linux/machine/Makefile.am: Ditto. * libc/sys/linux/machine/Makefile.in: Ditto. * libc/sys/linux/machine/aclocal.m4: Ditto. * libc/sys/linux/machine/configure: Ditto. * libc/sys/linux/machine/configure.in: Ditto. * libc/sys/linux/machine/i386/Makefile.am: Ditto. * libc/sys/linux/machine/i386/Makefile.in: Ditto. * libc/sys/linux/machine/i386/aclocal.m4: Ditto. * libc/sys/linux/machine/i386/configure: Ditto. * libc/sys/linux/machine/i386/configure.in: Ditto. * libc/sys/linux/machine/i386/crt0.c: Ditto. * libc/sys/linux/machine/i386/sigset.c: Ditto. * libc/sys/linux/machine/i386/sigstack.h: Ditto. * libc/sys/linux/machine/i386/socketcall.h: Ditto. * libc/sys/linux/machine/i386/syscall.h: Ditto. * libc/sys/linux/sys/select.h: Ditto. * libc/sys/linux/configure.in: Add support for machine directory. * libc/sys/linux/Makefile.am: Ditto plus add new files above. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/configure: Ditto. * libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h. * libc/sys/linux/inode.c: Ditto. * libc/sys/linux/linux.c: Ditto. * libc/sys/linux/process.c: Ditto. * libc/sys/linux/systat.c: Ditto. * libc/sys/linux/time.c: Ditto. * libc/sys/linux/wait.c: Ditto. * libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid. * libc/sys/linux/io.c: Change header plus add readv/writev. * libc/sys/linux/signal.c: Change header plus change sigsuspend to use __sigsuspend syscall. * libc/sys/linux/select.c: Change header plus change select to use _newselect syscall. * libc/sys/linux/sys/cdefs.h: Add a number of standard definitions used by glibc header files. * libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t types.
* 2002-04-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-016-12/+139
| | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for initializing a struct _reent that has been dynamically allocated. (_REENT_CHECK_MISC): New macro that checks _misc struct for _REENT_SMALL and does nothing otherwise. (_REENT_STRTOK_LAST): New macro for reentrant strtok. (_REENT_MBLEN_STATE): New macro for reentrant mblen. (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc. (_REENT_WCTOMB_STATE): New macro for reentrant wctomb. [_REENT_SMALL](struct _misc_reent): New structure containing miscellaneous reentrant areas needed by newlib. [_REENT_SMALL](struct _reent): Add _misc pointer. [_REENT_SMALL](_REENT_INIT_MISC): New macro. * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC and _REENT_STRTOK_LAST macros. * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC and _REENT_MBLEN_STATE macros. * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC and _REENT_MBTOWC_STATE macros. * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC and _REENT_WCTOMB_STATE macros.
* 2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>Jeff Johnston2002-04-012-1/+8
| | | | * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
* * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.Christopher Faylor2002-03-282-0/+5
|
* * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.Joern Rennecke2002-03-262-1/+7
| | | | Store high part of leading bytes too.
* * libm/math/ef_hypot.c: Increase scale factor to 68.Richard Sandiford2002-03-222-6/+10
|
* * libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-twoAlexandre Oliva2002-03-142-2/+7
| | | | error.
* 2002-03-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-03-122-11/+15
| | | | | * libc/sys/go32/access.c: Change license to relaxed license used in identical file throughout newlib/libgloss.
* 2002-03-12 Richard Earnshaw <rearnsha@arm.com>Jeff Johnston2002-03-125-3/+60
| | | | | | | * libc/sys/arm/access.c: New file. * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c. * libc/sys/arm/Makefile.in: Regenerate. * libc/sys/arm/syscalls.c (_stat): New function.
* Add MIPS specific string/memory functionsMichael Meissner2002-03-118-6/+694
|
* 2002-03-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-03-063-2/+8
| | | | | | * libc/machine/i386/Makefile.am: Add $(oext) for setjmp object so it works for shared library or statici library. * libc/machine/i386/Makefile.in: Regenerated.
* * Makefile.am (lib_a_SOURCES, SH64 case): Add memcpy.S, memset.SJoern Rennecke2002-03-067-150/+502
| | | | | | | | | | and strcpy.S. * Makefile.in: Regenerate. * asm.h (_ENTRY): Set SH5 alignment to 8 bytes. (SHHI, SHLO): Define. * memcpy.S: Add code for SH5. * memset.S: Likewise. * strcpy.S: Likewise.
* 2002-02-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-02-27120-1946/+3428
| | | | | | | | | | | | | | * configure.host: Add check for --disable-newlib-io-float configuration option and add -DNO_FLOATING_POINT to newlib cflags if appropriate. * acinclude.m4: Added --disable-newlib-io-float option. * aclocal.m4: Regenerated. * configure: Ditto. * doc/aclocal.m4 doc/configure libc/aclocal.m4 libc/configure * libc/*/aclocal.m4 libc/*/configure * libm/*/aclocal.m4 libm/*/configure: Ditto. * libc/stdio/vfprintf.c [!INTEGER_ONLY]: Only set FLOATING_POINT if NO_FLOATING_POINT flag is not defined.
* 2002-02-25 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-02-252-2/+7
| | | | | * libc/include/sys/config.h: Add __extension__ in front of long long references.
* * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.Corinna Vinschen2002-02-232-0/+7
| | | | (_stat): Ditto.
* * libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t insteadCorinna Vinschen2002-02-232-1/+6
| | | | of off_t.