allow coexistance of N build and AC build.
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / arch / um / include / user.h
blobd380e6d91a9055680e078fd9b379faa938229710
1 /*
2 * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
6 #ifndef __USER_H__
7 #define __USER_H__
9 /*
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]))
18 * This will provide the size_t definition in both kernel and userspace builds
20 #include <linux/types.h>
22 extern void panic(const char *fmt, ...)
23 __attribute__ ((format (printf, 1, 2)));
24 extern int printk(const char *fmt, ...)
25 __attribute__ ((format (printf, 1, 2)));
26 extern void schedule(void);
27 extern int in_aton(char *str);
28 extern int open_gdb_chan(void);
29 extern size_t strlcpy(char *, const char *, size_t);
30 extern size_t strlcat(char *, const char *, size_t);
32 #endif