2020-03-31 16:21:07 +01:00
|
|
|
#ifndef STDIO_H_
|
|
|
|
|
#define STDIO_H_
|
|
|
|
|
|
|
|
|
|
#include <sys/_fconst.h>
|
|
|
|
|
|
|
|
|
|
#if defined(__FILENAME_MAX)
|
|
|
|
|
#define FILENAME_MAX __FILENAME_MAX
|
|
|
|
|
#else
|
|
|
|
|
#define FILENAME_MAX 1024
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define SEEK_SET __SEEK_SET
|
|
|
|
|
#define SEEK_CUR __SEEK_CUR
|
|
|
|
|
#define SEEK_END __SEEK_END
|
|
|
|
|
|
2020-04-01 11:58:54 +01:00
|
|
|
#define EOF -1
|
|
|
|
|
|
2020-03-31 16:21:07 +01:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
typedef struct __io_file FILE;
|
|
|
|
|
|
|
|
|
|
extern FILE *stdin;
|
|
|
|
|
extern FILE *stdout;
|
|
|
|
|
extern FILE *stderr;
|
|
|
|
|
|
2020-03-31 18:36:58 +01:00
|
|
|
extern int fileno(FILE *fp);
|
2020-04-01 11:58:54 +01:00
|
|
|
extern int fputs(const char *str, FILE *fp);
|
2020-03-31 18:36:58 +01:00
|
|
|
|
2020-03-31 16:21:07 +01:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|