add o_sync option to file:open/2

Steve Vinoski <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <CAO+zUOXXGQo6Nozsj3VNBA9pLr5KFobPXTYfUN52-+bdnDOq-A@mail.gmail.com>
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

_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.