initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / um / os-Linux / user_syms.c
blob2433c9e68d0ad74b9950cf79a07fa442b84ae457
1 #include "linux/types.h"
2 #include "linux/module.h"
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.*/
10 #undef strlen
11 #undef strstr
12 #undef memcpy
13 #undef memset
15 extern size_t strlen(const char *);
16 extern void *memcpy(void *, const void *, size_t);
17 extern void *memmove(void *, const void *, size_t);
18 extern void *memset(void *, int, size_t);
19 extern int printf(const char *, ...);
21 EXPORT_SYMBOL(strlen);
22 EXPORT_SYMBOL(memcpy);
23 EXPORT_SYMBOL(memmove);
24 EXPORT_SYMBOL(memset);
25 EXPORT_SYMBOL(printf);
27 EXPORT_SYMBOL(strstr);
29 /* Here, instead, I can provide a fake prototype. Yes, someone cares: genksyms.
30 * However, the modules will use the CRC defined *here*, no matter if it is
31 * good; so the versions of these symbols will always match
33 #define EXPORT_SYMBOL_PROTO(sym) \
34 int sym(void); \
35 EXPORT_SYMBOL(sym);
37 EXPORT_SYMBOL_PROTO(__errno_location);
39 EXPORT_SYMBOL_PROTO(access);
40 EXPORT_SYMBOL_PROTO(open);
41 EXPORT_SYMBOL_PROTO(open64);
42 EXPORT_SYMBOL_PROTO(close);
43 EXPORT_SYMBOL_PROTO(read);
44 EXPORT_SYMBOL_PROTO(write);
45 EXPORT_SYMBOL_PROTO(dup2);
46 EXPORT_SYMBOL_PROTO(__xstat);
47 EXPORT_SYMBOL_PROTO(__lxstat);
48 EXPORT_SYMBOL_PROTO(__lxstat64);
49 EXPORT_SYMBOL_PROTO(lseek);
50 EXPORT_SYMBOL_PROTO(lseek64);
51 EXPORT_SYMBOL_PROTO(chown);
52 EXPORT_SYMBOL_PROTO(truncate);
53 EXPORT_SYMBOL_PROTO(utime);
54 EXPORT_SYMBOL_PROTO(chmod);
55 EXPORT_SYMBOL_PROTO(rename);
56 EXPORT_SYMBOL_PROTO(__xmknod);
58 EXPORT_SYMBOL_PROTO(symlink);
59 EXPORT_SYMBOL_PROTO(link);
60 EXPORT_SYMBOL_PROTO(unlink);
61 EXPORT_SYMBOL_PROTO(readlink);
63 EXPORT_SYMBOL_PROTO(mkdir);
64 EXPORT_SYMBOL_PROTO(rmdir);
65 EXPORT_SYMBOL_PROTO(opendir);
66 EXPORT_SYMBOL_PROTO(readdir);
67 EXPORT_SYMBOL_PROTO(closedir);
68 EXPORT_SYMBOL_PROTO(seekdir);
69 EXPORT_SYMBOL_PROTO(telldir);
71 EXPORT_SYMBOL_PROTO(ioctl);
73 EXPORT_SYMBOL_PROTO(pread64);
74 EXPORT_SYMBOL_PROTO(pwrite64);
76 EXPORT_SYMBOL_PROTO(statfs);
77 EXPORT_SYMBOL_PROTO(statfs64);
79 EXPORT_SYMBOL_PROTO(getuid);
82 * Overrides for Emacs so that we follow Linus's tabbing style.
83 * Emacs will notice this stuff at the end of the file and automatically
84 * adjust the settings for this buffer only. This must remain at the end
85 * of the file.
86 * ---------------------------------------------------------------------------
87 * Local variables:
88 * c-file-style: "linux"
89 * End: