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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

EXAMPLES

60       None.
61

APPLICATION USAGE

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

RATIONALE

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

FUTURE DIRECTIONS

70       None.
71

SEE ALSO

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