main.c
来自「xen 3.2.2 源码」· C语言 代码 · 共 40 行
C
40 行
#include <stdio.h>#include <errno.h>#include <assert.h>#include <stdlib.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <libaio.h>#if defined(__i386__)#define KERNEL_RW_POINTER ((void *)0xc0010000)#else//#warning Not really sure where kernel memory is. Guessing.#define KERNEL_RW_POINTER ((void *)0xffffffffc0010000)#endifchar test_name[] = TEST_NAME;#include TEST_NAMEint main(void){ int res;#if defined(SETUP) SETUP;#endif res = test_main(); printf("test %s completed %s.\n", test_name, res ? "FAILED" : "PASSED" ); fflush(stdout); return res ? 1 : 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?