diff options
Diffstat (limited to 'usr/src/man/man2/exec.2')
-rw-r--r-- | usr/src/man/man2/exec.2 | 53 |
1 files changed, 11 insertions, 42 deletions
diff --git a/usr/src/man/man2/exec.2 b/usr/src/man/man2/exec.2 index 97e0ae3e0d..ec5cbe64f3 100644 --- a/usr/src/man/man2/exec.2 +++ b/usr/src/man/man2/exec.2 @@ -1,15 +1,15 @@ '\" te .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved. -.\" Copyright 1989 AT&T. +.\" Copyright 1989 AT&T. .\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH exec 2 "16 Jun 2008" "SunOS 5.11" "System Calls" +.TH EXEC 2 "Jun 16, 2008" .SH NAME exec, execl, execle, execlp, execv, execve, execvp \- execute a file .SH SYNOPSIS @@ -17,7 +17,7 @@ exec, execl, execle, execlp, execv, execve, execvp \- execute a file .nf #include <unistd.h> -\fBint\fR \fBexecl\fR(\fBconst char *\fR\fIpath\fR, \fBconst char *\fR\fIarg0\fR, \fB\&... +\fBint\fR \fBexecl\fR(\fBconst char *\fR\fIpath\fR, \fBconst char *\fR\fIarg0\fR, \fB\&... /* const char *\fR\fIargn\fR, \fB(char *)0 */);\fR .fi @@ -510,12 +510,10 @@ indicate the error. The \fBexec\fR functions will fail if: .sp .ne 2 -.mk .na \fB\fBE2BIG\fR\fR .ad .RS 16n -.rt The number of bytes in the new process's argument list is greater than the system-imposed limit of {\fBARG_MAX\fR} bytes. The argument list limit is sum of the size of the argument list plus the size of the environment's exported @@ -524,12 +522,10 @@ shell variables. .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 16n -.rt Search permission is denied for a directory listed in the new process file's path prefix. .sp @@ -546,35 +542,29 @@ permission. .sp .ne 2 -.mk .na \fB\fBEAGAIN\fR\fR .ad .RS 16n -.rt Total amount of system memory available when reading using raw I/O is temporarily insufficient. .RE .sp .ne 2 -.mk .na \fB\fBEFAULT\fR\fR .ad .RS 16n -.rt An argument points to an illegal address. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt The new process image file has the appropriate permission and has a recognized executable binary format, but the system does not support execution of a file with this format. @@ -582,36 +572,30 @@ with this format. .sp .ne 2 -.mk .na \fB\fBEINTR\fR\fR .ad .RS 16n -.rt A signal was caught during the execution of one of the functions in the \fIexec\fR family. .RE .sp .ne 2 -.mk .na \fB\fBELOOP\fR\fR .ad .RS 16n -.rt Too many symbolic links were encountered in translating \fIpath\fR or \fIfile\fR. .RE .sp .ne 2 -.mk .na \fB\fBENAMETOOLONG\fR\fR .ad .RS 16n -.rt The length of the \fIfile\fR or \fIpath\fR argument exceeds {\fBPATH_MAX\fR}, or the length of a \fIfile\fR or \fIpath\fR component exceeds {\fBNAME_MAX\fR} while {\fB_POSIX_NO_TRUNC\fR} is in effect. @@ -619,36 +603,30 @@ while {\fB_POSIX_NO_TRUNC\fR} is in effect. .sp .ne 2 -.mk .na \fB\fBENOENT\fR\fR .ad .RS 16n -.rt One or more components of the new process path name of the file do not exist or is a null pathname. .RE .sp .ne 2 -.mk .na \fB\fBENOLINK\fR\fR .ad .RS 16n -.rt The \fIpath\fR argument points to a remote machine and the link to that machine is no longer active. .RE .sp .ne 2 -.mk .na \fB\fBENOTDIR\fR\fR .ad .RS 16n -.rt A component of the new process path of the file prefix is not a directory. .RE @@ -658,12 +636,10 @@ The \fBexec\fR functions, except for \fBexeclp()\fR and \fBexecvp()\fR, will fail if: .sp .ne 2 -.mk .na \fB\fBENOEXEC\fR\fR .ad .RS 11n -.rt The new process image file has the appropriate access permission but is not in the proper format. .RE @@ -673,36 +649,30 @@ the proper format. The \fBexec\fR functions may fail if: .sp .ne 2 -.mk .na \fB\fBENAMETOOLONG\fR\fR .ad .RS 16n -.rt Pathname resolution of a symbolic link produced an intermediate result whose length exceeds {\fBPATH_MAX\fR}. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 16n -.rt The new process image requires more memory than is allowed by the hardware or system-imposed by memory management constraints. See \fBbrk\fR(2). .RE .sp .ne 2 -.mk .na \fB\fBETXTBSY\fR\fR .ad .RS 16n -.rt The new process image file is a pure procedure (shared text) file that is currently open for writing by some process. .RE @@ -729,17 +699,16 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityCommitted +Interface Stability Committed _ -MT-LevelSee below. +MT-Level See below. _ -StandardSee \fBstandards\fR(5). +Standard See \fBstandards\fR(5). .TE .sp |