source: trunk/essentials/dev-lang/perl/h2pl/getioctlsizes@ 3296

Last change on this file since 3296 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 264 bytes
Line 
1#!/usr/bin/perl
2
3open (IOCTLS,'/usr/include/sys/ioctl.h') || die "ioctl open failed";
4
5while (<IOCTLS>) {
6 if (/^\s*#\s*define\s+\w+\s+_IO(R|W|WR)\('?\w+'?,\s*\w+,\s*([^)]+)/) {
7 $need{$2}++;
8 }
9}
10
11foreach $key ( sort keys %need ) {
12 print $key,"\n";
13}
Note: See TracBrowser for help on using the repository browser.