posix_spawnattr_gettypeid()
Get the type identifier of a spawn attributes object
Synopsis:
#include <spawn.h>
int posix_spawnattr_gettypeid(
const posix_spawnattr_t *attrp, uint32_t *type_id_p);
Arguments:
- attrp
- A pointer to the spawn attributes object that you want to query.
- type_id_p
- A pointer to a location where the function can store the type identifier that it retrieves.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
A type identifier associates a process or channel with a set of
rules in order to protect or restrict it. The security policy contains the rules for all type
identifiers. To learn more about security policies, see Security Policies
in the System Security Guide.
The posix_spawnattr_gettypeid() function retrieves the type identifier from the spawn attributes object pointed to by attrp. You must have already initialized the spawn attributes object by calling posix_spawnattr_init().
For more information about spawn attributes, see the entry for posix_spawn().
Returns:
- EOK
- Success.
- EINVAL
- The attrp pointer does not refer to a valid attribute structure.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | Yes |
Thread | Yes |