Fix man pages
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 30 Oct 2013 13:52:19 +0000 (15:52 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 30 Oct 2013 13:56:11 +0000 (15:56 +0200)
Regression from 1edba54.
(cherry picked from commit e6f32e4403ad549102cfbdbd02b4dcd254da84d2)

doc/smack_accesses_add.3
doc/smack_have_access.3

index ec32423..0488590 100644 (file)
@@ -110,9 +110,7 @@ label directly in the kernel.  The calling process must have the CAP_MAC_ADMIN c
 .SH RETURN VALUE
 All methods, except
 .IR smack_accesses_free ,
-return 0 on success and a negative value on failure (in which case
-.I errno
-is set appropriately).
+return 0 on success and a negative value on failure
 .SH EXAMPLES
 .nf
 #include <sys/smack.h>
index 2f6e535..3942e22 100644 (file)
@@ -76,11 +76,12 @@ when it is no longer required.
 .BR smack_new_label_from_self ()
 and
 .BR smack_new_label_from_socket ()
-return 0 on success or \-1 on error (in which case,
-.I errno
-is set appropriately).
+return 0 on success or \-1 on error
 
 .BR smack_have_access ()
-returns 1 if allowed, 0 if no access and \-1 on error (in which case,
-.I errno
-is set appropriately).
+returns 1 if allowed, 0 if no access and \-1 on error
+
+.BR smack_label_length ()
+returns length of
+.I label
+if it is valid and negative value if it's not.