From owner-p4-projects@FreeBSD.ORG Sun Jan 31 15:43:02 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 484C61065679; Sun, 31 Jan 2010 15:43:02 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C8761065672 for ; Sun, 31 Jan 2010 15:43:02 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id EC9968FC13 for ; Sun, 31 Jan 2010 15:43:01 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0VFh1AQ073815 for ; Sun, 31 Jan 2010 15:43:01 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0VFh1I8073813 for perforce@freebsd.org; Sun, 31 Jan 2010 15:43:01 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 31 Jan 2010 15:43:01 GMT Message-Id: <201001311543.o0VFh1I8073813@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 174030 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2010 15:43:02 -0000 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 ,