summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-12-01save errno in signal handler since it does a system callTheo de Raadt
only access sig_atomic_t variables, to make it further save ok aaron
2005-11-30know __arm__ tooTheo de Raadt
2005-11-30timezone -> time zoneJason McIntyre
2005-11-30Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a timeOtto Moerbeek
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@
2005-11-29if we pull in a .S file, we must fake out the lint with a .c fileTheo de Raadt
for this first cut, we will do this for alloca() using alloca.c by adding it to LSRCS
2005-11-29Provide stubs for things which are supplied by crt0. I don't think weTheo de Raadt
want a crt0.ln, at least, not yet. We may reconsider later.
2005-11-29document KERN_ARND better; ok deraadt@Otto Moerbeek
2005-11-28spaces, and a off_t typecast to please lintTheo de Raadt
2005-11-28some nice off_t casts to please lintTheo de Raadt
2005-11-28unused arg in internal static APITheo de Raadt
2005-11-28ARGSUSED stubsTheo de Raadt
2005-11-28make Lint prototypes equal; ok millertTheo de Raadt
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@