stdio.h 562 B

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