• Tobias Klauser's avatar
    unix: add Major, Minor and Mkdev functions on OpenBSD · 033028a6
    Tobias Klauser authored
    Add Major, Minor and Mkdev functions for converting devices numbers to
    their major/minor components and vice versa.
    
    The functions follow the behavior of the macros defined in OpenBSD's
    sys/types.h header. However, the parameter and return types are changed
    to match the existing implementations of these functions.
    
    Test the conversion macros with some well-known device numbers.
    
    Updates golang/go#8106
    
    Change-Id: Ia50b7ccab18ff7c7e9dd77ddc7e4aa6cf5c79963
    Reviewed-on: https://go-review.googlesource.com/63070Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    033028a6
Name
Last commit
Last update
..
linux Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
asm_darwin_386.s Loading commit data...
asm_darwin_amd64.s Loading commit data...
asm_darwin_arm.s Loading commit data...
asm_darwin_arm64.s Loading commit data...
asm_dragonfly_amd64.s Loading commit data...
asm_freebsd_386.s Loading commit data...
asm_freebsd_amd64.s Loading commit data...
asm_freebsd_arm.s Loading commit data...
asm_linux_386.s Loading commit data...
asm_linux_amd64.s Loading commit data...
asm_linux_arm.s Loading commit data...
asm_linux_arm64.s Loading commit data...
asm_linux_mips64x.s Loading commit data...
asm_linux_mipsx.s Loading commit data...
asm_linux_ppc64x.s Loading commit data...
asm_linux_s390x.s Loading commit data...
asm_netbsd_386.s Loading commit data...
asm_netbsd_amd64.s Loading commit data...
asm_netbsd_arm.s Loading commit data...
asm_openbsd_386.s Loading commit data...
asm_openbsd_amd64.s Loading commit data...
asm_openbsd_arm.s Loading commit data...
asm_solaris_amd64.s Loading commit data...
bluetooth_linux.go Loading commit data...
cap_freebsd.go Loading commit data...
constants.go Loading commit data...
creds_test.go Loading commit data...
dev_darwin.go Loading commit data...
dev_darwin_test.go Loading commit data...
dev_dragonfly.go Loading commit data...
dev_dragonfly_test.go Loading commit data...
dev_freebsd.go Loading commit data...
dev_linux.go Loading commit data...
dev_linux_test.go Loading commit data...
dev_netbsd.go Loading commit data...
dev_netbsd_test.go Loading commit data...
dev_openbsd.go Loading commit data...
dev_openbsd_test.go Loading commit data...
dirent.go Loading commit data...
endian_big.go Loading commit data...
endian_little.go Loading commit data...
env_unix.go Loading commit data...
env_unset.go Loading commit data...
errors_freebsd_386.go Loading commit data...
errors_freebsd_amd64.go Loading commit data...
errors_freebsd_arm.go Loading commit data...
export_test.go Loading commit data...
file_unix.go Loading commit data...
flock.go Loading commit data...
flock_linux_32bit.go Loading commit data...
gccgo.go Loading commit data...
gccgo_c.c Loading commit data...
gccgo_linux_amd64.go Loading commit data...
mkall.sh Loading commit data...
mkerrors.sh Loading commit data...
mkpost.go Loading commit data...
mksyscall.pl Loading commit data...
mksyscall_solaris.pl Loading commit data...
mksysctl_openbsd.pl Loading commit data...
mksysnum_darwin.pl Loading commit data...
mksysnum_dragonfly.pl Loading commit data...
mksysnum_freebsd.pl Loading commit data...
mksysnum_netbsd.pl Loading commit data...
mksysnum_openbsd.pl Loading commit data...
mmap_unix_test.go Loading commit data...
openbsd_pledge.go Loading commit data...
openbsd_test.go Loading commit data...
pagesize_unix.go Loading commit data...
race.go Loading commit data...
race0.go Loading commit data...
sockcmsg_linux.go Loading commit data...
sockcmsg_unix.go Loading commit data...
str.go Loading commit data...
syscall.go Loading commit data...
syscall_bsd.go Loading commit data...
syscall_bsd_test.go Loading commit data...
syscall_darwin.go Loading commit data...
syscall_darwin_386.go Loading commit data...
syscall_darwin_amd64.go Loading commit data...
syscall_darwin_arm.go Loading commit data...
syscall_darwin_arm64.go Loading commit data...
syscall_dragonfly.go Loading commit data...
syscall_dragonfly_amd64.go Loading commit data...
syscall_freebsd.go Loading commit data...
syscall_freebsd_386.go Loading commit data...
syscall_freebsd_amd64.go Loading commit data...
syscall_freebsd_arm.go Loading commit data...
syscall_freebsd_test.go Loading commit data...
syscall_linux.go Loading commit data...
syscall_linux_386.go Loading commit data...
syscall_linux_amd64.go Loading commit data...
syscall_linux_amd64_gc.go Loading commit data...
syscall_linux_arm.go Loading commit data...
syscall_linux_arm64.go Loading commit data...
syscall_linux_mips64x.go Loading commit data...
syscall_linux_mipsx.go Loading commit data...
syscall_linux_ppc64x.go Loading commit data...
syscall_linux_s390x.go Loading commit data...
syscall_linux_sparc64.go Loading commit data...
syscall_linux_test.go Loading commit data...
syscall_netbsd.go Loading commit data...
syscall_netbsd_386.go Loading commit data...
syscall_netbsd_amd64.go Loading commit data...
syscall_netbsd_arm.go Loading commit data...
syscall_no_getwd.go Loading commit data...
syscall_openbsd.go Loading commit data...
syscall_openbsd_386.go Loading commit data...
syscall_openbsd_amd64.go Loading commit data...
syscall_openbsd_arm.go Loading commit data...
syscall_solaris.go Loading commit data...
syscall_solaris_amd64.go Loading commit data...
syscall_solaris_test.go Loading commit data...
syscall_test.go Loading commit data...
syscall_unix.go Loading commit data...
syscall_unix_gc.go Loading commit data...
syscall_unix_test.go Loading commit data...
types_darwin.go Loading commit data...
types_dragonfly.go Loading commit data...
types_freebsd.go Loading commit data...
types_netbsd.go Loading commit data...
types_openbsd.go Loading commit data...
types_solaris.go Loading commit data...
zerrors_darwin_386.go Loading commit data...
zerrors_darwin_amd64.go Loading commit data...
zerrors_darwin_arm.go Loading commit data...
zerrors_darwin_arm64.go Loading commit data...
zerrors_dragonfly_amd64.go Loading commit data...
zerrors_freebsd_386.go Loading commit data...
zerrors_freebsd_amd64.go Loading commit data...
zerrors_freebsd_arm.go Loading commit data...
zerrors_linux_386.go Loading commit data...
zerrors_linux_amd64.go Loading commit data...
zerrors_linux_arm.go Loading commit data...
zerrors_linux_arm64.go Loading commit data...
zerrors_linux_mips.go Loading commit data...
zerrors_linux_mips64.go Loading commit data...
zerrors_linux_mips64le.go Loading commit data...
zerrors_linux_mipsle.go Loading commit data...
zerrors_linux_ppc64.go Loading commit data...
zerrors_linux_ppc64le.go Loading commit data...
zerrors_linux_s390x.go Loading commit data...
zerrors_linux_sparc64.go Loading commit data...
zerrors_netbsd_386.go Loading commit data...
zerrors_netbsd_amd64.go Loading commit data...
zerrors_netbsd_arm.go Loading commit data...
zerrors_openbsd_386.go Loading commit data...
zerrors_openbsd_amd64.go Loading commit data...
zerrors_openbsd_arm.go Loading commit data...
zerrors_solaris_amd64.go Loading commit data...
zsyscall_darwin_386.go Loading commit data...
zsyscall_darwin_amd64.go Loading commit data...
zsyscall_darwin_arm.go Loading commit data...
zsyscall_darwin_arm64.go Loading commit data...
zsyscall_dragonfly_amd64.go Loading commit data...
zsyscall_freebsd_386.go Loading commit data...
zsyscall_freebsd_amd64.go Loading commit data...
zsyscall_freebsd_arm.go Loading commit data...
zsyscall_linux_386.go Loading commit data...
zsyscall_linux_amd64.go Loading commit data...
zsyscall_linux_arm.go Loading commit data...
zsyscall_linux_arm64.go Loading commit data...
zsyscall_linux_mips.go Loading commit data...
zsyscall_linux_mips64.go Loading commit data...
zsyscall_linux_mips64le.go Loading commit data...
zsyscall_linux_mipsle.go Loading commit data...
zsyscall_linux_ppc64.go Loading commit data...
zsyscall_linux_ppc64le.go Loading commit data...
zsyscall_linux_s390x.go Loading commit data...
zsyscall_linux_sparc64.go Loading commit data...
zsyscall_netbsd_386.go Loading commit data...
zsyscall_netbsd_amd64.go Loading commit data...
zsyscall_netbsd_arm.go Loading commit data...
zsyscall_openbsd_386.go Loading commit data...
zsyscall_openbsd_amd64.go Loading commit data...
zsyscall_openbsd_arm.go Loading commit data...
zsyscall_solaris_amd64.go Loading commit data...
zsysctl_openbsd.go Loading commit data...
zsysnum_darwin_386.go Loading commit data...
zsysnum_darwin_amd64.go Loading commit data...
zsysnum_darwin_arm.go Loading commit data...
zsysnum_darwin_arm64.go Loading commit data...
zsysnum_dragonfly_amd64.go Loading commit data...
zsysnum_freebsd_386.go Loading commit data...
zsysnum_freebsd_amd64.go Loading commit data...
zsysnum_freebsd_arm.go Loading commit data...
zsysnum_linux_386.go Loading commit data...
zsysnum_linux_amd64.go Loading commit data...
zsysnum_linux_arm.go Loading commit data...
zsysnum_linux_arm64.go Loading commit data...
zsysnum_linux_mips.go Loading commit data...
zsysnum_linux_mips64.go Loading commit data...
zsysnum_linux_mips64le.go Loading commit data...
zsysnum_linux_mipsle.go Loading commit data...
zsysnum_linux_ppc64.go Loading commit data...
zsysnum_linux_ppc64le.go Loading commit data...
zsysnum_linux_s390x.go Loading commit data...
zsysnum_linux_sparc64.go Loading commit data...
zsysnum_netbsd_386.go Loading commit data...
zsysnum_netbsd_amd64.go Loading commit data...
zsysnum_netbsd_arm.go Loading commit data...
zsysnum_openbsd_386.go Loading commit data...
zsysnum_openbsd_amd64.go Loading commit data...
zsysnum_openbsd_arm.go Loading commit data...
zsysnum_solaris_amd64.go Loading commit data...
ztypes_darwin_386.go Loading commit data...
ztypes_darwin_amd64.go Loading commit data...
ztypes_darwin_arm.go Loading commit data...
ztypes_darwin_arm64.go Loading commit data...
ztypes_dragonfly_amd64.go Loading commit data...
ztypes_freebsd_386.go Loading commit data...
ztypes_freebsd_amd64.go Loading commit data...
ztypes_freebsd_arm.go Loading commit data...
ztypes_linux_386.go Loading commit data...
ztypes_linux_amd64.go Loading commit data...
ztypes_linux_arm.go Loading commit data...
ztypes_linux_arm64.go Loading commit data...
ztypes_linux_mips.go Loading commit data...
ztypes_linux_mips64.go Loading commit data...
ztypes_linux_mips64le.go Loading commit data...
ztypes_linux_mipsle.go Loading commit data...
ztypes_linux_ppc64.go Loading commit data...
ztypes_linux_ppc64le.go Loading commit data...
ztypes_linux_s390x.go Loading commit data...
ztypes_linux_sparc64.go Loading commit data...
ztypes_netbsd_386.go Loading commit data...
ztypes_netbsd_amd64.go Loading commit data...
ztypes_netbsd_arm.go Loading commit data...
ztypes_openbsd_386.go Loading commit data...
ztypes_openbsd_amd64.go Loading commit data...
ztypes_openbsd_arm.go Loading commit data...
ztypes_solaris_amd64.go Loading commit data...