opendir,readdir,closedir,
stat()查询文件状态
open(), O_TRUNC这个Flag会把打开的文件清零...
文件锁:fcntl, F_GETLK , F_SETLK:
http://man7.org/linux/man-pages/man2/fcntl.2.html
http://blog.chinaunix.net/uid-20775448-id-4009263.html
opendir,readdir,closedir,
stat()查询文件状态
open(), O_TRUNC这个Flag会把打开的文件清零...
文件锁:fcntl, F_GETLK , F_SETLK:
http://man7.org/linux/man-pages/man2/fcntl.2.html
http://blog.chinaunix.net/uid-20775448-id-4009263.html