Changeset 204674e in mainline for generic/src/syscall/syscall.c
- Timestamp:
- 2006-01-15T16:49:10Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4be51c8
- Parents:
- 81703f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/syscall/syscall.c
r81703f9 r204674e 27 27 */ 28 28 29 #include <arch/types.h>30 29 #include <syscall/syscall.h> 30 #include <print.h> 31 #include <putchar.h> 31 32 32 33 int sys_ctl(void) { 34 printf("SYS_CTL\n"); 33 35 return 0; 34 36 } 35 37 36 int sys_io(void) { 38 int sys_io(int fd, const void * buf, size_t count) { 39 40 // TODO: buf sanity checks and a lot of other stuff ... 41 42 size_t i; 43 44 for (i = 0; i < count; i++) 45 putchar(((char *) buf)[i]); 46 37 47 return 0; 38 48 }
Note:
See TracChangeset
for help on using the changeset viewer.