Updated: April 19, 2023 |
Get the type identifier of a spawn attributes object
#include <spawn.h> int posix_spawnattr_gettypeid( const posix_spawnattr_t *attrp, uint32_t *type_id_p);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
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 the 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().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |