Implementing posix_fadvise()?

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Fri Feb 21 17:20:48 GMT 2025


On 2025-02-21 09:33, Martin Wege via Cygwin wrote:
> Could Cygwin implement posix_fadvise()? Which Windows API would be
> suitable to map posix_fadvise() functionality?

Could and does since 2006 (read commnets for details):

https://cygwin.com/git/?p=newlib-cygwin.git;a=commitdiff;h=7636b58590621af3c341c3eb37a017e0e6598d3f

See also Cygwin packages man-pages-posix posix_fadvise(3p) and man-pages-linux 
posix_fadvise(2).

Windows:

https://learn.microsoft.com/en-gb/windows/win32/api/fileapi/nf-fileapi-createfilea?redirectedfrom=MSDN#caching_behavior

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


More information about the Cygwin mailing list