Vendor continuity
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
c6446b93da
commit
5f08e609c0
36 changed files with 3446 additions and 0 deletions
15
vendor/github.com/stevvooe/continuity/devices_darwin.go
generated
vendored
Normal file
15
vendor/github.com/stevvooe/continuity/devices_darwin.go
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
package continuity
|
||||
|
||||
// from /usr/include/sys/types.h
|
||||
|
||||
func getmajor(dev int32) uint64 {
|
||||
return (uint64(dev) >> 24) & 0xff
|
||||
}
|
||||
|
||||
func getminor(dev int32) uint64 {
|
||||
return uint64(dev) & 0xffffff
|
||||
}
|
||||
|
||||
func makedev(major int, minor int) int {
|
||||
return ((major << 24) | minor)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue