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_ */
|