From 5d3d6cd4cc9e88d0f8535c737c743fdb6369b919 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 18 May 2009 13:56:05 +0000 Subject: [PATCH] Sort errors. --- lib/libc/sys/execve.2 | 86 +++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 45 deletions(-) diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2 index cfa5e3202613..d8412f85b97a 100644 --- a/lib/libc/sys/execve.2 +++ b/lib/libc/sys/execve.2 @@ -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 @@ is set to indicate the error. .Fn execve will fail and return to the calling process if: .Bl -tag -width Er -.It Bq Er EAGAIN -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 ENAMETOOLONG -A component of a pathname exceeded -.Dv {NAME_MAX} -characters, or an entire path name exceeded -.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 -.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 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 -.Pf ( Dv MNT_NOEXEC +.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 EAGAIN +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 EFAULT The new process file is not as long as indicated by -the size values in its header. -.It Bq Er EFAULT +the size values in its header; or .Fa path , .Fa argv , or .Fa envp -point -to an illegal address. +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 +characters, or an entire path name exceeded +.Dv PATH_MAX +characters. +.It Bq Er ENOENT +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 ENOEXEC +The new process file has the appropriate access +permission, but has an invalid magic number in its header. +.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 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 ,