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
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
55       The posix_spawn_file_actions_destroy() function may fail if:
56
57       EINVAL The value specified by file_actions is invalid.
58
59
60       The following sections are informative.
61

EXAMPLES

63       None.
64

APPLICATION USAGE

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

RATIONALE

70       Refer to the RATIONALE in posix_spawn_file_actions_addclose() .
71

FUTURE DIRECTIONS

73       None.
74

SEE ALSO

76       posix_spawn(),   posix_spawnp(),   the   Base   Definitions  volume  of
77       IEEE Std 1003.1-2001, <spawn.h>
78
80       Portions of this text are reprinted and reproduced in  electronic  form
81       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
82       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
83       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
84       Electrical and Electronics Engineers, Inc and The Open  Group.  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.opengroup.org/unix/online.html .
89
90
91
92IEEE/The Open Group                  2003 POSIX_SPAWN_FILE_ACTIONS_DESTROY(3P)
Impressum