summaryrefslogtreecommitdiff
path: root/userspace/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/sys.c')
-rw-r--r--userspace/sys.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/userspace/sys.c b/userspace/sys.c
new file mode 100644
index 0000000..7dcfaee
--- /dev/null
+++ b/userspace/sys.c
@@ -0,0 +1,55 @@
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+
+
+// building binutils required this stubs!
+long sysconf(int name)
+{
+ return 0;
+}
+
+
+mode_t umask(mode_t mask)
+{
+ return mask;
+}
+
+int chmod(const char * path, mode_t mode)
+{
+ return 0;
+}
+
+int fcntl(int fd, int cmd, ...)
+{
+ return -1;
+}
+
+int lstat(const char *path, struct stat *buf)
+{
+ return -1;
+}
+
+char *getwd(char *buf)
+{
+ return buf;
+}
+int access(const char *pathname, int mode)
+{
+ return 0;
+}
+
+int utime(const char *filename, const int *x)
+{
+ return 0;
+}
+
+int rmdir (const char *pathname)
+{
+ return -1;
+}
+
+int chown(const char *path, uid_t owner, gid_t group)
+{
+ return 0;
+}