tdeval
2fc00a431b
Unbreak 64-bit archs...
21 years ago
tdeval
0106adef12
Pointer cleaning. ok ian@, tedu@, krw@
21 years ago
krw
31a3573e90
Delete reference to /usr/share/doc/papers/malloc.ascii.gz as we do not
have it. We don't even have the directory /usr/share/doc/papers.
ok millert@.
21 years ago
pjanzen
16c2e5fccb
Ideas from NetBSD: document nmemb and include sradixsort in the NAME section.
Also, stomp a comma splice.
21 years ago
jmc
a7d1a88bc4
typos;
21 years ago
jmc
959aa9b10a
typos;
21 years ago
millert
96691bd73a
Pass ndigit+1 as size arg to strlcpy() since ndigit doesn't include the NUL
21 years ago
millert
697db374e9
assembler versions of insque and remque for m68k, also from 4.4BSD
21 years ago
millert
4448841b95
insque and remque are VAX instructions, no need for C functions; From 4.4BSD
21 years ago
millert
f4d64656f8
Include string.h for memset() proto; noticed by lebel@
21 years ago
millert
7466664b6f
Oops, forgot to add remque.c here
21 years ago
millert
7d1570f34c
Add sha2 routines based on code by Aaron D. Gifford with minor
massaging and a man page by me. I used the phk-derived stuff for
sha2hl.c instead of Aaron's for consistency with our other hash
routines.
21 years ago
millert
4f2de66d7b
Clear the digest local var w/ memset() in the End function.
21 years ago
millert
d1a476799c
move insque(3) and remque(3) from libcompat -> libc; they are now POSIX
21 years ago
millert
b4da3af000
move lsearch(3) and insque(3) from libcompat -> libc; they are now POSIX
21 years ago
jmc
980cdd8e8c
updated URL from Leandro Costa;
ok millert@
21 years ago
millert
6bb800e788
Mention that stroul() et al *do* accept negative numbers, they
just (effectively) cast to unsigned. ho@ OK
22 years ago
millert
dc2a63b6dd
Change copyright to a less restrictive ISC-style license to encourage
people to bundle this code.
22 years ago
jsyn
e0dd35b3b8
make the second example valid; ok millert@
22 years ago
markus
167556df86
makeing local table static saves some bytes; idea from mickey@
22 years ago
deraadt
e1a82d043a
Xr to strlcpy and strlcat more; ok millert
22 years ago
hin
e8060b1c19
strcat -> strlcat
ok deraadt@ tedu@ tdeval@
22 years ago
millert
c60d05f512
Use snprintf instead of a strcpy(), strncat() and strcat() sequence
deraadt@ OK
22 years ago
jmc
225b6ba206
fifo -> FIFO
ok millert@
22 years ago
millert
54bd43263c
use strlcpy(); assumes buf is at least ndigit bytes long which is as
safe as we can get. deraadt@ OK
22 years ago
deraadt
876bf51192
knf
22 years ago
millert
f3a8ddc140
Throw an error if the username field is empty; noticed by mpech@
22 years ago
deraadt
d3c9af5aa3
more asprintf; millert ok
22 years ago
deraadt
8ccc7922d7
asprintf; millert ok
22 years ago
millert
52eab7a141
ANSI function headers
22 years ago
deraadt
e155dacb0f
a few more strlcy; ok from beck & ho
22 years ago
jmc
8d7d8263de
.Xr typos;
ok deraadt@
22 years ago
jmc
81a92b2d75
.Xr's;
typos in man page section
ok deraadt@
22 years ago
kjell
804f08787d
Fix a pasto. (There is no ULLONG_MIN, for hopefully obvious reasons)
ok millert
22 years ago
millert
156f1b279a
Use int32_t, not long since this deals with 32bit quantities.
Inspired by a change in NetBSD and reported by Jan Johansson.
22 years ago
deraadt
a3ae0324b4
of of
22 years ago
deraadt
04ad54fbad
fix a variety of missing or wrong MLINKS
22 years ago
deraadt
2101454931
re-stir if pid changes; markus & me
22 years ago
jmc
a23019ca33
typos;
ok deraadt@
22 years ago
millert
949ecbd97d
Add sanity check to prevent int oflow for very large allocations.
Also fix a signed vs. unsigned issue while I am at it.
Found by Jim Geovedi. OK deraadt@
22 years ago
millert
36f3924c0e
Move the rounds into separate functions on sparc64 so gcc's optimizer
doesn't blow up. This is a hack but is better than compiling sha1.c
with -O0 on sparc64. From NetBSD (mrg).
deraadt@ OK
22 years ago
millert
bd747228df
o Ansi function headers
o Add __BEGIN_DECLS/__END_DECLS to include files
o Safe macros
o Remove useless variable assignment in the End function of *hl.c
o Some minor KNF, needs more
From Dan Weeks
22 years ago
mickey
b20c936570
use proper __findenv() prototype; millert@ ok
22 years ago
millert
b0758fbef2
Document BSD behavior of accepting '-' within optstring as long as
it is not the fist character of optstring (since that would conflict
with GNU semantics).
Update the bit on "W;" within optstring when called as getopt (not
getopt_long) to current reality.
22 years ago
millert
8cbc8395f9
When doing permutation, only treat "-" as an option if it was specified
in optstring. Problem noticed by Theo.
22 years ago
millert
dccaef8649
Fix pasto, spotted by lebel@
22 years ago
millert
cb897658ca
In BUGS section, append a warning to not use '-' as the first character
of optstring to avoid a semantic conflict with GNU getopt.
22 years ago
millert
34fcaee308
SUS (and apparently 1003.1-2001) say to check optstring for NULL
22 years ago
millert
b29867fc14
If we are passed "-" in argv and the user didn't specify '-' in optstring,
return -1 like POSIX requires.
22 years ago
millert
72e2001bda
BSD getopt() supports '-' in the optstring so we should too.
This is used by a few programs such as man and su.
22 years ago