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.*/
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 *, ...);
20 EXPORT_SYMBOL(strlen);
21 EXPORT_SYMBOL(memcpy);
22 EXPORT_SYMBOL(memset);
23 EXPORT_SYMBOL(printf);
25 EXPORT_SYMBOL(strstr);
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
31 #define EXPORT_SYMBOL_PROTO(sym) \
35 EXPORT_SYMBOL_PROTO(__errno_location);
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);
56 EXPORT_SYMBOL_PROTO(symlink);
57 EXPORT_SYMBOL_PROTO(link);
58 EXPORT_SYMBOL_PROTO(unlink);
59 EXPORT_SYMBOL_PROTO(readlink);
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);
69 EXPORT_SYMBOL_PROTO(ioctl);
71 EXPORT_SYMBOL_PROTO(pread64);
72 EXPORT_SYMBOL_PROTO(pwrite64);
74 EXPORT_SYMBOL_PROTO(statfs);
75 EXPORT_SYMBOL_PROTO(statfs64);
77 EXPORT_SYMBOL_PROTO(getuid);
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
84 * ---------------------------------------------------------------------------
86 * c-file-style: "linux"