ee5a5918 | 14-Sep-2021 |
Sascha Wildner <saw@online.de> |
Some additions and fixes related to fdatasync(2) and posix_fallocate(2).
* Fix a small issue in VOP_FDATASYNC()'s definition in <sys/vfsops.h>.
* Mention fdatasync() in fsync.2 (this basically sync
Some additions and fixes related to fdatasync(2) and posix_fallocate(2).
* Fix a small issue in VOP_FDATASYNC()'s definition in <sys/vfsops.h>.
* Mention fdatasync() in fsync.2 (this basically syncs that manual page with FreeBSD, with a few adjustments).
* Add a manual page for posix_fallocate() (from FreeBSD, with a few adjustments).
* Mention fdatasync() in the list of reentrant functions in sigaction.2.
* In pthread_testcancel.3, mention fdatasync() in the list of functions for which a cancellation point will occur.
* Mention VOP_FDATASYNC() in VOP_FSYNC.9 (partly taken from FreeBSD).
* Remove a compatibility define in the fsstress tool.
Thanks to tkusumi for reviewing.
show more ...
|
74fa2560 | 11-Sep-2021 |
Tomohiro Kusumi <tkusumi@netbsd.org> |
sys/kern: Add fdatasync(2)
Based on the following FreeBSD commits in 2016. 295af703a0d7987c6cf4987e7b7f5f07b3ca1221 1c1cc89580f0fbfabaf6f6c7f0f6440eef0c128e
Add the syscall and also add it to pthre
sys/kern: Add fdatasync(2)
Based on the following FreeBSD commits in 2016. 295af703a0d7987c6cf4987e7b7f5f07b3ca1221 1c1cc89580f0fbfabaf6f6c7f0f6440eef0c128e
Add the syscall and also add it to pthread's cancellation point. The default behavior is same as fsync(2), which is fine but inefficient.
show more ...
|
fef0a4be | 11-Sep-2021 |
Sascha Wildner <saw@online.de> |
libc: Remove __NO_TLS checks inherited from FreeBSD. |
c89c8747 | 11-Sep-2021 |
Sascha Wildner <saw@online.de> |
libc: Move posix_fallocate() to the right place in Symbol.map. |
09d96b9c | 08-Sep-2021 |
Tomohiro Kusumi <tkusumi@netbsd.org> |
sys/kern: Add posix_fallocate(2)
Based on the initial posix_fallocate(2) implementation in FreeBSD from d91f88f7f38078ac6dd4b0f0e77470d605d1518e in 2011.
There is nothing special or efficient about
sys/kern: Add posix_fallocate(2)
Based on the initial posix_fallocate(2) implementation in FreeBSD from d91f88f7f38078ac6dd4b0f0e77470d605d1518e in 2011.
There is nothing special or efficient about the default behavior. VFS has no knowledge of fs details.
show more ...
|
1f2cfeb1 | 07-Sep-2021 |
Sascha Wildner <saw@online.de> |
<sys/*.h>: Fix some include guard names. |
5229377c | 07-Sep-2021 |
Sascha Wildner <saw@online.de> |
kernel/libc: Remove the old vmm code.
Removes the kernel code and two system calls.
Bump __DragonFly_version too.
Reviewed-by: aly, dillon |
6b07d4ee | 27-Aug-2021 |
Sascha Wildner <saw@online.de> |
Make a number of headers self-sufficient.
Also, do not trust headers to bring in needed headers. |
79118a50 | 23-Aug-2021 |
Sascha Wildner <saw@online.de> |
libnvmm.3: Fix some typos. |
19d79046 | 21-Aug-2021 |
Sascha Wildner <saw@online.de> |
Some trivial changes to better comply with strict aliasing. (2)
Now that the warnings are fixed, do not pass -fno-strict-aliasing anymore. |
1b586c57 | 07-Mar-2013 |
Gwenio <gwenio@live.com> |
Some trivial changes to better comply with strict aliasing. |
d1f64577 | 20-Aug-2021 |
Sascha Wildner <saw@online.de> |
sysconf.3: Document more constants. |
38c3a22e | 15-Aug-2021 |
Sascha Wildner <saw@online.de> |
<signal.h>/<ucontext.h>: Split those two headers better.
<signal.h> needs only ucontext_t and stack_t from <ucontext.h>. Split those out to <sys/_ucontext.h> and stop including the full <ucontext.h>
<signal.h>/<ucontext.h>: Split those two headers better.
<signal.h> needs only ucontext_t and stack_t from <ucontext.h>. Split those out to <sys/_ucontext.h> and stop including the full <ucontext.h> from <signal.h> and vice versa, for userland.
In <ucontext.h>, continue defining siginfo_t for non-POSIX because third party code expects us to.
This has been tested with a full dports bulk build.
show more ...
|
0c8103dd | 05-Aug-2021 |
Sascha Wildner <saw@online.de> |
Include <inttypes.h> instead of <cpu/inttypes.h> in world.
Remove the unneeded inclusions otherwise. |
dd010514 | 13-Aug-2021 |
Sascha Wildner <saw@online.de> |
libc: Clean up the Symbol.maps a bit.
* Remove sysv_cond_wait and sysv_cond_signal because these functions were always static.
* Remove tre_have_approx because this function is only available wit
libc: Clean up the Symbol.maps a bit.
* Remove sysv_cond_wait and sysv_cond_signal because these functions were always static.
* Remove tre_have_approx because this function is only available with -DTRE_APPROX which we never used, nor build with right away.
* Remove pthread_init since there was never a pthread_init in libc. Seems to be just a typo.
* Remove mexitcount which was kernel only.
* Add a comment to a symbol that will only show up when libc is built with a debug option.
show more ...
|
f54c5bc1 | 14-Aug-2021 |
Sascha Wildner <saw@online.de> |
libc: Clean up some kernel profiling bits. |
c907b81a | 08-Aug-2021 |
Sascha Wildner <saw@online.de> |
<errno.h>: Add ENOTRECOVERABLE and EOWNERDEAD.
These errno constants are really for robust mutexes which we do not support. However, llvm seems to be abusing ENOTRECOVERABLE for other purposes, so j
<errno.h>: Add ENOTRECOVERABLE and EOWNERDEAD.
These errno constants are really for robust mutexes which we do not support. However, llvm seems to be abusing ENOTRECOVERABLE for other purposes, so just add them both.
Reported-by: tuxillo
show more ...
|
41376a9b | 29-Jul-2021 |
Sascha Wildner <saw@online.de> |
libnvmm.3: Oops, forgot one .Cd correction. |
c2ae2642 | 29-Jul-2021 |
Sascha Wildner <saw@online.de> |
libnvmm.3: Fix .Cd misuse. |
15fd3f2d | 29-Jul-2021 |
Sascha Wildner <saw@online.de> |
libnvmm.3: Extend NAME section and add MLINKS for functions. |
a5c0e10b | 29-Jul-2021 |
Sascha Wildner <saw@online.de> |
nvmm: Some documentation adjustments.
* Fix '.Lb libnvmm' for mandoc(1).
* Use standard list in libnvmm.3's ERRORS section.
* Add a SYNOPSIS to nvmm.4.
* Use short form .Nm in nvmmctl.8. |
ee35a765 | 28-Jul-2021 |
Aaron LI <aly@aaronly.me> |
libnvmm: Remove unneeded header inclusions and defines
They are now provided by the <dev/virtual/nvmm/nvmm.h> header file. |
cca384e4 | 20-Jul-2021 |
Aaron LI <aly@aaronly.me> |
nvmm: Fix comm page unmapping issue by doing it on userland side
Previously, we're mapping and unmapping the comm page for userland process both on the kernel side. The unmapping was called at the
nvmm: Fix comm page unmapping issue by doing it on userland side
Previously, we're mapping and unmapping the comm page for userland process both on the kernel side. The unmapping was called at the point of closing the fd.
However, the kernel may destroy process' vmspace before or after closing the fd, so there is no guarantee that kernel can get the correct address space to unmap the comm page for the userland process. Therefore, do the comm page unmapping on the userland side in libnvmm to fix the above issue.
In addition, add the 'comm_size' member to 'struct nvmm_capability' to expose the comm page size to userland, which is required for the unmapping operation. This breaks ABI, so bump NVMM_KERN_VERSION. Update nvmmctl(8) accordingly to print the comm page size.
This commit partially reverts: "nvmm: Add missing comm page unmapping"
show more ...
|
b6772502 | 04-Jul-2021 |
Aaron LI <aly@aaronly.me> |
NVMM: Update libnvmm.3 and TODO.nvmm |
63935017 | 04-Jul-2021 |
Aaron LI <aly@aaronly.me> |
libnvmm: More OS independence
* Define PTE_* values in 'libnvmm_x86.c' to avoid including some OS headers: <machine/pte.h>, <machine/vmparam.h> and <machine/pmap.h>. * Redefine __BIT() macro to av
libnvmm: More OS independence
* Define PTE_* values in 'libnvmm_x86.c' to avoid including some OS headers: <machine/pte.h>, <machine/vmparam.h> and <machine/pmap.h>. * Redefine __BIT() macro to avoid handling its difference between NetBSD and DragonFly. * 'nvmm_compat.h' is no longer needed and thus removed.
show more ...
|