diff options
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r-- | src/kernel/proc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 0de740f..4ad6580 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -145,3 +145,7 @@ size_t pcpy_bi( Proc *srcp, const __user void *src, size_t len ); +/* Copies a NUL-terminated string from the process. + * Returns the size of the string including the NUL terminator, + * and 0 on error or if the string didn't fit in dst. */ +size_t pcpy_from_str(Proc *p, char *dst, const __user char *src, size_t len); |