#include <sys/kauth.h>
#include <sys/ucred.h>
#include <sys/proc_internal.h>
+#include <sys/sysproto.h>
#include <sys/user.h>
#include <kern/task.h>
#include <kern/thread.h>
#include <vm/vm_map.h>
+
/*
* copy a null terminated string from the kernel address space into the user
* address space. - if the user is denied write access, return EFAULT. - if
error = ENAMETOOLONG;
}
- len = min(maxlen, slen);
+ len = MIN(maxlen, slen);
if (copyout(from, to, len)) {
error = EFAULT;
}
bcopy(src, dst, count);
return 0;
}
+