summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-11-27Add a cast for (size_t)-1 because we know what we're doing, the ISO std.Chad Loder
says this is what we're supposed to return. Makes lint happy. OK deraadt, espie
2005-11-25Fix syntax error (missing ')') in #ifdef'ed out code. Spotted by lint.Kenneth R Westerback
ok deraadt@
2005-11-25don't ask; ok drahnTheo de Raadt
2005-11-24use WANTLINT= (on all architectures)Theo de Raadt
2005-11-24more empty files for lint to chew on (on the vax)Theo de Raadt
2005-11-24include more architectures in the list (even though some do not compileTheo de Raadt
this, but do it entirely in the compiler); ok miod
2005-11-23an empty stub file for lint: on the vax, lint will chew on this, but avoid itTheo de Raadt
when compiling, and use the .S file instead if someone has a better solution, show it..
2005-11-23avoid ' which confuses make dependTheo de Raadt
2005-11-20Allocate space for profiling data using mmap instead of sbrk.Todd C. Miller
Tested by myself and pedro@
2005-11-20brk() and sbrk() should use void *, not char *. Note that sbrk()Todd C. Miller
should take intptr_t, not int, but we don't presently have intptr_t available from unistd.h. OK marco@
2005-11-19In count_stmts(), make sure to account for long jump instructions as well,Aaron Campbell
avoiding a memory error that could lead to a crash when a sufficiently complex bpf filter has been specified. otto@, millert@, djm@ ok Reference- http://www.tcpdump.org/lists/workers/2000/msg01364.html
2005-11-18FIONASYNC -> FIOASYNCJason McIntyre
from nicholas marriott;
2005-11-18- new sentence, new lineJason McIntyre
- avoid Xr to self - lookup(n.) -> look up(v.)
2005-11-18pull in the good bits of libpcap-0.9.4's API without the cross-platformDamien Miller
cruft. help from deraadt@, mpf@, jmc@; ok mpf@a nb. this will break tcpdump unless it updated too
2005-11-17Work around a gcc optimization problem. Spotted by biorn@; fixOtto Moerbeek
inspired by FreeBSD. ok biorn@ millert@ deraadt@
2005-11-17Introduce a few c99 functions: {l,ll}{rint,round}{,f}. From NetBSD viaOtto Moerbeek
jason@. Man page fixes by jmc@, prodding by jsg@. ok mickey@
2005-11-16CODESET support. okay millert@, otto@Marc Espie
(not really useful for now, it mostly helps some programs which want to use it, it will become useful when we have full 16 bits locale).
2005-11-15Fix exp(3) for arg Inf and -Inf. From NetBSD; PR 4578. ok deraadt@Otto Moerbeek
2005-11-15Do not clobber errno when calling close(2) in example code.Otto Moerbeek
From form@ via mpech@
2005-11-15Use a forward declaration of struct timespec instead of assumingTodd C. Miller
it has already been defined by previous includes. While this is true at the moment, it will no longer be true after a pending includes cleanup. OK marc@
2005-11-14clarify the description of append mode;Jason McIntyre
this comes originally from a mail from mpech@; ok otto@, and no one else objected;
2005-11-14revert this file to -r1.2, when it was originally written,Jason McIntyre
because of an unacceptable license: the file was originally written by david leonard, who has kindly agreed to us putting a (public domain) license on it: the original page did not contain any license. thanks david. this also includes some tweaks by me, so it does not exactly match revision 1.2.
2005-11-14use asprintf()Theo de Raadt
2005-11-13save errno in example code. from mpech@ ok jmc@Otto Moerbeek
2005-11-12- note that basename() may modify the stringJason McIntyre
- section header WARNING -> CAVEATS while here from han boetes; ok deraadt@
2005-11-10Use correct size when zeroing fd sets. From Michael Shuldman in PROtto Moerbeek
4603 with a twist by me. ok deraadt@
2005-11-10add $OpenBSD$ tags, as requested by dtucker.Marc Espie
2005-11-09- simplify integer overflow checks.Niall O'Higgins
ok otto@
2005-11-06- update comments about integer overflows to reflect reality.Niall O'Higgins
2005-11-06- fix a couple of integer overflows; the only code change so far resulting fromNiall O'Higgins
my audit at v2k5. ok espie@
2005-11-01a bit of rewording; with input from jmc@.Federico G. Schwindt
2005-10-31- Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.Brad Smith
- Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. From stefanf FreeBSD ok fgsch@
2005-10-31add copyright from the original FreeBSD man page.Brad Smith
2005-10-30Make xdrstdio_getlong() and xdrstdio_putlong() work on 64-bit big-endianMark Kettenis
systems. From NetBSD and FreeBSD. ok deraadt@, otto@, "looks correct to me" fgsch@
2005-10-30remove trailing spaces;Jason McIntyre
2005-10-30shuffle some of the function names around into new section names.Brad Smith
2005-10-30and make sure the header change goes in too.Brad Smith
2005-10-30Add pthread_atfork(3)Brad Smith
From FreeBSD 'looks ok' fgsch@ miod@ man page reviewed by jmc@
2005-10-30Don't use TAILQ_NEXT() on an element that has been removed. Similar toKenneth R Westerback
otto@'s diff for uvm_aobj.c. Identical to a diff canacar@ developed independantly. ok brad@ 'looks correct' fgsch@
2005-10-29rewording; ok millert ottoJared Yanovich
2005-10-29Don't use TAILQ_NEXT() on an element that has been removed. Similar toKenneth R Westerback
otto@'s diff for uvm_aobj.c. ok deraadt@ pedro@
2005-10-29Activate missing wcswidth, as noted by Alexander Bluhm.Marc Espie
okay deraadt@, otto@ Minor bump (nobody stepped forward with other changes, so let's do this one)
2005-10-27remove errors that no longer apply; ok millert, teduJared Yanovich
2005-10-26Always set errno on error. Based on NetBSD. ok jaredy@ pat@Otto Moerbeek
2005-10-26Remove obsolete comment. ok deraadt@Otto Moerbeek
2005-10-26clarifications from ray lai;Jason McIntyre
tweaked by tedu@ and myself;
2005-10-25dont' -> don't in comments;Jason McIntyre
from ray lai;
2005-10-22fix MLINKS;Jason McIntyre
from andreas schweitzer (pr #4566); ok dtucker@
2005-10-20put HISTORY in the right order;Jason McIntyre
2005-10-20A library should not return EFAULT. Just segfault if a bogus orOtto Moerbeek
NULL pointer is passed in. ok espie@