Determines if a privilege belongs to a privilege set.
Security Library (libc.a)
The privbit_test subroutine determines whether the privilege specified by the priv parameter is contained within the privilege set specified by the pv parameter.
| Item | Description |
|---|---|
| pv | Specifies the privilege set. |
| priv | Specifies the privilege. |
The privbit_test subroutine returns one of the following values:
| Item | Description |
|---|---|
| 0 | The value of the priv parameter is not contained within the value of the pv parameter. |
| 1 | The value of the priv parameter is contained within the value of the pv parameter. |
No errno value is set.