summaryrefslogtreecommitdiff
path: root/src/ux-file.c
diff options
context:
space:
mode:
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);
+}