python/dist/src/Doc/lib libos.tex,1.166,1.167
![](https://secure.gravatar.com/avatar/3c39398cd36c95c7971d539d98abfae5.jpg?s=120&d=mm&r=g)
Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17617 Modified Files: libos.tex Log Message: Explain what file descriptors are; this change has been sitting in my tree for a while Index: libos.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v retrieving revision 1.166 retrieving revision 1.167 diff -u -d -r1.166 -r1.167 --- libos.tex 9 Aug 2005 15:24:05 -0000 1.166 +++ libos.tex 31 Aug 2005 13:50:17 -0000 1.167 @@ -427,8 +427,15 @@ \subsection{File Descriptor Operations \label{os-fd-ops}} -These functions operate on I/O streams referred to -using file descriptors. +These functions operate on I/O streams referenced using file +descriptors. + +File descriptors are small integers corresponding to a file that has +been opened by the current process. For example, standard input is +usually file descriptor 0, standard output is 1, and standard error is +2. Further files opened by a process will then be assigned 3, 4, 5, +and so forth. The name ``file descriptor'' is slightly deceptive; on +{\UNIX} platforms, sockets and pipes are also referenced by file descriptors. \begin{funcdesc}{close}{fd}
participants (1)
-
akuchling@users.sourceforge.net