Home | History | Annotate | only in /src/lib/libcompat
History log of /src/lib/libcompat
RevisionDateAuthorComments
 1.32 07-Feb-2013  christos Don't provide 2 versions of __compat_regerror() (the other one comes
from 4.3/regex.c via symbol renaming). Anyway this one did nada, so
no great loss :-)
 1.31 21-Mar-2012  matt branches: 1.31.2;
These directories don't handle WARNS=5
 1.30 22-Mar-2010  mrg branches: 1.30.6;
convert -idirafter to -isystem, as recommended by cgd in PR 11843.
most of the list in that PR were already done.
 1.29 14-Feb-2009  abs Convert more MACHINE tests to MACHINE_ARCH
 1.28 06-Jul-2005  drochner branches: 1.28.28;
Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.27 18-Apr-2004  lukem branches: 1.27.2;
Append to AFLAGS rather than setting AINC.
 1.26 19-Aug-2002  lukem Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
 1.25 19-Feb-2000  mycroft Build a PIC version of this -- but not yet a shlib, due to some obscure lossage
-- so that it can be linked into another shlib as needed.
 1.24 22-Aug-1999  kleink G/C the manual pages for getpw(3), vlimit(3) and vtimes(3). Although stated
in the manuals, these interfaces don't actually exist in libcompat and it isn't
likely that anyone needs nor actually implementents them; in fact,
<sys/vlimit.h> was removed recently.
 1.23 12-Aug-1999  tron Undo last commit. As pointed out by John Darrow on "regex.c" wasn't listed
twice in "SRCS", it were "regex.c" and "rexec.c".
 1.22 11-Aug-1999  lukem why have regex.c twice in SRCS ?
 1.21 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.20 14-Sep-1998  tv __RENAME() the libcompat regexp routines so they will not be used by
