ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/gendef0
(Generate patch)

Comparing IO-AIO/gendef0 (file contents):
Revision 1.2 by root, Sat Jan 25 00:15:52 2014 UTC vs.
Revision 1.3 by root, Tue Dec 29 15:16:28 2020 UTC

10/* GENERATED FILE */ 10/* GENERATED FILE */
11/* use ./gendef0 to regenerate this file */ 11/* use ./gendef0 to regenerate this file */
12EOF 12EOF
13 13
14while (<>) { 14while (<>) {
15 if (/\/\*GENDEF0_SYSCALL\((.*),(.*)\)\*\//) {
16 my ($syscall, $linux) = ($1, $2);
17 print <<EOF;
18#if HAVE_SYSCALL
19# if __linux__ && !defined(SYS_$syscall)
20# define SYS_$syscall $linux
21# endif
22#else
23# undef SYS_$syscall
24#endif
25#ifndef SYS_$syscall
26# define SYS_$syscall -1
27#endif
28EOF
29 }
30
15 if (/^\s*const_iv\s*\((\S+)\)\s*$/ || /^\s*const_niv\s*\([^,]+,\s*(\S+)\)\s*$/) { 31 if (/^\s*const_iv\s*\((\S+)\)\s*$/ || /^\s*const_niv\s*\([^,]+,\s*(\S+)\)\s*$/) {
16 print "#ifndef $1\n", 32 print "#ifndef $1\n",
17 "#define $1 0\n", 33 "#define $1 0\n",
18 "#endif\n"; 34 "#endif\n";
19 } 35 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines