miod
fba1d2eff0
deraadt@ objects to the caveat remark, so remove it.
23 years ago
miod
2e6a70b044
Slightly improve wording and punctuation.
23 years ago
miod
b796301032
Add a caveat section pointing out that people affecting the return value
of getopt() to char variables instead of int lose on arches where char is
unsigned by default.
Clean the example by not pasting parts of <unistd.h> into it, and by not
using atoi(3).
23 years ago
millert
d0f45c1a97
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
23 years ago
millert
959b08f109
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
23 years ago
millert
b68c09e067
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
23 years ago
mickey
df85ac99b5
fix the history refs
23 years ago
fgsch
f9ed61c293
THREAD_UNLOCK() on error before returning; millert@ ok.
23 years ago
marc
a1df4e69bd
compile sparc64 version of sha1.go with -O0, too. OK jason@
23 years ago
millert
b6c954318e
If the user passes in "" as the string to resolve the lstat() will
fail anyway so check for that. Also convert "." to "" since that
way we avoid the lstat() (which we don't need) and the subsequent
chdir() and some dir checks.
23 years ago
miod
f782f2c5fe
Two functions can return errors here, not just one.
23 years ago
deraadt
2ebe322d0c
when strerror() has an Unknown error, also set EINVAL
23 years ago
deraadt
7e48f32113
alloca cannot check if the allocation is valid. mention the consequences; millert ok
23 years ago
tdeval
77a7c73d5c
correct an alignment mis-conception for malloc(0) returned regions.
OK deraadt@
23 years ago
deraadt
656331798e
document how malloc(0) blobbies are stored, and their character
23 years ago
deraadt
9462d0d22b
2nd param is const
23 years ago
millert
102be945f2
Comment out info on U (utrace) malloc option since we don't support it
on OpenBSD.
23 years ago
mickey
c3e7e8407a
remove dangling spaces and tabs
23 years ago
tdeval
9b9efbb25c
Grammar. Thanks markus@
23 years ago
tdeval
d98536c135
mprotect allocations sized at 0 bytes. This will cause a fault for access
to such, permitting them to be discovered, instead of exploited as the ssh
crc insertion detector was. Idea by theo, written by tdeval.
23 years ago
deraadt
7c24a87eca
fix docs; tedu@heorot.stanford.edu
23 years ago
millert
ac4382dfde
add RFC 3174 to SEE ALSO section
23 years ago
markus
8b85012334
sync with rmd160.h
23 years ago
markus
3bb1d7ac89
new rmd160 implementation. based on
ftp://ftp.rsasecurity.com/pub/cryptobytes/crypto3n2.pdf, ok deraadt@
23 years ago
drahn
2ca2f70119
Also build the .so version of sha1 without optimization.
ok jason@
23 years ago
jason
923842bb6f
get previous right...
23 years ago
jason
9f6d5d1ad2
add hack for sha1.po on sparc64, too
23 years ago
espie
aecf1306d9
K&R promotion is not the whole story. Make things explicit.
23 years ago
mpech
68ddad385f
Initial idea from aaron@: Last char of .Xr group in SEE ALSO section should
be a single digit. Powered by mantoya@.
millert@ ok.
23 years ago
mickey
2660cbbcf5
make debug libs build again
23 years ago
millert
734e2e00f3
Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts.
23 years ago
art
7c3186ea3c
gcc hangs when compiling sha1 on sparc64, workaround.
23 years ago
heko
52b680a55c
#(endif|else) foo is incorrect, make it #endif /* foo */
deraadt@ ok
23 years ago
mpech
8038b2e506
o) We always close .Bl and .Bd tags;
o) .Sh AUTHOR -> .Sh AUTHORS;
o) We don't like .Pp before/after .Sh;
o) We don't like .Pp before/after .Rs/.Re;
o) NetBSD -> .Nx;
o) OpenBSD -> .Ox;
millert@ ok
23 years ago
millert
f4dff807f0
Minor style pedentry from ben@arbor.net plus some of my own and sync
libkern and libc versions.
23 years ago
mpech
a7678ef179
clean up.
millert@ ok
23 years ago
deraadt
71d2e52579
a first pass at -Wall
23 years ago
lebel
60ef74bf70
use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.
23 years ago
deraadt
2333db14c1
more .%A handling; bk@rt.fm
23 years ago
millert
4678ee92f7
Clarify that if strlcat() does not find a NUL within siz byte it
will not NUL terminate either.
23 years ago
aaron
0be0df2e97
Fix a buf oflow in EXAMPLES code; millert@ ok
23 years ago
assar
b453282020
remove confusing comparison with srand (it does not return the old seed)
use .Sh AUTHORS and .An for author
23 years ago
pvalchev
796f867adc
License clarification from David Mazieres, ok deraadt@
23 years ago
millert
7e2ff06798
unsigned -> unsigned int; grange@rt.mipt.ru
23 years ago
deraadt
b131179341
type of function on seperate line
23 years ago
art
4a1143fa05
-1 -> MAP_FAILED
23 years ago
art
c2600b0389
Use madvise(MADV_FREE) to allow the 'h' option.
(the code was already there, just not enabled).
23 years ago
millert
a2733e1619
Document boundary condition when size < strlen(dst).
23 years ago
millert
58ba7fbdf7
Back out last change, it is intended behavior and update the block
comment to reflect this fact. Too early in the morning for me I guess.
23 years ago
millert
8d74ec2cc3
strlcat() should return strlen(dst) + strlen(src) when size parameter
<= strlen(dst). Bug report by mark.murnane@ireland.sun.com via the
GNOME folks.
23 years ago