Date: Mon, 1 Feb 2010 15:03:43 GMT From: Jonathan Anderson <jona@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 174092 for review Message-ID: <201002011503.o11F3hdF070928@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=174092 Change 174092 by jona@jona-belle-freebsd8 on 2010/02/01 15:03:13 ld_libdirs(int**) => ld_libdirs(int*,int*) Affected files ... .. //depot/projects/trustedbsd/capabilities/src/lib/libc/gen/ld_libdirs.c#1 add .. //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum.h#10 edit .. //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_host.c#9 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum.h#10 (text+ko) ==== @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum.h#9 $ + * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum.h#10 $ */ #ifndef _LIBCAPABILITY_H_ @@ -222,9 +222,11 @@ */ int ld_libcache_lookup(const char *libname, int *fdp); int ld_insandbox(void); - -/* If this call is successful, the caller is responsible for freeing 'fds'. */ -int ld_libdirs(int **fds); +/* + * If this call fails because the buffer 'fds' is too small, 'fdlen' will contain + * the size of the array which is actually required. + */ +int ld_libdirs(int *fds, int *fdlen); /* * Applications may declare an alternative entry point to the default ELF ==== //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_host.c#9 (text+ko) ==== @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_host.c#8 $ + * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_host.c#9 $ */ #include <sys/param.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002011503.o11F3hdF070928>