[Bug middle-end/124509] New: lockfile.cc should have mingw/windows support
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 14 17:39:08 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124509
Bug ID: 124509
Summary: lockfile.cc should have mingw/windows support
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Host: mingw
Currently lockfile.cc does not support windows as it uses fnctl/F_SETLKW.
Windows has its own locking mechanism which should be used:
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-lockfile
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-lockfileex
More information about the Gcc-bugs
mailing list