OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [include/] [sys/] [unistd.h] - Diff between revs 39 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 56
Line 10... Line 10...
#define __need_size_t
#define __need_size_t
#include <stddef.h>
#include <stddef.h>
 
 
extern char **environ;
extern char **environ;
 
 
/* Cygwin32 _exit does return, others do not */
void    _EXFUN(_exit, (int __status ) _ATTRIBUTE ((noreturn)));
#ifdef __CYGWIN32__
 
void    _EXFUN(_exit, (int _status ));
 
#else
 
void    _EXFUN(_exit, (int _status ) _ATTRIBUTE ((noreturn)));
 
#endif
 
 
 
int     _EXFUN(access,(const char *_path, int _amode ));
int     _EXFUN(access,(const char *__path, int __amode ));
unsigned  _EXFUN(alarm, (unsigned _secs ));
unsigned  _EXFUN(alarm, (unsigned __secs ));
int     _EXFUN(chdir, (const char *_path ));
int     _EXFUN(chdir, (const char *__path ));
int     _EXFUN(chmod, (const char *_path, mode_t _mode ));
int     _EXFUN(chmod, (const char *__path, mode_t __mode ));
int     _EXFUN(chown, (const char *_path, uid_t _owner, gid_t _group ));
int     _EXFUN(chown, (const char *__path, uid_t __owner, gid_t __group ));
int     _EXFUN(close, (int _fildes ));
int     _EXFUN(close, (int __fildes ));
char    _EXFUN(*ctermid, (char *_s ));
char    _EXFUN(*ctermid, (char *__s ));
char    _EXFUN(*cuserid, (char *_s ));
char    _EXFUN(*cuserid, (char *__s ));
int     _EXFUN(dup, (int _fildes ));
int     _EXFUN(dup, (int __fildes ));
int     _EXFUN(dup2, (int _fildes, int _fildes2 ));
int     _EXFUN(dup2, (int __fildes, int __fildes2 ));
int     _EXFUN(execl, (const char *_path, const char *, ... ));
int     _EXFUN(execl, (const char *__path, const char *, ... ));
int     _EXFUN(execle, (const char *_path, const char *, ... ));
int     _EXFUN(execle, (const char *__path, const char *, ... ));
int     _EXFUN(execlp, (const char *_file, const char *, ... ));
int     _EXFUN(execlp, (const char *__file, const char *, ... ));
int     _EXFUN(execv, (const char *_path, char * const _argv[] ));
int     _EXFUN(execv, (const char *__path, char * const __argv[] ));
int     _EXFUN(execve, (const char *_path, char * const _argv[], char * const _envp[] ));
int     _EXFUN(execve, (const char *__path, char * const __argv[], char * const __envp[] ));
int     _EXFUN(execvp, (const char *_file, char * const _argv[] ));
int     _EXFUN(execvp, (const char *__file, char * const __argv[] ));
pid_t   _EXFUN(fork, (void ));
pid_t   _EXFUN(fork, (void ));
long    _EXFUN(fpathconf, (int _fd, int _name ));
long    _EXFUN(fpathconf, (int __fd, int __name ));
int     _EXFUN(fsync, (int _fd));
int     _EXFUN(fsync, (int __fd));
char    _EXFUN(*getcwd, (char *_buf, size_t _size ));
char    _EXFUN(*getcwd, (char *__buf, size_t __size ));
gid_t   _EXFUN(getegid, (void ));
gid_t   _EXFUN(getegid, (void ));
uid_t   _EXFUN(geteuid, (void ));
uid_t   _EXFUN(geteuid, (void ));
gid_t   _EXFUN(getgid, (void ));
gid_t   _EXFUN(getgid, (void ));
int     _EXFUN(getgroups, (int _gidsetsize, gid_t _grouplist[] ));
int     _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] ));
char    _EXFUN(*getlogin, (void ));
char    _EXFUN(*getlogin, (void ));
 
