mirror of
https://github.com/criyle/go-sandbox.git
synced 2025-09-26 23:19:11 +08:00
21 lines
340 B
Go
21 lines
340 B
Go
//go:build !linux
|
|
|
|
package memfd
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
"os"
|
|
"runtime"
|
|
)
|
|
|
|
var errNotImplemented = fmt.Errorf("memfd: unsupported on platform: %s", runtime.GOOS)
|
|
|
|
func New(name string) (*os.File, error) {
|
|
return nil, errNotImplemented
|
|
}
|
|
|
|
func DupToMemfd(name string, reader io.Reader) (*os.File, error) {
|
|
return nil, errNotImplemented
|
|
}
|