summaryrefslogtreecommitdiffstats
path: root/src/posix
AgeCommit message (Collapse)AuthorFilesLines
2024-06-04Add missing includeDavid Robillard1-0/+1
2023-11-17Avoid fdatasync() on DarwinDavid Robillard1-1/+7
This isn't present at all on (older?) literal Darwin, and additionally fsync() there doesn't actually flush writes to storage like it does on Linux. So, use F_FULLFSYNC which was invented as an alternative API to do this.
2023-09-21Remove unnecessary includes and forward declarationsDavid Robillard1-2/+0
According to include-what-you-use 0.20 (7301b1f) based on clang 16.0.6.
2023-08-23Improve test coverageDavid Robillard1-8/+9
2022-11-25Explicitly ignore posix_fadvise() return valueDavid Robillard1-2/+2
If some error happened here, there's nothing we can do but proceed and try to copy anyway.
2022-11-25Consistently pass stat structs by pointerDavid Robillard1-8/+10
These are usually quite large, over 128 bytes.
2022-11-15Fix unused return value warningDavid Robillard1-2/+3
2022-11-12Fix zix_current_path() on systems with a static PATH_MAXDavid Robillard1-1/+2
2022-11-02Add missing includeDavid Robillard1-0/+1
2022-11-01Add missing pure and const function attributesDavid Robillard1-0/+1
It seems that certain versions and/or configurations of gcc warn about these for static functions, which is annoying, but whatever.
2022-10-23Add filesystem APIDavid Robillard2-0/+470
2022-10-23Split up platform sourcesDavid Robillard2-0/+123
This puts more onus on the build system to do things properly, but it's still easy enough to build, even manually: all the files in the appropriate system subdirectory just need to be included in the build. Otherwise, the several nested levels of preprocessor conditionals get confusing, and clang-format doesn't format code properly.