char    _EXFUN(*getpass, (__const char *__prompt));
size_t  _EXFUN(getpagesize, (void));
size_t  _EXFUN(getpagesize, (void));
pid_t   _EXFUN(getpgrp, (void ));
pid_t   _EXFUN(getpgrp, (void ));
pid_t   _EXFUN(getpid, (void ));
pid_t   _EXFUN(getpid, (void ));
pid_t   _EXFUN(getppid, (void ));
pid_t   _EXFUN(getppid, (void ));
uid_t   _EXFUN(getuid, (void ));
uid_t   _EXFUN(getuid, (void ));
int     _EXFUN(isatty, (int _fildes ));
int     _EXFUN(isatty, (int __fildes ));
int     _EXFUN(link, (const char *_path1, const char *_path2 ));
int     _EXFUN(link, (const char *__path1, const char *__path2 ));
off_t   _EXFUN(lseek, (int _fildes, off_t _offset, int _whence ));
int     _EXFUN(nice, (int __nice_value ));
long    _EXFUN(pathconf, (char *_path, int _name ));
off_t   _EXFUN(lseek, (int __fildes, off_t __offset, int __whence ));
 
long    _EXFUN(pathconf, (const char *__path, int __name ));
int     _EXFUN(pause, (void ));
int     _EXFUN(pause, (void ));
int     _EXFUN(pipe, (int _fildes[2] ));
int     _EXFUN(pipe, (int __fildes[2] ));
int     _EXFUN(read, (int _fildes, void *_buf, size_t _nbyte ));
int     _EXFUN(read, (int __fildes, void *__buf, size_t __nbyte ));
int     _EXFUN(rmdir, (const char *_path ));
int     _EXFUN(rmdir, (const char *__path ));
void *  _EXFUN(sbrk,  (size_t incr));
void *  _EXFUN(sbrk,  (size_t __incr));
int     _EXFUN(setgid, (gid_t _gid ));
int     _EXFUN(setgid, (gid_t __gid ));
int     _EXFUN(setpgid, (pid_t _pid, pid_t _pgid ));
int     _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
pid_t   _EXFUN(setsid, (void ));
pid_t   _EXFUN(setsid, (void ));
int     _EXFUN(setuid, (uid_t _uid ));
int     _EXFUN(setuid, (uid_t __uid ));
unsigned _EXFUN(sleep, (unsigned int _seconds ));
unsigned _EXFUN(sleep, (unsigned int __seconds ));
void    _EXFUN(swab, (const void *, void *, ssize_t));
void    _EXFUN(swab, (const void *, void *, ssize_t));
long    _EXFUN(sysconf, (int _name ));
long    _EXFUN(sysconf, (int __name ));
pid_t   _EXFUN(tcgetpgrp, (int _fildes ));
pid_t   _EXFUN(tcgetpgrp, (int __fildes ));
int     _EXFUN(tcsetpgrp, (int _fildes, pid_t _pgrp_id ));
int     _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id ));
char    _EXFUN(*ttyname, (int _fildes ));
char    _EXFUN(*ttyname, (int __fildes ));
int     _EXFUN(unlink, (const char *_path ));
int     _EXFUN(unlink, (const char *__path ));
int     _EXFUN(write, (int _fildes, const void *_buf, size_t _nbyte ));
int     _EXFUN(write, (int __fildes, const void *__buf, size_t __nbyte ));
 
 
/* Provide prototypes for most of the _<systemcall> names that are
/* Provide prototypes for most of the _<systemcall> names that are
   provided in newlib for some compilers.  */
   provided in newlib for some compilers.  */
int     _EXFUN(_close, (int _fildes ));
int     _EXFUN(_close, (int __fildes ));
pid_t   _EXFUN(_fork, (void ));
pid_t   _EXFUN(_fork, (void ));
pid_t   _EXFUN(_getpid, (void ));
pid_t   _EXFUN(_getpid, (void ));
int     _EXFUN(_link, (const char *_path1, const char *_path2 ));
int     _EXFUN(_link, (const char *__path1, const char *__path2 ));
off_t   _EXFUN(_lseek, (int _fildes, off_t _offset, int _whence ));
off_t   _EXFUN(_lseek, (int __fildes, off_t __offset, int __whence ));
int     _EXFUN(_read, (int _fildes, void *_buf, size_t _nbyte ));
int     _EXFUN(_read, (int __fildes, void *__buf, size_t __nbyte ));
void *  _EXFUN(_sbrk,  (size_t incr));
void *  _EXFUN(_sbrk,  (size_t __incr));
int     _EXFUN(_unlink, (const char *_path ));
int     _EXFUN(_unlink, (const char *__path ));
int     _EXFUN(_write, (int _fildes, const void *_buf, size_t _nbyte ));
int     _EXFUN(_write, (int __fildes, const void *__buf, size_t __nbyte ));
 
 
#ifdef __CYGWIN32__
#if defined(__CYGWIN32__) || defined(__rtems__)
unsigned _EXFUN(usleep, (unsigned int _useconds ));
unsigned _EXFUN(usleep, (unsigned int __useconds));
int     _EXFUN(ftruncate, (int fd, off_t length));
int     _EXFUN(ftruncate, (int __fd, off_t __length));
int     _EXFUN(truncate, (const char *, off_t length));
int     _EXFUN(truncate, (const char *, off_t __length));
int     _EXFUN(gethostname, (char *name, size_t len));
int     _EXFUN(gethostname, (char *__name, size_t __len));
char *  _EXFUN(mktemp, (char *));
char *  _EXFUN(mktemp, (char *));
int     _EXFUN(sync, (char *));
int     _EXFUN(sync, (void));
 
