Boost logo

Boost :

From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2021-06-04 11:03:39


On 04/06/2021 10:12, Andrey Semashev via Boost wrote:

> My stance on this is that Boost.Filesystem must be built on a system
> with kernel headers matching or older than the systems that will run the
> binary. This matches the same requirements for Windows. I don't support
> configs with headers newer than runtime kernel.

It's trivially easy to do a runtime check for statx kernel support and
fall back on older syscalls if needed.

This is LLFIO doing so, and it works on Linux kernel 2.6:

https://github.com/ned14/llfio/blob/develop/include/llfio/v2.0/detail/impl/posix/stat.ipp#L205

Niall


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk