summaryrefslogtreecommitdiff
path: root/src/ux-file.c
blob: 383f169f327cc2bbb960d38506a343298e83f5af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <errno.h>
#include <stddef.h>
#include "internal.h"

EXPORT_SYMBOL int chown(const char *path, long uid, long gid)
{
	return -(errno = ENOSYS);
}

EXPORT_SYMBOL int fchmod(int fd, long perm)
{
	return -(errno = ENOSYS);
}

EXPORT_SYMBOL int fchown(int fd, long uid, long gid)
{
	return -(errno = ENOSYS);
}

EXPORT_SYMBOL int lchown(const char *path, long uid, long gid)
{
	return -(errno = ENOSYS);
}

EXPORT_SYMBOL int lstat(const char *path, struct stat *sb)
{
	return stat(path, sb);
}

EXPORT_SYMBOL int mkfifo(const char *path, long mode)
{
	return -(errno = EPERM);
}

EXPORT_SYMBOL int mknod(const char *path, long mode, long dev)
{
	return -(errno = EPERM);
}

EXPORT_SYMBOL int readlink(const char *path, char *dest, size_t len)
{
	return -(errno = EINVAL);
}

EXPORT_SYMBOL int symlink(const char *src, const char *dest)
{
	return -(errno = EPERM);
}