Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/execle.c
RevisionDateAuthorComments
 1.12  30-Jun-2011  joerg Drop special cases for i386 and m68k. It is not a validate assumption
that the address of an argument is at the same stack slot the caller
placed in it. It is perfectely valid to copy it into the local frame
first.
 1.11  09-Jan-2008  simonb Remove support for NetBSD/pc532.
 1.10  29-Nov-2005  christos branches: 1.10.10;
cleanup casts and KNF.
 1.9  29-Nov-2005  christos WARNS=4
 1.8  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.7  26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.6  22-Jan-2000  mycroft branches: 1.6.6;
Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.5  23-Nov-1997  enami Allocate one more element for arg vector, like execl.c rev 1.5.
 1.4  21-Jul-1997  jtc branches: 1.4.2;
If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.3  13-Jul-1997  christos Fix RCSID's
 1.2  04-Jul-1996  jtc branches: 1.2.2;
Thanks to the calling conventions used by some cpus, the argument lists
passed to the execl(), execle(), and execlp() functions are in the form
of the argument vector to be passed to execve(). On these architectures,
it is unnecessary to count the number of arguments, allocate space on
the stack, copy the arguments, etc. The vector already on the stack
can be used instead.

When some arguments are passed in registers (like most RISC CPU's), it
should be possible to allocate stack space adjacent such that the
registers can be copied to that memory. After that, the same
approach described above can be used.

This change takes advantage of this on the i386, m68k, and ns32k. It
is probably true on the vax, but I am unable to check. RISC CPU's
probably need assembly language implementations to ensure everything
is placed exactly as needed when registers are copied to the stack...
 1.1  03-Jul-1996  jtc Split all exec*() functions out of exec.c into their own files.
 1.2.2.1  19-Sep-1996  jtc snapshot namespace cleanup: gen
 1.4.2.1  23-Nov-1997  mellon Pull rev 1.5 up from trunk (enami)
 1.6.6.1  21-Jun-2002  nathanw Catch up to -current.
 1.10.10.1  23-Mar-2008  matt sync with HEAD

RSS XML Feed