stdio.h 523 B

12345678910111213141516171819
  1. #ifndef _PPC_BOOT_STDIO_H_
  2. #define _PPC_BOOT_STDIO_H_
  3. #include <stdarg.h>
  4. #define ENOMEM 12 /* Out of Memory */
  5. #define EINVAL 22 /* Invalid argument */
  6. #define ENOSPC 28 /* No space left on device */
  7. extern int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
  8. #define fprintf(fmt, args...) printf(args)
  9. extern int sprintf(char *buf, const char *fmt, ...)
  10. __attribute__((format(printf, 2, 3)));
  11. extern int vsprintf(char *buf, const char *fmt, va_list args);
  12. #endif /* _PPC_BOOT_STDIO_H_ */