summaryrefslogtreecommitdiff
path: root/sys/compat/linux
AgeCommit message (Collapse)Author
2023-02-12fix typo in the include guard definition.andvar
2022-12-24s/reqest/request/, s/requst/request/ and s/reuqest/request/ in comments.andvar
2022-09-05G/C ISSET() macro copies. It has been defined in <sys/types.h> since 2006.tsutsui
2022-08-07Remove extra whitespaces added by an ancient stupid script.tsutsui
2022-05-22fix various small typos, mainly in comments.andvar
2022-05-20s/auxillary/auxiliary/ in comments.andvar
2021-12-03fix various typos in comments, log messages and documentation.andvar
2021-12-02regenryo
2021-12-02add prlimit64(2) syscall to COMPAT_LINUX and COMPAT_LINUX32ryo
2021-11-30- uname should return "aarch64" or "aarch64_be" instead of "evbarm".ryo
- define LINUX_LARGEFILE64 to use rlimit instead of orlimit.
2021-11-26The internal architecture name of golang is "arm" or "arm64", which hasryo
different naming conventions from netbsd's machine[] or machine_arch[] ("earmv7", "aarch64", etc.) and cannot be used as is. Instead, use define LINUX_GO_RT0_SIGNATURE_ARCH{32,64}.
2021-11-26- LINUX_GO_RT0_SIGNATURE for compat_linux is no longer enabled by default.ryo
it is now defined in each arch same as the other *_SIGNATURE definitions. - add new LINUX32_GO_RT0_SIGNATURE for compat_linux32, and is defined in amd64 and aarch64.
2021-11-25add support COMPAT_LINUX32 for aarch64ryo
2021-11-25regenryo
2021-11-25add statx(2) syscall entryryo
2021-11-25- Add compat_linux statx(2) syscall.ryo
- The AT_EMPTY_PATH processing from the modification of sys/compat/linux/common/linux_file64.c r1.63 has been separated, and made common to linux_statat(), so that it can be used not only by linux32_sys_fstatat64() but also by other *statat() variants.
2021-11-25rename bsd_to_linux_stat() to bsd_to_linux_stat64() to avoid confusion.ryo
There is a static function with the same name in linux/common/linux_file.c. NFC.
2021-11-25rename bsd_to_linux_stat() to bsd_to_linux_stat64() to avoid confusion.ryo
There is a static function with the same name in linux/common/linux_file.c. NFC.
2021-11-24regenryo
2021-11-24add getrandom(2) syscall entryryo
2021-11-24add missing SUBDIR aarch64ryo
2021-11-23Make LINUX_FIOCLEX and LINUX_FIONCLEX workpho
These ioctls were declared in linux_termios.h but were not actually handled.
2021-11-01Use "stack_t" instead of "struct sigaltstack", as the former is thethorpej
newer standardized name. NFC.
2021-10-27Use __SIGTRAMP_SIGCODE_VERSION rather than hard-coding 0.thorpej
2021-10-12fix various typos, mainly in comments.andvar
2021-10-09Modularize compat_linux(8) for aarch64.ryo
2021-09-23remove stray char.christos
2021-09-23add support COMPAT_LINUX for aarch64ryo
2021-09-21linux_sys_fstatat64: Add support for AT_EMPTY_PATH flag.rin
This is required for rtld shipped with glibc 2.33. Now, userland of Fedora 34 is working fine on NetBSD/amd64.
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-19- LINUX_SIGEV_PAD is incorrect for 64-bit systems, because sigval_tthorpej
contains a pointer. Correct this. - Add routines to convert from Linux to native sigevent_t.
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.
2021-08-09fix typos in asymmetry, asymmetric(al), symmetrical.andvar
2021-02-01G/C some old code that was for acorn26skrll
2020-12-04Rewrite linux_sys_alarm() to use dogetitimer() / dosetitimer(), ratherthorpej
than fiddling with process timers directly.
2020-11-03PR/55780: Bernd Sieker: setsockopt in Linux emulation misses some optionschristos
2020-10-24Fix compat with Linux programs that use longer namelen for socketsmgorny
Linux is less strict than NetBSD and permits namelen to be larger than valid struct sockaddr_in*. If this is the case, truncate the value to the correct size, so that NetBSD networking does not return an error. Reviewed by kamil
2020-10-06make MAXTSIZ optionalchristos
2020-09-05Round of uvm.h cleanup.riastradh
The poorly named uvm.h is generally supposed to be for uvm-internal users only. - Narrow it to files that actually need it -- mostly files that need to query whether curlwp is the pagedaemon, which should maybe be exposed by an external header. - Use uvm_extern.h where feasible and uvm_*.h for things not exposed by it. We should split up uvm_extern.h but this will serve for now to reduce the uvm.h dependencies. - Use uvm_stat.h and #ifdef UVMHIST uvm.h for files that use UVMHIST(ubchist), since ubchist is declared in uvm.h but the reference evaporates if UVMHIST is not defined, so we reduce header file dependencies. - Make uvm_device.h and uvm_swap.h independently includable while here. ok chs@
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-07-19don't include opt_user_ldt.h when it is not neededmaxv
2020-07-16 Don't accept negative value.msaitoh
Reported-by: syzbot+e71a77402d6668f1868d@syzkaller.appspotmail.com
2020-06-11Counter tweaks:ad
- Don't need to count anonpages+filepages any more; clean+unknown+dirty for each kind of page can be summed to get the totals. - Track the number of free pages with a counter so that it's one less thing for the allocator to do, which opens up further options there. - Remove cpu_count_sync_one(). It has no users and doesn't save a whole lot. For the cheap option, give cpu_count_sync() a boolean parameter indicating that a cached value is okay, and rate limit the updates for cached values to hz.