This function is missing on many non-glibc platforms:
FreeBSD 14.0, NetBSD 5.0, OpenBSD 7.5, Minix 3.1.8, AIX 5.1, HP-UX 11, Solaris 11.4, Cygwin 1.5.x, mingw, MSVC 14, Android 4.0.4.
This function has extra offset and options parameters
and no flags parameter on some platforms:
macOS 14.