summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common
AgeCommit message (Collapse)Author
2014-02-25Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist beforepooka
the sysctl link sets are processed, and remove redundancy. Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate lines of code.
2014-02-23Fix wrong KASSERTs. Do not compare size vs. entries count.njoly
2014-02-21Increase LINUX32_ELF_AUX_ENTRIES to avoid overrun in linux32/. Also,maxv
add comments and KASSERTs to make sure people don't forget to increase XX_AUX_ENTRIES's when adding vectors. Reported by martin@ (CV), with suggestions from chs@. ok martin@ chs@
2014-02-11Fix uninitialized variable. Harmless: it does not change the behaviormaxv
at all. ok rmind@ christos@
2014-02-09account for the 16 bytes of AT_RANDOM data in the stack setup. fixes PR 48518.chs
use cprng_strong32() instead of random(). add AT_RANDOM support for linux32.
2014-01-27Add basic IPV6 level socket options support (IPV6_V6ONLY).njoly
2014-01-27Add SO_SNDLOWAT, SO_RCVLOWAT and SO_ACCEPTCONN support for socketnjoly
options.
2014-01-25Update linux socket socket options (SO_*). Add common version to itsnjoly
own file (linux_socket_generic.h); use it for all but alpha and mips.
2014-01-23Fix inverted pid/lid arguments in do_sched_{get,set}param calls.njoly
2014-01-13Cleanup, and reduce diffs between arches. Make alpha usenjoly
linux_sys_{get,set}timeofday like others.
2013-12-27Add easy parts (TCOOFF/TCOON) of the TCXONC linux termios ioctl.njoly
2013-12-27Rename ipcall/socketcall specific defines to avoid conflict withnjoly
syscalls definitions. No functional changes.
2013-12-27Add struct linux_stat64 definition for alpha, and enable syscalls thatnjoly
use it.
2013-12-22CTASSERT that native to compat errno translation tables are kept innjoly
sync with native errno list. Remove extra entries (linux) which resulted in bad translated values, and add missing ones (ibcs2, osf1 and svr4) which made some out of bounds accesses.
2013-12-17Cleanup compat linux errnos by adding generic errnos in a single file.njoly
Use it for all arches except alpha and mips. Add a few missing native to linux errno conversions.
2013-12-08Sprinkle a few more linux_umode_t where appropriate.njoly
Reduce diffs between archs.
2013-12-08Add missing syscall argument fd in comment.njoly
2013-11-18claim to be linux 3.11.6 (opensuse 13.1).chs
2013-11-18implement the *at() syscalls.chs
bring the unimplemented syscall list up to date.
2013-11-18implement AT_RANDOM.chs
2013-11-10On linux_sys_getdents, insert d_type at the end of each record.slp
Fixes PR kern/47806.
2013-10-17remove unused variablechristos
2013-09-24Add utimensat(2) for compat linux.njoly
2013-09-19exec modules need to be of the exec kindchristos
2013-09-15Make alpha use linux_sys_utimes() just like other archs.njoly
2013-08-11Allow to build in envs without USRSTACK (namely, rump kernels on powerpc).pooka
TODO: all of the m*() calls are by definition incompatible with rump kernels; including them is no great damage, but they're not useful either.
2013-07-18Do not make FUTEX_WAIT wait indefinitely for an invalid timeoutnjoly
(tv_nsec = -1).
2013-06-08Typostacktic
2013-04-17handle timeouts like before.christos
2013-04-16Add some more futex gunk and explain why it does not work (yet).christos
Now skype aborts with a futex timeout, instead of a stack smash leading to a SEGV.
2013-04-15alpha uses standard utimes.christos
2013-04-09Fix COMPAT_LINUX32.pooka
2013-04-08support utimes on non-alpha linux platformspooka
2013-01-11Use copyin/copyout and linux-specific ifreq structures (they are the samechristos
as the netbsd ones, but this disconnects them)
2013-01-11add the futex PI commands (not implemented yet)christos
PI = Priotity Inheritance
2012-10-02kernel portion of clock_nanosleep()christos
2012-09-22LINUX_RLIM_INFINITY doesn't fit into the value range for linux32, sojoerg
introduce a variant with correct value.
2012-09-19Add a pass-through ioctl for mfi(4), allowing userland to send raw commandsbouyer
to the controller. This is compatible with the linux and FreeBSD implementations. Add the needed conversion for mfi ioctls in COMPAT_LINUX Allocate a character major number, and create /dev/mfi0 by default on amd64 and i386. This allows (along with a hand-created /emul/linux/proc/devices file) to run the MegaCLI linux binary provided by LSI.
2012-09-19emulate ppoll which is essentially our polltspooka
2012-09-13Rename structure members to make the code compile in environmentspooka
where "linux" is #defined.
2012-06-22From the "parse errors that you just do not see as a human" department:martin
build fix.
2012-06-21fix token pasting.christos
2012-06-20print proper ktruser names depending on the emulation.christos
2012-03-15Do not read past end of array. Found by gcc -03bouyer
2012-02-19Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!rmind
Approved by core@.
2012-02-12Change old-style function defintions to C89 prototypes.matt
Approved by releng.
2012-02-03Add a hook for freeing an ep_emul_arg. Add a wrapper routinematt
(exec_free_emul_arg) to call the hook and then clear the ep_emul_arg and ep_emul_arg_free members in the exec_package. Change users/accessors to use these routines. Approved by releng.
2012-01-20Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressionsjoerg
again. This was changed in sys/socket.h r1.51 to work around fallout from the IPv6 aux data migration. It broke the historic ABI on some platforms. This commit restores compatibility for netbsd32 code on such platforms and provides a template for future changes to the CMSG_* alignment. Revert PCC/Clang workarounds in postfix and tmux.
2011-12-20- Eliminate so_nbio and turn it into a bit SS_NBIO in so_state.christos
- Introduce MSG_NBIO so that we can turn non blocking i/o on a per call basis - Use MSG_NBIO to fix the XXX: multi-threaded issues on the fifo sockets. - Don't set SO_CANTRCVMORE, if we were interrupted (perhaps do it for all errors?).
2011-11-18remove one more kassertchristos