History log of /freebsd-9.3-release/lib/libc/gen/exec.3
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 179947 23-Jun-2008 ed

Turn execvpe() into an internal libc routine.

Adding exevpe() has caused some ports to break. Even though execvpe() is
a useful routine, it does not conform to any standards.

This patch is a little bit different from the patch sent to the mailing
list. I forgot to remove execvpe from the Symbol.map (which does not
seem to miscompile libc, though).

Reviewed by: davidxu
Approved by: philip


# 179838 17-Jun-2008 davidxu

Add POSIX routines called posix_spawn() and posix_spawnp(), which
can be used as replacements for exec/fork in a lot of cases. This
change also added execvpe() which allows environment variable
PATH to be used for searching executable file, it is used for
implementing posix_spawnp().

PR: standards/122051


# 165903 08-Jan-2007 imp

Per Regents of the University of Calfornia letter, remove advertising
clause.

# If I've done so improperly on a file, please let me know.


# 141846 13-Feb-2005 ru

Expand *n't contractions.


# 140505 20-Jan-2005 ru

Sort sections.


# 119964 10-Sep-2003 ru

mdoc(7): Properly mark C headers.


# 117204 03-Jul-2003 ru

With the latest mdoc(7), we can now fix the synopsis like this.

Desired by: bde


# 117030 29-Jun-2003 gordon

Add a libc function execvP that takes the search path as an arguement.
Change execvp to be a wrapper around execvP. This is necessary for some
of the /rescue pieces. It may also be more generally applicable as well.

Submitted by: Tim Kientzle <kientzle@acm.org>
Approved by: Silence on arch@


# 116537 18-Jun-2003 ru

Make the execle() synopsis look (again) like a normal C prototype.
Also fixed the rest of ell (list) functions prototypes to include
a (commented out) terminating null pointer.

Pointed out by: bde
Obtained from: POSIX.1-2001
Glanced at by: imp


# 116471 17-Jun-2003 phk

Fix the execle(3) synopsis to include the environment pointer.

Confused: anordby


# 108087 19-Dec-2002 ru

mdoc(7) police: "The .Fa argument.".


# 108030 18-Dec-2002 ru

mdoc(7) police: "The .Fn function".


# 84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


# 82252 23-Aug-2001 dd

begin executed --> being executed

Obtained from: NetBSD


# 79754 15-Jul-2001 dd

Remove whitespace at EOL.


# 78686 23-Jun-2001 dd

Remove duplicate words.


# 70974 12-Jan-2001 ru

mdoc(7) police: Ft/Vt now accept punctuation-type arguments.


# 68751 15-Nov-2000 ben

Remove fullstops from the end of .Xr lines in SEE ALSO section.


# 67968 30-Oct-2000 asmodai

Correct incorrect information about the PATH used for exec*() calls.

PR: 21990
Partially submitted by: Gerhard Sittig <Gerhard.Sittig@gmx.net>


# 67967 30-Oct-2000 asmodai

Whitespace only change: trim trailing whitespace.


# 59460 21-Apr-2000 phantom

Introduce ".Lb" macro to libc manpages.

More libraries manpages updates following.


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 30399 14-Oct-1997 bde

Fixed searching of $PATH in execvp(). Do what sh(1) should do according
to POSIX.2. In particular:

- don't retry for ETXTBSY. This matches what sh(1) does. The retry code
was broken anyway. It only slept for several seconds for the first few
retries. Then it retried without sleeping.
- don't abort the search for errors related to the path prefix, in
particular for ENAMETOOLONG, ENOTDIR, ELOOP. This fixes PR1487. sh(1)
gets this wrong in the opposite direction by never aborting the search.
- don't confuse EACCES for errors related to the path prefix with EACCES
for errors related to the file. sh(1) gets this wrong.
- don't return a stale errno when the search terminates normally without
finding anything. The errno for the last unsuccessful execve() was
usually returned. This gave too much precedence to pathologies in the
last component of $PATH. This bug is irrelevant for sh(1).

The implementation still uses the optimization/race-inhibitor of trying
to execve() things first. POSIX.2 seems to require looking at file
permissions using stat(). We now use stat() after execve() if execve()
fails with an ambiguous error. Trying execve() first may actually be a
pessimization, since failing execve()s are fundamentally a little slower
than stat(), and are significantly slower when a file is found but has
unsuitable permissions or points to an unsuitable interpreter.

PR: 1487


# 29049 03-Sep-1997 bde

Fixed synopsis. The envp arg for execle() can't be given in the prototype.
Fortunately, the man page doesn't refer to "envp" so just deleting it is OK.


# 15874 22-May-1996 mpp

Fixed various problems: typos, grammer, missing include files
wrong function type declarations, and wrong argument type
declarations.


# 14855 27-Mar-1996 mpp

Added missing section numbers to a bunch of .Xr macros, or
converted them into .Fn macros where appropriate. Also fixed
up some minor formatting problems.


# 14038 11-Feb-1996 mpp

Correct a bunch of man page cross references and generally
try and silence "manck".

ncurses, rpc, and some of the gnu stuff are still a big mess, however.


# 1574 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1573,
which included commits to RCS files with non-trunk default branches.


# 1573 27-May-1994 rgrimes

BSD 4.4 Lite Lib Sources