Rev 1196 | Rev 1963 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1196 | Rev 1271 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #ifndef __PRINT_H__ |
29 | #ifndef __PRINT_H__ |
30 | #define __PRINT_H__ |
30 | #define __PRINT_H__ |
31 | 31 | ||
32 | #include <arch/types.h> |
32 | #include <arch/types.h> |
33 | #include <synch/spinlock.h> |
33 | #include <synch/spinlock.h> |
34 | - | ||
35 | #define INT8 1 |
- | |
36 | #define INT16 2 |
- | |
37 | #define INT32 4 |
- | |
38 | #define INT64 8 |
34 | #include <arch/arg.h> |
39 | - | ||
40 | extern int printf(const char *fmt, ...); |
- | |
41 | 35 | ||
42 | /* We need this address in spinlock to avoid deadlock in deadlock detection */ |
36 | /* We need this address in spinlock to avoid deadlock in deadlock detection */ |
43 | extern spinlock_t printflock; |
37 | extern spinlock_t printflock; |
44 | 38 | ||
45 | #define EOF (-1) |
39 | #define EOF (-1) |
46 | 40 | ||
- | 41 | extern int puts(const char * str); |
|
- | 42 | ||
- | 43 | extern int printf(const char *fmt, ...); |
|
- | 44 | extern int sprintf(char *str, const char *fmt, ...); |
|
- | 45 | extern int snprintf(char *str, size_t size, const char *fmt, ...); |
|
- | 46 | ||
- | 47 | extern int vprintf(const char *fmt, va_list ap); |
|
- | 48 | extern int vsprintf(char *str, const char *fmt, va_list ap); |
|
- | 49 | extern int vsnprintf(char *str, size_t size, const char *fmt, va_list ap); |
|
- | 50 | ||
47 | #endif |
51 | #endif |