summaryrefslogtreecommitdiffstats
path: root/sys/conf/majors.awk
blob: d9d006de6d781c11ac29fe899364e05fd48f901a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $FreeBSD$
/^#/	{ next }
NF == 1 { next }
$2 == "??" { next }
$2 == "lkm" { next }
	{
	a[$1] = $1;
	}
END	{
	print "unsigned char reserved_majors[256] = {"
	for (i = 0; i < 256; i += 16) {
		for (j = 0; j < 16; j++) {
			printf("%3d", a[i + j]);
			if (i + j != 255)
				printf(",");
		}
		print ""
	}
	print "};"
	}

OpenPOWER on IntegriCloud