From bdb4511692e5f8f451afec01f25f5cf0982ca325 Mon Sep 17 00:00:00 2001 From: bsd Date: Wed, 3 May 2006 17:33:29 +0000 Subject: [PATCH] A few minor wording changes and a clarification about error conditions. --- lib/libc/i386/sys/i386_set_watch.3 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 ,