PERFORCE change 174030 for review
Robert Watson
rwatson at FreeBSD.org
Sun Jan 31 15:43:02 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=174030
Change 174030 by rwatson at rwatson_vimage_client on 2010/01/31 15:42:36
Fix further nits, document return values for fdlist functions.
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_fdlist.3#3 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_fdlist.3#3 (text+ko) ====
@@ -50,7 +50,7 @@
.Fn lc_fdlist_global "void"
.Ft struct lc_fdlist *
.Fn lc_fdlist_dup "struct lc_fdlist *orig"
-.Ft int
+.Ft void
.Fn lc_fdlist_free "struct lc_fdlist *l"
.Ft int
.Fn lc_fdlist_add "struct lc_fdlist **l" "const char *subsystem" "const char *classname" "const char *name" "int fd"
@@ -147,6 +147,20 @@
.Fa name
from the file descriptor list
.Fa l .
+.Sh RETURN VALUES
+The
+.Fn lc_fdlist_new ,
+.Fn lc_flist_global ,
+and
+.Fn lc_fdlist_dup
+functions return a pointer to the desired file descriptor list if successful;
+otherwise the value
+.Dv NULL
+is returned and the global variable
+.Va errno
+is set to indicate the error.
+.Pp
+.Rv -std lc_fdlist_add lc_fdlist_addcap lc_fdlist_lookup
.Sh SEE ALSO
.Xr cap_new 2 ,
.Xr close 2 ,
More information about the p4-projects
mailing list