posix_spawnattr_gettypeid()

Updated: April 19, 2023

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 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().

Note: This function is a QNX Neutrino extension.

Returns:

EOK
Success.
EINVAL
The value specified by attrp or type_id_p is invalid.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes