Destroy a system resource
#include <sys/rsrcdbmgr.h> #include <sys/rsrcdbmsg.h> int rsrcdbmgr_destroy( rsrc_alloc_t *item, int count );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The rsrcdbmgr_destroy() function removes count system resources that are defined in the array item.
In order to successfully use the rsrcdbmgr_*() functions to modify the resource database, your process must run as root. |
See the example in rsrcdbmgr_create().
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |