aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-08-17 00:22:46 +0100
committerGitHub <noreply@github.com>2024-08-17 00:22:46 +0100
commit536a34287311ee8a6e9c69c0b8d93b1ba5779b4e (patch)
treec11b489b30146391e5574ffbaf5ff1bb4359cac7 /core/sys
parente8933e43ecffe1a0cec81e102f077970687a43a2 (diff)
parentf7d7d65bc0f7da6993e117e67e771c7e1741ea06 (diff)
Merge pull request #4092 from laytan/fix-open-bindings
fix `open` bindings
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/posix/fcntl.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sys/posix/fcntl.odin b/core/sys/posix/fcntl.odin
index 8f1b1a511..ca030a9a5 100644
--- a/core/sys/posix/fcntl.odin
+++ b/core/sys/posix/fcntl.odin
@@ -58,7 +58,7 @@ foreign lib {
[[ More; https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html ]]
*/
- open :: proc(path: cstring, flags: O_Flags, mode: mode_t = {}) -> FD ---
+ open :: proc(path: cstring, flags: O_Flags, #c_vararg mode: ..mode_t) -> FD ---
/*
Equivalent to the open() function except in the case where path specifies a relative path.