Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/getusershell.c
RevisionDateAuthorComments
 1.29  13-Mar-2012  christos PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)

approved by core@
 1.28  15-Oct-2011  christos branches: 1.28.2;
close on exec fixes:
- open + fcntl -> open O_CLOEXEC
- configuration database file descriptors that can stay open are now opened
fopen(db, "re")
 1.27  28-Apr-2008  martin branches: 1.27.8;
Remove clause 3 and 4 from TNF licenses
 1.26  15-Oct-2006  christos branches: 1.26.16;
fix incomplete initializers
 1.25  29-Nov-2005  christos WARNS=4
 1.24  28-Feb-2005  lukem Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.

This makes it much easier to write dynamic nsswitch backends for the
getusershell(3) (et al) functions.

Per my proposal on tech-userlevel in September 2004.
 1.23  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.22  26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.21  07-Jul-2000  itohy branches: 1.21.2;
Passing "char" values to ctype(3) functions is problematic.
If an argument of a ctype function is outside "unsigned char"
and if it is not EOF, the behavior is undefined.

The isascii(3) is the sole exception of above and it was used to
be used to check a value was valid for other ctype functions in
ancient systems. On modern systems, the ctype functions take
all values of "unsigned char", and this check is obsolete and
even wrong for non-ASCII systems. However, we leave the isascii()
untouched for now, so as not to change the current behavior.
 1.20  22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.19  28-Nov-1999  lukem * check the error return of sl_init() and sl_add()
* minor KNF
 1.18  18-Apr-1999  lukem branches: 1.18.4;
specifically include stdarg/varargs.h
 1.17  25-Jan-1999  lukem convert from hes_*() -> hesiod_*()
 1.16  20-Jan-1999  christos - avoid unitialized warning.
- remove unreachable code.
- add ARGSUSED
- linted for const castaway.
 1.15  19-Jan-1999  lukem * `passwd' defaults to `compat', and `passwd_compat' defaults to `nis'
* constify ns_dtab defs
 1.14  19-Jan-1999  lukem convert to new nsdispatch(3)
 1.13  16-Jan-1999  lukem pull nsswitch up to main branch
 1.12  13-Nov-1998  christos delint
 1.11  13-Nov-1998  christos delint
 1.10  27-Jul-1998  mycroft Make these compile without __AUDIT__.
 1.9  26-Jul-1998  mycroft const poisoning.
 1.8  03-Feb-1998  perry remove obsolete register declarations
 1.7  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.6  13-Jul-1997  christos Fix RCSID's
 1.5  27-Feb-1995  cgd branches: 1.5.4; 1.5.8; 1.5.10;
update from Lite, with local changes. fix Ids, etc.
 1.4  26-Aug-1993  jtc branches: 1.4.4;
Declare rcsid strings so they are stored in text segment.
 1.3  25-Aug-1993  jtc Declare static function before it is used.
 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.4.4.1  02-May-1995  jtc #include "namespace.h"
 1.5.10.6  14-Jan-1999  lukem use new ns_dtab structure
 1.5.10.5  02-Nov-1998  lukem sync with current
 1.5.10.4  27-May-1997  lukem * don't bother fstat()ing the file once it's open; as the result isn't used.
* only invoke sl_free(sl, ...) if (sl != NULL)
* remove use of register
* other minor cleanups
 1.5.10.3  26-May-1997  lukem only initialise ns_dtab if it hasn't been done yet
 1.5.10.2  24-May-1997  lukem refer to StringList type correctly
 1.5.10.1  23-May-1997  lukem convert getusershell() to nsswitch, adding yp and hesiod support
 1.5.8.1  06-Nov-1996  lukem initial nsswitch implementation
 1.5.4.1  19-Sep-1996  jtc snapshot namespace cleanup: gen
 1.18.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.21.2.1  21-Jun-2002  nathanw Catch up to -current.
 1.26.16.1  18-May-2008  yamt sync with head.
 1.27.8.2  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.27.8.1  28-Apr-2008  martin file getusershell.c was added on branch christos-time_t on 2008-04-28 20:23:00 +0000
 1.28.2.1  17-Apr-2012  yamt sync with head

RSS XML Feed