summaryrefslogtreecommitdiff
path: root/sys/compat/linux/arch/alpha
AgeCommit message (Collapse)Author
2023-02-12fix typo in the include guard definition.andvar
2021-12-02regenryo
2021-12-02add prlimit64(2) syscall to COMPAT_LINUX and COMPAT_LINUX32ryo
2021-09-20Regen for preadv(2) / pwritev(2).thorpej
2021-09-20Add preadv(2) and pwritev(2) system calls to COMPAT_LINUX and COMPAT_LINUX32.thorpej
2021-09-20Regen for eventfd.thorpej
2021-09-20Add the eventfd system calls to COMPAT_LINUX and COMPAT_LINUX32.thorpej
2021-09-19Regen for timerfd.thorpej
2021-09-19Add the timerfd syscalls to COMPAT_LINUX and COMPAT_LINUX32.thorpej
2021-09-19Regen for POSIX timer syscalls.thorpej
2021-09-19Add the POSIX timer syscalls (timer_create(), timer_settime(), timer_gettime(),thorpej
timer_getoverrun(), and timer_delete()) to COMPAT_LINUX and COMPAT_LINUX32.
2021-09-07sys/compat: Memset zero before copyout.riastradh
Just in case of uninitialized padding which would lead to kernel stack disclosure. If the compiler can prove the memset redundant then it can optimize it away; otherwise better safe than sorry.
2020-10-06make MAXTSIZ optionalchristos
2020-09-03The conversion of FPU tracking to PCU rendered the fpcurlwp variablethorpej
unmaintained, which broke FP status info in the COMPAT_LINUX sigcontext. Use the new API, which will at least be closer to correct.
2020-05-03Always clear FUTEX_PRIVATE_FLAG for Linux processes. NetBSD-native futexesthorpej
exist in different namespace depending on FUTEX_PRIVATE_FLAG. This appears not to be the case in Linux, and some futex users will mix private and non- private ops on the same futex object. Provide a convenience wrapper that puts this logic in one place witn a comment explaining why. While here, move the Linux futex wrapper out of its own file and plop it in linux_misc.c, which is where it lives in the linux32 module.
2020-04-26Regen for native futex calls.thorpej
2020-04-26Add a NetBSD native futex implementation, mostly written by riastradh@.thorpej
Map the COMPAT_LINUX futex calls to the native ones.
2019-11-09regenjdolecek
2019-11-09add dummy implementation of linux fallocate() which just returns EOPNOTSUPP;jdolecek
this is needed so that glibc falls back to emulation and apps behaving properly, since EOPNOTSUPP is a documented and expected return code, but ENOSYS is not right now there are no filesystems in NetBSD tree supporting the fallocate VOP, so no point trying to map this to a native call supposed to help with problem reported in https://mail-index.netbsd.org/tech-kern/2019/11/03/msg025641.html
2019-04-06Overhaul the API used to fetch and store individual memory cells inthorpej
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(), subyte(), suword(), etc.) are retired and replaced with new ufetch(9) and ustore(9) APIs that can return proper error codes, etc. and are implemented consistently across all platforms. The interrupt-safe variants are no longer supported (and several of the existing attempts at fuswintr(), etc. were buggy and not actually interrupt-safe). Also augmement the ucas(9) API, making it consistently available on all plaforms, supporting uniprocessor and multiprocessor systems, even those that do not have CAS or LL/SC primitives. Welcome to NetBSD 8.99.37.
2019-03-26make this compile again.christos
2019-03-24regenmaxv
2019-03-24Remove Alpha's compat_linux dependency on compat_osf1. Each function ismaxv
copied as-is from compat_osf1 with no functional change. Discussed on tech-kern@, ok @thorpej.
2018-08-10Regenpgoyette
2017-12-26Refactor pipe1() and correct a bug in sys_pipe2() (SYS_pipe2)kamil
sys_pipe2() returns two integers (values), the 2nd one is a copy of the 2nd file descriptor that lands in fildes[2]. This is a side effect of reusing the code for sys_pipe() (SYS_pipe) and not cleaning it up. The first returned value is (on success) 0. Introduced a small refactoring in pipe1() that it does not operate over retval[], but on an array int[2]. A user sets retval[] for pipe() when desired and needed. This refactoring touches compat code: netbsd32, linux, linux32. Before the changes on NetBSD/amd64: $ ktruss -i ./a.out [...] 15131 1 a.out pipe2(0x7f7fff2e62b8, 0) = 0, 4 [...] After the changes: $ ktruss -i ./a.out [...] 782 1 a.out pipe2(0x7f7fff97e850, 0) = 0 [...] There should not be a visible change for current users. Sponsored by <The NetBSD Foundation>
2017-05-10regenriastradh
2017-02-12es_arglen is now in units of bytes, update the emulations accordingly.chs
2017-02-03regenchristos
2017-02-03add send/recv mmsg and comment on the unimpl ones.christos
2017-02-03Regen for accept4martin
2017-02-03Add accept4 definitionsmartin
2017-01-16regen allchristos
2017-01-13regenchristos
2017-01-02Regen (something apparently went wrong in previous)martin
2017-01-02Regenmanu
2017-01-02Add pselect6 Linux system call.manu
This lets Matlab R2016A run on NetBSD/amd64
2016-07-24Regen for readlink/readlinkat signatures.njoly
2016-07-24Small cleanup. Adjust readlink/readlinkat signatures to reduce diffs withnjoly
native.
2015-11-14PR/50428: Rin Okuyama: support SA_RESTORER flag for rt_sigaction(2) in thechristos
ports that support it.
2015-10-25Regen for posix chown family cleanup.njoly
2015-10-25Cleanup posix chown family syscalls to match native (alpha, mips andnjoly
powerpc).
2015-09-24regenchristos
2015-03-14Support Linux MAP_LOCKED mmap flag.njoly
2015-03-07regenchristos
2014-11-22Regen for ppoll signature fixnjoly
2014-11-22Fix ppoll signature (int ->u_int)njoly
2014-11-09Do not uselessly include <sys/malloc.h>.maxv
2014-06-25Add a few missing open(2) flags (LINUX_O_*). Fix alpha wrong values.njoly
2014-06-01Cleanup pipe(2) flags, now that native handle them.njoly
2014-05-29Regen for utimes(2) change.njoly