diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-21 15:37:45 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-21 15:37:45 +0100 |
| commit | 65a859ac5b721c8d3e0123351ad99690e2e7a876 (patch) | |
| tree | f47d53ecc9ff47451832f72fc306d20ea1bb1332 /userspace/sys/sys.c | |
| parent | 6e8ea08166b53507f38ed7f435728b7470a061ab (diff) | |
preparing switch to ELF userspace
Diffstat (limited to 'userspace/sys/sys.c')
| -rw-r--r-- | userspace/sys/sys.c | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/userspace/sys/sys.c b/userspace/sys/sys.c new file mode 100644 index 0000000..7dcfaee --- /dev/null +++ b/userspace/sys/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; +} |
