https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66005
--- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #7 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- > Resolved for GCC 14. Not planning on backporting to release branches (but > could, if desired). Unfortunately not: flock is completely unportable. It's not in POSIX.1/XPG7, and none of Solaris, macOS, or AIX have it.