summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
Commit message (Collapse)AuthorAgeFilesLines
* * 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/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.
* * 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-02-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-02-221-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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-151-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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 Edward M. Lee <tailbert@yahoo.com>Jeff Johnston2001-02-093-12/+5
| | | | | | | | | * 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-01-31 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-01-311-0/+5
| | | | | | | | | * 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.
* * 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-125-50/+529
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* 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 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.
* 2000-11-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2000-11-211-4/+0
| | | | | | | | * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN. * libc/include/dirent.h: Added definition of MAXNAMLEN if not defined by sys/dirent.h. * libc/posix/execvp.c: Added include of dirent.h to get MAXNAMLEN value which used to be in unistd.h.
* * libc/include/sys/types.h: Change type of i to `size_t' inCorinna Vinschen2000-11-061-1/+1
| | | | FD_ZERO macro to avoid compiler warnings.
* Fix spelling error.Christopher Faylor2000-11-051-1/+1
|
* * libc/include/sys/unistd.h: Add defines for sysconf valuesCorinna Vinschen2000-10-241-22/+26
| | | | | _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and _SC_AVPHYS_PAGES.
* * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize declarationsChristopher Faylor2000-10-101-0/+2
| | | | for __CYGWIN__.
* 2000-09-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2000-09-061-1/+6
| | | | | * libc/include/sys/types.h (FD_ZERO): Remove call to bzero and inline code to prevent having to include another header file.
* 2000-09-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2000-09-051-1/+1
| | | | | * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to make O_NDELAY and O_NONBLOCK have the same value.
* * libc/include/sys/unistd.h (environ): this one isn't from theDJ Delorie2000-08-251-1/+1
| | | | DLL, no __IMPORT
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions like x << y-z to the equivalent x << (y-z). (d2b): changed if statements with assignment to perform the assignment prior to the if check. * libc/reent/reent.c: included stdlib.h for "_free_r" prototype. * libc/unix/getpass.c (getpass): moved "echo" assignment out of if. * libc/unix/ttyname.c: included string.h for "strcpy" prototype. * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and || precedence. * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c). Added "_execve" prototype (for execl.c, execle.c, execv.c, and execve.c). * libc/posix/popen.c (popen): added parentheses to clarify && and || precedence. * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to clarify && and || precendence (and to remove pascalism). * libm/math/e_sinh.c (__ieee754_sinh): Ditto. * libm/math/s_infconst.c: added another pair of braces to all initializers for __infinity (need three: for __infinity[1] array, for union __dmath, and for i[2]).
* * libc/include/sys/config.h: define __IMPORT appropriatelyDJ Delorie2000-08-013-8/+17
| | | | | | | | | | * libc/include/ctype.h (_ctype_): use __IMPORT * libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto * libc/include/math.h (__mb_cur_max): ditto * libc/include/time.h (_timezone, _daylight, _tzname): ditto * libc/include/unctrl.h (__unctrl, __unctrllen): ditto * libc/include/errno.h (_sys_errlist, _sys_nerr): ditto * libc/include/unistd.h (environ): ditto
* Tue Jun 27 15:49:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>Jeff Johnston2000-06-271-1/+8
| | | | | | * configure.host: Add support for AVR target. * libc/include/machine/ieeefp.h: Likewise. * libc/include/sys/config.h: Likewise.
* Tue Jun 20 14:30:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-06-201-1/+1
| | | | | | | * libc/include/sys/reent.h (_rand_next): Added __extension__ qualifier as long long type is not strict ANSI. * libc/stdlib/rand.c (rand): Added __extension__ qualifier to long long constant.
* * libc/include/sys/unistd.h: Add prototypes for `seteuid' andCorinna Vinschen2000-06-161-0/+4
| | | | `setegid' provided by Cygwin.
* Fri Jun 9 14:28:00 2000 Jeff Johnston <jjohnstn@cygnus.com>Jeff Johnston2000-06-091-3/+5
| | | | | | | | * libc/include/sys/reent.h (_rand_next): Changed to unsigned long long and moved to end of _reent struct in _new union. (_REENT_INIT): Changed to move _rand_next initialization. * libc/stdlib/rand.c (rand): Changed to use unsigned long long linear congruential algorithm that is used by DJGPP.
* Thu Jun 8 21:18:00 2000 Ranjith Kumaran <ranjith@cygnus.com>Ranjith Kumaran2000-06-091-0/+6
| | | | | * libc/include/stdlib.h: Set RAND_MAX to __RAND_MAX. * libc/include/sys/config.h: Define __RAND_MAX.
* * libc/include/ctype.h: __CYGWIN32__ -> __CYGWIN__Christopher Faylor2000-05-305-9/+9
| | | | | | | | | | | | | | | * libc/include/malloc.h: Ditto. * libc/include/process.h: Ditto. * libc/include/stdio.h: Ditto. * libc/include/stdlib.h: Ditto. * libc/include/time.h: Ditto. * libc/include/machine/setjmp.h: Ditto. * libc/include/sys/errno.h: Ditto. * libc/include/sys/signal.h: Ditto. * libc/include/sys/stat.h: Ditto. * libc/include/sys/time.h: Ditto. * libc/include/sys/unistd.h: Ditto. * libc/include/string.h: Ditto. strsignal should return a const char *.
* * libc/include/sys/errno.h: Add define for ENOSHARE ("No suchCorinna Vinschen2000-05-031-1/+2
| | | | host or network path") used by cygwin. Add some comments.
* * newlib/libc/include/sys/unistd.h: Add prototypes forCorinna Vinschen2000-04-021-0/+3
| | | | | | | | | | | | | | fchmod, fchown, lchown. * winsup/cygwin/syscalls.cc (chown_worker): Use previous uid/gid if new uid/gid is -1. New static function with chown functionality. (chown): Call chown_worker with SYMLINK_FOLLOW. (fchown): New function. Call chown_worker with SYMLINK_FOLLOW. (lchown): New function. Call chown_worker with SYMLINK_IGNORE. * cygwin.din: Add symbols for fchown, lchown. * path.cc (symlink): Call `set_file_attribute()' and `SetFileAttributeA()' instead of `chmod()' to set uid/gid correct.
* Thu Feb 24 11:43:00 2000 Ran Cabell <rcabell@norfolk.infi.net>Ranjith Kumaran2000-02-241-0/+1
| | | | | | | | | * libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS. * libm/mathfp/sf_atan.c: Ditto. Thu Feb 24 11:39:00 2000 Joel Sherrill <joel@OARcorp.com> * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-1719-0/+1668