Initializes a previously allocated resource set.
Standard C library (libc.a)
The rs_init subroutine initializes a previously allocated resource set. The resource set is initialized according to information specified by the flags parameter.
Item | Description |
---|---|
rset | Specifies the handle of the resource set to initialize. |
flags | Specifies how the resource set is initialized.
It takes one of the following values, defined in rset.h:
|
If successful, a value of 0 is returned. If unsuccessful, a value of -1 is returned, and the errno global variable is set to indicate the error.
The rs_init subroutine is unsuccessful if one or more of the following are true:
Item | Description |
---|---|
EINVAL | The flags parameter contains an invalid value. |