summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-12-07add the posix semaphore functions. this lets vlc work.Ted Unangst
ok brad
2005-12-07malloc the right size, and memset after mallocTed Unangst
2005-12-06add pthread_once. unfortunately, the public pthread.h headerTed Unangst
defines the pthread_once_t internals, so we're stuck with them.
2005-12-06can't build shared lib without shlib_versionTed Unangst
Maxim Bourmistrov noticed.
2005-12-04copy alpha atomic_lock implementation from libpthread.Brad Smith
2005-12-04add a powerpc implementation of rfork_thread().Brad Smith
From Tim Wiess <tim at nop dot cx> ok drahn@
2005-12-04copy powerpc atomic_lock implementation from libpthread.Brad Smith
ok drahn@
2005-12-03rcs for the makefileTed Unangst
2005-12-03syscall is actually sched_yield now, as millert suggestedTed Unangst
2005-12-03add userland thread library. incomplete, but functionalTed Unangst
2005-12-02make write-end of signal socketpair non-blocking.Theo de Raadt
every signal received writes 1 byte to the socketpair. if you are outside the libevent main loop too long, the socketpair might fill up. that write would then block, in a signal handler. related to this, yesterdy we changed the signal handler to not trash errno. as for the read end, there will be multiple libevent reads off the socketpair (100 bytes at a time) until the socketpair is empty again ok provos
2005-12-02pollops should be constTheo de Raadt
2005-12-02lookup out of evsigcaught[] must be sig_atomic_t tooTheo de Raadt
2005-12-02never say unsigned; say at least unsigned intTheo de Raadt
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