summaryrefslogtreecommitdiff
path: root/src/ux-file.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-02-04 14:09:54 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-02-04 14:09:54 +0100
commitbd82d030011cd8b9655e5ded6b6df9343b42a6bd (patch)
treede82d886dfea0cb7dbb6e80436218a25cb211bc3 /src/ux-file.c
Imported Upstream version 3.22upstream/3.22
Diffstat (limited to 'src/ux-file.c')
-rw-r--r--src/ux-file.c48
1 files changed, 48 insertions, 0 deletions
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 <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);
+}