/kernel/trunk/generic/src/syscall/copy.c |
---|
54,7 → 54,7 |
* |
* @return 0 on success or error code from @ref errno.h. |
*/ |
int copy_from_uspace(void *dst, void *uspace_src, size_t size) |
int copy_from_uspace(void *dst, const void *uspace_src, size_t size) |
{ |
ipl_t ipl; |
int rc; |
95,7 → 95,7 |
* |
* @return 0 on success or error code from @ref errno.h. |
*/ |
int copy_to_uspace(void *uspace_dst, void *src, size_t size) |
int copy_to_uspace(void *uspace_dst, const void *src, size_t size) |
{ |
ipl_t ipl; |
int rc; |
/kernel/trunk/generic/src/syscall/syscall.c |
---|
43,6 → 43,7 |
#include <ipc/sysipc.h> |
#include <synch/futex.h> |
#include <ddi/ddi.h> |
#include <syscall/copy.h> |
static __native sys_io(int fd, const void * buf, size_t count) { |
49,6 → 50,7 |
// TODO: buf sanity checks and a lot of other stuff ... |
size_t i; |
char str[10]; |
for (i = 0; i < count; i++) |
putchar(((char *) buf)[i]); |