summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* * libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OKChristopher Faylor2001-04-221-6/+7
| | | | definitions in sys/file.h.
* * libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,Christopher Faylor2001-04-211-2/+2
| | | | too.
* 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-202-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together into one list. [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list. (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New function prototypes. (_fscanf_r, _sscanf_r): Ditto. * libc/include/stdlib.h: Added _strtod_r prototype. * libc/stdio/Makefile.am: Add new v*scanf functions. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r. * libc/stdio/scanf.c: Changed to call __svfscanf_r. * libc/stdio/sscanf.c: Changed documentation to add reentrant routines. (sscanf): Changed to call __svfscanf_r with _REENT argument. (_sscanf_r): New routine. * libc/stdio/local.h: Removed __svfscanf prototype and replaced it with __svfscanf_r prototype. * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New routines. (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy structure as argument as calls reentrant versions of helper functions (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof to _strtol_r and _strtod_r respectively. * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r. * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with _REENT argument. * libc/stdio/vscanf.c: New file. * libc/stdio/vsscanf.c: Ditto.
* 2001-04-19 Robert Collins <rbtcollins@hotmail.com>Jeff Johnston2001-04-191-1/+13
| | | | | | | * include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined. Define daylight to _daylight if it is not defined Prepare a variable export of timezone based on timezonevariable. (Cannot be used with the timezone() function.)
* * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).Christopher Faylor2001-04-131-0/+3
|
* * libc/include/sys/errno.h: Add ECASECLASH to indicate case clashCorinna Vinschen2001-04-121-0/+1
| | | | on case insensitve file systems.
* * libc/include/sys/features.h: Add appropriate defines for Cygwin pthreadChristopher Faylor2001-04-123-4/+20
| | | | | | | support. * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection. * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads types. Include <cygwin/types.h> for the cygwin specific typedefs.
* * libc/include/machine/ieeefp.h: Comment about new configurationRichard Sandiford2001-04-041-0/+18
| | | | | | | | macros _FLT_LARGEST_EXPONENT_IS_NORMAL and _FLT_NO_DENORMALS. * libm/common/fdlib.h: Define new macros for testing floats. * libm/common/sf_*: Use them. * libm/math/ef_*: Likewise. * libm/math/sf_*: Likewise.
* * libc/include/sys/types.h (BSD int typedefs): Guard with _BSDTYPES_DEFINEDChristopher Faylor2001-03-202-9/+16
| | | | | | | rather than _WINSOCK_H. (fd_set): Add !defined __USE_W32_SOCKETS to guard; define _SYS_TYPES_FD_SET. * libc/include/sys/unistd.h (gethostname): Don't declare if defined (_WINSOCK_H) || defined (__USE_W32_SOCKETS).
* * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS andCorinna Vinschen2001-03-191-0/+6
| | | | _PC_POSIX_SECURITY constants for Cygwin.
* 2001-03-07 Richard Sandiford <rsandifo@redhat.com>Jeff Johnston2001-03-081-0/+5
| | | | | | * (libc/include/machine/setjmp.h): Use 23 DI-mode ints for a jmpbuf on MIPS64 targets. * (libc/machine/mips/setjmp.S): Add MIPS64 version.
* * libc/include/sys/config.h: Use ssize_t for read/write declarations.Christopher Faylor2001-03-071-0/+1
|
* Mon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>Jeff Johnston2001-03-063-16/+14
| | | | | | | | | | | | * libc/include/sys/config.h (_READ_WRITE_RETURN_TYPE): Define. For RTEMS, define to be ssize_t. Default to int if not defined. * libc/stdio/sscanf.c (eofread): Return _READ_WRITE_RETURN_TYPE. * libc/stdio/stdio.c (__sread, __swrite): Likewise. * libc/stdio/local.h (__sread, __swrite): Likewise. * libc/include/sys/reent.h (_read, _write): Likewise. * libc/include/sys/unistd.h (read, write, _read, _write): Likewise. * libc/syscalls/sysread.c (read): Likewise. * libc/syscalls/syswrite.c (write): Likewise.
* * libc/include/sys/stat.h: Use special defines for executable stat bits whenChristopher Faylor2001-03-052-7/+24
| | | | | | compiling for Cygwin. * libc/include/sys/unistd.h: Use special define for X_OK when compiling for Cygwin.
* 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-03-021-0/+1
| | | | * libc/include/machine/ansi.h: New dummy header file.
* 2001-02-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-02-222-22/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission, changed the copyright information to allow free modification of the file with no reference to "copying.dj". * libc/include/sys/stat-dj.h: Ditto. * libc/machine/i386/setjmp.S: Ditto. * libc/sys/h8300hms/sys/file.h: Ditto. * libc/sys/sysmec/access.c: Ditto. * libc/sys/sysnecv850/access.c: Ditto. * libc/stdio/mktemp.c: Fixed typo for the word copyright. * libc/stdlib/getenv_r.c: Ditto. * libc/stdlib/putenv_r.c: Ditto. * libc/stdlib/setenv_r.c: Ditto. * libc/stdlib/getenv.c: Removed DJ reference since any possible modifications will now be in the _r version of this file. * libc/stdlib/putenv.c: Ditto. * libc/stdlib/setenv.c: Ditto. * libc/sys/go32/copying.dj: Removed DJ's address which is no longer valid. Added a reference to DJ's web page that contains his address. * libc/sys/go32/*.s: Removed references to DJ's old address. * libc/sys/go32/*.c: Ditto. * libc/sys/go32/*.h: Ditto. * libc/sys/go32/*.S: Ditto. * libc/sys/go32/sys/*.h: Ditto.
* * libc/include/sys/signal.h: Always include sys/types.h under Cygwin.Christopher Faylor2001-02-151-1/+1
|
* 2001-02-14 Kazuhiro Fujieda <fujieda@jaist.ac.jp>Jeff Johnston2001-02-152-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/stdlib.h: Add declarations of rand48 functions and their reentrant versions. * libc/include/sys/reent.h: Move macros from rand48.h. Add struct _rand48 for shared parameters of rand48 functions. (struct _reent): Add a variable _r48 of struct _rand48. (_REENT_INIT): Add _r48 initialization. * libc/stdlib/Makefile.am (lib_a_SOURCES): Add rand48 functions. (CHEWOUT_FILES): Add rand48.def. * libc/stdlib/Makefile.am: Add dependencies for rand48 functions. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/drand48.c (drand48, _drand48_r): Derived from the NetBSD C library. * libc/stdlib/erand48.c (erand48, _erand48_r): Ditto. * libc/stdlib/jrand48.c (jrand48, _jrand48_r): Ditto. * libc/stdlib/lcong48.c (lcong48, _lcong48_r): Ditto. * libc/stdlib/lrand48.c (lrand48, _lrand48_r): Ditto. * libc/stdlib/mrand48.c (mrand48, _mrand48_r): Ditto. * libc/stdlib/nrand48.c (nrand48, _nrand48_r): Ditto. * libc/stdlib/seed48.c (seed48, _seed48_r): Ditto. * libc/stdlib/srand48.c (srand48, _srand48_r): Ditto. * libc/stdlib/rand48.c (__dorand48): Ditto. * libc/stdlib/rand48.h: Ditto, and modify declarations of global parameters into macros referring them in the reentrant structure.
* 2001-02-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-02-121-4/+1
| | | | | * libc/include/sys/stat.h: Add mknod for Cygwin now that Cygwin definition has correct prototype.
* 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-02-091-1/+4
| | | | | | * libc/include/sys/stat.h: Must revert change for mknod for CYGWIN until winsup/cygwin/syscalls.cc changes mknod prototype.
* 2001-02-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-02-091-1/+1
| | | | * libc/include/stdio.h: Revert putw prototype.
* 2001-02-08 Edward M. Lee <tailbert@yahoo.com>Jeff Johnston2001-02-095-13/+7
| | | | | | | | | * libc/include/grp.h: add prototype for initgroups. * libc/include/stdio.h: fix prototype for putw. * libc/include/sys/signal.h: add prototype for killpg. * libc/include/sys/stat.h: enable mknod/lstat for CYGWIN. * libc/include/sys/unistd.h: add prototypes for getpgid, setpgrp, vhangup and remove duplicate sysconf prototype.
* 2001-02-05 Charles Wilson <cwilson@ece.gatech.edu>Jeff Johnston2001-02-051-0/+1
| | | | * libc/include/locale.h: add LC_MESSAGES definition
* 2001-01-31 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-01-312-3/+23
| | | | | | | | | * libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__ if defined. (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined. (L_tmpnam): Changed to use __L_tmpnam__ if defined. * libc/include/sys/config.h: Changed to set __FILENAME_MAX__ appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
* 2001-01-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-01-291-1/+5
| | | | | | | | * libc/include/math.h (signgam): Change to errno-like solution using a function to return the address of the real signgam. * libc/reent/signgam.c: New file containing __signgam(). * libc/reent/Makefile.am: Added signgam.c to list of files. * libc/reent/Makefile.in: Regenerated.
* 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-01-241-1/+1
| | | | | * libc/include/math.h (signgam): Regress previous fix as it does not handle programs with extern int signgam in them.
* 2001-01-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-01-231-1/+1
| | | | | * libc/include/math.h (signgam): Changed to a macro refering to its location in the reentrant structure.
* * libc/include/sys/unistd.h: Use correct declaration for setdtablesize.Christopher Faylor2001-01-181-1/+1
|
* * libc/include/sys/signal.h: Add some SA_* defines for Cygwin.Christopher Faylor2001-01-121-0/+7
|
* * libc/include/sys/features.h: __CYGWIN__ preferred over __CYGWIN32__DJ Delorie2001-01-121-1/+1
|
* * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'Corinna Vinschen2000-12-141-0/+6
| | | | when __CYGWIN__ is defined.
* 2000-12-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2000-12-121-9/+15
| | | | | | * libc/include/sys/unistd.h: Restored Cygwin _SC constants and moved new constants appropriately so Cygwin will build.
* 2000-12-11 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2000-12-128-62/+931
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Merge RTEMS specific .h files into main libc/include. * libc/sys/rtems/include/signal.h: Removed. * libc/sys/rtems/include/time.h: Removed. * libc/sys/rtems/sys/features.h: Removed. * libc/sys/rtems/sys/sched.h: Removed. * libc/sys/rtems/sys/siginfo.h: Removed. * libc/sys/rtems/sys/signal.h: Removed. * libc/sys/rtems/sys/time.h: Removed. * libc/sys/rtems/sys/times.h: Removed. definitions for time_t and clock_t since these are no longer in time.h. * libc/include/pthread.h: New file. * libc/include/sys/sched.h: New file. * libc/include/sys/features.h: New file. * libc/include/time.h: Removed duplicate definition of clock_t and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality. * libc/sys/linux/sys/types.h: Changed to include * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_. * libc/include/sys/signal.h: Add more complete set of POSIX signal functionality including real-time and threaded signals. * libc/include/sys/types.h: Add clock_t, time_t, struct timespec, and struct itimerspec. Centralizing these makes things cleaner. RTEMS uses 64-bit dev_t. Added numerous primitive definitions for pthreads including macros, pthread_attr_t, pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, pthread_once_t, and pthread_t. * libc/include/sys/unistd.h: Added getlogin_r() prototype. If RTEMS follow POSIX on read(), write() and sbrk() prototype. Feature flags removed and moved to new file <sys/features.h>. Full set of POSIX sysconf() constants
* * libc/include/stdlib.h: Add declarations for `mkstemp' and `mktemp'.Corinna Vinschen2000-12-061-0/+6
|
* 2000-12-04 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2000-12-041-0/+4
| | | | | * libc/include/machine/time.h: RTEMS systems can configure clock tick rate so use sysconf() to ask.
* 2000-12-04 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2000-12-041-0/+1
| | | | * libc/include/sys/times.h: Add reference to POSIX standard.
* 2000-12-04 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2000-12-041-0/+32
| | | | | * libc/include/sys/time.h: Added BSD timer manipulation macros used by RTEMS code.
* 2000-12-04 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2000-12-041-0/+5
| | | | * libc/include/ieeefp.h: Added entries for OpenCores CPUs.
* 2000-12-04 Keith Outwater <vac4050@cae597.rsc.raytheon.com>Jeff Johnston2000-12-041-20/+20
| | | | | * libc/include/sys/errno.h: Added comments on many error numbers. * libc/string/strerror.c: Added some more strings.
* * libc/include/sys/types.h: Change i to `__i' in FD_ZERO macro toCorinna Vinschen2000-11-251-2/+2
| | | | avoid compiler warnings.