mirror of https://github.com/restic/restic.git
wip: attempt to build for wasm
This commit is contained in:
parent
73c7780a03
commit
619e243e60
|
@ -0,0 +1,19 @@
|
|||
//go:build js
|
||||
// +build js
|
||||
|
||||
package fs
|
||||
|
||||
// Flags to OpenFile wrapping those of the underlying system. Not all flags may
|
||||
// be implemented on a given system.
|
||||
const (
|
||||
O_RDONLY int = 0
|
||||
O_WRONLY int = 0
|
||||
O_RDWR int = 0
|
||||
O_APPEND int = 0
|
||||
O_CREATE int = 0
|
||||
O_EXCL int = 0
|
||||
O_SYNC int = 0
|
||||
O_TRUNC int = 0
|
||||
O_NONBLOCK int = 0
|
||||
O_NOFOLLOW int = 0
|
||||
)
|
|
@ -0,0 +1,15 @@
|
|||
//go:build js
|
||||
// +build js
|
||||
|
||||
package fs
|
||||
|
||||
import (
|
||||
"os"
|
||||
// "syscall"
|
||||
// "time"
|
||||
)
|
||||
|
||||
// extendedStat extracts info into an ExtendedFileInfo for unix based operating systems.
|
||||
func extendedStat(fi os.FileInfo) ExtendedFileInfo {
|
||||
return ExtendedFileInfo{}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
package signals
|
||||
|
||||
func setupSignals() {}
|
Loading…
Reference in New Issue