nullptr(3X) nullptr(3X)
NAME
nullptr - null pointer control
SYNOPSIS
cc [flag ...] file ... -lext [library ...]
#include <sys/sysmips.h>
void nullptrcontrol(int trapnullptrs, int inherit);
DESCRIPTION
nullptr controls how null pointers are treated for this process and/or
its descendants. By default read references to address 0 (such as
dereferencing a null pointer) are silently satisfied by the kernel.
nullptrcontrol allows the user control over this effect for specific
processes and their descendants.
If the first argument, trapnullptrs, is non-zero, dereferences of
address 0 will not be satisfied for this process. This will typically
generate a SIGSEGV signal.
If the first argument, trapnullptrs, is zero, dereferences of address
0 are satisfied for this process. This is the default.
If the second argument, inherit, is set, the value of the first argu-
ment is propagated to the processes children in addition to effecting
the process.
RETURN VALUE
A return value of 0 is expected. A return value of -1 means some
unknown error occurred.
SEE ALSO
launchit(1M).
Page 1 Reliant UNIX 5.44 Printed 11/98