-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Add os.NODEV #138712
Copy link
Copy link
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
NODEVis not a part of Posix, but it is defined as(dev_t)-1on many systems (in particularly, on Linux, FreeBSD, NetBSD, OpenBSD, OpenIndiana). It is used to denote non-existing or undefined value fordev_tvalues.On Linux, FreeBSD and OpenIndiana
major(NODEV),minor(NODEV)andmakedev(NODEV, NODEV)returnNODEV. Unfortunately, this is not so on NetBSD and OpenBSD, but anyway it can be useful.Linked PRs