1POSIX_SPAWN_FILE_ACTIONS_DESPTORSOIYX(3PPr)ogrammerP'OsSIMXa_nSuPaAlWN_FILE_ACTIONS_DESTROY(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
11

NAME

13       posix_spawn_file_actions_destroy,    posix_spawn_file_actions_init    —
14       destroy and initialize spawn file actions object (ADVANCED REALTIME)
15

SYNOPSIS

17       #include <spawn.h>
18
19       int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t
20           *file_actions);
21       int posix_spawn_file_actions_init(posix_spawn_file_actions_t
22           *file_actions);
23

DESCRIPTION

25       The   posix_spawn_file_actions_destroy()  function  shall  destroy  the
26       object referenced by  file_actions;  the  object  becomes,  in  effect,
27       uninitialized.         An        implementation        may        cause
28       posix_spawn_file_actions_destroy() to  set  the  object  referenced  by
29       file_actions to an invalid value. A destroyed spawn file actions object
30       can be reinitialized using posix_spawn_file_actions_init(); the results
31       of  otherwise  referencing  the  object after it has been destroyed are
32       undefined.
33
34       The  posix_spawn_file_actions_init()  function  shall  initialize   the
35       object  referenced  by  file_actions  to  contain  no  file actions for
36       posix_spawn() or posix_spawnp() to perform.
37
38       A    spawn    file    actions    object    is     as     defined     in
39       posix_spawn_file_actions_addclose().
40
41       The  effect  of  initializing an already initialized spawn file actions
42       object is undefined.
43

RETURN VALUE

45       Upon successful completion, these functions shall return  zero;  other‐
46       wise, an error number shall be returned to indicate the error.
47

ERRORS

49       The posix_spawn_file_actions_init() function shall fail if:
50
51       ENOMEM Insufficient  memory exists to initialize the spawn file actions
52              object.
53
54       The posix_spawn_file_actions_destroy() function may fail if:
55
56       EINVAL The value specified by file_actions is invalid.
57
58       The following sections are informative.
59

EXAMPLES

61       None.
62

APPLICATION USAGE

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

RATIONALE

68       Refer to the RATIONALE section in posix_spawn_file_actions_addclose().
69

FUTURE DIRECTIONS

71       None.
72

SEE ALSO

74       posix_spawn(), posix_spawn_file_actions_addclose()
75
76       The Base Definitions volume of POSIX.1‐2008, <spawn.h>
77
79       Portions  of  this text are reprinted and reproduced in electronic form
80       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
81       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
82       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
83       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
84       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
85       event of any discrepancy between this version and the original IEEE and
86       The Open Group Standard, the original IEEE and The Open Group  Standard
87       is  the  referee document. The original Standard can be obtained online
88       at http://www.unix.org/online.html .
89
90       Any typographical or formatting errors that appear  in  this  page  are
91       most likely to have been introduced during the conversion of the source
92       files to man page format. To report such errors,  see  https://www.ker
93       nel.org/doc/man-pages/reporting_bugs.html .
94
95
96
97IEEE/The Open Group                  2013 POSIX_SPAWN_FILE_ACTIONS_DESTROY(3P)
Impressum