Skip to content

Commit 87bf217

Browse files
vtjnashemmt
authored andcommitted
fix API mistake for open syscall
This is poorly documented, so a common mistake (especially on Linux). Getting this ABI wrong will lead to subtle bugs on many platforms.
1 parent 1b543a7 commit 87bf217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ umask(mask::Integer) =
104104
ccall(:umask, mode_t, (mode_t,), mask)
105105

106106
_open(path::AbstractString, flags::Integer, mode::Integer) =
107-
ccall(:open, Cint, (Cstring, Cint, mode_t), path, flags, mode)
107+
ccall(:open, Cint, (Cstring, Cint, mode_t...), path, flags, mode)
108108

109109
_creat(path::AbstractString, mode::Integer) =
110110
_open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)

0 commit comments

Comments
 (0)