level2: update the remaining bits to get a level2 library
authorAlan Cox <alan@linux.intel.com>
Sat, 9 Jan 2016 16:45:24 +0000 (16:45 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 9 Jan 2016 16:45:24 +0000 (16:45 +0000)
Library/include/syscalls.h
Library/libs/fuzix/Makefile

index 04002c9..aedddaa 100644 (file)
@@ -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);
index 9935cf5..b1787ee 100644 (file)
@@ -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)