Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/nlist.c
RevisionDateAuthorComments
 1.26  21-Oct-2024  skrll Trailing whitespace
 1.25  18-Sep-2014  christos make more descriptors that we open as close-on-exec
 1.24  21-Mar-2012  christos c89 definitions
 1.23  20-Mar-2012  matt Use C89 definitions.
Remove use of __P
 1.22  20-Aug-2009  he branches: 1.22.6;
Instead of including <a.out.h> to get at "struct nlist" (with a comment
to explain it), include <nlist.h> instead, so that our mips ports don't
error out in the absence of aout_machdep.h.
 1.21  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.20  11-Nov-2002  thorpej Fix signed/unsigned comparison warnings.
 1.19  14-Jun-2000  cgd branches: 1.19.4;
fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.18  23-Jan-2000  mycroft branches: 1.18.2;
Doh. Remove the __weak_alias() as well...
 1.17  22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.16  03-Jan-2000  msaitoh nlist for COFF
 1.15  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.14  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.13  26-Jul-1998  mycroft const poisoning.
 1.12  21-Jul-1997  jtc 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.11  13-Jul-1997  christos Fix RCSID's
 1.10  01-Oct-1996  cgd fix a thinko in the check-removal changes
 1.9  30-Sep-1996  cgd kill recently added 'check' functions, since they only add code to be more
expensive, i.e. they save nothing and add code.
 1.8  27-Sep-1996  cgd Seriously revamp libc's nlist()/__fdnlist() support:
(1) split nlist() into multiple files, for clarity and to make
ELF 32/64 support easier,
(2) support multiple executable types at the same time, and
(3) add support for 32- and 64-bit ELF (32-bit ELF support
originally from OpenBSD, but with several bug fixes so
that it actually handles symbols types more correctly
(and therefore _works_ for some of the more tricky uses
of the nlist routines) and changes for 64-bit ELF support).
 1.7  16-May-1996  cgd branches: 1.7.2;
update for ecoff header changes. Most changes taken from PR 2413,
submitted by Jason Thorpe.
 1.6  29-Sep-1995  cgd add hack-ish support for ecoff nlists (used only on the Alpha).
It's hack-ish, but it appears to work well enough for all/most
programs that use libkvm, e.g. ps, w, netstat, dmesg, etc.
 1.5  27-Feb-1995  cgd merge with Lite, keeping local changes. Fix up Id format, etc.
 1.4  09-May-1994  cgd new nlist routines
 1.3  26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.2  30-Jul-1993  mycroft Add even more RCS frobs.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  25-Feb-1995  cgd from lite, with minor name rearrangement to fit.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.2.1  19-Sep-1996  jtc snapshot namespace cleanup: gen
 1.18.2.1  23-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.19.4.1  10-Dec-2002  thorpej Sync with HEAD.
 1.22.6.1  17-Apr-2012  yamt sync with head

RSS XML Feed