tdeval
80b2c084f6
Back out to brk(2) version.
20 years ago
tdeval
afbf541ae4
- Remove the userland data limit check. It's mmap(2)'s job.
- When malloc_abort==0 (MALLOC_OPTIONS=a), don't abort in wrterror().
fine deraadt@
20 years ago
tdeval
e5a0109c9f
Missing check for NULL.
20 years ago
millert
b6d4073b5f
It's not really possible to make strtonum() deal with unsigned long
long values properly so don't bother trying. This greatly simplifies
the code. tedu@ OK with input from otto@ and others.
20 years ago
tdeval
f2430b4096
After a long gestation period, here comes our custom version of malloc(3)
using mmap(2) instead of sbrk(2).
To make a long story short, using mmap(2) in malloc(3) allows us to draw
all the benefits from our mmap(2)'s randomization feature, closing the
effort we did for returning memory blocks from random addresses.
Tested for a long time by many, thanks to them.
Go for it ! deraadt@
20 years ago
otto
a36fba04b6
Do not forget to test the lower bound if the upper bound > LLONG_MAX.
ok millert@
20 years ago
millert
baad1c3ad7
Avoid comparing unsigned and signed long longs since the signed
one will get implicitly cast to unsigned. Fixes a bug with negative
minval noticed by mjc@. Similar to a diff from miod@. OK miod@.
20 years ago
millert
20709cb14a
passwd.conf has been deprecated since login.conf was imported.
Today it finally dies. Based on a diff from Gabriel Kihlman.
20 years ago
marc
059a2dd23c
errno changes, lib major version bumps, and general flag day
To build you must:
cd /usr/src && make obj && make includes
cd lib/libc && make depend && make && NOMAN=1 sudo make install
cd /usr/src && make build
20 years ago
jmc
9ddc3b1129
kill dead .Xr to memory(3);
from kjell@
20 years ago
millert
c90a644274
Working hcreate(3) et al from NetBSD (cgd) via ray at cyth dot net.
Now passes the regress tests.
20 years ago
jfb
7a1e9128cc
Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@
20 years ago
marc
620a3670ec
errno -> err in a structure. OK deraadt@
20 years ago
millert
6c1618adfd
An optional argument cannot start with '-', even if permutation is
disabled. Magne Oestlyngen.
20 years ago
millert
638ec6cc63
In the Final function, move the context zeroing into the digest != NULL
scope so that passing a NULL digest is equivalent to the Pad function
(like it used to be). Fixes skey w/ sha1 as noticed by David Krause.
20 years ago
deraadt
2462bc4b83
knf; otto ok
20 years ago
otto
903036c95c
Add .Xr's to the commands implementing the various digests. ok millert@
20 years ago
millert
6e98a98e41
Simpler byte order flipping. Now the only place we explicitly check
for the host byte order is when we copy the final digest (and that
is just an optimization).
20 years ago
tedu
5435516474
improved man page, with example and error strings, suggested by deraadt@
man help jmc@
20 years ago
deraadt
3452944e6b
typo; sq@oganer.net
20 years ago
millert
9a4115e513
Make the Transform functions match the other hash types and document them.
Use sizeof() in the Init functions where it makes sense.
Use weak aliases instead of wrapper functions.
Probably should have gone in before the major bump but as these are only
used internally by the sha2 functions themselves there should be no problem.
20 years ago
millert
f181b464e0
Make the 2nd arg to SHA1Transform const again and unifdef SHA1HANDSOFF.
It was defined before and there is no need to for this knob...
20 years ago
jmc
eaf41443d6
sort SEE ALSO;
20 years ago
millert
2f87adf68b
Be smarter about signed vs. unsigned (produces better error messages).
OK otto@
20 years ago
millert
3fc0f059df
Missed this in the __strerror() removal.
20 years ago
millert
cb92ad54e0
Sync some prototypes with the headers
20 years ago
millert
ca2cf99d81
Some u_char -> u_int8_t conversion I missed earlier.
20 years ago
millert
80dc37e3c6
Use KNF indentation style and do some u_char -> u_int8_t conversion
I missed earlier.
20 years ago
millert
f788b66522
No longer need __strerror(3) now that we use strerror_r() inside libc.
20 years ago
millert
e2e5c3d50c
Add Pad and FileChunk functions for each family of hash functions.
The Pad function does padding like in Final but does not finish processing.
The FileChunk function creates a digest from a portion of a file.
Also made the length parameters consistent (and size_t).
20 years ago
millert
d3af4c4238
Add _Exit(3) as per C99. Discussed with espie@ some time ago.
20 years ago
tedu
55adc08842
typo spotted by grange
20 years ago
tedu
0ad4710abb
strtonum, a nicer version of strtoll, by millert and myself.
ok deraadt@ millert@
20 years ago
millert
45868bb9af
Do a better job of documenting strerror_r() and add an ERRORS section.
20 years ago
espie
075eca378d
build the error message in strerror_r.c directly, avoiding one copy there.
handle a few subtle details caught by the regression tests: correct
termination, non copying if buffer length == 0, errno setting.
let all former users of __strerror go through strerror_r.
Work by Todd Miller and I. Okay millert@.
20 years ago
millert
83cba58ed3
Rev 1.4 was bogus (committed from the wrong tree), this repairs it.
20 years ago
millert
a3e8d914af
some minor KNF
20 years ago
espie
5d22c77bac
let __strerror fill precisely the part of the buffer it can.
okay millert@
20 years ago
espie
bb84af69e3
Let __strerror work by fixing a number of problems. Work by tholo and I,
okay millert@.
- atoi was bogus.
- atoi was not reentrant.
- there's no reason to cast stuff to unsigned int.
20 years ago
millert
18f2266550
Sync with md5.c rev. 1.4
20 years ago
millert
31a77154fb
Changes inspired by Markus's rmd160 implementation:
o Make MD5Update() more readable
o Simplify padding in MD5Final()
o Do copy + byte flip in MD5Transform() instead of in the caller
The result is a faster md5 and the byte order foo is kept to a minimum.
20 years ago
millert
29064d763b
Undo some recent prototype changes; it is legal to pass the helper
functions can take a NULL buf pointer. They will malloc memory as
needed in this case.
20 years ago
millert
c71980a843
The data pointer passed to the transform function may not be properly
aligned so copy it in a way that a) is endian indepenent and b) does
not rely on alignment. Problem found and solution tested by hshoexer@
20 years ago
jmc
fc7f44a3cc
typo in SEE ALSO;
20 years ago
millert
1e36196ad9
more KNF
20 years ago
millert
224ee4053e
Some KNF
20 years ago
millert
6766bb800e
KNF: function names should be at column 0 for easier grepping.
20 years ago
millert
ed861eb432
Pass sizeof(*pointer) not sizeof(point) to memset. Karsten Desler.
20 years ago
millert
9eef84d714
Don't build lib/libc/md, build md[45] in lib/libc/hash instead.
20 years ago
millert
93807fbee0
md[45] man page
20 years ago