2 * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
10 * The usual definition - copied here because the kernel provides its own,
11 * fancier, type-safe, definition. Using that one would require
12 * copying too much infrastructure for my taste, so userspace files
13 * get less checking than kernel files.
15 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
17 extern void panic(const char *fmt
, ...)
18 __attribute__ ((format (printf
, 1, 2)));
19 extern int printk(const char *fmt
, ...)
20 __attribute__ ((format (printf
, 1, 2)));
21 extern void schedule(void);
22 extern int in_aton(char *str
);
23 extern int open_gdb_chan(void);
24 /* These use size_t, however unsigned long is correct on both i386 and x86_64. */
25 extern unsigned long strlcpy(char *, const char *, unsigned long);
26 extern unsigned long strlcat(char *, const char *, unsigned long);