摘要:
一、读取/etc/hosts 几个函数头文件1.void sethostent(int stayopen);//开打/etc/hosts 配置文件2.struct hostent * gethostent(void);//读取配置文件3.void enthostent(void);//关闭 /etc/hosts 文件二、读取/etc/protocols文件的几个函数1.struct protoent *getprotobyname(cosnt char *name);struct protent{ char *p_name; char **p_aliases; int p_proto; ... 阅读全文