Commit Graph

61 Commits

Author SHA1 Message Date
Jeff Johnston f75c75183f 2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
* libc/include/sys/unistd.h[__SPU__]: Make fchdir prototype visible.
        * libc/include/sys/stat.h[__SPU__]: Make mknod and lstat prototypes
        visible.
2007-06-20 17:30:58 +00:00
Jeff Johnston a8b08518c1 2007-06-13 Patrick Mansfield <patmans@us.ibm.com>
* libc/include/sys/features.h: Define _POSIX_TIMERS for spu.
        * libc/include/sys/unistd.h: Change usleep prototype to Posix
        form and move outside of OS flag checks.
        * libc/machine/spu/Makefile.am: Add sleep and usleep.
        * libc/machine/spu/Makefile.in: Regenerate.
        * libc/machine/spu/sleep.c: Copy libc/posix/sleep.c.
        * libc/machine/spu/usleep.c: Copy libc/posix/usleep.c.
2007-06-13 17:44:24 +00:00
Corinna Vinschen f4cd2a1d71 * libc/include/sys/unistd.h: Declare confstr for Cygwin.
Define confstr constants for Cygwin.  Add comment.
2007-06-11 17:33:43 +00:00
Corinna Vinschen 0e37a2e6e5 * libc/include/sys/features.h: Add definition of all supported
_POSIX_xxx values for Cygwin.
	* libc/include/sys/types.h (pthread_rwlock_t): Omit definition
	on Cygwin.
	(pthread_rwlockattr_t): Ditto.
	* libc/include/sys/unistd.h: Define all _SC_xxx values as
	required by SUSv3.  Unify formatting.
2007-02-07 17:19:35 +00:00
Corinna Vinschen b1755fe736 * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
(_PC_FILESIZEBITS): Add definition.
	(_PC_2_SYMLINKS): Ditto.
	(_PC_SYMLINK_MAX): Ditto.
2006-11-07 15:33:40 +00:00
Jeff Johnston d31a862312 2005-11-03 Shaun Jackman <sjackman@gmail.com>
* libc/include/sys/unistd.h (readlink, symlink): Provide these
        prototypes by default.
        * libc/sys/linux/include/unistd.h (readlink): Remove this
        prototype.
        * libc/sys/linux/sys/unistd.h (readlink, symlink): New
        prototypes.
2005-11-03 16:52:15 +00:00
Corinna Vinschen 6015cf9fc3 * libc/include/sys/unistd.h: Define getpeereid for Cygwin. 2005-02-23 17:42:07 +00:00
Corinna Vinschen 5e4c05da0b * libc/include/sys/unistd.h: Define fdatasync also for Cygwin. 2005-02-22 15:31:51 +00:00
Jeff Johnston c6ed5a8599 2004-08-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/unistd.h (getpass): Change prototype to use
        const instead of __const.
2004-08-23 18:39:52 +00:00
Corinna Vinschen 9090ec7452 * libc/include/sys/unistd.h (ttyname_r): Add missing comma. 2004-04-20 11:14:02 +00:00
Corinna Vinschen 1c17deea9d * libc/include/sys/unistd.h (ttyname_r): Add declaration for Cygwin. 2004-04-20 11:09:36 +00:00
Corinna Vinschen 54c7940fe5 * libc/include/sys/unistd.h (sync): Define void on Cygwin according
to SUSv3.
2004-04-10 20:39:47 +00:00
Christopher Faylor 733309f576 * libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
* libc/include/sys/reent.h (__getreent): Protect against possibly being
defined.
* libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
2004-02-09 02:22:01 +00:00
Jeff Johnston 9f13ccb356 2004-01-08 Joel Sherrill <joel@oarcorp.com>
* libc/sys/rtems/sys/queue.h: New file.
        * libc/include/sys/signal.h: Reflect renumbering of signals to
        fit into 32-bit mask.
        * libc/include/sys/unistd.h: Add fdatasync() prototype.
        * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
        required.  In particular, add the reentrant variants of libc calls.
        * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
2004-01-08 19:25:21 +00:00
Jeff Johnston 0a707c79e9 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
* libc/include/fcntl.h: Declare syscalls only when building newlib.
        * libc/include/unistd.h: Ditto.
        * libc/include/stat.h: Ditto.  Also declare struct stat64.
