![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux-function
lyuncxw
这个作者很懒,什么都没留下…
展开
-
fcutl
功能描述:根据文件描述词来操作文件的特性。#include #include int fcntl(int fd, int cmd); int fcntl(int fd, int cmd, long arg); int fcntl(int fd, int cmd, struct flock *lock);[描述]fcntl()针对(文件)描述符提供控制。参数fd原创 2013-03-05 10:38:33 · 639 阅读 · 0 评论 -
gethostbyname 与 gethsotbyaddr
1.数据结构hostent和servent:1. struct hostent{2. char *h_name; /*official domain name of host */3. char **h_aliases; /* null-terminated array of domainnames */4. int h_addrtype; /* h原创 2013-03-03 19:31:25 · 538 阅读 · 0 评论