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
aaron
763678bdf1
Various man page fixes and improvements from gluk@
24 years ago
deraadt
8123ad9438
document that exit() -> wait() only returns low bits
24 years ago
millert
db5f19efcb
Sync function comment with man page; fanf@covalent.net
24 years ago
millert
1742681900
Reverse the order of two loop invariant to make 'strlcat(0, "foo", 0)'
not get a SEGV; Richard Kettlewell <rjk@greenend.org.uk>
24 years ago
todd
83df067d68
grammer/spelling
24 years ago
aaron
3d200f23d8
Various repairs, mostly to get rid of short lines.
24 years ago
aaron
a23c3559c4
mdoc prefers `\e' as an escape character.
24 years ago
aaron
c56f4d6b0e
typo; ciper -> cipher
24 years ago
aaron
0993603ee0
.Sh EXAMPLE -> .Sh EXAMPLES. Even if there's only one example, at least
this is consistent.
24 years ago