2003-11-26 19:15:17 +00:00
Jeff Johnston a472290f3e 2003-11-18 Corinna Vinschen <corinna@vinschen.de>
* libc/include/sys/fcntl.h: Declare _open64.
        * libc/include/sys/stat.h: Declare _fstat64.
        * libc/include/sys/unistd.h: Declare _lseek64.
2003-11-18 19:17:17 +00:00
Corinna Vinschen 080ef41135 * libc/include/sys/unistd.h: Declare function daemon for Cygwin. 2003-09-10 15:53:44 +00:00
Joern Rennecke e0bec12f55 * libc/include/sys/unistd.h (ftruncate, truncate): Also declare
for __sh__.
	* libc/sys/sh/Makefile.am (lib_a_SOURCES): Add ftruncate.c and
	truncate.c.
	* libc/sys/sh/Makefile.in: Regenerate.
	* libc/sys/sh/sys/syscall.h: (SYS_truncate, SYS_ftruncate): Define.
	* libc/sys/sh/ftruncate.c: New file.
	* libc/sys/sh/truncate.c: Likewise.
2003-07-10 15:31:30 +00:00
Christopher Faylor cfd2c7bea8 * newlib/libc/include/sys/unistd.h: add declaration for gethostid on Cygwin. 2003-04-15 20:13:49 +00:00
Corinna Vinschen 2a940c1a22 * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
with internal (_fpos_t and _off_t) datatypes when compiling newlib.
	* libc/include/sys/unistd.h: Declare _lseek using _off_t.
	* libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t.
	* libc/stdio/fseeko.c (fseeko): Ditto.
	* libc/stdio/ftello.c (ftello): Ditto.
	* libc/stdio/stdio.c (__swrite): Ditto.
	(__sseek): Ditto.
	* libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t.
	* libc/stdio/fseek.c (fseek): Ditto.
	* libc/stdio/fsetpos.c (fsetpos): Ditto.
	* libc/stdio/ftell.c (ftell): Ditto.
	* libc/stdio/local.h: Declare __sseek using _off_t.
2003-03-14 18:39:05 +00:00
Corinna Vinschen f882fd15b0 * libc/include/pwd.h: Add guards to avoid type clashes when compiling
Cygwin.
	* libc/include/sys/stat.h: Ditto.
	* libc/include/sys/unistd.h: Ditto.
	* libc/sys/cygwin/sys/dirent.h: Ditto.
