Name

posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy - get or set the spawn-schedpolicy attribute of a spawn attributes object.


Library

libc.lib


Synopsis

#include <spawn.h>

int posix_spawnattr_getschedpolicy(const posix_spawnattr_t *attr, int *schedpolicy);
int posix_spawnattr_setschedpolicy(posix_spawnattr_t *attr,int schedpolicy); 

Detailed Description

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

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

The
spawn-schedpolicy attribute represents the scheduling policy to be assigned to the new process image in a spawn operation. The default value of this attribute is unspecified.


Return Values

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

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


Errors

These functions may fail if:

[EINVAL]
The value specified by
attr is invalid.

The
posix_spawnattr_setschedpolicy() function may fail if:

[EINVAL]
The value of the attribute being set is not valid.


Feedback

For additional information or queries on this page send feedback


© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. 

Top