1posix_spawn_file_actions_dSetsatnrdoayr(d3CC)LibrarypoFsuinxc_tsipoanwsn_file_actions_destroy(3C)
2
3
4

NAME

6       posix_spawn_file_actions_destroy,    posix_spawn_file_actions_init    -
7       destroy and initialize spawn file actions object
8

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUES

43       Upon successful completion, these functions  return  0.  Otherwise,  an
44       error number is returned to indicate the error.
45

ERRORS

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

ATTRIBUTES

60       See attributes(5) for descriptions of the following attributes:
61
62
63
64
65       ┌─────────────────────────────┬─────────────────────────────┐
66       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
67       ├─────────────────────────────┼─────────────────────────────┤
68       │Interface Stability          │Standard                     │
69       ├─────────────────────────────┼─────────────────────────────┤
70       │MT-Level                     │MT-Safe                      │
71       └─────────────────────────────┴─────────────────────────────┘
72

SEE ALSO

74       posix_spawn(3C), posix_spawn_file_actions_addclose(3C),  attributes(5),
75       standards(5)
76
77
78
79SunOS 5.11                        30 Jan 20p0o4six_spawn_file_actions_destroy(3C)
Impressum