2017年1月20日
摘要: #include <sys/types.h> #include <utime.h> int utime(const char *filename, const struct utimbuf *times); #include <sys/time.h> int utimes(const char *f 阅读全文
posted @ 2017-01-20 17:16 邶风 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.csdn.net/a_ran/article/details/43562429 int truncate(const char *path, off_t length); int ftruncate(int fd, off_t length); 将文件大小改变为参数le 阅读全文
posted @ 2017-01-20 16:51 邶风 阅读(9511) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.eefocus.com/ayayayaya/blog/10-07/193194_0d80b.html 在我们学习IO的时候,曾经利用文件IO函数,标准IO函数都实现了对文件的拷贝,那么在我们学习过进程间通信后,就可以创建多个进程来完成对同一个文件的读写。例如让父进程写文件 阅读全文
posted @ 2017-01-20 16:06 邶风 阅读(7134) 评论(0) 推荐(0) 编辑