1POSIX_SPAWNATTR_GETPGROUP(3PP)OSIX Programmer's ManuPaOlSIX_SPAWNATTR_GETPGROUP(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       posix_spawnattr_getpgroup, posix_spawnattr_setpgroup - get and set  the
13       spawn-pgroup attribute of a spawn attributes object (ADVANCED REALTIME)
14

SYNOPSIS

16       #include <spawn.h>
17
18       int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict attr,
19              pid_t *restrict pgroup);
20       int posix_spawnattr_setpgroup(posix_spawnattr_t *attr, pid_t pgroup);
21
22

DESCRIPTION

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

RETURN VALUE

36       Upon successful completion,  posix_spawnattr_getpgroup()  shall  return
37       zero and store the value of the spawn-pgroup attribute of attr into the
38       object referenced by the pgroup parameter; otherwise, an  error  number
39       shall be returned to indicate the error.
40
41       Upon  successful  completion,  posix_spawnattr_setpgroup() shall return
42       zero; otherwise, an error number shall  be  returned  to  indicate  the
43       error.
44

ERRORS

46       These functions may fail if:
47
48       EINVAL The value specified by attr is invalid.
49
50
51       The posix_spawnattr_setpgroup() function may fail if:
52
53       EINVAL The value of the attribute being set is not valid.
54
55
56       The following sections are informative.
57

EXAMPLES

59       None.
60

APPLICATION USAGE

62       These  functions  are part of the Spawn option and need not be provided
63       on all implementations.
64

RATIONALE

66       None.
67

FUTURE DIRECTIONS

69       None.
70

SEE ALSO

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