Pull bugzilla-5452 into release branch
[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 extern void panic(const char *fmt, ...)
10         __attribute__ ((format (printf, 1, 2)));
11 extern int printk(const char *fmt, ...)
12         __attribute__ ((format (printf, 1, 2)));
13 extern void schedule(void);
14 extern void *um_kmalloc(int size);
15 extern void *um_kmalloc_atomic(int size);
16 extern void kfree(void *ptr);
17 extern int in_aton(char *str);
18 extern int open_gdb_chan(void);
19 /* These use size_t, however unsigned long is correct on both i386 and x86_64. */
20 extern unsigned long strlcpy(char *, const char *, unsigned long);
21 extern unsigned long strlcat(char *, const char *, unsigned long);
22 extern void *um_vmalloc(int size);
23 extern void *um_vmalloc_atomic(int size);
24 extern void vfree(void *ptr);
25
26 #endif
27
28 /*
29  * Overrides for Emacs so that we follow Linus's tabbing style.
30  * Emacs will notice this stuff at the end of the file and automatically
31  * adjust the settings for this buffer only.  This must remain at the end
32  * of the file.
33  * ---------------------------------------------------------------------------
34  * Local variables:
35  * c-file-style: "linux"
36  * End:
37  */