Home | History | Annotate | only in /src/lib/libc/md
History log of /src/lib/libc/md
RevisionDateAuthorComments
 1.7 24-Sep-2005  elad Put public domain MD2 implementation in libc/hash/md2.
 1.6 19-Mar-2001  atatat Add md2 routines to libc.
 1.5 24-Feb-1999  drochner branches: 1.5.12;
use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again
 1.4 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.3 09-May-1997  mycroft Eliminate bogus redefinitions of standard targets.
 1.2 30-Apr-1997  thorpej - Liberal application of suggestions in /usr/share/misc/style.
- Don't use sed(1) to generate these files. The C preprocessor
is your friend.
 1.1 30-Jan-1997  thorpej Add MD4/MD5 routines to the C library, taken directly from FreeBSD's
"libmd".
 1.5.12.1 08-Oct-2001  nathanw Catch up to -current.
 1.2 24-Sep-2005  elad Put public domain MD2 implementation in libc/hash/md2.
 1.1 19-Mar-2001  atatat branches: 1.1.2;
Add md2 routines to libc.
 1.1.2.2 08-Oct-2001  nathanw Catch up to -current.
 1.1.2.1 19-Mar-2001  nathanw file md2.copyright was added on branch nathanw_sa on 2001-10-08 20:20:00 +0000
 1.6 24-Sep-2005  elad Put public domain MD2 implementation in libc/hash/md2.
 1.5 12-Jun-2005  lukem Add missing __RCSID()
 1.4 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.3 31-Mar-2002  bjh21 Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their
not being in the host libc.
This will be necessary to make cksum into a host tool.
 1.2 20-Mar-2001  augustss branches: 1.2.2;
Make this file lint.
 1.1 19-Mar-2001  atatat Add md2 routines to libc.
 1.2.2.3 25-Apr-2002  nathanw Catch up to -current.
 1.2.2.2 08-Oct-2001  nathanw Catch up to -current.
 1.2.2.1 20-Mar-2001  nathanw file md2c.c was added on branch nathanw_sa on 2001-10-08 20:20:00 +0000
 1.5 12-Jun-2005  lukem Add missing __RCSID()
 1.4 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.3 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.2 31-Mar-2002  bjh21 Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their
not being in the host libc.
This will be necessary to make cksum into a host tool.
 1.1 19-Mar-2001  atatat branches: 1.1.2;
Add md2 routines to libc.
 1.1.2.3 25-Apr-2002  nathanw Catch up to -current.
 1.1.2.2 08-Oct-2001  nathanw Catch up to -current.
 1.1.2.1 19-Mar-2001  nathanw file md2hl.c was added on branch nathanw_sa on 2001-10-08 20:20:01 +0000
 1.1 30-Jan-1997  thorpej Add MD4/MD5 routines to the C library, taken directly from FreeBSD's
"libmd".
 1.15 20-Dec-2005  christos Use reach-over sources from common/lib/libc
 1.14 25-Sep-2005  elad Fix weak aliasing after recent changes.

Inspired by comments from christos@, xtraeme@, mlelstv@, mhitch@, mrg@,
and uwe@; all the bugs are mine.
 1.13 12-Jun-2005  lukem Add missing __RCSID()
 1.12 04-Dec-2003  keihan netbsd.org -> NetBSD.org
NetBSD.ORG -> NetBSD.org

Now src/lib is done.
 1.11 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.10 31-Mar-2002  bjh21 Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their
not being in the host libc.
This will be necessary to make cksum into a host tool.
 1.9 22-Jan-2000  mycroft branches: 1.9.6;
Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.8 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.7 17-Sep-1999  kleink Partially revert previous change: the assertions made in utility functions
defined with file scope only are redundant, and will never fail.
 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 13-Nov-1998  christos delint
 1.4 20-Oct-1998  kleink Need internal names for MD[45]{Init,Final,Update}().
 1.3 26-Jul-1998  mycroft constify some tables.
 1.2 30-Apr-1997  thorpej Liberal application of suggestions in /usr/share/misc/style.
 1.1 30-Jan-1997  thorpej Add MD4/MD5 routines to the C library, taken directly from FreeBSD's
