martynas
924f910592
typos; ok jmc@
sys/dev/pci/pciide.c from naddy@
17 years ago
jmc
e4b49a8636
copy in FILES from pw_lock.3 to vipw.8: as nick points out, it should at
least document /etc/ptmp;
while i'm at it, might as well tidy it up and make it consistent across
these pages;
17 years ago
tobias
a1236056e5
Put limits.h in front of stdlib.h as style(9) recommends.
OK millert@
17 years ago
tobias
c9440635f0
strtod may return HUGE_VAL on overflow, which is defined in math.h.
Therefore added math.h to SYNPOSIS.
OK millert@
17 years ago
chl
10f5e46272
Add parentheses to avoid warning:
"suggest parentheses around && within ||"
ok millert@
17 years ago
miod
d178cbce71
Make sure to use unique target names so that make -j does not break;
feedback and ok espie@
17 years ago
pyr
31ac1d57bb
add a RETURN VALUES section.
ok jmc@
17 years ago
jmc
dbae57ca40
add HISTORY; shortened version of diff from Ilya A. Kovalenko
ok millert
17 years ago
deraadt
68e05a5470
comment inside comment
17 years ago
chl
cf0e72fea8
Add missing header to avoid warning
ok millert@ ray@
17 years ago
deraadt
58f16dd9e2
no need to talk about bits; ok millert jmc
17 years ago
millert
6441b2ef99
Update free(3) section--we use mmap()/munmap(), not brk().
Based on a diff from Mike Belopuhov. OK jmc@
17 years ago
jmc
018d78d2bc
remove trailing whitespace;
17 years ago
millert
7726c7baf2
Add __cxa_atexit() support for gcc3. This provides support for shared object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.
17 years ago
millert
63cad49094
add recaloc(3)
17 years ago
millert
f5ac8d80cf
add memrchr(3)
17 years ago
deraadt
93a9caecd5
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
17 years ago
millert
ad911583f0
Clarify the example about avoiding overflow. OK ray@ deraadt@
17 years ago
ray
e35f6842e2
Show how to use strcspn(3) to trim newlines.
OK jmc and millert.
17 years ago
millert
85fcb3d91b
Reference limits.h, not sys/param.h since we document using PATH_MAX
OK otto@
17 years ago
jmc
abd50361c7
from ginsbach@netbsd, -r1.18:
Document that getopt_long(3) can and will accept unique abbreviated long
option names. This feature has been present since getopt_long(3) was first
released in NetBSD 1.5. This is also standard GNU getopt_long(3) behavior.
ok millert
17 years ago
millert
1b911c12d6
Document behavior when no conversion could be performed. Adapted
from FreeBSD. With help from jmc@.
17 years ago
jmc
14302f5699
convert to new .Dd format;
17 years ago
moritz
a7932d616e
Make it clear, that the line returned does not have a
trailing newline in contrast to fgetln(3).
ok ray@ jmc@ millert@
17 years ago
jmc
1ee5d8c8dd
macros at start of line require a `.';
17 years ago
pyr
9755492ad5
Document the lack of error return value in arc4random.
Sync the documentation in getpid with arc4random's format.
17 years ago
millert
92657c3d56
Support for optional args separated with whitespace was removed
some time ago--it caused too many problems.
17 years ago
tedu
95e05a31f0
remove some bogus *p from charles longeau
ok deraadt millert
18 years ago
ray
ba27cbd12b
Get rid of useless #if 0 block, especially since the code is included
immediately after.
OK millert@.
18 years ago
bluhm
20e0203fbe
If NLS is disabled, strerror does not print the correct error string.
No binary change with NLS enabled.
ok otto millert espie
18 years ago
millert
260e7b6d66
sha2 hashes are not 5 32-bit ints in size. Just leave out the size
in ints since there are multiple flavors. The key point to get
across is that when storing as a type > byte it may be necessary
to do byte swapping depending on the machine's byte order.
Noticed by Tamas TEVESZ.
18 years ago
ray
7ad5ecbe16
Change hard coded numbers to sizeof(buf). Also change some
sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size.
Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago.
OK millert@.
18 years ago
jmc
5764436686
wording fix from wiz@netbsd, -r1.11;
18 years ago
jmc
ce684f6c93
from hubertf@netbsd:
Try to tell what this really does.
Including a BUGS section on why it doesn't.
*roff code by wiz@, with some input from
Slava Semushin <slava.semushin@gmail.com>
ok millert
18 years ago
otto
58f0ac45ed
get cheaper random bytes, less waste and no getpid() calls, which are
done by arc4random(); ok millert@ deraadt@
18 years ago
otto
5fef7e5c00
provide an libc internal interface to get random bytes, to be used by malloc
to get random data without calling getpid(), ok millert@ deraadt@
18 years ago
jmc
87c018dfaf
fix some dodgy displays;
18 years ago
steven
2bbbf85772
sync with the code: int -> intmax_t
ok jmc@
18 years ago
deraadt
71c645ca56
advertising clauses that can be dropped
18 years ago
ray
fa4243d96f
Don't use err as labels or variables, especially since we include
err.h.
OK moritz@ and jaredy@.
18 years ago
otto
9ac6257d5f
a failed mmap returns MAP_FAILED, not NULL. found while exercising pax
in low-mem conditions; ok dim@
18 years ago
ray
42bf021fff
Always write errno on pw_lock failure so it can be relied on.
Mention errno, pw_file, and pw_init in pw_lock man page.
OK jmc@, otto@, millert@, and deraadt@.
18 years ago
grunk
9f82269431
columns for underflow and overflow were swapped, noticed by Mathieu Olivier
<molivier at users dot sourceforge dot net>
ok jmc@ mickey@
18 years ago
deraadt
33ef5c2799
must pull in sys/types.h unconditionaly, because it is needed my pthreads
includes used a bit later (for instance on the vax)
18 years ago
deraadt
888249e0c1
make __dtoa & strtod() thread-safe useing the same method as newer gdtoa
codebase. tested mostly by ckuethe and myself. __dtoa() use now requires
a call to __freedtoa()
18 years ago
tedu
dcff59fbc7
respond to ben hawkes's ruxcon presentation.
create special allocators for pginfo and pgfree structs instead of imalloc.
this keeps them separated from application memory.
for chunks, to prevent deterministic reuse, keep a small array
and swizzle the to be freed chunk with a random previously freed chunk.
this last bit only for chunks because keeping arbitrarily large regions
of pages around may cause out of memory issues (and pages are, to some
extent, returned in random order).
all changes enabled by default.
thanks to ben for pointing out these issues.
ok tech@
18 years ago
deraadt
4272c4ad61
__mips64__ handling too.. sigh
18 years ago
deraadt
cd4357200d
sparc64 should be in the #ifdef
18 years ago
deraadt
aae4c1a097
use __amd64__ instead, until lint is fixed
18 years ago
deraadt
87eecc8992
reorder #if tests because apparently on amd64 cpp proceeds to blow it's
own brains out, and then takes lint down with it. To be investigated...
18 years ago