Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-05-21 | Fix ftell() to return EOVERFLOW if the file offset is greater than | Matthew Dempsky | |
LONG_MAX. Also, remove an Alpha-specific optimization that only saves a couple of bytes of code size. ok millert, guenther | |||
2012-05-14 | More sysconf(3)-y and pathconf(3)-y goodness from Brad. | Matthew Dempsky | |
ok guenther, millert (and me); bulk build test by naddy | |||
2012-05-11 | The default device is selected with sndiod(1) or the AUDIODEVICE | Alexandre Ratchov | |
environment variable, so stop using the /dev/audio symlink which can't be used by sndiod(1) anyway | |||
2012-05-06 | Style nits from Brad. | Paul Irofti | |
2012-05-03 | Add pthread spinlock support. | Paul Irofti | |
Implementation, documentation and naive regression tests for: - pthread_spin_init() - pthread_spin_destroy() - pthread_spin_lock() - pthread_spin_trylock() - pthread_spin_unlock() Implementation okay guenther@, documentation okay jmc@. | |||
2012-05-01 | Eliminate the f_usecount ref count in struct file; instead of sleeping | Philip Guenthe | |
at the top of closef() until all in-progress calls finish, just do the advisory locking bits required of close() by POSIX and let whichever thread has the last reference do the call to the file's fo_close() method and the final cleanup. lots of discussion with deraadt@ and others; worked out with and ok krw@ | |||
2012-04-26 | Drop support from openpty() for 8+ year old kernels that don't support | Matthew Dempsky | |
/dev/ptm. Users are strongly encouraged to upgrade to a more recent release if they haven't already. ok deraadt | |||
2012-04-26 | Add strnlen() to libkern. | Matthew Dempsky | |
ok deraadt | |||
2012-04-25 | fix a few warnings | Eric Faurot | |
2012-04-24 | document address truncation; from Steffen Daode Nurpmeso | Jason McIntyre | |
ok deraadt matthew millert | |||
2012-04-23 | Honor subsystem style. | Paul Irofti | |
`Visual inspection looks ok' kurt@. >From Brad | |||
2012-04-22 | enable sqlite3, as prompted by theo | Marc Espie | |
2012-04-22 | add missing defines, crucial: -DSQLITE_CORE | Marc Espie | |
used while compiling extensions which are actually a part of the core, prevents segfaults because extensions have not been loaded... | |||
2012-04-22 | regen all files we can, prepare stuff to make sure it works even without | Marc Espie | |
depend | |||
2012-04-22 | Document that getpeereid() works for SOCK_SEQPACKET sockets too. | Matthew Dempsky | |
2012-04-20 | use "an addrinfo", not "a addrinfo". ok jmc | Stuart Henderson | |
2012-04-20 | Fix kvm_deadfile2_byid()'s handling of kernel vs user addresses for | Philip Guenthe | |
fd_ofiles and fd_ofileflags, reading in the separate allocation when necessary. Lets fstat -p and fstat -u work on kernel crash dumps again. ok millert@ | |||
2012-04-20 | rearrange DESCRIPTION somewhat to make this page more readable; | Jason McIntyre | |
from Lawrence Teo | |||
2012-04-19 | cherrypick fix for CVE-2012-2110: libcrypto ASN.1 parsing heap overflow | Damien Miller | |
ok miod@ deraadt@ | |||
2012-04-19 | rely on the compiler giving us a built-in alloca. any new architecture | Theo de Raadt | |
or compiler we use will. ok millert | |||
2012-04-17 | Make it optional for kvm_getprocs() (and related sysctl) to return | Paul Irofti | |
thread information. Add a KERN_PROC_SHOW_THREADS flag that has to be set in order to get the thread info and make it off by default. This creates backwards compatibility for applications that relied on a given size/number of items to be returned. Modify ps(1) and top(1) accordingly. Okay guenther@. | |||
2012-04-17 | Remove "#define _POSIX_THREADS" line before include <pthread.h>. | Miod Vallat | |
The latter contains "#define _POSIX_THREADS 1" which makes gcc 2.95 complain. | |||
2012-04-15 | Create a new resolver for each thread. It will be done differently | Eric Faurot | |
eventually, but it's enough for now to make the blocking API fully thread-safe without locking. | |||
2012-04-15 | calling getnameinfo here is a bad idea. use inet_ntop. | Eric Faurot | |
2012-04-15 | tweak previous; | Jason McIntyre | |
2012-04-14 | clean-out ALL generated files | Marc Espie | |
2012-04-14 | oops | Marc Espie | |
2012-04-14 | crapola-generated, no need to do it each time. | Marc Espie | |
2012-04-14 | zap parse.y, it's NOT yacc source code, and otherwise make depend will think | Marc Espie | |
parse.[ch] comes from it. | |||
2012-04-14 | OpenBSD compile goo | Marc Espie | |
2012-04-14 | include file, mostly from sqlite.h.in, with parts un-autoconf'd since | Marc Espie | |
we don't need most of the portability goo | |||
2012-04-14 | extra src for us. | Marc Espie | |
regen parse.c/parse.h with "lemon", no need to recompile every time. pthread_stub.c might(?) be needed for clean non-pthreads operation (to be checked, the nomutex stuff looks interesting) | |||
2012-04-14 | sqlite 3.7.11 library, vendor sources | Marc Espie | |
2012-04-14 | Make kvm_getfile2() have a fighting change to work correctly on crash | Philip Guenthe | |
dumps | |||
2012-04-14 | Update to match nprocs-->nprocess/nthreads changes | Philip Guenthe | |
2012-04-14 | Need to read in the vmspace to dig out the root of the rb-tree | Philip Guenthe | |
2012-04-14 | Add new mutex type, PTHREAD_MUTEX_STRICT_NP which checks for application | Kurt Miller | |
errors similar to PTHREAD_MUTEX_ERRORCHECK, however upon error it aborts. The rational is that many applications don't check the return values on pthread functions and will miss the errors that ERRORCHECK returns. PTHREAD_MUTEX_STRICT_NP will be our default mutex type for awhile okay guenther@ dcoppa@ | |||
2012-04-14 | only define DEBUG internally | Eric Faurot | |
2012-04-14 | Import 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-13 | Provide _atomic_lock() and __cerror() for hppa64. Makes hppa64 build again. | Joel Sing | |
2012-04-13 | Use PTHREAD_MUTEX_DEFAULT in static init and mutexattr_init. If the | Kurt 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-13 | Per POSIX, PTHREAD_MUTEX_NORMAL type mutexes have undefined behavior for | Kurt 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-13 | Add sigwaitinfo and sigtimedwait stubs under #if 0; a bit more kernel | Philip Guenthe | |
support is needed before they can be usefully enabled but I don't want to misplace this diff yet again | |||
2012-04-12 | tweak; | Jason McIntyre | |
2012-04-12 | tweak previous; | Jason McIntyre | |
2012-04-12 | tweak previous; | Jason McIntyre | |
2012-04-12 | alloca.c cannot be used | Theo de Raadt | |
2012-04-12 | alloca is NOT machine dependent; it has exactly the same | Theo de Raadt | |
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-12 | Since threads are becoming more common, this "work around the | Theo de Raadt | |
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-12 | Add per thread accounting, mainly for usage & friends. | Paul Irofti | |
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@. |