From bd82d030011cd8b9655e5ded6b6df9343b42a6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 4 Feb 2015 14:09:54 +0100 Subject: Imported Upstream version 3.22 --- src/ux-file.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/ux-file.c (limited to 'src/ux-file.c') diff --git a/src/ux-file.c b/src/ux-file.c new file mode 100644 index 0000000..383f169 --- /dev/null +++ b/src/ux-file.c @@ -0,0 +1,48 @@ +#include +#include +#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); +} -- cgit v1.2.3