diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-21 15:21:07 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-21 15:21:07 +0100 |
| commit | 6e8ea08166b53507f38ed7f435728b7470a061ab (patch) | |
| tree | d0669f3a70963056dbd7ffc59ab04e5cd172c52e /userspace/sys.c | |
| parent | 1f460d7d4fcbf29e21b3da77eab247f528f02f19 (diff) | |
trying to port binutils
Diffstat (limited to 'userspace/sys.c')
| -rw-r--r-- | userspace/sys.c | 55 |
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; +} |
