Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[pandora-kernel.git] / arch / um / include / user.h
1 /* 
2  * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
3  * Licensed under the GPL
4  */
5
6 #ifndef __USER_H__
7 #define __USER_H__
8
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.
14  */
15 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
16
17 /* This is to get size_t */
18 #ifdef __KERNEL__
19 #include <linux/types.h>
20 #else
21 #include <stddef.h>
22 #endif
23
24 extern void panic(const char *fmt, ...)
25         __attribute__ ((format (printf, 1, 2)));
26 extern int printk(const char *fmt, ...)
27         __attribute__ ((format (printf, 1, 2)));
28 extern void schedule(void);
29 extern int in_aton(char *str);
30 extern int open_gdb_chan(void);
31 extern size_t strlcpy(char *, const char *, size_t);
32 extern size_t strlcat(char *, const char *, size_t);
33
34 #endif