mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 04:46:44 -04:00
7ddbeae9ae08c6a06a59597f0c9edbc5ff2444ce
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 NetBSD'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: I536d6d2622f6fe9be3c1ed3beb266745fe4bfb6e Reviewed-on: https://go-review.googlesource.com/60970 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system. To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
[mirror] Go packages for low-level interaction with the operating system
15 MiB
Languages
Go
85.7%
Assembly
12.4%
Shell
1.7%
C
0.1%