[erlang-patches] add o_sync option to file:open/2

Steve Vinoski <>
Tue Nov 12 23:39:03 CET 2013


https://github.com/erlang/otp/pull/137

This pull request adds an o_sync option to file:open/2. The o_sync option
adds the POSIX O_SYNC flag to the open system call on platforms that
support the flag or its equivalent, e.g., FILE_FLAG_WRITE_THROUGH on
Windows. For platforms that don't support it, file:open/2 returns {error,
enotsup} if the o_sync option is passed in.

Joe Blomstedt (jtuple) wrote most of this patch, I just dotted the Ts,
crossed the Is, and submitted it.

--steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20131112/aede0c97/attachment.html>


More information about the erlang-patches mailing list