|
@@ -7,12 +7,6 @@ import (
|
|
"golang.org/x/sys/unix"
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
)
|
|
|
|
|
|
-// Mknod creates a filesystem node (file, device special file or named pipe) named path
|
|
|
|
-// with attributes specified by mode and dev.
|
|
|
|
-func Mknod(path string, mode uint32, dev int) error {
|
|
|
|
- return unix.Mknod(path, mode, dev)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// Mkdev is used to build the value of linux devices (in /dev/) which specifies major
|
|
// Mkdev is used to build the value of linux devices (in /dev/) which specifies major
|
|
// and minor number of the newly created device special file.
|
|
// and minor number of the newly created device special file.
|
|
// Linux device nodes are a bit weird due to backwards compat with 16 bit device nodes.
|
|
// Linux device nodes are a bit weird due to backwards compat with 16 bit device nodes.
|