programs that want -lcompat but use POSIX regex. Inspired by
<david@mono.org> in PR bin/1849.
 1.19 19-Mar-1998  tv Add a ruserpass() function to make rexec happy. PR 901 (that's not a typo).
 1.18 22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.17 20-Oct-1997  christos branches: 1.17.2;
Moved timezone, swapon and getdirentries back to libc.
 1.16 16-Oct-1997  christos Add timezone, swapon, getdirentries
 1.15 07-Sep-1995  jtc Don't bother with a m68k assembly version of insque/remque. Gcc
generates the pretty much the same code (I believe it is exactly
the same except for stack frame setup) as the generic C version.
 1.14 22-Dec-1994  jtc fix typo
 1.13 22-Dec-1994  cgd specify man pages the new way.
 1.12 16-Dec-1994  mycroft .s -> .S
 1.11 06-Jul-1994  mycroft Do something more intelligent when compiling into ${DESTDIR}. Also fix bogus
definition of AINC.
 1.10 21-May-1994  cgd make stty and gtty real function stubs (they're now gone from ioctl_compat.h).
 1.9 19-May-1994  jtc Remove links to regexp(3) manpage, as they overwrite the links with the
same name to the regex(3) manpage, which is the preferred regular expression
API.
 1.8 19-May-1994  jtc Move our cuserid(3) manpage to libcompat, since the cuserid() function
now lives there.
 1.7 06-May-1994  cgd patch up
 1.6 07-Feb-1994  jtc Don't install manpage links to regexp(3), they overwrite the links
to regex(3).
 1.5 15-Jan-1994  cgd actually commit the changes i made the other day to the Makefile
 1.4 05-Oct-1993  pk PIC: don't bother.
 1.3 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.2 23-Mar-1993  nate Changed Makefile to include the new regex.c package
 1.1 23-Mar-1993  cgd branches: 1.1.1;
added libcompat for compatibility routines, like ftime, etc.
 1.1.1.1 06-May-1994  cgd update
 1.17.2.1 09-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.27.2.1 04-Aug-2005  tron Pull up revision 1.28 (requested by drochner in ticket #632):
Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.28.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.30.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.30.6.1 17-Apr-2012  yamt sync with head
 1.31.2.1 25-Feb-2013  tls resync with head
 1.3 15-Jan-1994  mycroft Clean up deleted files.
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 23-Mar-1993  cgd added libcompat for compatibility routines, like ftime, etc.
 1.4 15-Jan-1994  mycroft Clean up deleted files.
 1.3 11-Nov-1993  jtc Layer re_comp() and re_exec() on top of the POSIX regular expression
routines, as the V8 regexp routines have been removed.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 23-Mar-1993  nate From BSDI Mailing list. regex.c uses the regcomp routines to emulate
the regex routines.
 1.15 22-Mar-2010  joerg Use .In instead of .Ar Pa for headers.
 1.14 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.13 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.12 01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.11 07-Feb-2002  ross Generate <>& symbolically.
 1.10 05-Jul-2000  msaitoh remove extra period in SEE ALL section
 1.9 02-Jul-1999  simonb More trailing white space.
 1.8 22-Mar-1999  garbled Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Wheee!
 1.7 05-Feb-1998  perry add LIBRARY section to man page
 1.6 18-Oct-1997  mikel xref time(3) instead of time(2)
 1.5 09-Oct-1997  lukem rcsid facism, WARNSify
 1.4 09-Oct-1997  mycroft Document that the time zone is obselete, add an xref to localtime(3), and
correct the HISTORY section.
 1.3 05-Jun-1995  pk Prototypes (PR#1098).
 1.2 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.12 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.11 14-Sep-2000  msaitoh check LIBC_SCCS
 1.10 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.9 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.8 20-Sep-1999  lukem branches: 1.8.6;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.7 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.6 04-May-1999  christos Cast to unsigned short to avoid loss of precision message.
 1.5 09-Oct-1997  lukem rcsid facism, WARNSify
 1.4 05-Jun-1995  pk Prototypes (PR#1098).
 1.3 06-May-1994  cgd oops!
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 23-Mar-1993  cgd added libcompat for compatibility routines, like ftime, etc.
 1.8.6.1 23-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.6 22-Aug-1999  kleink G/C the manual pages for getpw(3), vlimit(3) and vtimes(3). Although stated
in the manuals, these interfaces don't actually exist in libcompat and it isn't
likely that anyone needs nor actually implementents them; in fact,
<sys/vlimit.h> was removed recently.
 1.5 02-Jul-1999  simonb More trailing white space.
 1.4 05-Feb-1998  perry add LIBRARY section to man page
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.8 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.7 14-Sep-2000  msaitoh check LIBC_SCCS
 1.6 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.5 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.4 20-Sep-1999  lukem branches: 1.4.6;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.3 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.2 09-Oct-1997  lukem rcsid facism, WARNSify
 1.1 21-May-1994  cgd make stty and gtty real function stubs (they're now gone from ioctl_compat.h).
 1.4.6.1 23-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.11 04-Dec-2022  uwe Sections 2 and 3 have RETURN VALUES, not DIAGNOSTICS
 1.10 01-Sep-2019  sevan stty & gtty were around since v1
https://www.bell-labs.com/usr/dmr/www/man21.pdf
https://www.bell-labs.com/usr/dmr/www/man22.pdf
 1.9 07-Aug-2003  agc branches: 1.9.96; 1.9.98;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.7 07-Feb-2002  ross Generate <>& symbolically.
 1.6 02-Jul-1999  simonb More trailing white space.
 1.5 22-Mar-1999  garbled Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Wheee!
 1.4 05-Feb-1998  perry add LIBRARY section to man page
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.9.98.1 05-Sep-2019  martin Pull up following revision(s) (requested by sevan in ticket #174):
lib/libc/sys/chmod.2: revision 1.48
lib/libc/sys/stat.2: revision 1.59
lib/libc/sys/unlink.2: revision 1.30
lib/libc/sys/lseek.2: revision 1.25
lib/libc/sys/getuid.2: revision 1.18
lib/libc/sys/chown.2: revision 1.37
lib/libm/man/exp.3: revision 1.32
lib/libm/man/log.3: revision 1.7
lib/libc/sys/open.2: revision 1.60
lib/libc/stdio/fopen.3: revision 1.36
lib/libc/stdio/putc.3: revision 1.14
lib/libc/sys/mount.2: revision 1.51
share/man/man9/copy.9: revision 1.22
share/man/man9/uiomove.9: revision 1.20
lib/libc/sys/setuid.2: revision 1.23
lib/libc/sys/close.2: revision 1.18
sbin/init/init.8: revision 1.61
lib/libc/sys/write.2: revision 1.36
lib/libc/sys/read.2: revision 1.39
sbin/init/init.8: revision 1.62
lib/libc/sys/wait.2: revision 1.40
usr.bin/tty/tty.1: revision 1.10
lib/libc/sys/link.2: revision 1.33
usr.bin/du/du.1: revision 1.24
lib/libc/stdlib/exit.3: revision 1.17
usr.bin/su/su.1: revision 1.53
usr.bin/mail/mail.1: revision 1.66
lib/libc/sys/fork.2: revision 1.25
usr.bin/su/su.1: revision 1.54
usr.bin/mail/mail.1: revision 1.67
lib/libm/man/sin.3: revision 1.15
share/man/man9/intro.9: revision 1.26
share/man/man5/utmp.5: revision 1.17
lib/libc/compat-43/creat.3: revision 1.17
lib/libc/time/ctime.3: revision 1.61
lib/libcompat/4.1/stty.3: revision 1.10
usr.bin/dc/dc.1: revision 1.3
lib/libm/man/cos.3: revision 1.17
lib/libc/sys/chdir.2: revision 1.23
lib/libc/gen/exec.3: revision 1.30
lib/libc/gen/exec.3: revision 1.31
games/bcd/bcd.6: revision 1.18
games/bcd/bcd.6: revision 1.19
usr.bin/write/write.1: revision 1.7
usr.bin/wc/wc.1: revision 1.18
usr.bin/pr/pr.1: revision 1.24
usr.bin/who/who.1: revision 1.25
lib/libc/sys/mkdir.2: revision 1.30
lib/libc/stdio/getc.3: revision 1.13
usr.bin/sort/sort.1: revision 1.40
usr.bin/mesg/mesg.1: revision 1.11
share/man/man5/passwd.5: revision 1.34
sort was there since v1
https://www.bell-labs.com/usr/dmr/www/man61.pdf

dc was in v1
https://www.bell-labs.com/usr/dmr/www/man12.pdf

du was in v1
https://www.bell-labs.com/usr/dmr/www/man12.pdf

mail was in v1
https://www.bell-labs.com/usr/dmr/www/man12.pdf

mesg was in v1
https://www.bell-labs.com/usr/dmr/www/man12.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man13.pdf

su was in v1
https://www.bell-labs.com/usr/dmr/www/man13.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man13.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man14.pdf
Update URL

write was in v1
https://www.bell-labs.com/usr/dmr/www/man14.pdf
grammar

passwd(5) was in v1
https://www.bell-labs.com/usr/dmr/www/man51.pdf

utmp(5) was present in v1
https://www.bell-labs.com/usr/dmr/www/man51.pdf

Earliest version of wtmp I could find was in v3
https://minnie.tuhs.org/cgi-bin/utree.pl?file=V3/man/man5/wtmp.5

Document history of chdir(2)
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history of chmod(2)
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history of chown(2)
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man21.pdf

create was present in v1
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history of exec()
Move statement on execlpe() & execvpe() to HISTORY section.

Document history
https://www.bell-labs.com/usr/dmr/www/man21.pdf

fork was present in v1
https://www.bell-labs.com/usr/dmr/www/man21.pdf
stat() was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

document history of fstat()
https://www.bell-labs.com/usr/dmr/www/man21.pdf

getuid was present in v1
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man21.pdf

Document history
https://www.bell-labs.com/usr/dmr/www/man21.pdf

stty & gtty were around since v1
https://www.bell-labs.com/usr/dmr/www/man21.pdf
https://www.bell-labs.com/usr/dmr/www/man22.pdf

mount & umount were present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

Open was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

read was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

seek was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

setuid was in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

unlink was presen in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

wait was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

write was present in v1
https://www.bell-labs.com/usr/dmr/www/man22.pdf

start documenting history
exp was present in v1
https://www.bell-labs.com/usr/dmr/www/man31.pdf

Start documenting history
https://www.bell-labs.com/usr/dmr/www/man31.pdf

Start documenting history
https://www.bell-labs.com/usr/dmr/www/man31.pdf

log appeared in v1
https://www.bell-labs.com/usr/dmr/www/man31.pdf

putc & putw were in v1
https://www.bell-labs.com/usr/dmr/www/man31.pdf

putchar was in v4
https://minie.tuhs.org/cgi-bin/utree.pl?file=V4/man/man3/putchr.3

Start documenting history
https://www.bell-labs.com/usr/dmr/www/man31.pdf

Document history.
https://www.bell-labs.com/usr/dmr/www/man11.pdf
Between v1 & v6 UNIX, bcd was rewritten in C, but I don't know if which
version,
hence I've skipped mentioning it.
End sentence with a dot.
Remove superfluous Pp.
Remove superfluous Pp.
Remove superfluous Ns.
Remove superfluous Pp.
fetch(9) -> ufetch(9)
fetch(9) -> ufetch(9). Remove superfluous Pp.
fetch(9) -> ufetch(9). Remove reference to unimplemented ppi(9).
 1.9.96.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.8 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.7 14-Sep-2000  msaitoh check LIBC_SCCS
 1.6 14-Jun-2000  cgd sweep of my licenses (userland files w/o only my copyright) for
consistency. (no functional changes)
 1.5 14-Jun-2000  cgd fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well. No functional changes.
 1.4 20-Sep-1999  lukem branches: 1.4.6;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.3 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.2 09-Oct-1997  lukem rcsid facism, WARNSify
 1.1 21-May-1994  cgd make stty and gtty real function stubs (they're now gone from ioctl_compat.h).
 1.4.6.1 23-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.7 22-Aug-1999  kleink G/C the manual pages for getpw(3), vlimit(3) and vtimes(3). Although stated
in the manuals, these interfaces don't actually exist in libcompat and it isn't
likely that anyone needs nor actually implementents them; in fact,
<sys/vlimit.h> was removed recently.
 1.6 22-Mar-1999  garbled Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Wheee!
 1.5 28-Apr-1998  fair fix mdoc references
 1.4 05-Feb-1998  perry add LIBRARY section to man page
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.8 22-Aug-1999  kleink G/C the manual pages for getpw(3), vlimit(3) and vtimes(3). Although stated
in the manuals, these interfaces don't actually exist in libcompat and it isn't
likely that anyone needs nor actually implementents them; in fact,
<sys/vlimit.h> was removed recently.
 1.7 02-Jul-1999  simonb More trailing white space.
 1.6 22-Mar-1999  garbled Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Wheee!
 1.5 05-Feb-1998  perry add LIBRARY section to man page
 1.4 18-Oct-1997  mikel xref time(3) instead of time(2)
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.4 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.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 19-Jun-1997  mikel include <stdlib.h> for free() prototype
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.12 06-Jul-2005  drochner Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.11 16-Apr-2003  wiz branches: 1.11.6;
Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.10 01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.9 07-Feb-2002  ross Generate <>& symbolically.
 1.8 15-Jan-2002  wiz Drop a trailing empty line.
 1.7 02-Jul-1999  simonb More trailing white space.
 1.6 05-Feb-1998  perry add LIBRARY section to man page
 1.5 09-Oct-1997  lukem rcsid facism, WARNSify
 1.4 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.3 12-Mar-1994  jtc Instruct user to #include <search.h>.
Remque() has returned void for some time now.
 1.2 13-Aug-1993  brezak Correct copyright statements
 1.1 13-Aug-1993  brezak branches: 1.1.1;
Machine independent version of insque/remque
 1.1.1.1 06-May-1994  cgd update
 1.11.6.1 04-Aug-2005  tron Pull up file removal (requested by drochner in ticket #632):
Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.9 06-Jul-2005  drochner Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.8 20-Sep-1999  lukem branches: 1.8.16;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.7 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.6 02-Jul-1999  simonb More trailing white space.
 1.5 09-Oct-1997  lukem rcsid facism, WARNSify
 1.4 21-Oct-1993  jtc #include <search.h> to ensure that the public function declarations match
the implementation.
Use old-style function definitions so functions can be compiled with non-ansi
compilers.
Functions are specified to take void * arguments, so they must be cast to
a struct qelem * before they are used.
 1.3 26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.2 13-Aug-1993  brezak Correct copyright statements
 1.1 13-Aug-1993  brezak branches: 1.1.1;
Machine independent version of insque/remque
 1.1.1.1 06-May-1994  cgd update
 1.8.16.1 04-Aug-2005  tron Pull up file removal (requested by drochner in ticket #632):
Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.9 06-Jul-2005  drochner Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.8 07-Aug-2003  agc branches: 1.8.6;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.7 15-Jan-2002  wiz Punctuation nit.
 1.6 02-Jul-1999  simonb More trailing white space.
 1.5 29-Aug-1998  lukem first pass at fixing up capitalization of function names and
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
 1.4 05-Feb-1998  perry add LIBRARY section to man page
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.8.6.1 04-Aug-2005  tron Pull up file removal (requested by drochner in ticket #632):
Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.9 06-Jul-2005  drochner Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.8 07-Aug-2003  agc branches: 1.8.6;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.7 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.6 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.5 04-May-1999  christos De-constify the code, and add const castaway lint comments.
 1.4 03-Feb-1998  perry remove obsolete register declarations
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 05-Jun-1995  pk Prototypes (PR#1098).
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.8.6.1 04-Aug-2005  tron Pull up file removal (requested by drochner in ticket #632):
Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.13 04-Dec-2022  uwe Sections 2 and 3 have RETURN VALUES, not DIAGNOSTICS
 1.12 11-Aug-2015  dholland SEE ALSO re_format(7).
 1.11 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.10 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.9 01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.8 07-Feb-2002  ross Generate <>& symbolically.
 1.7 15-Jan-2002  wiz Punctuation nit, sort SEE ALSO.
 1.6 02-Jul-1999  simonb More trailing white space.
 1.5 01-Jun-1998  kleink Prototypes have moved: change inclusion of <unistd.h> to <re_comp.h>.
 1.4 05-Feb-1998  perry add LIBRARY section to man page
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.12 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.11 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.10 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.9 04-May-1999  christos In lint redefine __compat_regerror to __compat43_regerror, to avoid clash
with the other __compat_regerror...
 1.8 01-Jun-1998  kleink Need <re_comp.h> for re_comp() and re_exec() prototypes.
 1.7 09-Oct-1997  lukem rcsid facism, WARNSify
 1.6 21-Mar-1996  jtc Handle null string in re_comp.
From Kazushi Jam Marukawa <kazusi-m@is.aist-nara.ac.jp> in PR 2196.
 1.5 05-Jun-1995  pk Prototypes (PR#1098).
 1.4 01-Feb-1994  jtc Since V8 regex routines have been moved to libcompat(), the BSD regex
routines must again be defined as wrappers around them.
 1.3 11-Nov-1993  jtc Layer re_comp() and re_exec() on top of the POSIX regular expression
routines, as the V8 regexp routines have been removed.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 23-Mar-1993  nate From BSDI Mailing list. regex.c uses the regcomp routines to emulate
the regex routines.
 1.9 06-Jul-2005  drochner Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.8 20-Sep-1999  lukem branches: 1.8.16;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.7 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.6 02-Jul-1999  simonb More trailing white space.
 1.5 09-Oct-1997  lukem rcsid facism, WARNSify
 1.4 21-Oct-1993  jtc #include <search.h> to ensure that the public function declarations match
the implementation.
Use old-style function definitions so functions can be compiled with non-ansi
compilers.
Functions are specified to take void * arguments, so they must be cast to
a struct qelem * before they are used.
 1.3 26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.2 13-Aug-1993  brezak Correct copyright statements
 1.1 13-Aug-1993  brezak branches: 1.1.1;
Machine independent version of insque/remque
 1.1.1.1 06-May-1994  cgd update
 1.8.16.1 04-Aug-2005  tron Pull up file removal (requested by drochner in ticket #632):
Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
 1.13 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.12 14-May-2003  wiz setup -> set up.
 1.11 01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.10 08-Aug-2002  soren Refer to rcmd(3) instead of the non-existing krcmd(3).
PR lib/12562 by Klaus Klein.
 1.9 02-Jul-1999  simonb More trailing white space.
 1.8 22-Mar-1999  garbled Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Wheee!
 1.7 14-Aug-1998  phil Add the correct type for the first parameter.
 1.6 28-Apr-1998  fair fix mdoc references
 1.5 28-Apr-1998  fair Change occurrences of "UNIX" to .Ux or .At as appropriate.
 1.4 05-Feb-1998  perry add LIBRARY section to man page
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.16 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.15 11-Nov-2002  thorpej Fix signed/unsigned comparison warnings, and shadow warnings.
 1.14 05-Nov-2001  lukem WARNS=2 fixes
 1.13 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.12 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.11 02-Jul-1999  simonb More trailing white space.
 1.10 09-May-1999  mycroft LP64 fixes. *sigh*
 1.9 04-May-1999  christos - KNF
- add NetBSD comment
- use warn instead of perror
- protect overflowing the stack on bad DNS records
- delint
 1.8 10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.7 19-Mar-1998  tv FTP uses ruserpass() differently from that in libcompat. Fix rexec to
recognize that the new ruserpass returns an int (but ignore it for now),
and ruserpass does not accept an acct pointer.
 1.6 09-Oct-1997  lukem rcsid facism, WARNSify
 1.5 23-Jan-1997  mrg - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
 1.4 05-Jun-1995  pk Prototypes (PR#1098).
 1.3 03-Jun-1995  mycroft Fill in sin_len.
 1.2 19-Oct-1994  cgd needs string.h
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.11 04-Oct-2024  rillig libc, libcompat: fix lint warning about "effectively discards 'const'"

lib/libc/time/zic.c(2810): warning: call to 'strchr' effectively
discards 'const' from argument [346]

lib/libcompat/4.3/ruserpass.c(145): warning: call to 'strchr'
effectively discards 'const' from argument [346]

No binary change.
 1.10 21-Oct-2003  fvdl branches: 1.10.108;
Don't use NULL to compare against an int.
 1.9 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.8 14-Sep-2000  msaitoh check LIBC_SCCS
 1.7 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.6 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.5 04-May-1999  christos - add a comparison to NULL in a conditional.
- cast third argument of strn*() to size_t
- s/FALL THROUGH/FALLTHROUGH/
 1.4 19-Aug-1998  thorpej Add some braces to make egcs happy.
 1.3 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.2 19-Mar-1998  tv FTP uses ruserpass() differently from that in libcompat. Fix rexec to
recognize that the new ruserpass returns an int (but ignore it for now),
and ruserpass does not accept an acct pointer.
 1.1 19-Mar-1998  tv Add a ruserpass() function to make rexec happy. PR 901 (that's not a typo).
 1.10.108.1 02-Aug-2025  perseant Sync with HEAD
 1.13 22-Mar-2010  joerg Use .In instead of .Ar Pa for headers.
 1.12 01-Apr-2005  christos Use getpwuid_r, KNF. From John Nemeth, many thanks.
 1.11 07-Aug-2003  agc branches: 1.11.6;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.10 27-Jun-2003  wiz End sentence with a dot.
 1.9 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.8 07-Feb-2002  ross Generate <>& symbolically.
 1.7 15-Jan-2002  wiz Drop an unnecessary .Pp.
 1.6 02-Jul-1999  simonb More trailing white space.
 1.5 05-Feb-1998  perry add LIBRARY section to man page
 1.4 16-Oct-1997  christos Moved by repository magick...
put in their description that they are obsolete and name by what function
if appropriate.
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.1 19-May-1994  jtc Move our cuserid(3) manpage to libcompat, since the cuserid() function
now lives there.
 1.11.6.1 09-Jul-2005  tron Pull up revision 1.12 (requested by lukem in ticket #535):
Use getpwuid_r, KNF. From John Nemeth, many thanks.
 1.8 19-Apr-2005  lukem getpw*_r() may return 0 and set pwd==NULL
 1.7 01-Apr-2005  christos Use getpwuid_r, KNF. From John Nemeth, many thanks.
 1.6 07-Aug-2003  agc branches: 1.6.6;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.5 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.4 26-Jul-1998  mycroft Copy into a local buffer rather than using the getpw*() buffer.
 1.3 03-Feb-1998  perry remove obsolete register declarations
 1.2 09-Oct-1997  lukem rcsid facism, WARNSify
 1.1 06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 06-May-1994  cgd update
 1.6.6.2 09-Jul-2005  tron Pull up revision 1.8 (requested by lukem in ticket #535):
getpw*_r() may return 0 and set pwd==NULL
 1.6.6.1 09-Jul-2005  tron Pull up revision 1.7 (requested by lukem in ticket #535):
Use getpwuid_r, KNF. From John Nemeth, many thanks.
 1.10 20-Oct-1997  christos Moved timezone, swapon and getdirentries back to libc.
 1.9 16-Oct-1997  christos Moved by repository magick...
put in their description that they are obsolete and name by what function
if appropriate.
 1.8 10-Oct-1997  fvdl Add new getdents() syscall, provide compat code for old getdirentries.
 1.7 12-Oct-1995  jtc Manpage fixes from Jochen Pohl. Aligns the prototypes in the SYNOPSIS
section with the actual function declarations. See PR #1589 for details.
 1.6 27-Feb-1995  cgd merge with lite, keeping most local changes. clean up Ids
 1.5 29-Nov-1993  jtc Use "Er" for argument to -width in the lists in the ERROR sections --- so
the formatting is consistant.
 1.4 29-Nov-1993  jtc Format ERROR values like all the other manual pages.
 1.3 25-Nov-1993  jtc Clean up manpages:
Use .Fn rather than .Nm macro in HISTORY and STANDARDS sections.
Use .At and .St macros instead of spelling out "Version 6 UNIX",
"IEEE 1003.1-1988 (POSIX)", etc.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 27-Feb-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.2 20-Oct-1997  christos Moved timezone, swapon and getdirentries back to libc.
 1.1 10-Oct-1997  fvdl Add new getdents() syscall, provide compat code for old getdirentries.
 1.10 20-Oct-1997  christos Moved timezone, swapon and getdirentries back to libc.
 1.9 16-Oct-1997  christos Moved by repository magick...
put in their description that they are obsolete and name by what function
if appropriate.
 1.8 12-Jun-1997  mrg bring mrg-vm-swap2 onto mainilne.
 1.7 27-Feb-1995  cgd merge with lite, keeping most local changes. clean up Ids
 1.6 22-Apr-1994  jtc Remove description of EINVAL, "The pathname contains a character with the
high-order bit set", as this error is obsolete.

Eventually we may want to add code to some of the "optional" filesystems
(msdosfs, etc.) that checks for illegal characters. At that time it would
be appropriate to reintroduce this error with appropriate text. Perhaps
"The pathname contains a character that is not valid for filesystem type".
 1.5 19-Apr-1994  jtc Use symbolic names {NAME_MAX} & {PATH_MAX} instead of 255 and 1023 in
description of ENAMETOOLONG error.
 1.4 29-Nov-1993  jtc Use "Er" for argument to -width in the lists in the ERROR sections --- so
the formatting is consistant.
 1.3 25-Nov-1993  jtc Clean up manpages:
Use .Fn rather than .Nm macro in HISTORY and STANDARDS sections.
Use .At and .St macros instead of spelling out "Version 6 UNIX",
"IEEE 1003.1-1988 (POSIX)", etc.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 27-Feb-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4 20-Oct-1997  christos Moved timezone, swapon and getdirentries back to libc.
 1.3 10-Oct-1997  mrg remove advertising clause from all my licenses.
 1.2 13-Jul-1997  christos Fix RCSID's
 1.1 12-Jun-1997  mrg move swapon() stub here
 1.7 20-Oct-1997  christos Moved timezone, swapon and getdirentries back to libc.
 1.6 16-Oct-1997  christos Moved by repository magick...
put in their description that they are obsolete and name by what function
if appropriate.
 1.5 29-May-1997  cgd Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
 1.4 27-Feb-1995  cgd merge with 4.4-Lite, keeping local changes. clean up Ids
 1.3 10-Jan-1994  jtc Fix spelling errors.
 1.2 30-Jul-1993  mycroft Add RCS identifiers.
 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.10 20-Oct-1997  christos Moved timezone, swapon and getdirentries back to libc.
 1.9 16-Oct-1997  christos Remove namespace cruft and add a prototype for tztab
 1.8 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.7 13-Jul-1997  christos Include "extern.h" to get prototype for _tztab
Fix gcc warnings.
Fix RCSID's
 1.6 23-Jan-1997  mrg - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
 1.5 27-Feb-1995  cgd branches: 1.5.4;
merge with 4.4-Lite, keeping local changes. clean up Ids
 1.4 24-Nov-1993  jtc Change C library functions to use strchr() and strrchr() instead of index()
and rindex(). This will allow (strict {ANSI, POSIX, XOPEN}) applications
to redefine index() and rindex() without effecting the library internals.
 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.5.4.1 19-Sep-1996  jtc snapshot namespace cleanup: gen
 1.2 09-Jan-1998  perry RCS Id Police.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.2 09-Jan-1998  perry RCS Id Police.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.10 07-Feb-2013  christos Don't provide 2 versions of __compat_regerror() (the other one comes
from 4.3/regex.c via symbol renaming). Anyway this one did nada, so
no great loss :-)
 1.9 14-Sep-2000  msaitoh branches: 1.9.56; 1.9.62;
check LIBC_SCCS
 1.8 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.7 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.6 04-May-1999  christos add /*ARGSUSED*/
 1.5 14-Sep-1998  tv __RENAME() the libcompat regexp routines so they will not be used by
programs that want -lcompat but use POSIX regex. Inspired by
<david@mono.org> in PR bin/1849.
 1.4 09-Oct-1997  lukem rcsid facism, WARNSify
 1.3 26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.62.1 25-Feb-2013  tls resync with head
 1.9.56.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.18 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.17 11-Aug-2015  dholland SEE ALSO re_format(7).
 1.16 08-Sep-2008  apb Mention the word "regexp" and the fact that this inteface is obsolete
in the NAME section.

Previously, "man -k regex" printed the following two lines
with no hint that you needed to do "man 3 regexp" to get to
the man page associated with the first of the two lines:

regcomp, regexec, regsub, regerror (3) - regular expression handlers
regex, regcomp, regexec, regerror, regfree (3) - regular-expression library
 1.15 07-Aug-2003  agc branches: 1.15.32;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.14 16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.13 07-Feb-2002  ross generate & symbolically
 1.12 07-Feb-2002  ross Generate <>& symbolically.
 1.11 15-Jan-2002  wiz Sort SEE ALSO.
 1.10 22-Aug-1999  kleink Add missing regerror() prototype.
 1.9 29-Apr-1998  fair fix a bad .Xr
 1.8 28-Apr-1998  fair fix mdoc references
 1.7 05-Feb-1998  perry add LIBRARY section to man page
 1.6 09-Oct-1997  lukem rcsid facism, WARNSify
 1.5 10-Jul-1997  mikel xref exit(3) not exit(2)
 1.4 13-Jan-1995  jtc Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
 1.3 06-May-1994  cgd patch up
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 06-May-1994  cgd update
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.15.32.1 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.19 26-Jan-2016  christos PR/50711: David Binderman: Fix memory leak on error
 1.18 16-Feb-2007  freza Fix MKDEBUGLIB build.
 1.17 08-Apr-2006  christos make sure p is initialized.
 1.16 08-Apr-2006  christos remove bogus declaration.
 1.15 11-Nov-2002  thorpej Fix signed/unsigned comparison warnings, and shadow warnings.
 1.14 14-Sep-2000  msaitoh branches: 1.14.2;
check LIBC_SCCS
 1.13 11-Jul-2000  itohy Correct ctype(3) usage.
Passing "char" value is wrong. Use "unsigned char" instead.
 1.12 16-Sep-1999  lukem sort includes
 1.11 02-Jul-1999  simonb More trailing white space.
 1.10 04-May-1999  christos - widen prototypes
- fix portability with signed >>
- remove unreachable code
- add const castaways where appropriate
 1.9 14-Sep-1998  tv __RENAME() the libcompat regexp routines so they will not be used by
programs that want -lcompat but use POSIX regex. Inspired by
<david@mono.org> in PR bin/1849.
 1.8 03-Feb-1998  perry remove obsolete register declarations
 1.7 09-Oct-1997  lukem rcsid facism, WARNSify
 1.6 23-Jan-1997  mrg - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
 1.5 07-Jun-1995  cgd cast assignments to quiet const warnings. Mark (at least some) uses of
const variables that result in their modification (!!) as XXX.
 1.4 05-Jun-1995  pk Prototypes (PR#1098).
 1.3 26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.14.2.1 23-Jul-2004  tron Apply patch (requested by dbj in ticket 1724):
Fix problems when building the netbsd-1-6 branch with GCC 3.3.3.
 1.4 14-Sep-1998  tv __RENAME() the libcompat regexp routines so they will not be used by
programs that want -lcompat but use POSIX regex. Inspired by
<david@mono.org> in PR bin/1849.
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3 09-Oct-1997  lukem rcsid facism, WARNSify
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9 14-Sep-2000  msaitoh check LIBC_SCCS
 1.8 06-May-1999  christos Forgot to commit this.
delint: const castaway and cast to size_t
 1.7 14-Sep-1998  tv __RENAME() the libcompat regexp routines so they will not be used by
programs that want -lcompat but use POSIX regex. Inspired by
<david@mono.org> in PR bin/1849.
 1.6 03-Feb-1998  perry remove obsolete register declarations
 1.5 09-Oct-1997  lukem rcsid facism, WARNSify
 1.4 05-Jun-1995  pk Prototypes (PR#1098).
 1.3 26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.2 02-Aug-1993  mycroft Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources

RSS XML Feed