- 博客(2)
- 收藏
- 关注
原创 fcntl函数的SET用法
当修改 file descriptor flag 或者 open file status flag 的时候必须小心处理。需要先获取现有的 flag 按照需要修改后再设置新的flag。不要直接使用F_SETFD或者F_SETFL,否则会将原flag为1的位重置为0。比如设置 file status flag 可以这样用:void set_fl(int fd, int flags){ int ...
2019-11-30 16:32:25
253
转载 File Descriptor, File Table Entry and i-node Entry
What If Two Processes Write to the Same File SimultaneouslyWhat if your open the same file in several processes and you write to it simultaneously? What is the result? Do these process share the same...
2019-11-30 16:12:04
376
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人