Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openhackware / src / libc / include / stdio.h
1 /*
2  * <stdio.h>
3  *
4  * Open Hack'Ware BIOS: subset of POSIX stdio definitions
5  * 
6  * Copyright (c) 2004-2005 Jocelyn Mayer
7  * 
8  *   This program is free software; you can redistribute it and/or
9  *   modify it under the terms of the GNU General Public License V2
10  *   as published by the Free Software Foundation
11  *
12  *   This program is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *   GNU General Public License for more details.
16  *
17  *   You should have received a copy of the GNU General Public License
18  *   along with this program; if not, write to the Free Software
19  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #if !defined (__OHW_STDIO_H__)
23 #define __OHW_STDIO_H__
24
25 /* va_list is defined here */
26 #include <stdarg.h>
27 /* size_t is defined here */
28 #include <stddef.h>
29
30 #define EOF ((int)-1)
31
32 int printf (const char *format, ...);
33 int dprintf (const char *format, ...);
34 int sprintf (char *str, const char *format, ...);
35 int snprintf (char *str, size_t size, const char *format, ...);
36 int vprintf (const char *format, va_list ap);
37 int vdprintf (const char *format, va_list ap);
38 int vsprintf (char *str, const char *format, va_list ap);
39 int vsnprintf (char *str, size_t size, const char *format, va_list ap);
40
41 int rename (const char *oldpath, const char *newpath);
42
43 #endif /* !defined (__OHW_STDIO_H__) */