K 10 svn:author V 7 rwatson K 8 svn:date V 27 2010-02-03T11:22:03.765128Z K 7 svn:log V 647 Merge c174211, c174213, c174214, and c174218 from the p4 TrustedBSD Capabilities branch to capabilities8: There's no IN_CAP_MODE definition for libcapsicum, so just test for a negative fd_rtld before closing. Improve style alignment of capability-related code with existing rtld style (which isn't style(9)). Add missing free of string and explicit NULL return on error. Keep a running count of valid file descriptors in the directory length array, rather than marking unused ones as (-1). This avoids several loops. While here, fix a (+ sizeof(int)) into a (* sizeof(int)) and a few other nits. Sponsored by: Google, Inc. END