IO
来源:互联网 发布:qq使用的端口号 编辑:程序博客网 时间:2024/06/10 04:41
一 、 unbuffered IO
1. file descriptor
In computer programming, a file descriptor is an abstract indicator for accessing a file. The term is generally used in POSIX operating systems. In Microsoft Windows terminology and in the context of the C standard I/O library, "file handle" is preferred, though the latter case is technically a different object (see below).
In POSIX, a file descriptor is an integer, specifically of the C type int. There are 3 standard POSIX file descriptors which presumably every process (save perhaps a daemon) should expect to have:
Generally, a file descriptor is an index for an entry in a kernel-resident data structure containing the details of all open files. In POSIX this data structure is called a file descriptor table, and each process has its own file descriptor table. The user application passes the abstract key to the kernel through a system call, and the kernel will access the file on behalf of the application, based on the key. The application itself cannot read or write the file descriptor table directly.
In Unix-like systems, file descriptors can refer to files, directories, block or character devices (also called "special files"), sockets, FIFOs (also called named pipes), or unnamed pipes.
The FILE * file handle in the C standard I/O library routines is technically a pointer to a data structure managed by those library routines; one of those structures usually includes an actual low level file descriptor for the object in question on Unix-like systems. Since file handle refers to this additional layer, it is not interchangeable with file descriptor.
- IO
- IO
- io
- IO
- io
- IO
- io
- IO
- IO
- IO
- io
- IO
- IO
- IO
- IO
- IO
- IO
- IO
- JSP引擎的工作原理
- 转载-虚拟机设置NAT,使得FC能够上网--自chenxiangtao@126的博客
- mysql 按照 汉字的第一个拼音排序
- linux终端
- Android Display System --- Surface Flinger
- IO
- ARM MMU工作原理剖析
- 实习感言
- 本文介绍在VC 6.0中编译和使用OpenSSL的过程
- 奇怪的PB
- Air 连接 sqlite 中文乱码
- 一个水晶报表问题——水晶报表怎么制作一张A4纸发票三联打印?不是套打
- Vc中关于DC(设备环境函数(Device Context))的理解
- html5资源