The descriptor referred to by newfiledes is created as The posix_spawn_file_actions_adddup2() function adds a dup2 operation to Process, so storage need not be persistent in the caller. The string path isĬopied by the posix_spawn_file_actions_addopen() function during this Prior to the new child process starting execution. The path, oflag, and mode arguments as if open() had been called on it
The descriptor referred to by filedes is opened using The list of operations associated with the object referenced by The posix_spawn_file_actions_addopen() function adds an open operation to The descriptor referred to by filedes is closed as ifĬlose() had been called on it prior to the new child process starting To the list of operations associated with the object referenced byįile _ actions, for subsequent use in a call to posix_spawn(2) or The posix_spawn_file_actions_addclose() function adds a close operation Int posix_spawn_file_actions_adddup2( posix _ spawn _ file _ actions _ t *file _ actions, Int filedes, const char *restrict path, int oflag, mode _ t mode) Int posix_spawn_file_actions_addopen( posix _ spawn _ file _ actions _ t *restrict file _ actions, Open or close actions to a posix _ spawn _ file _ actions _ t SYNOPSIS #include int posix_spawn_file_actions_addclose( posix _ spawn _ file _ actions _ t *file _ actions, NAME posix_spawn_file_actions_addclose posix_spawn_file_actions_addopen - add
BSD Library Functions Manual POSIX_SPAWN_FILE_ACTI. These manual pages come from many different sources, and thus, have a variety of writingįor more information about the manual page format, see the manual page for You can view these manual pages locally using the Manual pages are a command-line technologyįor providing documentation.
#Manual for pages for mac mac os x#
ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages