From 4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 27 Mar 2012 11:51:08 +0200 Subject: reorganize file structure to match the upstream requirements --- pintos-progos/lib/stdio.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 pintos-progos/lib/stdio.h (limited to 'pintos-progos/lib/stdio.h') diff --git a/pintos-progos/lib/stdio.h b/pintos-progos/lib/stdio.h deleted file mode 100644 index 2739c0a..0000000 --- a/pintos-progos/lib/stdio.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef __LIB_STDIO_H -#define __LIB_STDIO_H - -#include -#include -#include -#include -#include - -/* Include lib/user/stdio.h or lib/kernel/stdio.h, as - appropriate. */ -#include_next - -/* Predefined file handles. */ -#define STDIN_FILENO 0 -#define STDOUT_FILENO 1 - -/* Standard functions. */ -int printf (const char *, ...) PRINTF_FORMAT (1, 2); -int snprintf (char *, size_t, const char *, ...) PRINTF_FORMAT (3, 4); -int vprintf (const char *, va_list) PRINTF_FORMAT (1, 0); -int vsnprintf (char *, size_t, const char *, va_list) PRINTF_FORMAT (3, 0); -int putchar (int); -int puts (const char *); - -/* Nonstandard functions. */ -void hex_dump (uintptr_t ofs, const void *, size_t size, bool ascii); -void print_human_readable_size (uint64_t sz); - -/* Internal functions. */ -void __vprintf (const char *format, va_list args, - void (*output) (char, void *), void *aux); -void __printf (const char *format, - void (*output) (char, void *), void *aux, ...); - -/* Try to be helpful. */ -#define sprintf dont_use_sprintf_use_snprintf -#define vsprintf dont_use_vsprintf_use_vsnprintf - -#endif /* lib/stdio.h */ -- cgit v1.2.3