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

Fred L. Drake fdrake@users.sourceforge.net
Wed, 11 Apr 2001 14:33:49 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv19132/lib

Modified Files:
	libfcntl.tex 
Log Message:

Fixed bug in example.
This closes SF bug #415522.

Also fix markup error in text following the example.


Index: libfcntl.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfcntl.tex,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** libfcntl.tex	2001/01/25 00:36:54	1.24
--- libfcntl.tex	2001/04/11 21:33:47	1.25
***************
*** 107,111 ****
  
  file = open(...)
! rv = fcntl(file.fileno(), FCNTL.O_NDELAY, 1)
  
  lockdata = struct.pack('hhllhh', FCNTL.F_WRLCK, 0, 0, 0, 0, 0)
--- 107,111 ----
  
  file = open(...)
! rv = fcntl(file.fileno(), FCNTL.F_SETFL, FCNTL.O_NDELAY)
  
  lockdata = struct.pack('hhllhh', FCNTL.F_WRLCK, 0, 0, 0, 0, 0)
***************
*** 113,117 ****
  \end{verbatim}
  
! Note that in the first example the return value variable \code{rv} will
  hold an integer value; in the second example it will hold a string
  value.  The structure lay-out for the \var{lockdata} variable is
--- 113,117 ----
  \end{verbatim}
  
! Note that in the first example the return value variable \var{rv} will
  hold an integer value; in the second example it will hold a string
  value.  The structure lay-out for the \var{lockdata} variable is