摘要: ####代码 #include <stdio.h> #include <sys/types.h> #include <dirent.h> #include <sys/stat.h> #include <pwd.h> #include <grp.h> #include <unistd.h> #incl 阅读全文
posted @ 2022-10-15 16:02 20201310寸头 阅读(49) 评论(0) 推荐(0) 编辑
摘要: ####代码 #include <stdio.h> #include <stdlib.h> #include <utmp.h> #include <fcntl.h> #include <unistd.h> #include <time.h> #define SHOWOST void showinfo 阅读全文
posted @ 2022-10-15 15:49 20201310寸头 阅读(26) 评论(0) 推荐(0) 编辑
摘要: ####ls 代码 #include <stdio.h> #include <dirent.h> #include <sys/types.h> void myls(char []); int main(int ac,char * av[]){ if (ac == 1) { myls("."); } 阅读全文
posted @ 2022-10-15 15:47 20201310寸头 阅读(164) 评论(0) 推荐(0) 编辑
摘要: ##《Unix/Linux系统编程》第七周学习笔记 ###并发进程 ####线程管理函数 #####pthread_create() int pthread_create (pthread_t *pthread_id, pthread_attr_t *attr, void *(*func)(void 阅读全文
posted @ 2022-10-15 13:38 20201310寸头 阅读(26) 评论(0) 推荐(0) 编辑