Plan 9 from Bell Labs’s /usr/web/sources/contrib/rsc/linuxemu/systab.awk

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/^#/ { next; }
NF == 1 { f[nf++] = $0; }

END {
	printf("/* this file mechanically generated; do not edit */\n");

	printf("#include <u.h>\n");
	printf("#include <libc.h>\n");
	printf("#include \"linux.h\"\n");
	printf("#include \"linuxsys.h\"\n");
	printf("\n");
	for(i=0; i<nf; i++) {
		printf("SYSCALL(sys_%s);\n", f[i]);
	}
	printf("\n");
	printf("Syscall syscalltab[] = {\n");
	for(i=0; i<nf; i++) {
		printf("[L%s] sys_%s,\n", f[i], f[i]);
	}
	printf("};\n");
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.