"libmd".
 1.9.6.1 25-Apr-2002  nathanw Catch up to -current.
 1.7 26-Sep-2005  christos The weak alias macros can only work before namespace.h gets included because
when the strings get expanded we gain an _ from namespace.h. So define a
macro to point to the appropriate include file for the hash function, and
include the hash function later, from the .c file we always include. This
allows us to eliminate the hack of including namespace.h twice as well as
nbtool_config.h.
 1.6 12-Jun-2005  lukem Add missing __RCSID()
 1.5 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.4 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.3 31-Mar-2002  bjh21 Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their
not being in the host libc.
This will be necessary to make cksum into a host tool.
 1.2 20-Oct-1998  kleink branches: 1.2.12;
Need internal names for MD[45]{Init,Final,Update}().
 1.1 30-Apr-1997  thorpej - Liberal application of suggestions in /usr/share/misc/style.
- Don't use sed(1) to generate these files. The C preprocessor
is your friend.
 1.2.12.1 25-Apr-2002  nathanw Catch up to -current.
 1.1 30-Jan-1997  thorpej Add MD4/MD5 routines to the C library, taken directly from FreeBSD's
"libmd".
 1.24 20-Dec-2005  christos Use reach-over sources from common/lib/libc
 1.23 03-Dec-2005  yamt remove unnecessary __UNCONST.
 1.22 29-Nov-2005  christos WARNS=4
 1.21 25-Sep-2005  elad Fix weak aliasing after recent changes.

Inspired by comments from christos@, xtraeme@, mlelstv@, mhitch@, mrg@,
and uwe@; all the bugs are mine.
 1.20 12-Jun-2005  lukem Add missing __RCSID()
 1.19 14-Nov-2003  keihan s/modifed/modified/

And while here...

s/NetBSD.ORG/NetBSD.org/
 1.18 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.17 31-Mar-2002  bjh21 Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their
not being in the host libc.
This will be necessary to make cksum into a host tool.
 1.16 22-Jan-2000  mycroft branches: 1.16.6;
Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.15 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.14 17-Sep-1999  kleink Partially revert previous change: the assertions made in utility functions
defined with file scope only are redundant, and will never fail.
 1.13 16-Sep-1999  sommerfeld Resynch with libkern
 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 10-Sep-1999  drochner don't __weak_alias for _STANDALONE code
 1.10 03-May-1999  christos Mark const castaways for lint.
 1.9 09-Feb-1999  explorer sync with libkern. Again.
 1.8 04-Feb-1999  explorer sync this with changes made in libkern.
 1.7 13-Nov-1998  christos delint
 1.6 20-Oct-1998  kleink Need internal names for MD[45]{Init,Final,Update}().
 1.5 10-Aug-1998  perry bzero->memset, bcopy->memcpy, bcmp->memcmp
 1.4 26-Jul-1998  mycroft constify some tables.
 1.3 26-Mar-1998  cgd when deciding whether to use standard system include files or libkern.h,
check _STANDALONE as well as _KERNEL. _KERNEL is incorrect for use when
building boot blocks, and it looks like the rest of the code is already
using _STANDALONE for this purpose.
 1.2 30-Apr-1997  thorpej - Liberal application of suggestions in /usr/share/misc/style.
- Make this compile in the kernel environment.
 1.1 30-Jan-1997  thorpej Add MD4/MD5 routines to the C library, taken directly from FreeBSD's
"libmd".
 1.16.6.1 25-Apr-2002  nathanw Catch up to -current.
 1.7 26-Sep-2005  christos The weak alias macros can only work before namespace.h gets included because
when the strings get expanded we gain an _ from namespace.h. So define a
macro to point to the appropriate include file for the hash function, and
include the hash function later, from the .c file we always include. This
allows us to eliminate the hack of including namespace.h twice as well as
nbtool_config.h.
 1.6 12-Jun-2005  lukem Add missing __RCSID()
 1.5 27-Oct-2003  lukem Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
 1.4 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.3 31-Mar-2002  bjh21 Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their
