01 2021 档案
摘要:参考博客https://www.cnblogs.com/jiangzhaowei/p/4193283.html #include <signal.h> #include <errno.h> #include <pthread.h> #include <unistd.h> #include <sys/
阅读全文
摘要:override var += -g #通过命令行传递的参数,不能覆盖var的值 sources = f1.c f2.c define hello @echo "test define" @echo "test define hello" endef test:foo $(call hello) #
阅读全文
摘要:#include <stdio.h> #include <stdarg.h> int foo(int flag, ...){ va_list ap; int value,test; if(flag == 1) { va_start(ap,flag); value=va_arg(ap,int); te
阅读全文
摘要:1 #include <stdio.h> 2 void (*p)(int); // <==>int a;变量的定义 3 void *f(int);//声明 4 5 void foo(int a) 6 { 7 printf("foo: %d\n", a); 8 } 9 10 int main() 11
阅读全文
摘要:因为initrd.img只是系统启动的一个虚拟磁盘而已,系统启动完成后就没有用处了,因此,我决定用busybox来完成一些必要的启动工作(用的是busybox-1.5.1,配置文件如下) cd /tmp mkdir initrd cd initrd mkdir dev proc sys lib mn
阅读全文