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

Subversion Repositories or1k

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

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

Rev 39 Rev 56
Line 41... Line 41...
/*      O_NDELAY        _FNDELAY        set in include/fcntl.h */
/*      O_NDELAY        _FNDELAY        set in include/fcntl.h */
/*      O_NDELAY        _FNBIO          set in 5include/fcntl.h */
/*      O_NDELAY        _FNBIO          set in 5include/fcntl.h */
#define O_NONBLOCK      _FNONBLOCK
#define O_NONBLOCK      _FNONBLOCK
#define O_NOCTTY        _FNOCTTY
#define O_NOCTTY        _FNOCTTY
/* For machines which care - */
/* For machines which care - */
#ifdef _WIN32
#if defined (_WIN32) || defined (__CYGWIN__)
#define _FBINARY        0x10000
#define _FBINARY        0x10000
#define _FTEXT          0x20000
#define _FTEXT          0x20000
 
#define _FNOINHERIT     0x40000
 
 
#define O_BINARY        _FBINARY
#define O_BINARY        _FBINARY
#define O_TEXT          _FTEXT
#define O_TEXT          _FTEXT
 
#define O_NOINHERIT     _FNOINHERIT
 
 
/* The windows header files define versions with a leading underscore.  */
/* The windows header files define versions with a leading underscore.  */
#define _O_RDONLY       O_RDONLY
#define _O_RDONLY       O_RDONLY
#define _O_WRONLY       O_WRONLY
#define _O_WRONLY       O_WRONLY
#define _O_RDWR         O_RDWR
#define _O_RDWR         O_RDWR
#define _O_APPEND       O_APPEND
#define _O_APPEND       O_APPEND
#define _O_CREATE       O_CREAT
#define _O_CREAT        O_CREAT
#define _O_TRUNC        O_TRUNC
#define _O_TRUNC        O_TRUNC
#define _O_EXCL         O_EXCL
#define _O_EXCL         O_EXCL
#define _O_TEXT         O_TEXT
#define _O_TEXT         O_TEXT
#define _O_BINARY       O_BINARY
#define _O_BINARY       O_BINARY
#define _O_RAW          O_BINARY
#define _O_RAW          O_BINARY
 
#define _O_NOINHERIT    O_NOINHERIT
#endif
#endif
 
 
#ifndef _POSIX_SOURCE
#ifndef _POSIX_SOURCE
 
 
#define O_SYNC          _FSYNC
#define O_SYNC          _FSYNC
Line 165... Line 169...
 
 
/* Provide _<systemcall> prototypes for functions provided by some versions
/* Provide _<systemcall> prototypes for functions provided by some versions
   of newlib.  */
   of newlib.  */
extern int _open _PARAMS ((const char *, int, ...));
extern int _open _PARAMS ((const char *, int, ...));
extern int _fcntl _PARAMS ((int, int, ...));
extern int _fcntl _PARAMS ((int, int, ...));
#ifdef __CYGWIN32__
 
extern int _close _PARAMS ((int));
 
#endif
 
 
 
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
#endif  /* !_FCNTL_ */
#endif  /* !_FCNTL_ */

powered by: WebSVN 2.1.0

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