mirror of
https://github.com/criyle/go-sandbox.git
synced 2025-11-04 14:49:53 +08:00
21 lines
338 B
Go
21 lines
338 B
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
|
|
}
|