1posix_spawn_file_actions_aSdtdacnldoasredfrCpoomLs_iinbxpr_(as3rpCya)wFnu_nfcitlieo_nasctions_addclosefrom_np(3C)
2
3
4

NAME

6       posix_spawn_file_actions_addclosefrom_np  -  add  closefrom  action  to
7       spawn file actions object
8

SYNOPSIS

10       #include <spawn.h>
11
12       int posix_spawn_file_actions_addclosefrom_np(
13            posix_spawn_file_actions_t *file_actions, int lowfildes);
14
15

DESCRIPTION

17       The posix_spawn_file_actions_addclosefrom_np() function adds  a  close‐
18       from  action  to  the object referenced by file_actions that causes all
19       open file descriptors greater than or equal to lowfildes to  be  closed
20       when  a  new  process  is  spawned  using this file actions object (see
21       closefrom(3C)).
22
23
24       A    spawn    file    actions    object    is     as     defined     in
25       posix_spawn_file_actions_addclose(3C).
26

RETURN VALUES

28       Upon   successful  completion,  the  posix_spawn_file_actions_addclose‐
29       from_np() function returns 0. Otherwise, an error number is returned to
30       indicate the error.
31

ERRORS

33       The posix_spawn_file_actions_addclosefrom_np() function will fail if:
34
35       EBADF    The value specified by lowfildes is negative.
36
37
38
39       The posix_spawn_file_actions_addclosefrom_np() function may fail if:
40
41       EINVAL    The value specified by file_actions is invalid.
42
43
44       ENOMEM    Insufficient  memory  exists to add to the spawn file actions
45                 object.
46
47

ATTRIBUTES

49       See attributes(5) for descriptions of the following attributes:
50
51
52
53
54       ┌─────────────────────────────┬─────────────────────────────┐
55       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
56       ├─────────────────────────────┼─────────────────────────────┤
57       │Interface Stability          │Committed                    │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │MT-Level                     │MT-Safe                      │
60       └─────────────────────────────┴─────────────────────────────┘
61

SEE ALSO

63       close(2), closefrom(3C), posix_spawn(3C), posix_spawn_file_actions_add‐
64       close(3C), attributes(5)
65
66
67
68SunOS 5.11                        2p0osFiexb_s2p0a0w9n_file_actions_addclosefrom_np(3C)
Impressum