summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
Commit message (Collapse)AuthorAgeFilesLines
* * Various formatting and whitespace changes.Thomas Fitzsimmons2002-04-302-2/+0
|
* 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-291-0/+2
| | | | | | | | | | | | * 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-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-231-0/+7
| | | | | | | | | * 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.
* 2002-04-19 Alexandre Oliva <aoliva@redhat.com>Jeff Johnston2002-04-191-5/+30
| | | | | | * 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-195-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-171-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * libc/include/sys/config.h: Include limits.h.Alexandre Oliva2002-04-131-0/+2
|
* Fix typo.Tom Rix2002-04-091-1/+1
|
* 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>Jeff Johnston2002-04-091-1/+1
| | | | | | | * 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-04 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-041-0/+5
| | | | | | | | | | | | | | | * 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-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-011-4/+108
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* * libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.Christopher Faylor2002-03-281-0/+1
|
* 2002-02-25 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-02-251-2/+2
| | | | | * 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-231-0/+2
| | | | (_stat): Ditto.
* 2002-02-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-02-151-0/+11
| | | | | * libc/include/sys/config.h: Add definitions for __int16_t, __uint16_t, __int64_t, and __uint64_t.
* * libc/include/grp.h: Don't declare group functions when compilingCorinna Vinschen2002-02-101-0/+2
| | | | Cygwin.
* * libc/include/grp.h: Include Cygwin specific header.Corinna Vinschen2002-02-093-2/+11
| | | | | | | * libc/include/sys/stat.h: Ditto. Don't define `struct stat' when compiling for Cygwin. * libc/include/sys/types.h: Don't define off_t, uid_t and gid_t when compiling for Cygwin.
* * libc/include/sys/reent.h (_REENT_CHECK_EMERGENCY): AllocateMatthew Green2002-02-091-1/+1
| | | | _REENT_EMERGENCY_SIZE, not sizeof(char *).
* Contribute sh64-elf.Alexandre Oliva2002-02-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-13 Alexandre Oliva <aoliva@redhat.com> * configure.host (newlib_cflags) [sh*-*-*]: Enable long long support in printf. 2001-01-29 Alexandre Oliva <aoliva@redhat.com> * libc/machine/sh/setjmp.S [SH5]: Switch to SHmedia mode before any labels. 2001-01-24 Alexandre Oliva <aoliva@redhat.com> * libc/sys/sh/trap.S (___trap34) [SH5]: Don't trash r2. 2000-12-16 Alexandre Oliva <aoliva@redhat.com> * libc/machine/sh/configure.in: Rework conditionals. * libc/machine/sh/Makefile.am: Likewise. * libc/machine/sh/configure, libc/machine/sh/Makefile.in: Rebuilt. 2000-12-01 Alexandre Oliva <aoliva@redhat.com> * configure.host: Match `sh*'. * libc/include/machine/setjmp.h: Define for SH5. * libc/machine/sh/configure.in: Detect SH5. * libc/machine/sh/configure: Rebuilt. * libc/machine/sh/Makefile.am: Use only setjmp.S for SH5. * libc/machine/sh/Makefile.in: Rebuilt. * libc/machine/sh/asm.h: Adjust for SH5. * libc/machine/sh/setjmp.S: Implement in SHmedia. * libc/sys/sh/crt0.S: Likewise. * libc/sys/sh/trap.S: Likewise.
* 2002-02-04 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-02-041-0/+1
| | | | | * libc/include/sys/reent.h [(!_REENT_SMALL]: Add _REENT_CHECK_EMERGENCY macro.
* * implement a new `struct _reent' that is significantly smaller. use thisMatthew Green2002-02-033-9/+206
| | | | if _REENT_SMALL is defined in config.h. define this for xstormy16.
* * libc/include/sys/signal.h [__CYGWIN__]: Issue error messageThomas Fitzsimmons2002-01-281-0/+5
| | | | when _CYGWIN_TYPES_H is not defined.
* * libc/include/sys/signal.h: Revert 2002-01-23 change.Thomas Fitzsimmons2002-01-251-1/+1
|
* * libc/include/sys/signal.h: Remove pthread_kill declarationThomas Fitzsimmons2002-01-241-1/+1
| | | | when __CYGWIN__ is defined.
* * libc/include/time.h: Add prototype for strptime for Cygwin.Christopher Faylor2002-01-181-0/+1
|
* 2002-01-07 Alan Matsuoka <alanm@redhat.com>Jeff Johnston2002-01-072-0/+4
| | | | | | * libc/include/machine/ieeefp.h: Configure d10v doubles to be 32 bits if __DOUBLE__ == 32 otherwise doubles are 64 bits. libc/include/sys/config.h: Ditto.
* In newlib/:Geoffrey Keating2001-12-223-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> Corinna Vinschen <vinschen@redhat.com> * configure.host: Add support for xstormy16. * libc/include/machine/ieeefp.h: Add support for xstormy16. * libc/include/machine/setjmp.h: Add support for xstormy16. * libc/include/sys/config.h: Add support for xstormy16. * libc/machine/xstormy16/Makefile.am: New file. * libc/machine/xstormy16/Makefile.in: New file. * libc/machine/xstormy16/aclocal.m4: New file. * libc/machine/xstormy16/configure: New file. * libc/machine/xstormy16/configure.in: New file. * libc/machine/xstormy16/setjmp.S: New file. In libgloss/: 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Mark Salter <msalter@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> * configure.in: Add xstormy16. * libnosys/configure.in: Add xstormy16. * configure: Regenerated. * libnosys/configure: Regenerated. * xstormy16/Makefile.in: New file. * xstormy16/close.c: New file. * xstormy16/configure: New file. * xstormy16/configure.in: New file. * xstormy16/crt0.s: New file. * xstormy16/crt0_stub.s: New file. * xstormy16/crti.s: New file. * xstormy16/crtn.s: New file. * xstormy16/eva_app.c: New file. * xstormy16/eva_app.ld: New file. * xstormy16/eva_stub.ld: New file. * xstormy16/fstat.c: New file. * xstormy16/getpid.c: New file. * xstormy16/kill.c: New file. * xstormy16/lseek.c: New file. * xstormy16/open.c: New file. * xstormy16/sbrk.c: New file. * xstormy16/sim_high.ld: New file. * xstormy16/stat.c: New file. * xstormy16/syscalls.S: New file. * xstormy16/syscalls.m4: New file. * xstormy16/unlink.c: New file. * xstormy16/xstormy16_stub.c: New file.
* 2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2001-12-191-2/+2
| | | | | | | | | | | | | * libc/machine/i386/f_*: Move to libm/machine/i386. 2001-12-18 Joel Sherrill <joel@OARcorp.com> * libm/machine/Makefile.am: Add dummy doc stub so "make info" works. 2001-12-17 Joel Sherrill <joel@OARcorp.com> * libc/include/sys/types.h (ino_t): RTEMS uses long also.
* * libc/include/sys/unistd.h: Correct ualarm declaration.Christopher Faylor2001-12-061-1/+1
|
* * libc/include/dirent.h: Protect against multiple inclusion.Christopher Faylor2001-11-301-0/+3
|
* * libc/include/sys/types.h: Define useconds_t.Christopher Faylor2001-11-282-0/+5
| | | | * libc/include/sys/ulimit.h: Declare ualarm.
* * libc/include/alloca.h: Move libc/sys/linux/include/alloca.hCorinna Vinschen2001-11-142-0/+23
| | | | | | | 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-12 Hans-Peter Nilsson <hp@bitrange.com>Jeff Johnston2001-11-123-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * libc/include/sys/unistd.h: Add prototypes for endusershell(),Corinna Vinschen2001-11-051-0/+14
| | | | | | | getusershell(), iruserok(), revoke(), ruserok() and setusershell() when __CYGWIN__ is defined. * libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and logwtmp().
* * libc/include/math.h: The C++ standard adds the single-precisionGeoffrey Keating2001-10-231-0/+8
| | | | versions of the elementary functions.
* * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations throughout.Christopher Faylor2001-10-221-1/+1
| | | | | | * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__. * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__. * system.c (_system_r): Ditto.
* Add __rtems__ as system defining fchdir().Corinna Vinschen2001-10-171-1/+1
|
* * libc/include/sys/unistd.h: Add prototype for fchdir() whenCorinna Vinschen2001-10-171-0/+3
| | | | __CYGWIN__ is defined.
* 2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>Jeff Johnston2001-10-011-7/+12
| | | | | | | | | | | | | | | | | | | * 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
* * libc/include/process.h: Add getpid() declaration.Christopher Faylor2001-09-171-0/+1
|
* 2001-08-29 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2001-08-291-1/+1
| | | | | | | | | | | | | | | | | * 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 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-293-5/+22
| | | | | | | | | | | | | * 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 *.
* * libc/include/sys/errno.h: Add a cautionary comment.Christopher Faylor2001-08-261-0/+2
|
* * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro arguments.Christopher Faylor2001-08-142-4/+12
| | | | * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under Cygwin.
* 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-131-0/+14
| | | | | | * 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-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-021-1/+6
| | | | | * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided, otherwise default.
* Handle ARMs with big endian IEEE words but little endian IEEE bytesNick Clifton2001-06-281-2/+4
|
* 2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>Jeff Johnston2001-06-111-0/+2
| | | | * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
* * libc/include/sys/stat.h: Revert March 3, Cygwin change.Christopher Faylor2001-05-082-20/+1
| | | | * libc/include/sys/Ditto.h: Ditto.
* 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-271-0/+1
| | | | * libc/include/stdlib.h: Add prototype for _strtod_r.