From 6e8ea08166b53507f38ed7f435728b7470a061ab Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 21 Nov 2014 15:21:07 +0100 Subject: trying to port binutils --- userspace/sys.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 userspace/sys.c (limited to 'userspace/sys.c') 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 +#include +#include + + +// 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; +} -- cgit v1.2.3