|POSIX_SPAWNATTR_INIT(3)||Library Functions Manual||POSIX_SPAWNATTR_INIT(3)|
create and destroy posix_spawn attributes object
Initialization fills an attributes object pointed by attr with the default values for all the attributes.
Multiple initialization of the same object is undefined behavior and will lead to memory leaks.
Similarly, objects should be passed
to reclaim memory. The object should not be re-used after destruction. It
can however be initialized again with
Attribute details are described in posix_spawnattr_setflags(3).
Modifying or destroying attributes object will not affect processes that have already been spawned.
These function return 0 on successful completion. They may return
ENOMEM when running out of memory.
Both functions conform to IEEE Std 1003.1-2001 (“POSIX.1”).
Ed Schouten <ed@FreeBSD.org>
|November 30, 2014||OpenBSD-current|