diff options
| author | Simon Ser <contact@emersion.fr> | 2022-03-29 10:16:17 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-04-11 09:21:53 +0000 |
| commit | ff972f85b245d6564ec30c739a73437bcf7fac0e (patch) | |
| tree | 45d825c22e861540d304746e9e4c8190068e3b11 /protocol/wayland.xml | |
| parent | shm: Close file descriptors not needed (diff) | |
| download | wayland-ff972f85b245d6564ec30c739a73437bcf7fac0e.tar wayland-ff972f85b245d6564ec30c739a73437bcf7fac0e.tar.gz wayland-ff972f85b245d6564ec30c739a73437bcf7fac0e.tar.bz2 wayland-ff972f85b245d6564ec30c739a73437bcf7fac0e.tar.lz wayland-ff972f85b245d6564ec30c739a73437bcf7fac0e.tar.xz wayland-ff972f85b245d6564ec30c739a73437bcf7fac0e.tar.zst wayland-ff972f85b245d6564ec30c739a73437bcf7fac0e.zip | |
os: drop unnecessary memcpy in wl_os_mremap_maymove
FreeBSD doesn't support mremap [1], so we have a fallback
implementation based on munmap+mmap. We memcpy from the old memory
region to the new one, however this is unnecessary because the new
mapping references the same file as the old one.
Use msync to make sure any pending write is flushed to the underlying
file before we map the new region.
[1]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=59912
Signed-off-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'protocol/wayland.xml')
0 files changed, 0 insertions, 0 deletions
