摘要: --从github上下载的Linux内核中是没有这个文件的,在具体的操作系统中才能找到这个文件, 可以用locate命令来定位 --包含hostent结构 阅读全文
posted @ 2019-08-14 20:17 boboyou 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 可以确定一个文件的位置,非常好用 阅读全文
posted @ 2019-08-14 20:14 boboyou 阅读(123) 评论(0) 推荐(0) 编辑
摘要: union中的各个字段共享同一块内存区域 typedef union { undigned short int value; unfigned char bytes[2]; }to; to typeorder; typeorder.value = 0xabcd; 那么: bytes[0] = 0xc 阅读全文
posted @ 2019-08-14 16:40 boboyou 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 1、ssize_t: --typedef signed long ssize_t--在tools/include/noblic中有定义 --In short, ssize_t is the same as size_t, but is a signed type - read ssize_t as 阅读全文
posted @ 2019-08-14 14:57 boboyou 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1、in.h: An implementation of the TCP/IP protocol suite for the LINUX operating system. INET is implemented using the BSD Socket interface as the means 阅读全文
posted @ 2019-08-14 10:30 boboyou 阅读(225) 评论(0) 推荐(0) 编辑