blob: 3714d14ba5ec1397c920974a48ee4eb8ec03ebc6 [file] [log] [blame] [raw]
#ifndef _STDIO_H
#define _STDIO_H
#include <nativedefs.h>
#define __need_size_t
#define __need_NULL
#define __need_wchar_t
#include <stddef.h>
#define __need___va_list
#include <stdarg.h>
#if !defined __FILE_defined && !defined _FILE_DEFINED
typedef struct _io_buffer FILE;
#define __FILE_defined 1
#define _FILE_DEFINED __FILE_defined
#endif
#ifdef _USE_IO_BUFFER
struct _io_buffer {
int _flags;
// ...
int _fileno; // File descriptor
};
#endif
#define EOF (-1)
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
#ifndef SEEK_CUR
#define SEEK_CUR 1
#endif
#ifndef SEEK_END
#define SEEK_END 2
#endif
#ifndef __VALIST
#ifdef __GNUC__
#define __VALIST __gnuc_va_list
#else
#define __VALIST char *
#endif
#endif /* defined __VALIST */
#ifdef __cplusplus
extern "C" {
#endif
int __cdecl printf(const char *, ...);
int __cdecl sprintf(char *, const char *, ...);
int __cdecl snprintf(char *, size_t, const char *, ...);
int __cdecl vprintf(const char *, __VALIST);
int __cdecl vsprintf(char *, const char *, __VALIST);
int __cdecl vsnprintf(char *, size_t, const char *, __VALIST);
int __cdecl putchar(int);
int __cdecl puts(const char *);
int __cdecl gets(char *);
void __cdecl perror(const char *);
int __cdecl remove(const char *);
int __cdecl rename(const char *, const char *);
#ifdef __cplusplus
}
#endif
#endif