File: freebsd4_header.pl

package info (click to toggle)
gps 0.9.4-1.woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 964 kB
  • ctags: 928
  • sloc: cpp: 10,822; sh: 381; makefile: 307; ansic: 227; perl: 17
file content (24 lines) | stat: -rwxr-xr-x 586 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl -w

print <<EOF;
/* 
   This file was generated automatically by the freebsd4_header.pl
   Perl script that is distributed with gPS. The code below is NOT
   distributed with gPS, but retrieved from YOUR FreeBSD system on
   compile time. This means that gPS is still fully GNU GPL.

   Please be careful not to redistribute this file along with gPS
   (freebsd4_vmmap.h) as it may cause serious licensing problems.

   Felipe Bergo -- bergo (at) seul.org
   September 2000
*/

EOF

while(<STDIN>) {
 s/\(void \*\)0/0/g;
 s/\(void \*\)/(struct proc \*)/g;
 print $_;
}