1POSIX_SPAWNATTR_GETPGROUP(P)POSIX Programmer's ManuaPlOSIX_SPAWNATTR_GETPGROUP(P)
2
3
4

NAME

6       posix_spawnattr_getpgroup,  posix_spawnattr_setpgroup - get and set the
7       spawn-pgroup attribute of a spawn attributes object (ADVANCED REALTIME)
8

SYNOPSIS

10       #include <spawn.h>
11
12       int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict attr,
13              pid_t *restrict pgroup);
14       int posix_spawnattr_setpgroup(posix_spawnattr_t *attr, pid_t pgroup);
15
16

DESCRIPTION

18       The posix_spawnattr_getpgroup() function shall obtain the value of  the
19       spawn-pgroup attribute from the attributes object referenced by attr.
20
21       The  posix_spawnattr_setpgroup()  function  shall  set the spawn-pgroup
22       attribute in an initialized attributes object referenced by attr.
23
24       The spawn-pgroup attribute represents the process group to be joined by
25       the new process image in a spawn operation (if POSIX_SPAWN_SETPGROUP is
26       set in the spawn-flags attribute).  The default value of this attribute
27       shall be zero.
28

RETURN VALUE

30       Upon  successful  completion,  posix_spawnattr_getpgroup() shall return
31       zero and store the value of the spawn-pgroup attribute of attr into the
32       object  referenced  by the pgroup parameter; otherwise, an error number
33       shall be returned to indicate the error.
34
35       Upon successful completion,  posix_spawnattr_setpgroup()  shall  return
36       zero;  otherwise,  an  error  number  shall be returned to indicate the
37       error.
38

ERRORS

40       These functions may fail if:
41
42       EINVAL The value specified by attr is invalid.
43
44
45       The posix_spawnattr_setpgroup() function may fail if:
46
47       EINVAL The value of the attribute being set is not valid.
48
49
50       The following sections are informative.
51

EXAMPLES

53       None.
54

APPLICATION USAGE

56       These functions are part of the Spawn option and need not  be  provided
57       on all implementations.
58

RATIONALE

60       None.
61

FUTURE DIRECTIONS

63       None.
64

SEE ALSO

66       posix_spawn()  ,  posix_spawnattr_destroy()  , posix_spawnattr_init() ,
67       posix_spawnattr_getsigdefault()    ,    posix_spawnattr_getflags()    ,
68       posix_spawnattr_getschedparam()  ,  posix_spawnattr_getschedpolicy()  ,
69       posix_spawnattr_getsigmask()   ,   posix_spawnattr_setsigdefault()    ,
70       posix_spawnattr_setflags()    ,    posix_spawnattr_setschedparam()    ,
71       posix_spawnattr_setschedpolicy()   ,   posix_spawnattr_setsigmask()   ,
72       posix_spawnp()  ,  the Base Definitions volume of IEEE Std 1003.1-2001,
73       <spawn.h>
74
76       Portions of this text are reprinted and reproduced in  electronic  form
77       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
78       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
79       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
80       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
81       event of any discrepancy between this version and the original IEEE and
82       The Open Group Standard, the original IEEE and The Open Group  Standard
83       is  the  referee document. The original Standard can be obtained online
84       at http://www.opengroup.org/unix/online.html .
85
86
87
88IEEE/The Open Group                  2003         POSIX_SPAWNATTR_GETPGROUP(P)
Impressum