Thread unix major number ermitteln
(7 answers)
Opened by bora99 at 2011-08-30 18:07 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 #!/usr/bin/perl use strict; use warnings; use File::stat; my $st=stat("/dev/null"); printf "major: %d, minor: %d\n", $st->rdev >> 8, $st->rdev & 0xFF; __END__ major: 1, minor: 3 |