2003-03-09 21:08:51 +00:00
Christopher Faylor 01d615435c * libc/include/sys/unistd.h: Guard getopt.h call to force only declaration of
getopt and avoid getopt_long declaration.
* libc/sys/cygwin/include/unistd.h: Remove.
2003-03-08 04:57:41 +00:00
Corinna Vinschen 8bbcd9a1a5 * libc/include/sys/unistd.h: Add setregid and setreuid declarations
for Cygwin.
2003-01-24 15:25:24 +00:00
Christopher Faylor f9e41155f0 * libc/include/sys/unistd.h: Add rresvport declaration for cygwin. 2003-01-20 15:28:02 +00:00
Christopher Faylor 5c581ecaf6 * libc/include/sys/unistd.h: Under cygwin, just include getopt.h rather than
defining getopt directly.
2002-12-28 23:20:47 +00:00
Christopher Faylor a94b60cea4 * libc/include/sys/unistd.h: Add getsid declaration for cygwin. 2002-08-18 06:08:39 +00:00
Jeff Johnston ad5527663e 2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
*  Makefile.am: Move cmath stuff into libc/sys/linux.
        *  Makefile.in: Regenerated.
        *  configure.host: Default -DMB_CAPABLE for x86-linux.
        *  libc/include/reent.h: Define _sbrk to take signed int argument.
        *  libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
        *  libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
        make locale name checking more efficient.  Also allow "C-ISO-8859-1"
        locale for LC_CTYPE and LC_MESSAGES.
        *  libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
        *  libc/sys/linux/brk.c: Change sbrk prototype.
        *  libc/sys/linux/include/time.h: Remove Cygwin stuff and
        include <sys/features.h>.
        (CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
        (CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
        *  libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
        with a few local additions.
        *  libc/sys/linux/sys/features.h: New file.
        *  libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
        to take signed argument.
        *  libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
        prototypes to take signed size argument.
2002-08-17 05:19:18 +00:00
Corinna Vinschen b96332ce3c * libc/include/sys/unistd.h: Add setgroups prototype for Cygwin. 2002-07-30 11:35:03 +00:00
Thomas Fitzsimmons 9b022d6db8 * libc/argz/argz_replace.c: Include buf_findstr.h.
* libc/argz/buf_findstr.c: Likewise.
	* libc/argz/envz_entry.c: Include buf_findstr.h.  Cast return
	value to (char *).
	* libc/argz/envz_get.c: Likewise.
	* libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
	* libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
	* libc/stdlib/getsubopt.3: New file.
	* libc/stdlib/getsubopt.c: New file.
	* libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
	Change esp to ebp.
2002-07-19 20:36:09 +00:00
Christopher Faylor 4b3f6588fb * libc/include/sys/unistd.h: Define getdomainname under cygwin. 2002-05-04 02:22:01 +00:00
Jeff Johnston 29798f0d57 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>
*  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-29 19:31:23 +00:00
Jeff Johnston 6e6cd5bde6 2002-04-04 Jeff Johnston <jjohnstn@redhat.com>
* 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-04 22:41:11 +00:00
Christopher Faylor 355b664e8c * libc/include/sys/unistd.h: Correct ualarm declaration. 2001-12-06 19:00:14 +00:00
Christopher Faylor ab6341231f * libc/include/sys/types.h: Define useconds_t.
* libc/include/sys/ulimit.h: Declare ualarm.
2001-11-28 00:16:58 +00:00
Corinna Vinschen c7dd4f9511 * libc/include/sys/unistd.h: Add prototypes for endusershell(),
getusershell(), iruserok(), revoke(), ruserok() and setusershell()
	when __CYGWIN__ is defined.
	* libc/sys/cygwin/sys/utmp.h: Add prototypes for login_tty() and
	logwtmp().
2001-11-05 18:06:24 +00:00
Corinna Vinschen b4e98df6bc Add __rtems__ as system defining fchdir(). 2001-10-17 19:28:35 +00:00
Corinna Vinschen c711831918 * libc/include/sys/unistd.h: Add prototype for fchdir() when
__CYGWIN__ is defined.
2001-10-17 18:16:43 +00:00
Jeff Johnston 348c5e06c2 2001-08-29 Joel Sherrill <joel@OARcorp.com>
* 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 20:09:31 +00:00
Jeff Johnston 9e2a4ef876 2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
* 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 *.
2001-08-29 19:47:43 +00:00
Christopher Faylor ca60ed4748 * libc/include/sys/stat.h: Revert March 3, Cygwin change.
* libc/include/sys/Ditto.h: Ditto.
2001-05-08 01:15:06 +00:00
Christopher Faylor cb4cc28370 * libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OK
definitions in sys/file.h.
2001-04-22 23:52:06 +00:00
Christopher Faylor a25b8414ac * libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only). 2001-04-13 15:37:47 +00:00
Christopher Faylor d17d6d4286 * libc/include/sys/types.h (BSD int typedefs): Guard with _BSDTYPES_DEFINED
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).
2001-03-20 19:27:56 +00:00
Corinna Vinschen c7ee75cd2e * libc/include/sys/unistd.h: Add _PC_POSIX_PERMISSONS and
_PC_POSIX_SECURITY constants for Cygwin.
2001-03-19 10:54:55 +00:00
Jeff Johnston cfc05d9675 Mon Mar 5 21:48:54 2001 J"orn Rennecke <amylaar@redhat.com>
* 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.
2001-03-06 01:04:43 +00:00
Christopher Faylor 658b5db941 * libc/include/sys/stat.h: Use special defines for executable stat bits when
compiling for Cygwin.
* libc/include/sys/unistd.h: Use special define for X_OK when compiling for
Cygwin.
2001-03-05 05:13:06 +00:00
Jeff Johnston 8915d10a26 2001-02-08 Edward M. Lee <tailbert@yahoo.com>
* 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-09 00:13:54 +00:00
Christopher Faylor d0319c3b5b * libc/include/sys/unistd.h: Use correct declaration for setdtablesize. 2001-01-18 04:24:03 +00:00
Corinna Vinschen 0985d43f4c * libc/include/sys/unistd.h: Add declarations for `chroot' and `getwd'
when __CYGWIN__ is defined.
2000-12-14 01:07:23 +00:00
Jeff Johnston cbd1933690 2000-12-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/unistd.h: Restored Cygwin _SC
        constants and moved new constants appropriately
        so Cygwin will build.
2000-12-12 23:41:23 +00:00