otto
8c5ca2a673
allocate gsalt large enough; from Matthew R. Dempsky <mrd at alkemio
dot org>; ok djm@ deraadt@
18 years ago
krw
a85347343d
Nuke only two uses of OPENDEV_DRCT in tree. Nuke OPENDEV_DRCT. Long
marked obsolete since the opendev() behaviour it turned on is now the
default.
'it can go' deraadt@
'no API of mine has ever made it into a standard' downsj@
18 years ago
pedro
244553b30f
Fix 'double by a factor of two' and make cache options a bit more
descriptive while at it, input and okay jmc@
18 years ago
thib
c7485b1da9
fix a !foo & bar.
ok miod@, tedu@, pedro@
18 years ago
otto
6fdf04a27b
Fix the second malloc_ulimit regression: maintaining the free list
requires memory; try to make sure we have it. If all fails, leak
instead of crash. Test case originally found by cloder@, fix tested
by many.
18 years ago
millert
2a8d0a4c1b
Convert do {} while loop -> while {} for clarity. No binary change
on most architectures. From Oliver Smith. OK deraadt@ and henning@
18 years ago
tedu
09917d2c4e
strtonum does not require limits.h
spotted by ray some time ago
18 years ago
otto
854f853894
Do not leave an hole in the directory list if allocation of the
region succeeds, but allocation a required page dir failed. This
can happen if we're really close to ulimit after allocation the
region of the size requested. See malloc_ulimit1 regress test.
Tested by many; thanks.
18 years ago
otto
f650f69733
delint; original from deraadt@ with fixes from tdeval@ and me;
tested by quite a few developers. ok deraadt@
18 years ago
espie
14b69ad0fc
fix badly broken code. okay millert@, deraadt@
18 years ago
otto
8d5338428b
POSIX says tdelete() returns the parent of the deleted node. Sadly the
root node doesn't have a parent, and POSIX does not say what should be
done in that case. Warn developers that different implementations
may do different things.
19 years ago
moritz
699dc2618d
When tdelete() is used to delete the root node, don't return a
pointer to the freed root node, but return a pointer to the new
root node. POSIX does not define, what should be returned in
that case.
Fixes Coverity CID 2528.
ok millert@ otto@
19 years ago
deraadt
71a91e8ae3
be more careful with atoi() result; ok otto
19 years ago
otto
e9112488f5
Use SIZE_MAX instead of SIZE_T_MAX, the latter is not POSIX and
remove redundant check on size. ok millert@ deraadt@
19 years ago
deraadt
d72bbf4be3
getting to the bottom of the issues. sprinkle a few casts that will
actually help us find bugs later (with lint, not cc), if they get
introduced
19 years ago
deraadt
16ce0f1f4d
(char)to{upper,lower}()
19 years ago
deraadt
db4a02f55c
casts that cannot cause breakage in the future
19 years ago
deraadt
937e47b3dc
change internal login_protect() API to use mode_t like it should
19 years ago
deraadt
8cc19b605a
please lint (without making anything else worse)
19 years ago
grunk
8dbf7287b5
Xr to strtonum(3), because vice versa is already the case
ok jmc@ otto@
19 years ago
ray
eb202d0369
Add warning about malloc(num * size) and recommend calloc() instead,
or if malloc must be used suggest check.
Get rid of "one".
OK deraadt@ and jmc@, OK kjell@ to earlier version with "one"s.
19 years ago
ray
9ee3d71486
Removes extraneous variables from getopt(3). Inspired by one of
David Hill's diffs.
ok otto
19 years ago
otto
790f0cc439
Avouid a race in atexit() handling by introducing a lock. Problem
originally reported by Gergely Kovacs; help from dhartmei@;
ok tedu@ millert@
19 years ago
espie
8accc3ec6c
quick path for free(0)
`looks to be safe' millert, okay tedu.
19 years ago
jmc
f90681086b
document posixness;
fixes pr #4996 , from joachim schipper;
19 years ago
jakemsr
f7752f35a4
missing auxillary verb
"yes, that is correct." jmc@ (a while back)
19 years ago
jmc
4169f92843
back out previous - imaxabs is already listed;
19 years ago
millert
c1d18b2138
Xr imaxabs()
19 years ago
jmc
47e05126c0
fix the .Fn line; ok millert
19 years ago
jmc
da802fcfbf
sort SEE ALSO;
19 years ago
millert
6388df8cda
Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()
19 years ago
millert
09125d08dd
Return inf or nan as per printf() not Inf, Infinity or Nan (from dtoa)
Remove an extraneous check for dtoa returning Inf/Nan
19 years ago
millert
63f4612853
Use localeconv() to get the locale-specific radix char like printf does.
19 years ago
millert
8773a5e4ee
Nan and Infinity can be negative
Decimal point was missing for some exponential output
Only divide sign by 10 once per loop
Add a missing NUL terminator for one case
If there is no whole number portion, print a leading zero (e.g. 0.1 not .1)
19 years ago
millert
482dbff289
Prototypes live in <search.h>
19 years ago
otto
2df5443e38
Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a time
and remove fallback code. If somebody is dumb enough to make the
sysctl fail using systrace, he deserves what he gets. Saves 7 syscalls
on process startup.
looks good miod@ ok deraadt@ tedu@
19 years ago
deraadt
01172b9781
spaces, and a off_t typecast to please lint
19 years ago
deraadt
0716b3fa6e
use WANTLINT= (on all architectures)
19 years ago
espie
29075814ed
add $OpenBSD$ tags, as requested by dtucker.
19 years ago
espie
ef549283cb
Activate missing wcswidth, as noted by Alexander Bluhm.
okay deraadt@, otto@
Minor bump (nobody stepped forward with other changes, so let's do this one)
19 years ago
otto
d15483fc30
Remove obsolete comment. ok deraadt@
19 years ago
jmc
5508a474a4
clarifications from ray lai;
tweaked by tedu@ and myself;
19 years ago
jmc
1f434282b0
dont' -> don't in comments;
from ray lai;
19 years ago
deraadt
945e8d4407
library routines should not be checking for NULL pointers passed in,
and then setting errno to EFAULT. that is balony programming! they
should keep stumbling along to purposely create a crash, so that the
programmer stops doing that kind of stupid crap. ok otto
19 years ago
jmc
8800872d53
add uu_lock_txfr to .Nm list;
19 years ago
jaredy
04a4c1a148
tidy up examples
- use err() for error handling
- add lint hints
- spacing nits and missing braces
ok otto
19 years ago
espie
343495e278
fix a few warnings, keep the crypt stuff for later.
okay otto@
19 years ago
espie
2bf3877d2a
Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.
Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br>
Thanks.
19 years ago
deraadt
2f5b0c2be9
further knf and cleaning; ok tdeval
19 years ago
deraadt
d189c9f735
first KNF (no binary diffs)
19 years ago