summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-04-13Kill "goto again" uppon EINTR and check EWOULDBLOCK in accept(2).haesbaert1-19/+7
Also make the code more similar to the other daemons. "you can go ahead" deraadt@.
2012-04-13gc unused functionderaadt1-8/+1
2012-04-13For now, direct the kill signal sent by PT_KILL to the thread that made uskettenis1-1/+4
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 stillclaudio1-3/+9
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 inkettenis1-5/+1
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 previousderaadt1-3/+5
2012-04-13Do not clamp the file descriptors to the buffer size; that leads toderaadt1-2/+2
losing them. ok claudio
2012-04-13Remove suspend_np1 test from regresskurt2-115/+0
2012-04-13Remove suspend_np1 from regress build.kurt1-2/+2
2012-04-13Avoid horrible namespace pollution of <machine/signal.h> pulling inmiod2-49/+9
<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.kettenis1-0/+1
2012-04-13Enable multi-threaded debugging on i386.kettenis1-0/+1
2012-04-13Add support for live debugging of multi-threaded code.kettenis2-0/+93
2012-04-13First stab at making ptrace(2) usable for debugging multi-threaded programs.kettenis7-21/+54
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.ajacoutot1-2/+4
input/ok deraadt@
2012-04-13Provide _atomic_lock() and __cerror() for hppa64. Makes hppa64 build again.jsing2-0/+74
2012-04-13hook in requisite bits for OpenBSD::MkTemp to build and man.espie2-0/+5
2012-04-13extra .xs glue to use mkstemp and mkdtemp directlyespie4-0/+281
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 thekurt2-7/+15
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 forkurt1-7/+31
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 aderaadt1-3/+2
recyle of a fd which is still set. ok claudio
2012-04-13Fix waiting problem at boot on AMD Hudson's AHCI.sasano1-1/+3
Ok by mikeb@ and deraadt@
2012-04-13clean-up release dependency tree, so that release is "MI parallel-make clean"espie1-2/+5
(yeah, the md parts are NOT, not yet). okay miod@, deraadt@
2012-04-13Make it easier to compile regress tests on other OSesguenther1-6/+9
2012-04-13unneccessary casts to unsigned; ok claudioderaadt6-18/+18
2012-04-13Add sigwaitinfo and sigtimedwait stubs under #if 0; a bit more kernelguenther1-1/+40
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 frommatthew1-29/+4
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 orgjmc1-3/+3
ok gilles
2012-04-12tweak;jmc1-2/+2
2012-04-12NOOBJ -> zap unneeded ${.CURDIR} for clarity.espie1-8/+8
ok miod@
2012-04-12tweak previous;jmc3-12/+12
2012-04-12sort SEE ALSO;jmc1-2/+2
2012-04-12tweak previous;jmc1-5/+6
2012-04-12do not downsize a type before calling mallocderaadt1-2/+2
2012-04-12use a shared stripping function for chroot and make surerobert4-14/+16
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 newlyderaadt1-1/+2
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 fdsclaudio8-31/+180
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.claudio5-23/+23
OK henning@ sthen@
2012-04-12aspath_neighbor() should return the local AS number for empty AS pathes.claudio1-9/+3
OK henning@ sthen@
2012-04-12accept() pacing for bgpd based on similar work done on other daemons.claudio4-17/+42
OK henning@ sthen@
2012-04-12new m4 -g stuff:espie6-11/+23
- expr(`4**3') - include(`hey I am not there') keeps going. work with Baptiste Daroussin, who had the idea but didn't nail all details right. okay otto@, miod@
2012-04-12regress tests for moe gm4 compatespie5-2/+23
2012-04-12alloca.c cannot be usedderaadt13-34/+12
2012-04-12alloca is NOT machine dependent; it has exactly the samederaadt1-7/+3
effective result. its use is NOT discouraged -- it is not common, but when you need it, there is nothing else that will do.
2012-04-12Since threads are becoming more common, this "work around thederaadt1-136/+0
compiler not doing alloca in C using malloc" is unworkable. It is not safe, and we can never use it. ok guenther kurt
2012-04-12rfork cleanupguenther1-2/+2
2012-04-12syncderaadt19-57/+63
2012-04-12Remove dead UBC codeariane1-4/+1
2012-04-12Add per thread accounting, mainly for usage & friends.pirofti7-22/+87
This expands the already bloated FILL_KPROC macro to take an extra parameter that indicates if the callee is a thread or a process. The userland bits are adjusted accordingly and ps(1) and top(1) now display per thread usage times when -H is used. Also pkill(1) had to be adjusted so that duplicates don't pop up. libkvm does basically the same thing as the kernel bits. Okay guenther@.
2012-04-12hibernate: fix lock/unlock mismatchariane1-2/+2
Unlock missed an 'f', which caused it to unlock the in-use pageqs, rather than the free pageqs as it was supposed to.