Registry / utility / libcap

libcap

JSON →
library2.77vcpkgunverified

A library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.

vcpkg install libcap
INSTALL
IMPORT
SIG · LIBCAP
L
libcap
utilitycppv2.77
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sys/capability.h
#include <sys/capability.h>

Retrieve current process capabilities

#include <sys/capability.h> #include <stdio.h> int main() { cap_t caps = cap_get_proc(); if (caps) { printf("Capabilities retrieved\n"); cap_free(caps); } return 0; }
Debug
Known issues
breakingLinux-only library; not available on other platforms
fix
Guard with #ifdef __linux__ or use platform checks
affects: all
Upgrade
Version history
2.77latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

libcap — pip install libcap · libregistry