1POSIX_SPAWN_FILE_ACTIONS_DESPTORSOIYX(PP)rogrammer'PsOSMIaXn_uSaPlAWN_FILE_ACTIONS_DESTROY(P)
2
3
4

NAME

6       posix_spawn_file_actions_destroy,    posix_spawn_file_actions_init    -
7       destroy and initialize spawn file actions object (ADVANCED REALTIME)
8

SYNOPSIS

10       #include <spawn.h>
11
12       int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *
13              file_actions);
14       int posix_spawn_file_actions_init(posix_spawn_file_actions_t *
15              file_actions);
16
17

DESCRIPTION

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

RETURN VALUE

39       Upon  successful  completion, these functions shall return zero; other‐
40       wise, an error number shall be returned to indicate the error.
41

ERRORS

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

EXAMPLES

57       None.
58

APPLICATION USAGE

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

RATIONALE

64       Refer to the RATIONALE in posix_spawn_file_actions_addclose() .
65

FUTURE DIRECTIONS

67       None.
68

SEE ALSO

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