This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / um / os-Linux / user_syms.c
1 #include "linux/types.h"
2 #include "linux/module.h"
3
4 /* Some of this are builtin function (some are not but could in the future),
5  * so I *must* declare good prototypes for them and then EXPORT them.
6  * The kernel code uses the macro defined by include/linux/string.h,
7  * so I undef macros; the userspace code does not include that and I
8  * add an EXPORT for the glibc one.*/
9
10 #undef strlen
11 #undef strstr
12 #undef memcpy
13 #undef memset
14
15 extern size_t strlen(const char *);
16 extern void *memcpy(void *, const void *, size_t);
17 extern void *memset(void *, int, size_t);
18 extern int printf(const char *, ...);
19
20 EXPORT_SYMBOL(strlen);
21 EXPORT_SYMBOL(memcpy);
22 EXPORT_SYMBOL(memset);
23 EXPORT_SYMBOL(printf);
24
25 EXPORT_SYMBOL(strstr);
26
27 /* Here, instead, I can provide a fake prototype. Yes, someone cares: genksyms.
28  * However, the modules will use the CRC defined *here*, no matter if it is 
29  * good; so the versions of these symbols will always match
30  */
31 #define EXPORT_SYMBOL_PROTO(sym)       \
32        int sym(void);                  \
33        EXPORT_SYMBOL(sym);
34
35 EXPORT_SYMBOL_PROTO(__errno_location);
36
37 EXPORT_SYMBOL_PROTO(access);
38 EXPORT_SYMBOL_PROTO(open);
39 EXPORT_SYMBOL_PROTO(open64);
40 EXPORT_SYMBOL_PROTO(close);
41 EXPORT_SYMBOL_PROTO(read);
42 EXPORT_SYMBOL_PROTO(write);
43 EXPORT_SYMBOL_PROTO(dup2);
44 EXPORT_SYMBOL_PROTO(__xstat);
45 EXPORT_SYMBOL_PROTO(__lxstat);
46 EXPORT_SYMBOL_PROTO(__lxstat64);
47 EXPORT_SYMBOL_PROTO(lseek);
48 EXPORT_SYMBOL_PROTO(lseek64);
49 EXPORT_SYMBOL_PROTO(chown);
50 EXPORT_SYMBOL_PROTO(truncate);
51 EXPORT_SYMBOL_PROTO(utime);
52 EXPORT_SYMBOL_PROTO(chmod);
53 EXPORT_SYMBOL_PROTO(rename);
54 EXPORT_SYMBOL_PROTO(__xmknod);
55
56 EXPORT_SYMBOL_PROTO(symlink);
57 EXPORT_SYMBOL_PROTO(link);
58 EXPORT_SYMBOL_PROTO(unlink);
59 EXPORT_SYMBOL_PROTO(readlink);
60
61 EXPORT_SYMBOL_PROTO(mkdir);
62 EXPORT_SYMBOL_PROTO(rmdir);
63 EXPORT_SYMBOL_PROTO(opendir);
64 EXPORT_SYMBOL_PROTO(readdir);
65 EXPORT_SYMBOL_PROTO(closedir);
66 EXPORT_SYMBOL_PROTO(seekdir);
67 EXPORT_SYMBOL_PROTO(telldir);
68
69 EXPORT_SYMBOL_PROTO(ioctl);
70
71 EXPORT_SYMBOL_PROTO(pread64);
72 EXPORT_SYMBOL_PROTO(pwrite64);
73
74 EXPORT_SYMBOL_PROTO(statfs);
75 EXPORT_SYMBOL_PROTO(statfs64);
76
77 EXPORT_SYMBOL_PROTO(getuid);
78
79 /*
80  * Overrides for Emacs so that we follow Linus's tabbing style.
81  * Emacs will notice this stuff at the end of the file and automatically
82  * adjust the settings for this buffer only.  This must remain at the end
83  * of the file.
84  * ---------------------------------------------------------------------------
85  * Local variables:
86  * c-file-style: "linux"
87  * End:
88  */