Discards a resource set definition from the system resource set registry.
Standard C library (libc.a)
#include <sys/rset.h> int rs_discardname(namespace, rsname) char *namespace, *rsname;
The rs_discardname subroutine discards from the system global repository the definition of the resource set. The resource set is identified by the namespace and rsname parameters. The specified resource set is removed from the registry, and can no longer be shared with other applcations.
In order to be able to discard a name from the global repository, the calling process must have root authority or attachment privilege, and an effective user ID equal to that of the rsname parameter's creator.
If successful, a value of 0 is returned. Otherwise, a value of -1 is returned, and the errno global variable is set to indicate the error.
The rs_discardname subroutine is unsuccessful if one or more of the following are true:
EINVAL | One of the following is true:
|
EPERM | One of the following is true:
|
EFAULT | Invalid address, and/or exceptions outside errno range. |
rs_getnameattr Subroutine, rs_registername Subroutine, and rs_getnamedrset Subroutine.