Skip to content

Commit

Permalink
Add comment to Mknod
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Kwiatkowski <mateusz@serveraptor.com>
  • Loading branch information
mateuszkwiatkowski committed Mar 3, 2021
1 parent 145ddd7 commit 5a77e6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/system/mknod_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"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 uint64) error {
return unix.Mknod(path, mode, dev)
}
2 changes: 2 additions & 0 deletions pkg/system/mknod_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"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 uint64) error {
return unix.Mknod(path, mode, int(dev))
}
2 changes: 2 additions & 0 deletions pkg/system/mknod_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import (
"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 uint64) error {
return unix.Mknod(path, mode, int(dev))
}

0 comments on commit 5a77e6a

Please sign in to comment.