From 6f566c30b93b6e894bf0f319a22dc263dfd64df8 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 9 Jan 2016 16:45:24 +0000 Subject: [PATCH] level2: update the remaining bits to get a level2 library --- Library/include/syscalls.h | 9 +++++++++ Library/libs/fuzix/Makefile | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/Library/include/syscalls.h b/Library/include/syscalls.h index 04002c97..aedddaad 100644 --- a/Library/include/syscalls.h +++ b/Library/include/syscalls.h @@ -143,6 +143,14 @@ extern int rename(const char *path, const char *newpath); extern int flock(int fd, int op); extern pid_t getpgrp(void); extern int sched_yield(void); +extern int acct(const char *filename); +extern int setgroups(size_t size, const gid_t *groups); +extern int getgroups(int size, gid_t *groups); +extern int getrlimit(int resource, struct rlimit *rlim); +extern int setrlimit(int resource, const struct rlimit *rlim); +extern int setpgid(pid_t pid, pid_t pgrp); +extern pid_t setsid(void); +extern pid_t getsid(pid_t pid); /* asm syscall hooks with C wrappers */ extern int _getdirent(int fd, void *buf, int len); @@ -156,6 +164,7 @@ extern int _utime(const char *file, __ktime_t *buf); extern int _uname(struct _uzisysinfoblk *uzib, int len); extern int _profil(void *samples, uint16_t offset, uint16_t size, int16_t scale); extern int _lseek(int fd, off_t *offset, int mode); +extern int _select(int nfd, uint16_t *base); /* C library provided syscall emulation */ extern int stat(const char *path, struct stat *s); diff --git a/Library/libs/fuzix/Makefile b/Library/libs/fuzix/Makefile index 9935cf5f..b1787ee7 100644 --- a/Library/libs/fuzix/Makefile +++ b/Library/libs/fuzix/Makefile @@ -68,6 +68,23 @@ ASRCS += syscall__sigdisp.s ASRCS += syscall_flock.s ASRCS += syscall_getpgrp.s ASRCS += syscall_yield.s +ASRCS += syscall_acct.s +ASRCS += syscall_memalloc.s +ASRCS += syscall_memfree.s +ASRCS += syscall__nosys66.s +ASRCS += syscall__nosys67.s +ASRCS += syscall__nosys68.s +ASRCS += syscall__nosys69.s +ASRCS += syscall__nosys70.s +ASRCS += syscall__nosys71.s +ASRCS += syscall__select.s +ASRCS += syscall_setgroups.s +ASRCS += syscall_getgroups.s +ASRCS += syscall_getrlimit.s +ASRCS += syscall_setrlimit.s +ASRCS += syscall_setpgid.s +ASRCS += syscall_setsid.s +ASRCS += syscall_getsid.s ASRCALL = $(ASRCS) $(ASYS) -- 2.34.1