Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/fstab.c
RevisionDateAuthorComments
 1.31  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.30  12-Feb-2012  wiz Remove duplicate function declaration. From Henning Petersen in PR 45998.
 1.29  15-Oct-2011  christos branches: 1.29.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.28  12-Aug-2006  christos - Add strndup and stresep
- Use stresep so in fstab so that we can mount paths with white space in them.
 1.27  24-Dec-2005  perry branches: 1.27.2;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.26  29-Nov-2005  christos WARNS=4
 1.25  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.24  16-Apr-2002  groo botched strncpy -> strlcpy
from xs@kittenz.org
 1.23  31-Aug-2001  lukem fstabscan() fixes:
- if _fs_fstab.fs_type is NULL, the line is incorrect, so warn about it
rather than trying to deference a NULL pointer.
fixes [bin/13787] by Dave Burgess.
- clear _fs_fstab before each use (just to be sure)
 1.22  22-Jan-2000  mycroft branches: 1.22.4; 1.22.6;
Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.21  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.20  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.19  23-Feb-1999  mrg add a new fstab type "dp" for the user-specified dump device.
change swapctl -A to see this and add it via swapctl(2). also
add a new swapctl -D <device> to change the dump device on the
fly.
 1.18  26-Jan-1999  thorpej Fix printf format errors.
 1.17  24-Jan-1999  christos - Use strsep() instead of strtok_r()
- Use warn{x,}() instead of home brewed error()
- Simplify some code.
 1.16  16-Oct-1998  kleink Use strtok_r() instead of strtok(), lest the application be surprised by
strtok()'s internal marker having changed.
 1.15  11-Oct-1998  kleink Need "namespace.h".
 1.14  26-Jul-1998  mycroft Use warn(3).
 1.13  26-Jul-1998  mycroft const poisoning.
 1.12  03-Feb-1998  perry remove obsolete register declarations
 1.11  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.10  13-Jul-1997  christos Fix RCSID's
Fix bogus NULL casts
GC constant strings.
Fix gcc warnings.
 1.9  23-Jan-1997  mrg - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
 1.8  03-Apr-1996  jtc branches: 1.8.2;
Add explict function return types
 1.7  27-Feb-1995  cgd oops; since i kept the writev() trick, still need uio.h
 1.6  27-Feb-1995  cgd merge with Lite, keeping local changes. Also use new Id format.
 1.5  13-Aug-1994  mycroft branches: 1.5.2;
Use writev(2) when reporting errors.
 1.4  13-Aug-1994  pk Allow a `#' to appear on line by itself (without spitting out errors).
 1.3  26-Aug-1993  jtc branches: 1.3.2;
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.3.2.1  13-Aug-1994  mycroft update from trunk
 1.5.2.1  02-May-1995  jtc #include "namespace.h"
 1.8.2.1  19-Sep-1996  jtc snapshot namespace cleanup: gen
 1.22.6.2  25-Apr-2002  nathanw Catch up to -current.
 1.22.6.1  08-Oct-2001  nathanw Catch up to -current.
 1.22.4.2  17-Apr-2002  he Pull up revision 1.24 (requested by groo):
Replace an instance of erroneous usage of strncpy() with strlcpy().
 1.22.4.1  27-Oct-2001  he Pull up revision 1.23 (requested by lukem):
Two fixes to fstabscan():
o if fs_type is NULL, warn in stead of crashing
o clear _fs_fstab before each use
Fixes PR#13787 and PR#14117.
 1.27.2.1  27-Aug-2006  riz Pull up following revision(s) (requested by tron in ticket #63):
regress/lib/libc/string/Makefile: revision 1.9
lib/libc/string/strsep.3: revision 1.17
lib/libc/string/strsep.3: revision 1.18
regress/lib/libc/string/stresep/Makefile: revision 1.1
distrib/sets/lists/base/shl.mi: revision 1.364
regress/lib/libc/string/stresep/stresep_test.c: revision 1.1
lib/libc/gen/fstab.c: revision 1.28
lib/libc/shlib_version: revision 1.181
lib/libc/string/strndup.c: revision 1.1
lib/libc/string/strdup.3: revision 1.13
lib/libc/string/strdup.3: revision 1.14
lib/libc/string/Makefile.inc: revision 1.61
include/string.h: revision 1.31
distrib/sets/lists/comp/mi: revision 1.909
lib/libc/string/stresep.c: revision 1.1
lib/libc/include/namespace.h: revision 1.118
- Add strndup and stresep
- Use stresep so in fstab so that we can mount paths with white space in th=
em.
Add stresep and strndup.
add regression test for stresep.
libc 146
man pages for stresep and strndup.
Mark up NULL.
stresep, not strnsep. Remove duplicate "the". Bump date for previous.
 1.29.2.1  17-Apr-2012  yamt sync with head

RSS XML Feed