Back to index

glibc  2.9
Defines | Functions
spawnattr_setflags.c File Reference
#include <errno.h>
#include <spawn.h>
#include <string.h>

Go to the source code of this file.


#define ALL_FLAGS


int posix_spawnattr_setflags (posix_spawnattr_t *attr, short int flags)

Define Documentation

#define ALL_FLAGS

Function Documentation

int posix_spawnattr_setflags ( posix_spawnattr_t attr,
short int  flags 

Definition at line 33 of file spawnattr_setflags.c.

  /* Check no invalid bits are set.  */
  if (flags & ~ALL_FLAGS)
    return EINVAL;

  /* Store the flag word.  */
  attr->__flags = flags;

  return 0;