上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: /proc虚拟文件系统,因为其包含的文件和子目录并未存储于磁盘上,而是由内核在进程访问此类信息时动态创建而成。 /proc 各种系统信息 /proc/net 有关网络和套接字的状态信息 /proc/sys/fs 文件系统相关设置 /proc/sys/kernel 各种常规的内核设置 /proc/sy 阅读全文
posted @ 2022-04-07 20:52 东宫得臣 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 有一套比较旧的环境,BIND 9.8.2,开发反馈,dig ns . 居然没有glue record返回,甚是奇怪。 检查了配置文件,网上也查了很多,后来在官方网址找到了原因。 解释就是A/AAAA资源记录被丢掉了,导致根本没有glue record. 官方kb 原来是bind 9.8.2的版本bu 阅读全文
posted @ 2022-03-25 11:31 东宫得臣 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 直接先上man文档得到的结果: +[no]trace Toggle tracing of the delegation path from the root name servers for the name being looked up. Tracing is disabled by defau 阅读全文
posted @ 2022-03-25 10:41 东宫得臣 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: #include <unistd.h> #include <signal.h> #include <string.h> #include <sys/wait.h> #include <stdio.h> #define MAXLINE 100 static void sig_int(int); int 阅读全文
posted @ 2021-07-22 13:20 东宫得臣 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 对每个文件维护3个时间字段, st_atime 文件数据的最后访问时间(read) st_mtime 文件数据的最后修改时间(write) st_ctime i节点状态的最后更改时间(chmod、chown) 修改时间是文件内容最后一次被修改的时间,状态更改时间是该文件的i节点最后一次被修改的时间。 阅读全文
posted @ 2021-07-22 09:48 东宫得臣 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 一个简单的ls命令的实现: #include <stdio.h> #include <stdlib.h> #include <dirent.h> int main(int argc, char *argv[]) { DIR *dp; struct dirent *dirp; if(argc != 2 阅读全文
posted @ 2021-07-21 18:05 东宫得臣 阅读(66) 评论(0) 推荐(0) 编辑
摘要: Bounded data(有界的数据) A type of dataset that is finite in size. Unbounded data(无界的数据) A type of dataset that is infinite in size. Streaming system A typ 阅读全文
posted @ 2021-07-20 17:28 东宫得臣 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 服务器程序 #include <stdio.h> #include <sys/un.h> #include <sys/socket.h> #include <errno.h> #include <unistd.h> #define SV_SOCK_PATH "/tmp/us_xfr" #define 阅读全文
posted @ 2021-07-20 15:06 东宫得臣 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 函数体与函数调用相联系称为捆绑。晚捆绑又称为动态捆绑或运行时捆绑。为了引起晚捆绑,c++要求在基类中声明这个函数时使用virtual关键字。 不把析构函数设为虚函数是一个隐匿的错误,因为它常常不会对程序有直接的影响。但会不知不觉地引入存储器泄露。 #include <iostream> #inclu 阅读全文
posted @ 2021-07-15 10:55 东宫得臣 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 线程的主要优势在于,能够通过全局变量来共享信息。必须确保多个线程不会同时修改同一变量,或者某一线程不会读取正由 其他线程修改的变量。临界区是指访问某一共享资源的代码片段,并且这段代码的执行应为原子操作,亦即,同时访问同一共享 资源的其他线程不应中断该片段的执行。可以使用互斥量来保证对任意共享资源的原 阅读全文
posted @ 2021-07-15 09:26 东宫得臣 阅读(34) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页