#include <kern/task.h>
#include <vm/vm_map.h>
+extern void *get_bsduthreadarg(thread_t);
+extern int *get_bsduthreadrval(thread_t);
/*
* copy a null terminated string from one point to another in
copystr(const void *vfrom, void *vto, size_t maxlen, size_t *lencopied)
{
register unsigned l;
- caddr_t from, to;
+ const char *from;
+ char *to;
from = vfrom;
to = vto;