libpayload: Move stdin/stdout/stderr away from headers
[coreboot.git] / payloads / libpayload / include / stdio.h
index 2aea4459fa5a26a658540484b2e4ce3b89e57ed9..d39e9f85451f038ebe3d12c8c5e5593e677321f3 100644 (file)
 
 #include <stddef.h>
 
+typedef struct _FILE FILE;
+
+extern FILE *stdout, *stdin, *stderr;
+
 /**
  * @defgroup printf Print functions
  * @{
 int snprintf(char *str, size_t size, const char *fmt, ...);
 int sprintf(char *str, const char *fmt, ...);
 int printf(const char *fmt, ...);
+int fprintf(FILE *file, const char *fmt, ...);
 /** @} */
 
 void perror(const char *s);
 
+#define SEEK_SET 0 /**< The seek offset is absolute. */
+#define SEEK_CUR 1 /**< The seek offset is against the current position. */
+#define SEEK_END 2 /**< The seek offset is against the end of the file. */
+
 #endif