not being in the host libc.
This will be necessary to make cksum into a host tool.
 1.2 20-Oct-1998  kleink branches: 1.2.12;
Need internal names for MD[45]{Init,Final,Update}().
 1.1 30-Apr-1997  thorpej - Liberal application of suggestions in /usr/share/misc/style.
- Don't use sed(1) to generate these files. The C preprocessor
is your friend.
 1.2.12.1 25-Apr-2002  nathanw Catch up to -current.
 1.12 23-May-2018  wiz Use .An in authors section. Remove empty section.
 1.11 23-May-2018  christos Add cross references to the openssl man pages.
 1.10 13-Jun-2003  lukem branches: 1.10.96;
add const qualifiers to match md{2,4,5}.h
 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 01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.7 07-Feb-2002  ross Generate <>& symbolically.
 1.6 16-Sep-2001  wiz Readd .Sh COPYRIGHT (needed for man pages generated from this template)
 1.5 16-Sep-2001  wiz Remove some boring whitespace and an empty section, and sort sections.
 1.4 17-Aug-1999  enami branches: 1.4.10;
In name section, use .Dq macro rather than writing double quote directly.
 1.3 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.2 05-Feb-1998  perry add LIBRARY section to man page
 1.1 30-Jan-1997  thorpej Add MD4/MD5 routines to the C library, taken directly from FreeBSD's
"libmd".
 1.4.10.4 18-Oct-2002  nathanw Catch up to -current.
 1.4.10.3 22-Mar-2002  nathanw Catch up to -current.
 1.4.10.2 08-Mar-2002  nathanw Catch up to -current.
 1.4.10.1 08-Oct-2001  nathanw Catch up to -current.
 1.10.96.1 25-Jun-2018  pgoyette Sync with HEAD
 1.13 24-Sep-2014  christos undo, the right place for this is compat_defs.h
 1.12 24-Sep-2014  he Provide a backward-compatible conditional define of O_CLOEXEC
for those systems which lack it, since these files are used in
tools builds.
 1.11 18-Sep-2014  christos make more descriptors that we open as close-on-exec
 1.10 25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.9 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.8 06-Mar-2009  apb branches: 1.8.6;
According to Alexander Bluhm in tech-toolchain on 31 Jan 2009, the way
these files use __weak_alias causes build failures under OpenBSD,
because the OpenBSD __weak_alias macro expects the caller to supply a
semicolon, but the NetBSD __weak_alias macro supplies its own semicolon.

Attempt to fix this by avoiding the use of __weak_alias during a tools
build.
 1.7 26-Sep-2005  christos branches: 1.7.26; 1.7.30;
The weak alias macros can only work before namespace.h gets included because
when the strings get expanded we gain an _ from namespace.h. So define a
macro to point to the appropriate include file for the hash function, and
include the hash function later, from the .c file we always include. This
allows us to eliminate the hack of including namespace.h twice as well as
nbtool_config.h.
 1.6 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.5 20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.4 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.3 13-Nov-1998  christos delint
 1.2 30-Apr-1997  thorpej - Liberal application of suggestions in /usr/share/misc/style.
- Don't use sed(1) to generate these files. The C preprocessor
is your friend.
 1.1 30-Jan-1997  thorpej Add MD4/MD5 routines to the C library, taken directly from FreeBSD's
"libmd".
 1.7.30.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.7.26.1 27-Mar-2009  msaitoh Pull up following revision(s) (requested by apb in ticket #579):
gnu/dist/texinfo/lib/system.h 1.11
lib/libc/hash/hashhl.c 1.3
lib/libc/md/mdXhl.c 1.8
dist/file/src/file.h 1.18

Improve the ability to cross-build from Linux and OpenBSD hosts.
 1.8.6.2 30-Oct-2012  yamt sync with head
 1.8.6.1 17-Apr-2012  yamt sync with head

RSS XML Feed