Skip to content

Commit

Permalink
Add a comment about O_APPEND in [openfile]
Browse files Browse the repository at this point in the history
  • Loading branch information
tleedjarv committed Jan 23, 2025
1 parent e857a2d commit 9b11426
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/system/system_win.ml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ let rename f1 f2 =

let chown _ _ _ = raise (Unix.Unix_error (Unix.ENOSYS, "chown", ""))

(* TODO: O_APPEND in [Unix.openfile] for Windows was fixed in OCaml 5.3.
Remove the entire [openfile] definition below once the minimum supported
compiler version is >= 5.3.
Note: at the time of adding this comment, there is actually no code calling
[openfile] with O_APPEND. *)
let openfile f flags perm =
let fd = Unix.openfile f flags perm in
(* Comment from original C stub implementation:
Expand Down

0 comments on commit 9b11426

Please # to comment.