mirror of
https://github.com/octoleo/restic.git
synced 2024-11-27 15:26:37 +00:00
19 lines
306 B
Go
19 lines
306 B
Go
//go:build !freebsd && !windows
|
|
// +build !freebsd,!windows
|
|
|
|
package fs
|
|
|
|
import (
|
|
"os"
|
|
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func mknod(path string, mode uint32, dev uint64) error {
|
|
err := unix.Mknod(path, mode, int(dev))
|
|
if err != nil {
|
|
err = &os.PathError{Op: "mknod", Path: path, Err: err}
|
|
}
|
|
return err
|
|
}
|