posix_spawnattr_getaslr()

QNX SDP8.0C Library ReferenceAPIDeveloper

Return the address space layout randomization (ASLR) setting from a posix_spawn() attribute structure

Synopsis:

#include <spawn.h>

int posix_spawnattr_getaslr(
       const posix_spawnattr_t * attrp,
       posix_spawnattr_aslr_t * aslr);

Arguments:

attrp
A pointer to the opaque spawn attributes object.
aslr
Holds the extracted ASLR setting; one of:
POSIX_SPAWN_ASLR_DEFAULT
The process inherits its parent's settings (equivalent to not setting the attribute).
POSIX_SPAWN_ASLR_ENABLE
Enable ASLR.
POSIX_SPAWN_ASLR_DISABLE
Disable ASLR.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The posix_spawnattr_getaslr() function gets the value of the address space layout randomization (ASLR) setting in the spawn attributes object that attrp points to. You must have already initialized this 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:

QNX OS

Safety:
Cancellation point No
Signal handler Yes
Thread Yes
Page updated: