summaryrefslogtreecommitdiff
path: root/usr/src/man/man2/exec.2
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man2/exec.2')
-rw-r--r--usr/src/man/man2/exec.264
1 files changed, 45 insertions, 19 deletions
diff --git a/usr/src/man/man2/exec.2 b/usr/src/man/man2/exec.2
index 70a57dc54a..f89347d844 100644
--- a/usr/src/man/man2/exec.2
+++ b/usr/src/man/man2/exec.2
@@ -163,12 +163,12 @@ The \fIfile\fR argument is used to construct a pathname that identifies the new
process image file. If the \fIfile\fR argument contains a slash character, it
is used as the pathname for this file. Otherwise, the path prefix for this file
is obtained by a search of the directories passed in the \fBPATH\fR environment
-variable (see \fBenviron\fR(5)). The environment is supplied typically by the
+variable (see \fBenviron\fR(7)). The environment is supplied typically by the
shell. If the process image file is not a valid executable object file,
\fBexeclp()\fR and \fBexecvp()\fR use the contents of that file as standard
input to the shell. In this case, the shell becomes the new process image. The
standard to which the caller conforms determines which shell is used. See
-\fBstandards\fR(5).
+\fBstandards\fR(7).
.sp
.LP
The arguments represented by \fIarg0\fR\&.\|.\|. are pointers to
@@ -279,13 +279,13 @@ inheritable set.
The system attempts to set the privilege-aware state to non-PA both before
performing any modifications to the process IDs and privilege sets as well as
after completing the transition to new UIDs and privilege sets, following the
-rules outlined in \fBprivileges\fR(5).
+rules outlined in \fBprivileges\fR(7).
.sp
.LP
If the {\fBPRIV_PROC_OWNER\fR} privilege is asserted in the effective set, the
set-user-ID and set-group-ID bits will be honored when the process is being
controlled by \fBptrace\fR(3C). Additional restriction can apply when the
-traced process has an effective UID of 0. See \fBprivileges\fR(5).
+traced process has an effective UID of 0. See \fBprivileges\fR(7).
.sp
.LP
Any shared memory segments attached to the calling process image will not be
@@ -305,7 +305,7 @@ locks is unspecified.
.LP
If \fB_XOPEN_REALTIME\fR is defined and has a value other than \(mi1, any named
semaphores open in the calling process are closed as if by appropriate calls to
-\fBsem_close\fR(3C)
+.BR sem_close (3C)
.sp
.LP
Profiling is disabled for the new process; see \fBprofil\fR(2).
@@ -333,7 +333,7 @@ outstanding asynchronous I/O operations at the time the \fBexec\fR function is
called.
.sp
.LP
-All active contract templates are cleared (see \fBcontract\fR(4)).
+All active contract templates are cleared (see \fBcontract\fR(5)).
.sp
.LP
The new process also inherits the following attributes from the calling
@@ -396,7 +396,7 @@ pending signals (see \fBsigpending\fR(2))
.TP
.ie t \(bu
.el o
-privilege debugging flag (see \fBprivileges\fR(5) and \fBgetpflags\fR(2))
+privilege debugging flag (see \fBprivileges\fR(7) and \fBgetpflags\fR(2))
.RE
.RS +4
.TP
@@ -408,7 +408,7 @@ process \fBID\fR
.TP
.ie t \(bu
.el o
-process contract (see \fBcontract\fR(4) and \fBprocess\fR(4))
+process contract (see \fBcontract\fR(5) and \fBprocess\fR(5))
.RE
.RS +4
.TP
@@ -727,7 +727,7 @@ thenew process.
The \fIenviron\fR array should not be accessed directly by the application.
.SH ATTRIBUTES
.LP
-See \fBattributes\fR(5) for descriptions of the following attributes:
+See \fBattributes\fR(7) for descriptions of the following attributes:
.sp
.sp
@@ -741,7 +741,7 @@ Interface Stability Committed
_
MT-Level See below.
_
-Standard See \fBstandards\fR(5).
+Standard See \fBstandards\fR(7).
.TE
.sp
@@ -749,15 +749,41 @@ Standard See \fBstandards\fR(5).
The \fBexecle()\fR and \fBexecve()\fR functions are Async-Signal-Safe.
.SH SEE ALSO
.LP
-\fBksh\fR(1), \fBps\fR(1), \fBsh\fR(1), \fBalarm\fR(2), \fBbrk\fR(2),
-\fBchmod\fR(2), \fBexit\fR(2), \fBfcntl\fR(2), \fBfork\fR(2),
-\fBgetpflags\fR(2), \fBgetrlimit\fR(2), \fBmemcntl\fR(2), \fBmmap\fR(2),
-\fBnice\fR(2), \fBpriocntl\fR(2), \fBprofil\fR(2), \fBsemop\fR(2),
-\fBshmop\fR(2), \fBsigpending\fR(2), \fBsigprocmask\fR(2), \fBtimes\fR(2),
-\fBumask\fR(2), \fBlockf\fR(3C), \fBptrace\fR(3C), \fBsetlocale\fR(3C),
-\fBsignal\fR(3C), \fBsystem\fR(3C), \fBtimer_create\fR(3C), \fBa.out\fR(4),
-\fBcontract\fR(4), \fBprocess\fR(4), \fBattributes\fR(5), \fBenviron\fR(5),
-\fBprivileges\fR(5), \fBstandards\fR(5)
+.BR ksh (1),
+.BR ps (1),
+.BR sh (1),
+.BR alarm (2),
+.BR brk (2),
+.BR chmod (2),
+.BR exit (2),
+.BR fcntl (2),
+.BR fork (2),
+.BR getpflags (2),
+.BR getrlimit (2),
+.BR memcntl (2),
+.BR mmap (2),
+.BR nice (2),
+.BR priocntl (2),
+.BR profil (2),
+.BR semop (2),
+.BR shmop (2),
+.BR sigpending (2),
+.BR sigprocmask (2),
+.BR times (2),
+.BR umask (2),
+.BR lockf (3C),
+.BR ptrace (3C),
+.BR setlocale (3C),
+.BR signal (3C),
+.BR system (3C),
+.BR timer_create (3C),
+.BR a.out (5),
+.BR contract (5),
+.BR process (5),
+.BR attributes (7),
+.BR environ (7),
+.BR privileges (7),
+.BR standards (7)
.SH WARNINGS
.LP
If a program is \fBsetuid\fR to a user \fBID\fR other than the superuser, and