2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
9 #include "uml-config.h"
12 * The usual definition - copied here because the kernel provides its own,
13 * fancier, type-safe, definition. Using that one would require
14 * copying too much infrastructure for my taste, so userspace files
15 * get less checking than kernel files.
17 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
19 /* This is to get size_t */
21 #include <linux/types.h>
26 extern void panic(const char *fmt
, ...)
27 __attribute__ ((format (printf
, 1, 2)));
29 #ifdef UML_CONFIG_PRINTK
30 extern int printk(const char *fmt
, ...)
31 __attribute__ ((format (printf
, 1, 2)));
33 static inline int printk(const char *fmt
, ...)
39 extern void schedule(void);
40 extern int in_aton(char *str
);
41 extern int open_gdb_chan(void);
42 extern size_t strlcpy(char *, const char *, size_t);
43 extern size_t strlcat(char *, const char *, size_t);