Skip to content

Commit

Permalink
adapt example
Browse files Browse the repository at this point in the history
  • Loading branch information
armincosta committed Jul 21, 2024
1 parent bd9fee2 commit d5e4612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/Dpdl_native_Interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ println("done")

println("testing file access...")

int fh = libc.open("./Test/TestWrite.txt", 1)
object fcntl = getClass("Fcntl")

int fh = libc.open("./Test/TestWrite.txt", fcntl.O_RDWR)

raise(fh, "Error in opening file")

Expand Down

0 comments on commit d5e4612

Please sign in to comment.