int     _EXFUN(readlink, (const char *__path, char *__buf, int __buflen));
 
int     _EXFUN(symlink, (const char *__name1, const char *__name2));
#endif
#endif
 
 
# define        F_OK    0
# define        F_OK    0
# define        R_OK    4
# define        R_OK    4
# define        W_OK    2
# define        W_OK    2
Line 99... Line 98...
 
 
# define        SEEK_SET        0
# define        SEEK_SET        0
# define        SEEK_CUR        1
# define        SEEK_CUR        1
# define        SEEK_END        2
# define        SEEK_END        2
 
 
 
/*
 
 *  RTEMS adheres to a later version of POSIX -- 1003.1b.
 
 *
 
 *  XXX this version string should change.
 
 */
 
 
 
#ifdef __rtems__
 
#ifndef _POSIX_JOB_CONTROL
 
# define _POSIX_JOB_CONTROL     1
 
#endif
 
#ifndef _POSIX_SAVED_IDS
 
# define _POSIX_SAVED_IDS       1
 
#endif
 
# define _POSIX_VERSION 199009L
 
#else
#ifdef __svr4__
#ifdef __svr4__
# define _POSIX_JOB_CONTROL     1
# define _POSIX_JOB_CONTROL     1
# define _POSIX_SAVED_IDS       1
# define _POSIX_SAVED_IDS       1
# define _POSIX_VERSION 199009L
# define _POSIX_VERSION 199009L
#endif
#endif
 
#endif
 
 
#ifdef __CYGWIN32__
#ifdef __CYGWIN32__
# define _POSIX_JOB_CONTROL     1
# define _POSIX_JOB_CONTROL     1
# define _POSIX_SAVED_IDS       0
# define _POSIX_SAVED_IDS       0
# define _POSIX_VERSION         199009L
# define _POSIX_VERSION         199009L
Line 115... Line 130...
 
 
#define STDIN_FILENO    0       /* standard input file descriptor */
#define STDIN_FILENO    0       /* standard input file descriptor */
#define STDOUT_FILENO   1       /* standard output file descriptor */
#define STDOUT_FILENO   1       /* standard output file descriptor */
#define STDERR_FILENO   2       /* standard error file descriptor */
#define STDERR_FILENO   2       /* standard error file descriptor */
 
 
long _EXFUN(sysconf, (int _name));
long _EXFUN(sysconf, (int __name));
 
 
# define        _SC_ARG_MAX     0
# define        _SC_ARG_MAX     0
# define        _SC_CHILD_MAX   1
# define        _SC_CHILD_MAX   1
# define        _SC_CLK_TCK     2
# define        _SC_CLK_TCK     2
# define        _SC_NGROUPS_MAX 3
# define        _SC_NGROUPS_MAX 3
Line 137... Line 152...
# define        _PC_PATH_MAX    4
# define        _PC_PATH_MAX    4
# define        _PC_PIPE_BUF    5
# define        _PC_PIPE_BUF    5
# define        _PC_CHOWN_RESTRICTED    6
# define        _PC_CHOWN_RESTRICTED    6
# define        _PC_NO_TRUNC    7
# define        _PC_NO_TRUNC    7
# define        _PC_VDISABLE    8
# define        _PC_VDISABLE    8
 
# define        _PC_ASYNC_IO    9
 
# define        _PC_PRIO_IO     10
 
# define        _PC_SYNC_IO     11
 
 
# ifndef        _POSIX_SOURCE
# ifndef        _POSIX_SOURCE
#  define       MAXNAMLEN       1024
#  define       MAXNAMLEN       1024
# endif         /* _POSIX_SOURCE */
# endif         /* _POSIX_SOURCE */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.