Name

posix_spawnattr_getflags,posix_spawnattr_setflags - get/set spawn-flags attribute of a spawn attributes object.


Library

libc.lib


Synopsis

#include <spawn.h>

int posix_spawnattr_getflags(const posix_spawnattr_t * attr,short * flags);
int posix_spawnattr_setflags(posix_spawnattr_t *attr, short flags);

Detailed Description

The posix_spawnattr_getflags will get the value of the spawn-flags attribute from the attributes object referenced by the argument attr.

The
posix_spawnattr_setflags will set the spawn-flags attribute in an initialized attributes object referenced by the argument attr.

The spawn-flags attribute is used to indicate which process attributes are to be changed in the new process image when invoking
posix_spawn().The default value of this attribute will be as if no flags were set.


Return Values

On success, posix_spawnattr_getflags will return 0 and stores the spawn-flags attribute of attr in the object referenced by the argument flags. On error, error number is returned to indicate the error.

On success
posix_spawnattr_setflags will return 0. On error, error number is returned to indicate the error.


Feedback

For additional information or queries on this page send feedback


© 2005-2007 Nokia 

Top