Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2010 15:43:01 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 174030 for review
Message-ID:  <201001311543.o0VFh1I8073813@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=174030

Change 174030 by rwatson@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 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001311543.o0VFh1I8073813>