mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 14:23:33 +00:00
29 lines
759 B
Odin
29 lines
759 B
Odin
#+build js wasm32, js wasm64p32
|
|
#+private
|
|
package os
|
|
|
|
// None of this does anything on js/wasm.
|
|
// It's only here so importing `core:os` on wasm panics cleanly,
|
|
// without spamming about all sorts of missing procs and types.
|
|
|
|
import "base:runtime"
|
|
|
|
_fstat :: proc(f: ^File, allocator: runtime.Allocator) -> (fi: File_Info, err: Error) {
|
|
return {}, .Unsupported
|
|
}
|
|
|
|
_stat :: proc(name: string, allocator: runtime.Allocator) -> (fi: File_Info, err: Error) {
|
|
return {}, .Unsupported
|
|
}
|
|
|
|
_lstat :: proc(name: string, allocator: runtime.Allocator) -> (fi: File_Info, err: Error) {
|
|
return {}, .Unsupported
|
|
}
|
|
|
|
_same_file :: proc(fi1, fi2: File_Info) -> bool {
|
|
return fi1.fullpath == fi2.fullpath
|
|
}
|
|
|
|
_is_reserved_name :: proc(path: string) -> bool {
|
|
return false
|
|
} |