mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 19:46:05 +08:00
81fea2b1d1
"libf2c" directory. From-SVN: r17568
48 lines
880 B
C
48 lines
880 B
C
#ifdef KR_headers
|
|
extern FILE *fdopen();
|
|
#else
|
|
#if defined (MSDOS) && !defined (GO32)
|
|
#include "io.h"
|
|
#ifndef WATCOM
|
|
#define close _close
|
|
#define creat _creat
|
|
#define open _open
|
|
#define read _read
|
|
#define write _write
|
|
#endif /*WATCOM*/
|
|
#endif /*MSDOS*/
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#if !(defined (MSDOS) && !defined (GO32))
|
|
#ifdef OPEN_DECL
|
|
extern int creat(const char*,int), open(const char*,int);
|
|
#endif
|
|
extern int close(int);
|
|
#if !(defined(_WIN32) && !defined(__CYGWIN32__))
|
|
extern int read(int,void*,size_t), write(int,void*,size_t);
|
|
#endif
|
|
extern int unlink(const char*);
|
|
#ifndef _POSIX_SOURCE
|
|
#ifndef NON_UNIX_STDIO
|
|
extern FILE *fdopen(int, const char*);
|
|
#endif
|
|
#endif
|
|
#endif /*KR_HEADERS*/
|
|
|
|
extern char *mktemp(char*);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef NO_FCNTL
|
|
#include <fcntl.h>
|
|
#endif
|
|
|
|
#ifndef O_WRONLY
|
|
#define O_RDONLY 0
|
|
#define O_WRONLY 1
|
|
#endif
|