PERFORCE change 174092 for review

Jonathan Anderson jona at FreeBSD.org
Mon Feb 1 15:03:44 UTC 2010


http://p4web.freebsd.org/chv.cgi?CH=174092

Change 174092 by jona at 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>


More information about the p4-projects mailing list