On Thu, Aug 7, 2008 at 2:47 PM, Ivan Zakharyaschev <[EMAIL PROTECTED]> wrote:

>> The only way I know to get the process capabilities
>> is interpreting a file in /proc, which I feel inefficient.

> It's written there exists a Linux-specific (unfortunately) API for this:
>
>       capgetp fills an existing cap_d, see cap_init(3), with the

I must have said that I found this capgetp() in the perhaps outdated
libcap-1.10, and capgetp() in its turn uses the "raw kernel interface"
capget(); citing its manpage:

"Not only are these system calls specific to Linux,  but the kernel
API is likely to change and use of these functions <...>  If you wish
to use the Linux extensions in applications, you should use the
easier-to-use interfaces capsetp(3) and capgetp(3)."

Regards,
-- 
Ivan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to