1 #include <errno.h>
2 #include <stddef.h>
3 #include "internal.h"
4
chown(const char * path,long uid,long gid)5 EXPORT_SYMBOL int chown(const char *path, long uid, long gid)
6 {
7 return -(errno = ENOSYS);
8 }
9
fchmod(int fd,long perm)10 EXPORT_SYMBOL int fchmod(int fd, long perm)
11 {
12 return -(errno = ENOSYS);
13 }
14
fchown(int fd,long uid,long gid)15 EXPORT_SYMBOL int fchown(int fd, long uid, long gid)
16 {
17 return -(errno = ENOSYS);
18 }
19
lchown(const char * path,long uid,long gid)20 EXPORT_SYMBOL int lchown(const char *path, long uid, long gid)
21 {
22 return -(errno = ENOSYS);
23 }
24
lstat(const char * path,struct stat * sb)25 EXPORT_SYMBOL int lstat(const char *path, struct stat *sb)
26 {
27 return stat(path, sb);
28 }
29
mkfifo(const char * path,long mode)30 EXPORT_SYMBOL int mkfifo(const char *path, long mode)
31 {
32 return -(errno = EPERM);
33 }
34
mknod(const char * path,long mode,long dev)35 EXPORT_SYMBOL int mknod(const char *path, long mode, long dev)
36 {
37 return -(errno = EPERM);
38 }
39
readlink(const char * path,char * dest,size_t len)40 EXPORT_SYMBOL int readlink(const char *path, char *dest, size_t len)
41 {
42 return -(errno = EINVAL);
43 }
44
symlink(const char * src,const char * dest)45 EXPORT_SYMBOL int symlink(const char *src, const char *dest)
46 {
47 return -(errno = EPERM);
48 }
49