[APUE2nd学习笔记]Ch3. File I/O

trrrr 2006-03-21 11:21:23
unbuffered I/O

File descriptor: 0, 1, 2

open: returns the lowest-numbered unused FD
creat
close
lseek: could return negative number, file's offset can be larger than its current size(hole)
read
write

I/O efficiency: bufsize=4096

file descriptor: file descriptor flag, a pointer to a file table entry
file table entry: file status flags, current offset, a pointer to v-node table entry

pread, pwrite
dup, dup2
sync, fsync, fdatasync(delayed write)
fcntl
ioctl

/dev/fd/n, /dev/stdin, /dev/stdout, /dev/stderr


...全文
79 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