makesyscalls.sh (31627) | makesyscalls.sh (31778) |
---|---|
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.26 1997/11/18 03:34:39 peter Exp $ | 3# $Id: makesyscalls.sh,v 1.27 1997/12/08 09:00:47 jmg Exp $ |
4 5set -e 6 7# name of compat option: 8compat=COMPAT_43 9 10# output files: 11sysnames="syscalls.c" --- 61 unchanged lines hidden (view full) --- 73 "' 74 75 printf "/*\n * System call switch table.\n *\n" > sysinc 76 printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysinc 77 78 printf "/*\n * System call prototypes.\n *\n" > sysarg 79 printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysarg 80 | 4 5set -e 6 7# name of compat option: 8compat=COMPAT_43 9 10# output files: 11sysnames="syscalls.c" --- 61 unchanged lines hidden (view full) --- 73 "' 74 75 printf "/*\n * System call switch table.\n *\n" > sysinc 76 printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysinc 77 78 printf "/*\n * System call prototypes.\n *\n" > sysarg 79 printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysarg 80 |
81 printf "\n#ifdef %s\n\n", compat > syscompat | 81 printf "\n#include \"opt_compat.h\"\n#ifdef %s\n\n", compat > syscompat |
82 83 printf "/*\n * System call names.\n *\n" > sysnames 84 printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysnames 85 86 printf "/*\n * System call numbers.\n *\n" > syshdr 87 printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshdr 88 printf "/*\n * System call hiders.\n *\n" > syshide 89 printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshide 90 } 91 NR == 1 { 92 gsub("[$]Id: ", "", $0) 93 gsub(" [$]", "", $0) 94 95 printf " * created from%s\n */\n\n", $0 > sysinc 96 | 82 83 printf "/*\n * System call names.\n *\n" > sysnames 84 printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysnames 85 86 printf "/*\n * System call numbers.\n *\n" > syshdr 87 printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshdr 88 printf "/*\n * System call hiders.\n *\n" > syshide 89 printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshide 90 } 91 NR == 1 { 92 gsub("[$]Id: ", "", $0) 93 gsub(" [$]", "", $0) 94 95 printf " * created from%s\n */\n\n", $0 > sysinc 96 |
97 printf "\n#ifdef %s\n", compat > sysent | 97 printf "\n#include \"opt_compat.h\"\n#ifdef %s\n", compat > sysent |
98 printf "#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)\n" > sysent 99 printf("#else\n") > sysent 100 printf("#define compat(n, name) 0, (sy_call_t *)nosys\n") > sysent 101 printf("#endif\n\n") > sysent 102 printf("/* The casts are bogus but will do for now. */\n") > sysent 103 printf "struct sysent %s[] = {\n",switchname > sysent 104 105 printf " * created from%s\n */\n\n", $0 > sysarg --- 266 unchanged lines hidden --- | 98 printf "#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)\n" > sysent 99 printf("#else\n") > sysent 100 printf("#define compat(n, name) 0, (sy_call_t *)nosys\n") > sysent 101 printf("#endif\n\n") > sysent 102 printf("/* The casts are bogus but will do for now. */\n") > sysent 103 printf "struct sysent %s[] = {\n",switchname > sysent 104 105 printf " * created from%s\n */\n\n", $0 > sysarg --- 266 unchanged lines hidden --- |