File: node_freebsd.go

package info (click to toggle)
restic 0.18.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,824 kB
  • sloc: sh: 3,704; makefile: 50; python: 34
file content (21 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//go:build freebsd
// +build freebsd

package fs

import (
	"os"
	"syscall"
)

func nodeRestoreSymlinkTimestamps(path string, utimes [2]syscall.Timespec) error {
	return nil
}

func mknod(path string, mode uint32, dev uint64) error {
	err := syscall.Mknod(path, mode, dev)
	if err != nil {
		err = &os.PathError{Op: "mknod", Path: path, Err: err}
	}
	return err
}