Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-04-10 | futex: Prevent multiple futex pool initializations. | Paul Irofti | |
This is a temporary (ugly) fix, the pool init call should be moved from linux_elf_probe into a better place. | |||
2013-04-10 | futex: Sprinkle a few debug printfs that helped me in the past. | Paul Irofti | |
2013-04-10 | futex: Assert that the refcount is larger than 0 when doing futex_put. | Paul Irofti | |
2013-04-09 | knf. even old ttys need love. | Ted Unangst | |
2013-03-28 | it is believed that the comment is referring to the define below. | Ted Unangst | |
all thinking performed by tim van der molen | |||
2013-03-26 | update define name to reflect fact this is openbsd. kill dead code. | Ted Unangst | |
ok deraadt | |||
2013-03-26 | remove the old_?magic aout exec functions which are never used. | Ted Unangst | |
ok deraadt | |||
2013-01-15 | Process futex requeuing even when the thread times out or is signaled. | Philip Guenther | |
Bug report from frantisek holop (minusf at obiit.org) ok pirofiti@ | |||
2012-11-19 | Use a more descriptive name for the userland cas operation. | Paul Irofti | |
Substitute atomic_ucas_32 with futex_atomic_ucas_int32 to make it obvious who's using this api. Suggested by and okay kettenis@. | |||
2012-09-11 | Remove the 'OLF method' used for the transition from a.out to ELF and | Theo de Raadt | |
for all the compat layers which are now gone. Linux compat still works because it always used another method in any case, and nothing looks at p_os anymore. ok jsing | |||
2012-09-05 | struct orlimit is only used by linux compat now, and can stop polluting | Theo de Raadt | |
the system .h files | |||
2012-06-26 | Don't ignore SOCK_CLOEXEC and SOCK_NONBLOCK. | Paul Irofti | |
CAVEATS: Assumes that a new socket can't have any of the FCNTLFLAGS set on it, which _is_ true, currently... (guenther@) Okay guenther@, deraadt@. | |||
2012-06-20 | Copy the set_tls_base flag when forking. | Paul Irofti | |
This enables the linux_child_return bits that set the TLS base in the newly forked process. Before this, processes that had the flag set would get a null pointer and segfault when trying to access the TLS area. Chased down and fixed by me. Turned into a proper one line diff by guenther@. | |||
2012-06-19 | Count should always start from zero. | Paul Irofti | |
Doesn't matter if we need to relocate or not. Makes sense to jasper@ | |||
2012-06-19 | Set the appropiate return value on futex wait. | Paul Irofti | |
Okay jasper@ | |||
2012-06-19 | Avoid eternal sleep. | Paul Irofti | |
Sleep on the actual data address and not on the stack address of the pointer to the data. Okay jasper@ | |||
2012-06-19 | Add extra argument validation for the futex syscall. | Paul Irofti | |
Okay jasper@ | |||
2012-06-19 | - remove outdated comment, we already do an equivalent of linux' access_ok() | Jasper Lievisse Adriaanse | |
using copyin() anyway. ok pirofti@ | |||
2012-06-19 | Regenerate. | Paul Irofti | |
2012-06-19 | Implement linux_sys_tgkill. | Paul Irofti | |
Nobody calls linux_sys_tkill anymore so code for that is not needed. If this will become an issue in the future a simple wrapper will fix that. Okay jasper@. | |||
2012-06-19 | Regenerate. | Paul Irofti | |
2012-06-19 | Add dummies for the epoll and eventfd syscall families. | Paul Irofti | |
Okay jasper@ | |||
2012-06-19 | Add socket type mask to filter out implementation specific flags. | Paul Irofti | |
The newer glibc's, when creating a socket, add some higher bit flags to the type argument that are used for debug, statistics, profiling whatever. They are not useful and implementation specific. This is needed for DNS resolving, otherwise the nss library from glibc will always fail to do the right thing. Okay jasper@ | |||
2012-06-19 | Improve debug output and fix some style. No functional change. | Paul Irofti | |
2012-06-19 | Change the pool_get() flags from WAITOK to NOWAIT. | Paul Irofti | |
This avoids a potential lost-wakeup as pointed out by guenther@. Now the futex is locked all through the process and EAGAIN is returned on failure. Makes sense to guenther@. | |||
2012-06-16 | compat_linux: Don't hold the lock while pool_get'ing with WAITOK. | Paul Irofti | |
Okay jasper@. | |||
2012-06-08 | Regenerate | Paul Irofti | |
2012-06-08 | Remove the lack of gettid() implementation. Okay tedu@ | Paul Irofti | |
Looks right to jasper@ as well. | |||
2012-05-25 | Change the KERN_FILE_BYPID and KERN_FILE_BYUID modes of the KERN_FILE2 | Philip Guenthe | |
sysctl() to be per-process instead of per-thread. This means the filedesc table has to really be per-process instead of per-thread, so make it an error for the linux clone() emulation to try to do otherwise. This removes pointless duplication in fstat's output. requested by jsing@ and deraadt@, ok matthew@ deraadt@ | |||
2012-05-24 | If LINUX_CLONE_SETTLS isn't set, then the clone()d child should inherit | Philip Guenthe | |
the TCB value from the parent instead of having it zeroed. ok pirofti@ | |||
2012-05-23 | Regenerate. | Paul Irofti | |
2012-05-23 | Add emulation support for fstatfs64. | Paul Irofti | |
Okay matthew@. | |||
2012-05-23 | Regenerate. | Paul Irofti | |
2012-05-23 | Add support for statfs64. | Paul Irofti | |
While at it get rid of some magic numbers and add support for more filesystem types (like NTFS, AFS etc.). Suggestions and feedback from ajacoutot@, jsing@ and matthew@. Okay matthew@. | |||
2012-04-22 | Add struct proc * argument to FRELE() and FILE_SET_MATURE() in | Philip Guenthe | |
anticipation of further changes to closef(). No binary change. ok krw@ miod@ deraadt@ | |||
2012-04-12 | rfork cleanup | Philip Guenthe | |
2012-04-10 | Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimit | Philip Guenthe | |
count processes instead of threads. New sysctl()s KERN_NTHREADS and KERN_MAXTHREAD count and limit threads. The nprocs and maxproc kernel variables are replaced by nprocess, maxprocess, nthreads, and maxthread. ok tedu@ mikeb@ | |||
2012-03-23 | Make rusage totals, itimers, and profile settings per-process instead | Philip Guenthe | |
of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it. ok kettenis@ | |||
2011-12-14 | regen | Robert Nagy | |
2011-12-14 | implement prctl() for COMPAT_LINUX | Robert Nagy | |
ok pirofti@ | |||
2011-12-03 | add support for MSG_NOSIGNAL. | Federico G. Schwindt | |
linux bits compiled on i386 by sebastia@, mikeb@ ok | |||
2011-11-25 | implement chown(2) in compat_linux which is needed by some antivirus software | Robert Nagy | |
ok pirofti@ | |||
2011-10-27 | Allow segments to be used even after they were marked for deletion with | Robert Nagy | |
the IPC_RMID flag. This is permitted as an extension beyond the standards and this is similar to what other operating systems like linux do. Because compat_linux(8) was emulating this already, remove that code since now this is the default. input from oga@, guenther@, jmc@, deraadt@ ok deraadt@ | |||
2011-09-19 | Gah, no cookie for me. | Paul Irofti | |
2011-09-19 | Fix comments, they really made sense before splitting them. | Paul Irofti | |
Noticed by fgs@, thanks! | |||
2011-09-19 | Regenerate after pipe2. | Paul Irofti | |
2011-09-19 | Add pipe2. Okay miod@ | Paul Irofti | |
2011-09-19 | Fix Unix socket handling when the length is too large by trimming. | Paul Irofti | |
Okay claudio@ | |||
2011-09-19 | Regenerate after syscall expansion. | Paul Irofti | |
2011-09-19 | Expand syscall awareness in preparation for pipe2 implementation. | Paul Irofti | |