makesyscalls.sh (14331) | makesyscalls.sh (18277) |
---|---|
1#! /bin/sh - 2# @(#)makesyscalls.sh 8.1 (Berkeley) 6/10/93 | 1#! /bin/sh - 2# @(#)makesyscalls.sh 8.1 (Berkeley) 6/10/93 |
3# $Id: makesyscalls.sh,v 1.16 1995/10/07 23:56:18 swallace Exp $ | 3# $Id: makesyscalls.sh,v 1.17 1996/03/02 19:38:10 peter Exp $ |
4 5set -e 6 7# name of compat option: 8compat=COMPAT_43 9 10# output files: 11sysnames="syscalls.c" --- 241 unchanged lines hidden (view full) --- 253 printf("};\n") > sysarg 254 } 255 else if($2 != "NOARGS" && $2 != "NOPROTO") 256 printf("struct\t%s {\n\tint dummy;\n};\n", \ 257 argalias) > sysarg 258 } 259 if ($2 != "NOPROTO" && (!nosys || funcname != "nosys") && \ 260 (!lkmnosys || funcname != "lkmnosys")) { | 4 5set -e 6 7# name of compat option: 8compat=COMPAT_43 9 10# output files: 11sysnames="syscalls.c" --- 241 unchanged lines hidden (view full) --- 253 printf("};\n") > sysarg 254 } 255 else if($2 != "NOARGS" && $2 != "NOPROTO") 256 printf("struct\t%s {\n\tint dummy;\n};\n", \ 257 argalias) > sysarg 258 } 259 if ($2 != "NOPROTO" && (!nosys || funcname != "nosys") && \ 260 (!lkmnosys || funcname != "lkmnosys")) { |
261 if (funcname == "exit") 262 printf("__dead ") > sysdcl 263 printf("%s\t%s __P((struct proc *, struct %s *, int []));\n", \ | 261 printf("%s\t%s __P((struct proc *, struct %s *, int []))", \ |
264 rettype, funcname, argalias) > sysdcl | 262 rettype, funcname, argalias) > sysdcl |
263 if (funcname == "exit") 264 printf(" __dead2") > sysdcl 265 printf(";\n") > sysdcl |
|
265 } 266 if (funcname == "nosys") 267 nosys = 1 268 if (funcname == "lkmnosys") 269 lkmnosys = 1 270 printf("\t{ %d, (sy_call_t *)%s },\t\t", \ 271 argc+bigargc, funcname) > sysent 272 if(length(funcname) < 11) --- 89 unchanged lines hidden --- | 266 } 267 if (funcname == "nosys") 268 nosys = 1 269 if (funcname == "lkmnosys") 270 lkmnosys = 1 271 printf("\t{ %d, (sy_call_t *)%s },\t\t", \ 272 argc+bigargc, funcname) > sysent 273 if(length(funcname) < 11) --- 89 unchanged lines hidden --- |