登 录
系统函数使用::来调用,所以close(fd)应该这样:
::close(fd);
其他函数亦然。
注意,别忘了加头文件:
#include <unistd.h> /*Unix 标准函数定义*/ #include <fcntl.h> /*文件控制定义*/
抱歉!评论已关闭.