.\"
-.\" Copyright (c) 2000-2007 Apple Inc. All rights reserved.
+.\" Copyright (c) 2000-2010 Apple Inc. All rights reserved.
.\"
.\" @APPLE_OSREFERENCE_LICENSE_HEADER_START@
.\"
.\"
.\" @(#)posix_spawn.2
.
-.Dd August 9, 2007
+.Dd November 2, 2010
.Dt POSIX_SPAWN 2
.Os "Mac OS X"
.Sh NAME
.Pp
The argument
.Fa file_actions
-is either NULL, or it is a a pointer to a file actions object that was
+is either NULL, or it is a pointer to a file actions object that was
initialized by a call to
.Xr posix_spawn_file_actions_init 3
and represents zero or more file actions.
.Xr fcntl 2 ) .
Descriptors that remain open are unaffected by
.Fn posix_spawn
-unless their behaviour is modified by a file action; see
+unless their behaviour is modified by particular spawn flags
+or a file action; see
+.Xr posix_spawnattr_setflags 3
+and
.Xr posix_spawn_file_actions_init 3
-for more information.
+for additional information.
.Pp
The argument
.Fa attrp
.It Bq Er ETXTBSY
The new process file is a pure procedure (shared text)
file that is currently open for writing or reading by some process.
+.\" ==========
+.It Bq Er EBADARCH
+The new process file has no architectures appropriate for the current system.
.El
+.Pp
+Additionally, they may fail for any of the reasons listed in
+.Xr fork 2 or
+.Xr exec 3 .
.Sh CAVEAT
If a program is
.Em setuid