Newlib: update to version 3.0.0
This commit is contained in:
parent
a3d94f168b
commit
875aaabebe
50 changed files with 1536 additions and 1651 deletions
|
@ -199,27 +199,27 @@ struct eflock {
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h> /* sigh. for the mode bits for open/creat */
|
||||
|
||||
extern int open _PARAMS ((const char *, int, ...));
|
||||
extern int open (const char *, int, ...);
|
||||
#if __ATFILE_VISIBLE
|
||||
extern int openat _PARAMS ((int, const char *, int, ...));
|
||||
extern int openat (int, const char *, int, ...);
|
||||
#endif
|
||||
extern int creat _PARAMS ((const char *, mode_t));
|
||||
extern int fcntl _PARAMS ((int, int, ...));
|
||||
extern int creat (const char *, mode_t);
|
||||
extern int fcntl (int, int, ...);
|
||||
#if __BSD_VISIBLE
|
||||
extern int flock _PARAMS ((int, int));
|
||||
extern int flock (int, int);
|
||||
#endif
|
||||
#if __GNU_VISIBLE
|
||||
#include <sys/time.h>
|
||||
extern int futimesat _PARAMS ((int, const char *, const struct timeval *));
|
||||
extern int futimesat (int, const char *, const struct timeval *);
|
||||
#endif
|
||||
|
||||
/* Provide _<systemcall> prototypes for functions provided by some versions
|
||||
of newlib. */
|
||||
#ifdef _COMPILING_NEWLIB
|
||||
extern int _open _PARAMS ((const char *, int, ...));
|
||||
extern int _fcntl _PARAMS ((int, int, ...));
|
||||
extern int _open (const char *, int, ...);
|
||||
extern int _fcntl (int, int, ...);
|
||||
#ifdef __LARGE64_FILES
|
||||
extern int _open64 _PARAMS ((const char *, int, ...));
|
||||
extern int _open64 (const char *, int, ...);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -385,7 +385,7 @@
|
|||
#endif
|
||||
|
||||
#if __GNUC_PREREQ__(3, 1) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800)
|
||||
#define __always_inline __attribute__((__always_inline__))
|
||||
#define __always_inline __inline__ __attribute__((__always_inline__))
|
||||
#else
|
||||
#define __always_inline
|
||||
#endif
|
||||
|
|
|
@ -12,12 +12,12 @@ extern "C" {
|
|||
|
||||
#ifndef _REENT_ONLY
|
||||
#define errno (*__errno())
|
||||
extern int *__errno _PARAMS ((void));
|
||||
extern int *__errno (void);
|
||||
#endif
|
||||
|
||||
/* Please don't use these variables directly.
|
||||
Use strerror instead. */
|
||||
extern __IMPORT _CONST char * _CONST _sys_errlist[];
|
||||
extern __IMPORT const char * const _sys_errlist[];
|
||||
extern __IMPORT int _sys_nerr;
|
||||
#ifdef __CYGWIN__
|
||||
extern __IMPORT const char * const sys_errlist[];
|
||||
|
|
|
@ -44,34 +44,34 @@
|
|||
#define ICONV_NLS_FROM 0
|
||||
#define ICONV_NLS_TO 1
|
||||
|
||||
_VOID
|
||||
_EXFUN(_iconv_nls_get_state, (iconv_t cd, mbstate_t *ps, int direction));
|
||||
void
|
||||
_iconv_nls_get_state (iconv_t cd, mbstate_t *ps, int direction);
|
||||
|
||||
int
|
||||
_EXFUN(_iconv_nls_set_state, (iconv_t cd, mbstate_t *ps, int direction));
|
||||
_iconv_nls_set_state (iconv_t cd, mbstate_t *ps, int direction);
|
||||
|
||||
int
|
||||
_EXFUN(_iconv_nls_is_stateful, (iconv_t cd, int direction));
|
||||
_iconv_nls_is_stateful (iconv_t cd, int direction);
|
||||
|
||||
int
|
||||
_EXFUN(_iconv_nls_get_mb_cur_max, (iconv_t cd, int direction));
|
||||
_iconv_nls_get_mb_cur_max (iconv_t cd, int direction);
|
||||
|
||||
size_t
|
||||
_EXFUN(_iconv_nls_conv, (struct _reent *rptr, iconv_t cd,
|
||||
_CONST char **inbuf, size_t *inbytesleft,
|
||||
char **outbuf, size_t *outbytesleft));
|
||||
_iconv_nls_conv (struct _reent *rptr, iconv_t cd,
|
||||
const char **inbuf, size_t *inbytesleft,
|
||||
char **outbuf, size_t *outbytesleft);
|
||||
|
||||
_CONST char *
|
||||
_EXFUN(_iconv_nls_construct_filename, (struct _reent *rptr, _CONST char *file,
|
||||
_CONST char *dir, _CONST char *ext));
|
||||
const char *
|
||||
_iconv_nls_construct_filename (struct _reent *rptr, const char *file,
|
||||
const char *dir, const char *ext);
|
||||
|
||||
|
||||
int
|
||||
_EXFUN(_iconv_nls_open, (struct _reent *rptr, _CONST char *encoding,
|
||||
iconv_t *towc, iconv_t *fromwc, int flag));
|
||||
_iconv_nls_open (struct _reent *rptr, const char *encoding,
|
||||
iconv_t *towc, iconv_t *fromwc, int flag);
|
||||
|
||||
char *
|
||||
_EXFUN(_iconv_resolve_encoding_name, (struct _reent *rptr, _CONST char *ca));
|
||||
_iconv_resolve_encoding_name (struct _reent *rptr, const char *ca);
|
||||
|
||||
#endif /* __SYS_ICONVNLS_H__ */
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ struct __sFILE_fake {
|
|||
/* Following is needed both in libc/stdio and libc/stdlib so we put it
|
||||
* here instead of libc/stdio/local.h where it was previously. */
|
||||
|
||||
extern _VOID _EXFUN(__sinit,(struct _reent *));
|
||||
extern void __sinit (struct _reent *);
|
||||
|
||||
# define _REENT_SMALL_CHECK_INIT(ptr) \
|
||||
do \
|
||||
|
@ -192,15 +192,15 @@ struct __sFILE {
|
|||
#endif
|
||||
|
||||
/* operations */
|
||||
_PTR _cookie; /* cookie passed to io functions */
|
||||
void * _cookie; /* cookie passed to io functions */
|
||||
|
||||
_READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
|
||||
char *, _READ_WRITE_BUFSIZE_TYPE));
|
||||
_READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
|
||||
_READ_WRITE_RETURN_TYPE (*_read) (struct _reent *, void *,
|
||||
char *, _READ_WRITE_BUFSIZE_TYPE);
|
||||
_READ_WRITE_RETURN_TYPE (*_write) (struct _reent *, void *,
|
||||
const char *,
|
||||
_READ_WRITE_BUFSIZE_TYPE));
|
||||
_fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
|
||||
int _EXFNPTR(_close, (struct _reent *, _PTR));
|
||||
_READ_WRITE_BUFSIZE_TYPE);
|
||||
_fpos_t (*_seek) (struct _reent *, void *, _fpos_t, int);
|
||||
int (*_close) (struct _reent *, void *);
|
||||
|
||||
/* separate buffer for long sequences of ungetc() */
|
||||
struct __sbuf _ub; /* ungetc buffer */
|
||||
|
@ -248,15 +248,15 @@ struct __sFILE64 {
|
|||
struct _reent *_data;
|
||||
|
||||
/* operations */
|
||||
_PTR _cookie; /* cookie passed to io functions */
|
||||
void * _cookie; /* cookie passed to io functions */
|
||||
|
||||
_READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,
|
||||
char *, _READ_WRITE_BUFSIZE_TYPE));
|
||||
_READ_WRITE_RETURN_TYPE _EXFNPTR(_write, (struct _reent *, _PTR,
|
||||
_READ_WRITE_RETURN_TYPE (*_read) (struct _reent *, void *,
|
||||
char *, _READ_WRITE_BUFSIZE_TYPE);
|
||||
_READ_WRITE_RETURN_TYPE (*_write) (struct _reent *, void *,
|
||||
const char *,
|
||||
_READ_WRITE_BUFSIZE_TYPE));
|
||||
_fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int));
|
||||
int _EXFNPTR(_close, (struct _reent *, _PTR));
|
||||
_READ_WRITE_BUFSIZE_TYPE);
|
||||
_fpos_t (*_seek) (struct _reent *, void *, _fpos_t, int);
|
||||
int (*_close) (struct _reent *, void *);
|
||||
|
||||
/* separate buffer for long sequences of ungetc() */
|
||||
struct __sbuf _ub; /* ungetc buffer */
|
||||
|
@ -275,7 +275,7 @@ struct __sFILE64 {
|
|||
int _flags2; /* for future use */
|
||||
|
||||
_off64_t _offset; /* current lseek offset */
|
||||
_fpos64_t _EXFNPTR(_seek64, (struct _reent *, _PTR, _fpos64_t, int));
|
||||
_fpos64_t (*_seek64) (struct _reent *, void *, _fpos64_t, int);
|
||||
|
||||
#ifndef __SINGLE_THREAD__
|
||||
_flock_t _lock; /* for thread-safety locking */
|
||||
|
@ -391,7 +391,7 @@ struct _reent
|
|||
|
||||
struct _mprec *_mp;
|
||||
|
||||
void _EXFNPTR(__cleanup, (struct _reent *));
|
||||
void (*__cleanup) (struct _reent *);
|
||||
|
||||
int _gamma_signgam;
|
||||
|
||||
|
@ -584,7 +584,7 @@ struct _reent
|
|||
|
||||
int __sdidinit; /* 1 means stdio has been init'd */
|
||||
|
||||
void _EXFNPTR(__cleanup, (struct _reent *));
|
||||
void (*__cleanup) (struct _reent *);
|
||||
|
||||
/* used by mprec routines */
|
||||
struct _Bigint *_result;
|
||||
|
@ -773,15 +773,15 @@ extern __FILE __sf[3];
|
|||
#endif
|
||||
|
||||
extern struct _reent *_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
|
||||
extern struct _reent *_CONST _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
|
||||
extern struct _reent *const _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
|
||||
|
||||
void _reclaim_reent _PARAMS ((struct _reent *));
|
||||
void _reclaim_reent (struct _reent *);
|
||||
|
||||
/* #define _REENT_ONLY define this to get only reentrant routines */
|
||||
|
||||
#if defined(__DYNAMIC_REENT__) && !defined(__SINGLE_THREAD__)
|
||||
#ifndef __getreent
|
||||
struct _reent * _EXFUN(__getreent, (void));
|
||||
struct _reent * __getreent (void);
|
||||
#endif
|
||||
# define _REENT (__getreent())
|
||||
#else /* __SINGLE_THREAD__ || !__DYNAMIC_REENT__ */
|
||||
|
|
|
@ -11,7 +11,7 @@ struct rusage {
|
|||
struct timeval ru_stime; /* system time used */
|
||||
};
|
||||
|
||||
int _EXFUN(getrusage, (int, struct rusage*));
|
||||
int getrusage (int, struct rusage*);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,14 +1,3 @@
|
|||
/* select.h
|
||||
Copyright 1998, 1999, 2000, 2001, 2005, 2009 Red Hat, Inc.
|
||||
|
||||
Written by Geoffrey Noer <noer@cygnus.com>
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
This software is a copyrighted work licensed under the terms of the
|
||||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||
details. */
|
||||
|
||||
#ifndef _SYS_SELECT_H
|
||||
#define _SYS_SELECT_H
|
||||
|
||||
|
|
|
@ -161,36 +161,34 @@ typedef struct sigaltstack {
|
|||
#define SIG_BLOCK 1 /* set of signals to block */
|
||||
#define SIG_UNBLOCK 2 /* set of signals to, well, unblock */
|
||||
|
||||
int _EXFUN(sigprocmask, (int how, const sigset_t *set, sigset_t *oset));
|
||||
int sigprocmask (int how, const sigset_t *set, sigset_t *oset);
|
||||
#endif
|
||||
|
||||
#if __POSIX_VISIBLE >= 199506
|
||||
int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset));
|
||||
int pthread_sigmask (int how, const sigset_t *set, sigset_t *oset);
|
||||
#endif
|
||||
|
||||
#if defined(__CYGWIN__) || defined(__rtems__)
|
||||
#ifdef _COMPILING_NEWLIB
|
||||
int _EXFUN(_kill, (pid_t, int));
|
||||
int _kill (pid_t, int);
|
||||
#endif /* _COMPILING_NEWLIB */
|
||||
#endif /* __CYGWIN__ || __rtems__ */
|
||||
|
||||
#if __POSIX_VISIBLE
|
||||
int _EXFUN(kill, (pid_t, int));
|
||||
int kill (pid_t, int);
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4
|
||||
int _EXFUN(killpg, (pid_t, int));
|
||||
int killpg (pid_t, int);
|
||||
#endif
|
||||
#if __POSIX_VISIBLE
|
||||
int _EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *));
|
||||
int _EXFUN(sigaddset, (sigset_t *, const int));
|
||||
int _EXFUN(sigdelset, (sigset_t *, const int));
|
||||
int _EXFUN(sigismember, (const sigset_t *, int));
|
||||
int _EXFUN(sigfillset, (sigset_t *));
|
||||
int _EXFUN(sigemptyset, (sigset_t *));
|
||||
int _EXFUN(sigpending, (sigset_t *));
|
||||
int _EXFUN(sigsuspend, (const sigset_t *));
|
||||
int _EXFUN(sigwait, (const sigset_t *set, int *sig));
|
||||
int sigaction (int, const struct sigaction *, struct sigaction *);
|
||||
int sigaddset (sigset_t *, const int);
|
||||
int sigdelset (sigset_t *, const int);
|
||||
int sigismember (const sigset_t *, int);
|
||||
int sigfillset (sigset_t *);
|
||||
int sigemptyset (sigset_t *);
|
||||
int sigpending (sigset_t *);
|
||||
int sigsuspend (const sigset_t *);
|
||||
int sigwait (const sigset_t *set, int *sig);
|
||||
|
||||
#if !defined(__CYGWIN__) && !defined(__rtems__)
|
||||
/* These depend upon the type of sigset_t, which right now
|
||||
|
@ -211,21 +209,21 @@ int _EXFUN(sigwait, (const sigset_t *set, int *sig));
|
|||
value. */
|
||||
#if __XSI_VISIBLE && !defined(__INSIDE_CYGWIN__)
|
||||
# ifdef __GNUC__
|
||||
int _EXFUN(sigpause, (int)) __asm__ (__ASMNAME ("__xpg_sigpause"));
|
||||
int sigpause (int) __asm__ (__ASMNAME ("__xpg_sigpause"));
|
||||
# else
|
||||
int _EXFUN(__xpg_sigpause, (int));
|
||||
int __xpg_sigpause (int);
|
||||
# define sigpause __xpg_sigpause
|
||||
# endif
|
||||
#elif __BSD_VISIBLE
|
||||
int _EXFUN(sigpause, (int));
|
||||
int sigpause (int);
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4 || __POSIX_VISIBLE >= 200809
|
||||
int _EXFUN(sigaltstack, (const stack_t *__restrict, stack_t *__restrict));
|
||||
int sigaltstack (const stack_t *__restrict, stack_t *__restrict);
|
||||
#endif
|
||||
|
||||
#if __POSIX_VISIBLE >= 199506
|
||||
int _EXFUN(pthread_kill, (pthread_t thread, int sig));
|
||||
int pthread_kill (pthread_t thread, int sig);
|
||||
#endif
|
||||
|
||||
#if __POSIX_VISIBLE >= 199309
|
||||
|
@ -233,12 +231,11 @@ int _EXFUN(pthread_kill, (pthread_t thread, int sig));
|
|||
/* 3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76
|
||||
NOTE: P1003.1c/D10, p. 39 adds sigwait(). */
|
||||
|
||||
int _EXFUN(sigwaitinfo, (const sigset_t *set, siginfo_t *info));
|
||||
int _EXFUN(sigtimedwait,
|
||||
(const sigset_t *set, siginfo_t *info, const struct timespec *timeout)
|
||||
);
|
||||
int sigwaitinfo (const sigset_t *set, siginfo_t *info);
|
||||
int sigtimedwait (const sigset_t *set, siginfo_t *info,
|
||||
const struct timespec *timeout);
|
||||
/* 3.3.9 Queue a Signal to a Process, P1003.1b-1993, p. 78 */
|
||||
int _EXFUN(sigqueue, (pid_t pid, int signo, const union sigval value));
|
||||
int sigqueue (pid_t pid, int signo, const union sigval value);
|
||||
|
||||
#endif /* __POSIX_VISIBLE >= 199309 */
|
||||
|
||||
|
|
|
@ -144,41 +144,41 @@ struct stat
|
|||
#define UTIME_OMIT -1L
|
||||
#endif
|
||||
|
||||
int _EXFUN(chmod,( const char *__path, mode_t __mode ));
|
||||
int _EXFUN(fchmod,(int __fd, mode_t __mode));
|
||||
int _EXFUN(fstat,( int __fd, struct stat *__sbuf ));
|
||||
int _EXFUN(mkdir,( const char *_path, mode_t __mode ));
|
||||
int _EXFUN(mkfifo,( const char *__path, mode_t __mode ));
|
||||
int _EXFUN(stat,( const char *__restrict __path, struct stat *__restrict __sbuf ));
|
||||
mode_t _EXFUN(umask,( mode_t __mask ));
|
||||
int chmod (const char *__path, mode_t __mode );
|
||||
int fchmod (int __fd, mode_t __mode);
|
||||
int fstat (int __fd, struct stat *__sbuf );
|
||||
int mkdir (const char *_path, mode_t __mode );
|
||||
int mkfifo (const char *__path, mode_t __mode );
|
||||
int stat (const char *__restrict __path, struct stat *__restrict __sbuf );
|
||||
mode_t umask (mode_t __mask );
|
||||
|
||||
#if defined (__SPU__) || defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
|
||||
int _EXFUN(lstat,( const char *__restrict __path, struct stat *__restrict __buf ));
|
||||
int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
|
||||
int lstat (const char *__restrict __path, struct stat *__restrict __buf );
|
||||
int mknod (const char *__path, mode_t __mode, dev_t __dev );
|
||||
#endif
|
||||
|
||||
#if __ATFILE_VISIBLE && !defined(__INSIDE_CYGWIN__)
|
||||
int _EXFUN(fchmodat, (int, const char *, mode_t, int));
|
||||
int _EXFUN(fstatat, (int, const char *__restrict , struct stat *__restrict, int));
|
||||
int _EXFUN(mkdirat, (int, const char *, mode_t));
|
||||
int _EXFUN(mkfifoat, (int, const char *, mode_t));
|
||||
int _EXFUN(mknodat, (int, const char *, mode_t, dev_t));
|
||||
int _EXFUN(utimensat, (int, const char *, const struct timespec *, int));
|
||||
int fchmodat (int, const char *, mode_t, int);
|
||||
int fstatat (int, const char *__restrict , struct stat *__restrict, int);
|
||||
int mkdirat (int, const char *, mode_t);
|
||||
int mkfifoat (int, const char *, mode_t);
|
||||
int mknodat (int, const char *, mode_t, dev_t);
|
||||
int utimensat (int, const char *, const struct timespec *, int);
|
||||
#endif
|
||||
#if __POSIX_VISIBLE >= 200809 && !defined(__INSIDE_CYGWIN__)
|
||||
int _EXFUN(futimens, (int, const struct timespec *));
|
||||
int futimens (int, const struct timespec *);
|
||||
#endif
|
||||
|
||||
/* Provide prototypes for most of the _<systemcall> names that are
|
||||
provided in newlib for some compilers. */
|
||||
#ifdef _COMPILING_NEWLIB
|
||||
int _EXFUN(_fstat,( int __fd, struct stat *__sbuf ));
|
||||
int _EXFUN(_stat,( const char *__restrict __path, struct stat *__restrict __sbuf ));
|
||||
int _EXFUN(_mkdir,( const char *_path, mode_t __mode ));
|
||||
int _fstat (int __fd, struct stat *__sbuf );
|
||||
int _stat (const char *__restrict __path, struct stat *__restrict __sbuf );
|
||||
int _mkdir (const char *_path, mode_t __mode );
|
||||
#ifdef __LARGE64_FILES
|
||||
struct stat64;
|
||||
int _EXFUN(_stat64,( const char *__restrict __path, struct stat64 *__restrict __sbuf ));
|
||||
int _EXFUN(_fstat64,( int __fd, struct stat64 *__sbuf ));
|
||||
int _stat64 (const char *__restrict __path, struct stat64 *__restrict __sbuf );
|
||||
int _fstat64 (int __fd, struct stat64 *__sbuf );
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#ifndef __SINGLE_THREAD__
|
||||
# define _flockfile(fp) (((fp)->_flags & __SSTR) ? 0 : __lock_acquire_recursive((fp)->_lock))
|
||||
#else
|
||||
# define _flockfile(fp) (_CAST_VOID 0)
|
||||
# define _flockfile(fp) ((void) 0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
|||
#ifndef __SINGLE_THREAD__
|
||||
# define _funlockfile(fp) (((fp)->_flags & __SSTR) ? 0 : __lock_release_recursive((fp)->_lock))
|
||||
#else
|
||||
# define _funlockfile(fp) (_CAST_VOID 0)
|
||||
# define _funlockfile(fp) ((void) 0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -268,30 +268,30 @@ struct itimerval {
|
|||
#include <time.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp));
|
||||
int utimes (const char *__path, const struct timeval *__tvp);
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
int _EXFUN(adjtime, (const struct timeval *, struct timeval *));
|
||||
int _EXFUN(futimes, (int, const struct timeval *));
|
||||
int _EXFUN(lutimes, (const char *, const struct timeval *));
|
||||
int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
|
||||
int adjtime (const struct timeval *, struct timeval *);
|
||||
int futimes (int, const struct timeval *);
|
||||
int lutimes (const char *, const struct timeval *);
|
||||
int settimeofday (const struct timeval *, const struct timezone *);
|
||||
#endif
|
||||
|
||||
#if __MISC_VISIBLE || __XSI_VISIBLE
|
||||
int _EXFUN(getitimer, (int __which, struct itimerval *__value));
|
||||
int _EXFUN(setitimer, (int __which, const struct itimerval *__restrict __value,
|
||||
struct itimerval *__restrict __ovalue));
|
||||
int getitimer (int __which, struct itimerval *__value);
|
||||
int setitimer (int __which, const struct itimerval *__restrict __value,
|
||||
struct itimerval *__restrict __ovalue);
|
||||
#endif
|
||||
|
||||
int _EXFUN(gettimeofday, (struct timeval *__restrict __p,
|
||||
void *__restrict __tz));
|
||||
int gettimeofday (struct timeval *__restrict __p,
|
||||
void *__restrict __tz);
|
||||
|
||||
#if __GNU_VISIBLE
|
||||
int _EXFUN(futimesat, (int, const char *, const struct timeval [2]));
|
||||
int futimesat (int, const char *, const struct timeval [2]);
|
||||
#endif
|
||||
|
||||
#ifdef _COMPILING_NEWLIB
|
||||
int _EXFUN(_gettimeofday, (struct timeval *__p, void *__tz));
|
||||
int _gettimeofday (struct timeval *__p, void *__tz);
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
|
|
@ -31,7 +31,7 @@ struct timeb
|
|||
short dstflag;
|
||||
};
|
||||
|
||||
extern int ftime _PARAMS ((struct timeb *));
|
||||
extern int ftime (struct timeb *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -21,9 +21,9 @@ struct tms {
|
|||
clock_t tms_cstime; /* system time, children */
|
||||
};
|
||||
|
||||
clock_t _EXFUN(times,(struct tms *));
|
||||
clock_t times (struct tms *);
|
||||
#ifdef _COMPILING_NEWLIB
|
||||
clock_t _EXFUN(_times,(struct tms *));
|
||||
clock_t _times (struct tms *);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -15,234 +15,234 @@ extern "C" {
|
|||
|
||||
extern char **environ;
|
||||
|
||||
void _EXFUN(_exit, (int __status ) _ATTRIBUTE ((__noreturn__)));
|
||||
void _exit (int __status) _ATTRIBUTE ((__noreturn__));
|
||||
|
||||
int _EXFUN(access,(const char *__path, int __amode ));
|
||||
unsigned _EXFUN(alarm, (unsigned __secs ));
|
||||
int _EXFUN(chdir, (const char *__path ));
|
||||
int _EXFUN(chmod, (const char *__path, mode_t __mode ));
|
||||
int access (const char *__path, int __amode);
|
||||
unsigned alarm (unsigned __secs);
|
||||
int chdir (const char *__path);
|
||||
int chmod (const char *__path, mode_t __mode);
|
||||
#if !defined(__INSIDE_CYGWIN__)
|
||||
int _EXFUN(chown, (const char *__path, uid_t __owner, gid_t __group ));
|
||||
int chown (const char *__path, uid_t __owner, gid_t __group);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200112)
|
||||
int _EXFUN(chroot, (const char *__path ));
|
||||
int chroot (const char *__path);
|
||||
#endif
|
||||
int _EXFUN(close, (int __fildes ));
|
||||
int close (int __fildes);
|
||||
#if __POSIX_VISIBLE >= 199209
|
||||
size_t _EXFUN(confstr, (int __name, char *__buf, size_t __len));
|
||||
size_t confstr (int __name, char *__buf, size_t __len);
|
||||
#endif
|
||||
#if __XSI_VISIBLE
|
||||
char * _EXFUN(crypt, (const char *__key, const char *__salt));
|
||||
char * crypt (const char *__key, const char *__salt);
|
||||
#endif
|
||||
#if __XSI_VISIBLE && __XSI_VISIBLE < 700
|
||||
char * _EXFUN(ctermid, (char *__s ));
|
||||
char * ctermid (char *__s);
|
||||
#endif
|
||||
#if __XSI_VISIBLE && __XSI_VISIBLE < 600
|
||||
char * _EXFUN(cuserid, (char *__s ));
|
||||
char * cuserid (char *__s);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
|
||||
int _EXFUN(daemon, (int nochdir, int noclose));
|
||||
int daemon (int nochdir, int noclose);
|
||||
#endif
|
||||
int _EXFUN(dup, (int __fildes ));
|
||||
int _EXFUN(dup2, (int __fildes, int __fildes2 ));
|
||||
int dup (int __fildes);
|
||||
int dup2 (int __fildes, int __fildes2);
|
||||
#if __GNU_VISIBLE
|
||||
int _EXFUN(dup3, (int __fildes, int __fildes2, int flags));
|
||||
int _EXFUN(eaccess, (const char *__path, int __mode));
|
||||
int dup3 (int __fildes, int __fildes2, int flags);
|
||||
int eaccess (const char *__path, int __mode);
|
||||
#endif
|
||||
#if __XSI_VISIBLE
|
||||
void _EXFUN(encrypt, (char *__block, int __edflag));
|
||||
void encrypt (char *__block, int __edflag);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
|
||||
void _EXFUN(endusershell, (void));
|
||||
void endusershell (void);
|
||||
#endif
|
||||
#if __GNU_VISIBLE
|
||||
int _EXFUN(euidaccess, (const char *__path, int __mode));
|
||||
int euidaccess (const char *__path, int __mode);
|
||||
#endif
|
||||
int _EXFUN(execl, (const char *__path, const char *, ... ));
|
||||
int _EXFUN(execle, (const char *__path, const char *, ... ));
|
||||
int _EXFUN(execlp, (const char *__file, const char *, ... ));
|
||||
int execl (const char *__path, const char *, ...);
|
||||
int execle (const char *__path, const char *, ...);
|
||||
int execlp (const char *__file, const char *, ...);
|
||||
#if __MISC_VISIBLE
|
||||
int _EXFUN(execlpe, (const char *__file, const char *, ... ));
|
||||
int execlpe (const char *__file, const char *, ...);
|
||||
#endif
|
||||
int _EXFUN(execv, (const char *__path, char * const __argv[] ));
|
||||
int _EXFUN(execve, (const char *__path, char * const __argv[], char * const __envp[] ));
|
||||
int _EXFUN(execvp, (const char *__file, char * const __argv[] ));
|
||||
int execv (const char *__path, char * const __argv[]);
|
||||
int execve (const char *__path, char * const __argv[], char * const __envp[]);
|
||||
int execvp (const char *__file, char * const __argv[]);
|
||||
#if __GNU_VISIBLE
|
||||
int _EXFUN(execvpe, (const char *__file, char * const __argv[], char * const __envp[] ));
|
||||
int execvpe (const char *__file, char * const __argv[], char * const __envp[]);
|
||||
#endif
|
||||
#if __ATFILE_VISIBLE
|
||||
int _EXFUN(faccessat, (int __dirfd, const char *__path, int __mode, int __flags));
|
||||
int faccessat (int __dirfd, const char *__path, int __mode, int __flags);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4 || __POSIX_VISIBLE >= 200809
|
||||
int _EXFUN(fchdir, (int __fildes));
|
||||
int fchdir (int __fildes);
|
||||
#endif
|
||||
#if __POSIX_VISIBLE >= 199309
|
||||
int _EXFUN(fchmod, (int __fildes, mode_t __mode ));
|
||||
int fchmod (int __fildes, mode_t __mode);
|
||||
#endif
|
||||
#if !defined(__INSIDE_CYGWIN__)
|
||||
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4 || __POSIX_VISIBLE >= 200809
|
||||
int _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group ));
|
||||
int fchown (int __fildes, uid_t __owner, gid_t __group);
|
||||
#endif
|
||||
#endif
|
||||
#if __ATFILE_VISIBLE
|
||||
int _EXFUN(fchownat, (int __dirfd, const char *__path, uid_t __owner, gid_t __group, int __flags));
|
||||
int fchownat (int __dirfd, const char *__path, uid_t __owner, gid_t __group, int __flags);
|
||||
#endif
|
||||
#if __POSIX_VISIBLE >= 200809
|
||||
int _EXFUN(fexecve, (int __fd, char * const __argv[], char * const __envp[] ));
|
||||
int fexecve (int __fd, char * const __argv[], char * const __envp[]);
|
||||
#endif
|
||||
pid_t _EXFUN(fork, (void ));
|
||||
long _EXFUN(fpathconf, (int __fd, int __name ));
|
||||
int _EXFUN(fsync, (int __fd));
|
||||
pid_t fork (void);
|
||||
long fpathconf (int __fd, int __name);
|
||||
int fsync (int __fd);
|
||||
#if __POSIX_VISIBLE >= 199309
|
||||
int _EXFUN(fdatasync, (int __fd));
|
||||
int fdatasync (int __fd);
|
||||
#endif
|
||||
#if __GNU_VISIBLE
|
||||
char * _EXFUN(get_current_dir_name, (void));
|
||||
char * get_current_dir_name (void);
|
||||
#endif
|
||||
char * _EXFUN(getcwd, (char *__buf, size_t __size ));
|
||||
char * getcwd (char *__buf, size_t __size);
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
|
||||
int _EXFUN(getdomainname ,(char *__name, size_t __len));
|
||||
int getdomainname (char *__name, size_t __len);
|
||||
#endif
|
||||
#if __BSD_VISIBLE
|
||||
int _EXFUN(getentropy, (void *, size_t));
|
||||
int getentropy (void *, size_t);
|
||||
#endif
|
||||
#if !defined(__INSIDE_CYGWIN__)
|
||||
gid_t _EXFUN(getegid, (void ));
|
||||
uid_t _EXFUN(geteuid, (void ));
|
||||
gid_t _EXFUN(getgid, (void ));
|
||||
gid_t getegid (void);
|
||||
uid_t geteuid (void);
|
||||
gid_t getgid (void);
|
||||
#endif
|
||||
int _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] ));
|
||||
int getgroups (int __gidsetsize, gid_t __grouplist[]);
|
||||
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4
|
||||
long _EXFUN(gethostid, (void));
|
||||
long gethostid (void);
|
||||
#endif
|
||||
char * _EXFUN(getlogin, (void ));
|
||||
char * getlogin (void);
|
||||
#if defined(_POSIX_THREAD_SAFE_FUNCTIONS)
|
||||
int _EXFUN(getlogin_r, (char *name, size_t namesize) );
|
||||
int getlogin_r (char *name, size_t namesize) ;
|
||||
#endif
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE && __POSIX_VISIBLE < 200112)
|
||||
char * _EXFUN(getpass, (const char *__prompt));
|
||||
int _EXFUN(getpagesize, (void));
|
||||
char * getpass (const char *__prompt);
|
||||
int getpagesize (void);
|
||||
#endif
|
||||
#if __BSD_VISIBLE
|
||||
int _EXFUN(getpeereid, (int, uid_t *, gid_t *));
|
||||
int getpeereid (int, uid_t *, gid_t *);
|
||||
#endif
|
||||
#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 4
|
||||
pid_t _EXFUN(getpgid, (pid_t));
|
||||
pid_t getpgid (pid_t);
|
||||
#endif
|
||||
pid_t _EXFUN(getpgrp, (void ));
|
||||
pid_t _EXFUN(getpid, (void ));
|
||||
pid_t _EXFUN(getppid, (void ));
|
||||
pid_t getpgrp (void);
|
||||
pid_t getpid (void);
|
||||
pid_t getppid (void);
|
||||
#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 4
|
||||
pid_t _EXFUN(getsid, (pid_t));
|
||||
pid_t getsid (pid_t);
|
||||
#endif
|
||||
#if !defined(__INSIDE_CYGWIN__)
|
||||
uid_t _EXFUN(getuid, (void ));
|
||||
uid_t getuid (void);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
|
||||
char * _EXFUN(getusershell, (void));
|
||||
char * getusershell (void);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200809)
|
||||
char * _EXFUN(getwd, (char *__buf ));
|
||||
char * getwd (char *__buf);
|
||||
#endif
|
||||
#if __BSD_VISIBLE
|
||||
int _EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser));
|
||||
int iruserok (unsigned long raddr, int superuser, const char *ruser, const char *luser);
|
||||
#endif
|
||||
int _EXFUN(isatty, (int __fildes ));
|
||||
int isatty (int __fildes);
|
||||
#if __BSD_VISIBLE
|
||||
int _EXFUN(issetugid, (void));
|
||||
int issetugid (void);
|
||||
#endif
|
||||
#if !defined(__INSIDE_CYGWIN__)
|
||||
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4 || __POSIX_VISIBLE >= 200809
|
||||
int _EXFUN(lchown, (const char *__path, uid_t __owner, gid_t __group ));
|
||||
int lchown (const char *__path, uid_t __owner, gid_t __group);
|
||||
#endif
|
||||
#endif
|
||||
int _EXFUN(link, (const char *__path1, const char *__path2 ));
|
||||
int link (const char *__path1, const char *__path2);
|
||||
#if __ATFILE_VISIBLE
|
||||
int _EXFUN(linkat, (int __dirfd1, const char *__path1, int __dirfd2, const char *__path2, int __flags ));
|
||||
int linkat (int __dirfd1, const char *__path1, int __dirfd2, const char *__path2, int __flags);
|
||||
#endif
|
||||
#if __MISC_VISIBLE || __XSI_VISIBLE
|
||||
int _EXFUN(nice, (int __nice_value ));
|
||||
int nice (int __nice_value);
|
||||
#endif
|
||||
#if !defined(__INSIDE_CYGWIN__)
|
||||
off_t _EXFUN(lseek, (int __fildes, off_t __offset, int __whence ));
|
||||
off_t lseek (int __fildes, off_t __offset, int __whence);
|
||||
#endif
|
||||
#if __MISC_VISIBLE || __XSI_VISIBLE >= 4
|
||||
#define F_ULOCK 0
|
||||
#define F_LOCK 1
|
||||
#define F_TLOCK 2
|
||||
#define F_TEST 3
|
||||
int _EXFUN(lockf, (int __fd, int __cmd, off_t __len));
|
||||
int lockf (int __fd, int __cmd, off_t __len);
|
||||
#endif
|
||||
long _EXFUN(pathconf, (const char *__path, int __name ));
|
||||
int _EXFUN(pause, (void ));
|
||||
long pathconf (const char *__path, int __name);
|
||||
int pause (void);
|
||||
#if __POSIX_VISIBLE >= 199506
|
||||
int _EXFUN(pthread_atfork, (void (*)(void), void (*)(void), void (*)(void)));
|
||||
int pthread_atfork (void (*)(void), void (*)(void), void (*)(void));
|
||||
#endif
|
||||
int _EXFUN(pipe, (int __fildes[2] ));
|
||||
int pipe (int __fildes[2]);
|
||||
#if __GNU_VISIBLE
|
||||
int _EXFUN(pipe2, (int __fildes[2], int flags));
|
||||
int pipe2 (int __fildes[2], int flags);
|
||||
#endif
|
||||
#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 500
|
||||
ssize_t _EXFUN(pread, (int __fd, void *__buf, size_t __nbytes, off_t __offset));
|
||||
ssize_t _EXFUN(pwrite, (int __fd, const void *__buf, size_t __nbytes, off_t __offset));
|
||||
ssize_t pread (int __fd, void *__buf, size_t __nbytes, off_t __offset);
|
||||
ssize_t pwrite (int __fd, const void *__buf, size_t __nbytes, off_t __offset);
|
||||
#endif
|
||||
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte ));
|
||||
_READ_WRITE_RETURN_TYPE read (int __fd, void *__buf, size_t __nbyte);
|
||||
#if __BSD_VISIBLE
|
||||
int _EXFUN(rresvport, (int *__alport));
|
||||
int _EXFUN(revoke, (char *__path));
|
||||
int rresvport (int *__alport);
|
||||
int revoke (char *__path);
|
||||
#endif
|
||||
int _EXFUN(rmdir, (const char *__path ));
|
||||
int rmdir (const char *__path);
|
||||
#if __BSD_VISIBLE
|
||||
int _EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const char *luser));
|
||||
int ruserok (const char *rhost, int superuser, const char *ruser, const char *luser);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200112)
|
||||
void * _EXFUN(sbrk, (ptrdiff_t __incr));
|
||||
void * sbrk (ptrdiff_t __incr);
|
||||
#endif
|
||||
#if !defined(__INSIDE_CYGWIN__)
|
||||
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
|
||||
int _EXFUN(setegid, (gid_t __gid ));
|
||||
int _EXFUN(seteuid, (uid_t __uid ));
|
||||
int setegid (gid_t __gid);
|
||||
int seteuid (uid_t __uid);
|
||||
#endif
|
||||
int _EXFUN(setgid, (gid_t __gid ));
|
||||
int setgid (gid_t __gid);
|
||||
#endif
|
||||
#if __BSD_VISIBLE
|
||||
int _EXFUN(setgroups, (int ngroups, const gid_t *grouplist ));
|
||||
int setgroups (int ngroups, const gid_t *grouplist);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
|
||||
int _EXFUN(sethostname, (const char *, size_t));
|
||||
int sethostname (const char *, size_t);
|
||||
#endif
|
||||
int _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
|
||||
int setpgid (pid_t __pid, pid_t __pgid);
|
||||
#if __SVID_VISIBLE || __XSI_VISIBLE >= 500
|
||||
int _EXFUN(setpgrp, (void ));
|
||||
int setpgrp (void);
|
||||
#endif
|
||||
#if (__BSD_VISIBLE || __XSI_VISIBLE >= 4) && !defined(__INSIDE_CYGWIN__)
|
||||
int _EXFUN(setregid, (gid_t __rgid, gid_t __egid));
|
||||
int _EXFUN(setreuid, (uid_t __ruid, uid_t __euid));
|
||||
int setregid (gid_t __rgid, gid_t __egid);
|
||||
int setreuid (uid_t __ruid, uid_t __euid);
|
||||
#endif
|
||||
pid_t _EXFUN(setsid, (void ));
|
||||
pid_t setsid (void);
|
||||
#if !defined(__INSIDE_CYGWIN__)
|
||||
int _EXFUN(setuid, (uid_t __uid ));
|
||||
int setuid (uid_t __uid);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500)
|
||||
void _EXFUN(setusershell, (void));
|
||||
void setusershell (void);
|
||||
#endif
|
||||
unsigned _EXFUN(sleep, (unsigned int __seconds ));
|
||||
unsigned sleep (unsigned int __seconds);
|
||||
#if __XSI_VISIBLE
|
||||
void _EXFUN(swab, (const void *__restrict, void *__restrict, ssize_t));
|
||||
void swab (const void *__restrict, void *__restrict, ssize_t);
|
||||
#endif
|
||||
long _EXFUN(sysconf, (int __name ));
|
||||
pid_t _EXFUN(tcgetpgrp, (int __fildes ));
|
||||
int _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id ));
|
||||
char * _EXFUN(ttyname, (int __fildes ));
|
||||
int _EXFUN(ttyname_r, (int, char *, size_t));
|
||||
int _EXFUN(unlink, (const char *__path ));
|
||||
long sysconf (int __name);
|
||||
pid_t tcgetpgrp (int __fildes);
|
||||
int tcsetpgrp (int __fildes, pid_t __pgrp_id);
|
||||
char * ttyname (int __fildes);
|
||||
int ttyname_r (int, char *, size_t);
|
||||
int unlink (const char *__path);
|
||||
#if __XSI_VISIBLE >= 500 && __POSIX_VISIBLE < 200809 || __BSD_VISIBLE
|
||||
int _EXFUN(usleep, (useconds_t __useconds));
|
||||
int usleep (useconds_t __useconds);
|
||||
#endif
|
||||
#if __BSD_VISIBLE
|
||||
int _EXFUN(vhangup, (void ));
|
||||
int vhangup (void);
|
||||
#endif
|
||||
_READ_WRITE_RETURN_TYPE _EXFUN(write, (int __fd, const void *__buf, size_t __nbyte ));
|
||||
_READ_WRITE_RETURN_TYPE write (int __fd, const void *__buf, size_t __nbyte);
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
# define __UNISTD_GETOPT__
|
||||
|
@ -256,69 +256,69 @@ extern int optreset; /* getopt(3) external variable */
|
|||
#endif
|
||||
|
||||
#if __BSD_VISIBLE || (__XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200809)
|
||||
pid_t _EXFUN(vfork, (void ));
|
||||
pid_t vfork (void);
|
||||
#endif
|
||||
|
||||
#ifdef _COMPILING_NEWLIB
|
||||
/* Provide prototypes for most of the _<systemcall> names that are
|
||||
provided in newlib for some compilers. */
|
||||
int _EXFUN(_close, (int __fildes ));
|
||||
pid_t _EXFUN(_fork, (void ));
|
||||
pid_t _EXFUN(_getpid, (void ));
|
||||
int _EXFUN(_isatty, (int __fildes ));
|
||||
int _EXFUN(_link, (const char *__path1, const char *__path2 ));
|
||||
_off_t _EXFUN(_lseek, (int __fildes, _off_t __offset, int __whence ));
|
||||
int _close (int __fildes);
|
||||
pid_t _fork (void);
|
||||
pid_t _getpid (void);
|
||||
int _isatty (int __fildes);
|
||||
int _link (const char *__path1, const char *__path2);
|
||||
_off_t _lseek (int __fildes, _off_t __offset, int __whence);
|
||||
#ifdef __LARGE64_FILES
|
||||
_off64_t _EXFUN(_lseek64, (int __filedes, _off64_t __offset, int __whence ));
|
||||
_off64_t _lseek64 (int __filedes, _off64_t __offset, int __whence);
|
||||
#endif
|
||||
_READ_WRITE_RETURN_TYPE _EXFUN(_read, (int __fd, void *__buf, size_t __nbyte ));
|
||||
void * _EXFUN(_sbrk, (ptrdiff_t __incr));
|
||||
int _EXFUN(_unlink, (const char *__path ));
|
||||
_READ_WRITE_RETURN_TYPE _EXFUN(_write, (int __fd, const void *__buf, size_t __nbyte ));
|
||||
int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] ));
|
||||
_READ_WRITE_RETURN_TYPE _read (int __fd, void *__buf, size_t __nbyte);
|
||||
void * _sbrk (ptrdiff_t __incr);
|
||||
int _unlink (const char *__path);
|
||||
_READ_WRITE_RETURN_TYPE _write (int __fd, const void *__buf, size_t __nbyte);
|
||||
int _execve (const char *__path, char * const __argv[], char * const __envp[]);
|
||||
#endif
|
||||
|
||||
#if !defined(__INSIDE_CYGWIN__)
|
||||
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500
|
||||
int _EXFUN(ftruncate, (int __fd, off_t __length));
|
||||
int ftruncate (int __fd, off_t __length);
|
||||
#endif
|
||||
#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 500
|
||||
int _EXFUN(truncate, (const char *, off_t __length));
|
||||
int truncate (const char *, off_t __length);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE || __POSIX_VISIBLE < 200112
|
||||
int _EXFUN(getdtablesize, (void));
|
||||
int getdtablesize (void);
|
||||
#endif
|
||||
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 500
|
||||
useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
|
||||
useconds_t ualarm (useconds_t __useconds, useconds_t __interval);
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500
|
||||
#if !(defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || defined (__USE_W32_SOCKETS))
|
||||
/* winsock[2].h defines as __stdcall, and with int as 2nd arg */
|
||||
int _EXFUN(gethostname, (char *__name, size_t __len));
|
||||
int gethostname (char *__name, size_t __len);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if __MISC_VISIBLE
|
||||
int _EXFUN(setdtablesize, (int));
|
||||
int setdtablesize (int);
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE || __XSI_VISIBLE >= 500
|
||||
void _EXFUN(sync, (void));
|
||||
void sync (void);
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 4
|
||||
ssize_t _EXFUN(readlink, (const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __buflen));
|
||||
int _EXFUN(symlink, (const char *__name1, const char *__name2));
|
||||
ssize_t readlink (const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __buflen);
|
||||
int symlink (const char *__name1, const char *__name2);
|
||||
#endif
|
||||
#if __ATFILE_VISIBLE
|
||||
ssize_t _EXFUN(readlinkat, (int __dirfd1, const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __buflen));
|
||||
int _EXFUN(symlinkat, (const char *, int, const char *));
|
||||
int _EXFUN(unlinkat, (int, const char *, int));
|
||||
ssize_t readlinkat (int __dirfd1, const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __buflen);
|
||||
int symlinkat (const char *, int, const char *);
|
||||
int unlinkat (int, const char *, int);
|
||||
#endif
|
||||
|
||||
#define F_OK 0
|
||||
|
@ -582,6 +582,10 @@ int _EXFUN(unlinkat, (int, const char *, int));
|
|||
#define _CS_POSIX_V7_THREADS_LDFLAGS 19
|
||||
#define _CS_V7_ENV 20
|
||||
#define _CS_V6_ENV _CS_V7_ENV
|
||||
#define _CS_LFS_CFLAGS 21
|
||||
#define _CS_LFS_LDFLAGS 22
|
||||
#define _CS_LFS_LIBS 23
|
||||
#define _CS_LFS_LINTFLAGS 24
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue