Module Name:    src
Committed By:   wiz
Date:           Mon May 18 13:56:05 UTC 2009

Modified Files:
        src/lib/libc/sys: execve.2

Log Message:
Sort errors.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/sys/execve.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/sys/execve.2
diff -u src/lib/libc/sys/execve.2:1.38 src/lib/libc/sys/execve.2:1.39
--- src/lib/libc/sys/execve.2:1.38	Mon Mar 23 14:11:27 2009
+++ src/lib/libc/sys/execve.2	Mon May 18 13:56:05 2009
@@ -1,4 +1,4 @@
-.\"	$NetBSD: execve.2,v 1.38 2009/03/23 14:11:27 joerg Exp $
+.\"	$NetBSD: execve.2,v 1.39 2009/05/18 13:56:05 wiz Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -209,66 +209,62 @@
 .Fn execve
 will fail and return to the calling process if:
 .Bl -tag -width Er
+.It Bq Er E2BIG
+The number of bytes in the new process's argument list
+is larger than the system-imposed limit.
+The limit in the system as released is 262144 bytes
+.Dv ( NCARGS
+in
+.Ao Pa sys/param.h Ac ) .
+.It Bq Er EACCES
+Search permission is denied for a component of the path prefix,
+the new process file is not an ordinary file,
+its file mode denies execute permission, or
+it is on a filesystem mounted with execution
+disabled
+.Dv ( MNT_NOEXEC
+in
+.Ao Pa sys/mount.h Ac ) .
 .It Bq Er EAGAIN
-A 
+A
 .Xr setuid 7
 process has exceeded the current resource limit for the number of
 processes it is allowed to run concurrently.
-.It Bq Er ENOTDIR
-A component of the path prefix is not a directory.
+.It Bq Er EFAULT
+The new process file is not as long as indicated by
+the size values in its header; or
+.Fa path ,
+.Fa argv ,
+or
+.Fa envp
+point to an illegal address.
+.It Bq Er EIO
+An I/O error occurred while reading from the file system.
+.It Bq Er ELOOP
+Too many symbolic links were encountered in translating the pathname.
 .It Bq Er ENAMETOOLONG
 A component of a pathname exceeded
-.Dv {NAME_MAX}
+.Dv NAME_MAX
 characters, or an entire path name exceeded
-.Dv {PATH_MAX}
+.Dv PATH_MAX
 characters.
 .It Bq Er ENOENT
-The new process file does not exist.
-.It Bq Er ENOENT
-The new process file is a script starting with
+The new process file does not exist, or
+the new process file is a script starting with
 .Li #!
 and the script interpreter does not exist.
-.It Bq Er ELOOP
-Too many symbolic links were encountered in translating the pathname.
-.It Bq Er EACCES
-Search permission is denied for a component of the path prefix,
-the new process file is not an ordinary file,
-its file mode denies execute permission, or
-it is on a filesystem mounted with execution
-disabled
-.Pf ( Dv MNT_NOEXEC
-in
-.Ao Pa sys/mount.h Ac ) .
 .It Bq Er ENOEXEC
 The new process file has the appropriate access
 permission, but has an invalid magic number in its header.
-.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.
-.ne 1i
 .It Bq Er ENOMEM
 The new process requires more virtual memory than
 is allowed by the imposed maximum
 .Pq Xr getrlimit 2 .
-.It Bq Er E2BIG
-The number of bytes in the new process's argument list
-is larger than the system-imposed limit.
-The limit in the system as released is 262144 bytes
-.Pf ( Dv NCARGS
-in
-.Ao Pa sys/param.h Ac ) .
-.It Bq Er EFAULT
-The new process file is not as long as indicated by
-the size values in its header.
-.It Bq Er EFAULT
-.Fa path ,
-.Fa argv ,
-or
-.Fa envp
-point
-to an illegal address.
-.It Bq Er EIO
-An I/O error occurred while reading from the file system.
+.It Bq Er ENOTDIR
+A component of the path prefix is not a directory.
+.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.
 .El
 .Sh SEE ALSO
 .Xr _exit 2 ,

Reply via email to