Implement {dev,rdev}_{major,minor}