extern.h (434B)
1 #ifndef _KERNEL_EXTERN_H_ 2 #define _KERNEL_EXTERN_H_ 3 4 #include <stddef.h> 5 #include <stdint.h> 6 7 #include "stdarg.h" 8 #include "io.h" 9 #include "tty.h" 10 #include "string.h" 11 12 #define BUFSIZ 1024 13 14 #define ARRLEN(x) (sizeof(x) / sizeof((x)[0])) 15 #define sizeof_field(s, f) (sizeof(((t *)0)->f)) 16 17 int vsprintf(char *, const char *, va_list); 18 int sprintf(char *, const char *, ...); 19 int printf(const char *, ...); 20 21 #endif /* _KERNEL_EXTERN_H_ */