diff options
author | dzwdz | 2023-06-10 18:29:04 +0200 |
---|---|---|
committer | dzwdz | 2023-06-10 18:29:04 +0200 |
commit | 06ac0bafe94a847395346fec33de59b71b89b4a4 (patch) | |
tree | 002b74a782e64d1aabee6d12f77625c2b94212c9 /src/user/lib | |
parent | 17fe7bc9c8311f7e192385e47550607e61874528 (diff) |
libc: last stubs needed for dash to run! :^)
Diffstat (limited to 'src/user/lib')
-rw-r--r-- | src/user/lib/unistd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/user/lib/unistd.c b/src/user/lib/unistd.c index 4323a41..578cadc 100644 --- a/src/user/lib/unistd.c +++ b/src/user/lib/unistd.c @@ -168,17 +168,17 @@ int chown(const char *path, uid_t owner, gid_t group) { int setpgid(pid_t pid, pid_t pgid) { (void)pid; (void)pgid; - __libc_panic("unimplemented"); + return errno = ENOSYS, -1; } pid_t tcgetpgrp(int fd) { (void)fd; - __libc_panic("unimplemented"); + return errno = ENOSYS, -1; } int tcsetpgrp(int fd, pid_t pgrp) { (void)fd; (void)pgrp; - __libc_panic("unimplemented"); + return errno = ENOSYS, -1; } pid_t getpgrp(void) { @@ -199,8 +199,8 @@ int getgroups(int size, gid_t list[]) { } ssize_t read(int fd, void *buf, size_t count) { - (void)fd; (void)buf; (void)count; - __libc_panic("unimplemented"); + // TODO real file descriptor emulation - store offsets + return _sys_read(fd, buf, count, -1); } ssize_t write(int fd, const void *buf, size_t count) { |