aboutsummaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os2/file_linux.odin4
-rw-r--r--core/os/os2/file_posix.odin2
-rw-r--r--core/os/os2/file_wasi.odin2
-rw-r--r--core/os/os2/file_windows.odin2
-rw-r--r--core/os/stream.odin2
5 files changed, 6 insertions, 6 deletions
diff --git a/core/os/os2/file_linux.odin b/core/os/os2/file_linux.odin
index b2350d9b5..6d66ffd75 100644
--- a/core/os/os2/file_linux.odin
+++ b/core/os/os2/file_linux.odin
@@ -515,7 +515,7 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
case .Query:
return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Flush, .Close, .Destroy, .Query})
}
- return 0, .Empty
+ return 0, .Unsupported
}
@@ -559,6 +559,6 @@ _file_stream_buffered_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p:
case .Query:
return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Flush, .Close, .Destroy, .Query})
}
- return 0, .Empty
+ return 0, .Unsupported
}
diff --git a/core/os/os2/file_posix.odin b/core/os/os2/file_posix.odin
index fd409b9d4..f445cb5f4 100644
--- a/core/os/os2/file_posix.odin
+++ b/core/os/os2/file_posix.odin
@@ -502,6 +502,6 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Flush, .Close, .Destroy, .Query})
case:
- return 0, .Empty
+ return 0, .Unsupported
}
}
diff --git a/core/os/os2/file_wasi.odin b/core/os/os2/file_wasi.odin
index ec464fc52..b60cce4be 100644
--- a/core/os/os2/file_wasi.odin
+++ b/core/os/os2/file_wasi.odin
@@ -557,6 +557,6 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Flush, .Close, .Destroy, .Query})
case:
- return 0, .Empty
+ return 0, .Unsupported
}
}
diff --git a/core/os/os2/file_windows.odin b/core/os/os2/file_windows.odin
index be5aeb8ab..03fbc596e 100644
--- a/core/os/os2/file_windows.odin
+++ b/core/os/os2/file_windows.odin
@@ -866,7 +866,7 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
case .Query:
return io.query_utility({.Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Flush, .Close, .Destroy, .Query})
}
- return 0, .Empty
+ return 0, .Unsupported
}
diff --git a/core/os/stream.odin b/core/os/stream.odin
index 39edc9cd5..f4e9bcdde 100644
--- a/core/os/stream.odin
+++ b/core/os/stream.odin
@@ -62,7 +62,7 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
case .Size:
n, os_err = file_size(fd)
case .Destroy:
- err = .Empty
+ err = .Unsupported
case .Query:
return io.query_utility({.Close, .Flush, .Read, .Read_At, .Write, .Write_At, .Seek, .Size, .Query})
}