diff --git a/lib/libc/i386/sys/i386_set_watch.3 b/lib/libc/i386/sys/i386_set_watch.3 index 15b8497acc95..e3195fc4d7d6 100644 --- a/lib/libc/i386/sys/i386_set_watch.3 +++ b/lib/libc/i386/sys/i386_set_watch.3 @@ -86,24 +86,24 @@ You must use .Xr ptrace 2 to retrieve and install the debug register values for a process. .Sh RETURN VALUES -The +On success, the .Fn i386_clr_watch -function -returns 0 on success, or -1 if +function returns 0. +On error, -1 returned which indicates that .Fa watchnum is invalid (not in the range of 0-3). +If the specified watchnum was already disabled, no error is returned. .Pp -The +On success, the .Fn i386_set_watch -function -will return the +function returns the .Fa watchnum -argument, or the watchnum actually used in the case that +argument, or the watchnum actually used in the case where the specified .Fa watchnum -is -1 on success. -On error, +was -1. +On error, the .Fn i386_set_watch -will return -1 indicating that the watchpoint could not be set up +function returns -1 indicating that the watchpoint could not established because either no more watchpoints are available, or .Fa watchnum , .Fa size ,