| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: makesyscalls.sh,v 1.125 2012/08/03 18:08:01 matt Exp $ | | 1 | # $NetBSD: makesyscalls.sh,v 1.126 2012/09/20 17:46:21 pooka Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou | | 3 | # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # | | 5 | # |
6 | # Redistribution and use in source and binary forms, with or without | | 6 | # Redistribution and use in source and binary forms, with or without |
7 | # modification, are permitted provided that the following conditions | | 7 | # modification, are permitted provided that the following conditions |
8 | # are met: | | 8 | # are met: |
9 | # 1. Redistributions of source code must retain the above copyright | | 9 | # 1. Redistributions of source code must retain the above copyright |
10 | # notice, this list of conditions and the following disclaimer. | | 10 | # notice, this list of conditions and the following disclaimer. |
11 | # 2. Redistributions in binary form must reproduce the above copyright | | 11 | # 2. Redistributions in binary form must reproduce the above copyright |
12 | # notice, this list of conditions and the following disclaimer in the | | 12 | # notice, this list of conditions and the following disclaimer in the |
13 | # documentation and/or other materials provided with the distribution. | | 13 | # documentation and/or other materials provided with the distribution. |
14 | # 3. All advertising materials mentioning features or use of this software | | 14 | # 3. All advertising materials mentioning features or use of this software |
| @@ -954,26 +954,27 @@ END { | | | @@ -954,26 +954,27 @@ END { |
954 | while (syscall < nsysent) { | | 954 | while (syscall < nsysent) { |
955 | printf("\t{ 0, 0, 0,\n\t %s },\t\t\t/* %d = filler */\n", \ | | 955 | printf("\t{ 0, 0, 0,\n\t %s },\t\t\t/* %d = filler */\n", \ |
956 | sys_nosys, syscall) > sysent | | 956 | sys_nosys, syscall) > sysent |
957 | printf("\t{ 0, 0, SYCALL_NOSYS,\n\t %s },\t\t/* %d = filler */\n", \ | | 957 | printf("\t{ 0, 0, SYCALL_NOSYS,\n\t %s },\t\t/* %d = filler */\n", \ |
958 | "(sy_call_t *)rump_enosys", syscall) > rumpsysent | | 958 | "(sy_call_t *)rump_enosys", syscall) > rumpsysent |
959 | printf("\t/* %3d */\t\"# filler\",\n", syscall) \ | | 959 | printf("\t/* %3d */\t\"# filler\",\n", syscall) \ |
960 | > sysnamesbottom | | 960 | > sysnamesbottom |
961 | syscall++ | | 961 | syscall++ |
962 | } | | 962 | } |
963 | } | | 963 | } |
964 | printf("};\n") > sysent | | 964 | printf("};\n") > sysent |
965 | printf("};\n") > rumpsysent | | 965 | printf("};\n") > rumpsysent |
966 | printf("CTASSERT(__arraycount(rump_sysent) == SYS_NSYSENT);\n") > rumpsysent | | 966 | printf("CTASSERT(__arraycount(rump_sysent) == SYS_NSYSENT);\n") > rumpsysent |
| | | 967 | printf("__strong_alias(sysent,rump_sysent);\n") > rumpsysent |
967 | printf("#endif /* RUMP_CLIENT */\n") > rumpsysent | | 968 | printf("#endif /* RUMP_CLIENT */\n") > rumpsysent |
968 | if (haverumpcalls) | | 969 | if (haverumpcalls) |
969 | printf("#endif /* !RUMP_CLIENT */\n") > sysprotos | | 970 | printf("#endif /* !RUMP_CLIENT */\n") > sysprotos |
970 | printf("};\n") > sysnamesbottom | | 971 | printf("};\n") > sysnamesbottom |
971 | printf("#define\t%sMAXSYSCALL\t%d\n", constprefix, maxsyscall) > sysnumhdr | | 972 | printf("#define\t%sMAXSYSCALL\t%d\n", constprefix, maxsyscall) > sysnumhdr |
972 | if (nsysent) | | 973 | if (nsysent) |
973 | printf("#define\t%sNSYSENT\t%d\n", constprefix, nsysent) > sysnumhdr | | 974 | printf("#define\t%sNSYSENT\t%d\n", constprefix, nsysent) > sysnumhdr |
974 | } ' | | 975 | } ' |
975 | | | 976 | |
976 | cat $sysprotos >> $sysarghdr | | 977 | cat $sysprotos >> $sysarghdr |
977 | echo "#endif /* _${constprefix}SYSCALL_H_ */" >> $sysnumhdr | | 978 | echo "#endif /* _${constprefix}SYSCALL_H_ */" >> $sysnumhdr |
978 | echo "#endif /* _${constprefix}SYSCALLARGS_H_ */" >> $sysarghdr | | 979 | echo "#endif /* _${constprefix}SYSCALLARGS_H_ */" >> $sysarghdr |
979 | printf "\n#endif /* _RUMP_RUMP_SYSCALLS_H_ */\n" >> $rumpprotos | | 980 | printf "\n#endif /* _RUMP_RUMP_SYSCALLS_H_ */\n" >> $rumpprotos |