summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-14only define DEBUG internallyEric Faurot
2012-04-14Kill useless memset.Christiano F. Haesbaert
ok mikeb@ "looks good" deraadt@
2012-04-14Don't return from main with 2 uppon issuing double -c option, printChristiano F. Haesbaert
proper usage() message. ok mikeb@ "looks good" deraadt@
2012-04-14Add CDIAGFLAGS infrastructure.Christiano F. Haesbaert
Fix signed vs unsigned and dup symbol shadow. ok mikeb@ "looks good" deraadt@
2012-04-14Do not just return in case the provided control buffer is too short sinceClaudio Jeker
that leaks all the file pointers. Instead make sure that the exit path via restart: -> out: does not free the uninitialized pointer. OK deraadt@ guenther@
2012-04-14Use DLT_LOOP for all tunneling interfaces.YASUOKA Masahiko
Byte order adjustment for bpf was hidden behind bpf_mtap_af() and sizeof(u_int32_t) is used for length of the bpf header. tested by sebastia and mxb at alumni.chalmers.se. ok claudio
2012-04-14Import asr, an experimental async resolver implementation.Eric Faurot
The idea is to eventually replace the existing resolver with something better. Time to start working on it in tree. ok deraadt@
2012-04-14Free tmp buffer in case the cluster allocation failed. Found by David Hill.Claudio Jeker
2012-04-14regenMatthieu Herrb
2012-04-14add Radeon Mobility HD 5430Matthieu Herrb
2012-04-14Revert rev 1.58, as it frees an uninitialized pointerPhilip Guenthe
ok deraadt@
2012-04-14remove libf2c, hasn't been built since it was moved to ports in 2010.Jonathan Gray
ok miod@ espie@
2012-04-13Kill "goto again" uppon EINTR and check EWOULDBLOCK in accept(2).Christiano F. Haesbaert
Also make the code more similar to the other daemons. "you can go ahead" deraadt@.
2012-04-13gc unused functionTheo de Raadt
2012-04-13For now, direct the kill signal sent by PT_KILL to the thread that made usMark Kettenis
stop, just like we do for PT_CONTINUE/PT_STEP. The current code isn't ready for directing signals to other threads yet.
2012-04-13Don't convert a mbuf to a cluster and think the data in the mbuf is stillClaudio Jeker
valid after that. Copy the data into a temp buffer and then copy it back into the shiny new cluster. Problem found by deraadt@. Ok deraadt@
2012-04-13Backout a tiny part of the previous commit. Decrementing ps_singlecount inMark Kettenis
exit1() is wrong, since single_thread_check() already decrements it and may call exit1() after that. I can't reproduce the hang that this was supposed to fix anyway.
2012-04-13oops, wrong version of diff in previousTheo de Raadt
2012-04-13Do not clamp the file descriptors to the buffer size; that leads toTheo de Raadt
losing them. ok claudio
2012-04-13Remove suspend_np1 test from regressKurt Miller
2012-04-13Remove suspend_np1 from regress build.Kurt Miller
2012-04-13Avoid horrible namespace pollution of <machine/signal.h> pulling inMiod Vallat
<machine/reg.h> for the needs of struct sigcontext; said struct ought to only use simple integer types. Fixes build of groff on landisk. ok pirofti@ (who had a similar diff)
2012-04-13Enable multi-threaded debugging on amd64.Mark Kettenis
2012-04-13Enable multi-threaded debugging on i386.Mark Kettenis
2012-04-13Add support for live debugging of multi-threaded code.Mark Kettenis
2012-04-13First stab at making ptrace(2) usable for debugging multi-threaded programs.Mark Kettenis
It implements a full-stop model where all threads are stopped before handing over control to the debugger. Events are reported as before through wait(2); you will have to call ptrace(PT_GET_PROCESS_STATE, ...) to find out which thread hit the event. Since this changes the size of struct ptrace_state, you will have to recompile gdb. ok guenther@
2012-04-13Don't try to mmap a 0-length file.Antoine Jacoutot
input/ok deraadt@
2012-04-13Provide _atomic_lock() and __cerror() for hppa64. Makes hppa64 build again.Joel Sing
2012-04-13hook in requisite bits for OpenBSD::MkTemp to build and man.Marc Espie
2012-04-13extra .xs glue to use mkstemp and mkdtemp directlyMarc Espie
written by guenther@ about a year ago. discussed with him and millert@
2012-04-13Use PTHREAD_MUTEX_DEFAULT in static init and mutexattr_init. If theKurt Miller
default mutex type changes to NORMAL, when there is an uninitialized mutex provided to unlock, allow it to succeed similar to an unlocked mutex. For other cases abort instead of segfault. okay guenther@
2012-04-13Per POSIX, PTHREAD_MUTEX_NORMAL type mutexes have undefined behavior forKurt Miller
certain conditions. In the case of unlocking an unlocked mutex we will allow that to succeed, all other undefined behaviors will result in an immediate abort(). okay guenther@
2012-04-13Don't assume that the new conffd is a unset in the fd_set, it could be aTheo de Raadt
recyle of a fd which is still set. ok claudio
2012-04-13Fix waiting problem at boot on AMD Hudson's AHCI.sasano
Ok by mikeb@ and deraadt@
2012-04-13clean-up release dependency tree, so that release is "MI parallel-make clean"Marc Espie
(yeah, the md parts are NOT, not yet). okay miod@, deraadt@
2012-04-13Make it easier to compile regress tests on other OSesPhilip Guenthe
2012-04-13unneccessary casts to unsigned; ok claudioTheo de Raadt
2012-04-13Add sigwaitinfo and sigtimedwait stubs under #if 0; a bit more kernelPhilip Guenthe
support is needed before they can be usefully enabled but I don't want to misplace this diff yet again
2012-04-13Remove 'struct _dirdesc' description and dirfd() macro defintion fromMatthew Dempsky
dir(5) now that the former is an opaque type within libc and the latter is a proper function. Pointed out by millert; ok jmc, guenther
2012-04-13clarify "hostname"; from robert peichaer orgJason McIntyre
ok gilles
2012-04-12tweak;Jason McIntyre
2012-04-12NOOBJ -> zap unneeded ${.CURDIR} for clarity.Marc Espie
ok miod@
2012-04-12tweak previous;Jason McIntyre
2012-04-12sort SEE ALSO;Jason McIntyre
2012-04-12tweak previous;Jason McIntyre
2012-04-12do not downsize a type before calling mallocTheo de Raadt
2012-04-12use a shared stripping function for chroot and make sureRobert Nagy
that the path starts with the chroot prefix before doing anything with it
2012-04-12In this case where dup2() extends the table using fdalloc, the newlyTheo de Raadt
selected fd is automatically fd_used(). We need to fd_unused() it, because it will be fd_used() again in finishdup(). spotted by guenther ok miod
2012-04-12accept pacing ldpd way. Since this daemon has multiple listening fdsClaudio Jeker
we add them all to a accept queue that does the pacing with the accept_pause() and accept_unpause() calls. With and OK deraadt@
2012-04-12The ebgp flags is just a truth value and it is better to not == 1 compares.Claudio Jeker
OK henning@ sthen@