[Python-checkins] CVS: python/dist/src/Doc/lib libfcntl.tex,1.22,1.23

Fred L. Drake python-dev@python.org
Wed, 2 Aug 2000 13:53:53 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv15381/lib

Modified Files:
	libfcntl.tex 
Log Message:

Rob Hooft <rob@hooft.net>:
Description of fcntl():  Added description of what can go wrong.


Index: libfcntl.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfcntl.tex,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** libfcntl.tex	2000/04/03 20:13:53	1.22
--- libfcntl.tex	2000/08/02 20:53:51	1.23
***************
*** 31,36 ****
    data is copied to a buffer whose address is passed to the C
    \cfunction{fcntl()} call.  The return value after a successful call
!   is the contents of the buffer, converted to a string object.  In
!   case the \cfunction{fcntl()} fails, an \exception{IOError} is
    raised.
  \end{funcdesc}
--- 31,42 ----
    data is copied to a buffer whose address is passed to the C
    \cfunction{fcntl()} call.  The return value after a successful call
!   is the contents of the buffer, converted to a string object.  The length
!   of the returned string will be the same as the length of the \var{arg} 
!   argument.  This is limited to 1024 bytes.  If the information returned
!   in the buffer by the operating system is larger than 1024 bytes, 
!   this is most likely to result in a segmentation violation or a more
!   subtle data corruption.
! 
!   If the \cfunction{fcntl()} fails, an \exception{IOError} is
    raised.
  \end{funcdesc}