]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/bootstrap/server/src/ARCH-amd64/libc32/include/stdio.h
Inital import
[l4.git] / l4 / pkg / bootstrap / server / src / ARCH-amd64 / libc32 / include / stdio.h
1 #ifndef _STDIO_H
2 #define _STDIO_H
3
4 #include <cdefs.h>
5 #include <stddef.h>
6
7 __BEGIN_DECLS
8
9 int putchar(int c);
10 int puts(const char *s);
11 int printf(const char *format, ...) __attribute__((format(printf,1,2)));
12 int sprintf(char *str, const char *format, ...) __attribute__((format(printf,2,3)));
13 int snprintf(char *str, size_t size, const char *format, ...) __attribute__((format(printf,3,4)));
14 int asprintf(char **ptr, const char* format, ...) __attribute__((format(printf,2,3)));
15
16 #if 0
17 int scanf(const char *format, ...) __attribute__((format(scanf,1,2)));
18 int sscanf(const char *str, const char *format, ...) __attribute__((format(scanf,2,3)));
19 #endif
20
21 #include <stdarg.h>
22
23 int vprintf(const char *format, va_list ap) __attribute__((format(printf,1,0)));
24 int vsprintf(char *str, const char *format, va_list ap) __attribute__((format(printf,2,0)));
25 int vsnprintf(char *str, size_t size, const char *format, va_list ap) __attribute__((format(printf,3,0)));
26
27
28 typedef int FILE;
29
30 int vscanf(const char *format, va_list ap) __attribute__((format(scanf,1,0)));
31 int vsscanf(const char *str, const char *format, va_list ap) __attribute__((format(scanf,2,0)));
32
33 int sscanf(const char *str, const char *format, ...);
34
35 __END_DECLS
36
37 #endif