Back to index

glibc  2.9
Functions
spawnattr_setschedpolicy.c File Reference
#include <errno.h>
#include <spawn.h>

Go to the source code of this file.

Functions

int posix_spawnattr_setschedpolicy (posix_spawnattr_t *attr, int schedpolicy)

Function Documentation

Definition at line 24 of file spawnattr_setschedpolicy.c.

{
  if (schedpolicy != SCHED_OTHER && schedpolicy != SCHED_FIFO
      && schedpolicy != SCHED_RR)
    return EINVAL;

  /* Store the policy.  */
  attr->__policy = schedpolicy;

  return 0;
}