2005-08-08 03:24:38 +00:00
|
|
|
#ifndef _PPC_BOOT_STDIO_H_
|
|
|
|
#define _PPC_BOOT_STDIO_H_
|
|
|
|
|
2006-09-19 04:05:08 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#define ENOMEM 12 /* Out of Memory */
|
|
|
|
#define EINVAL 22 /* Invalid argument */
|
|
|
|
#define ENOSPC 28 /* No space left on device */
|
|
|
|
|
2007-03-22 05:59:13 +00:00
|
|
|
extern int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
|
2005-08-08 03:24:38 +00:00
|
|
|
|
2006-09-19 04:05:08 +00:00
|
|
|
#define fprintf(fmt, args...) printf(args)
|
|
|
|
|
2007-03-22 05:59:13 +00:00
|
|
|
extern int sprintf(char *buf, const char *fmt, ...)
|
|
|
|
__attribute__((format(printf, 2, 3)));
|
2005-08-08 03:24:38 +00:00
|
|
|
|
|
|
|
extern int vsprintf(char *buf, const char *fmt, va_list args);
|
|
|
|
|
|
|
|
#endif /* _PPC_BOOT_STDIO_H_ */
|