~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/fcntl.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
 
97
97
   Perform the lock operation *op* on file descriptor *fd* (file objects providing
98
98
   a :meth:`fileno` method are accepted as well). See the Unix manual
99
 
   :manpage:`flock(3)` for details.  (On some systems, this function is emulated
 
99
   :manpage:`flock(2)` for details.  (On some systems, this function is emulated
100
100
   using :cfunc:`fcntl`.)
101
101
 
102
102
 
151
151
 
152
152
   Module :mod:`os`
153
153
      If the locking flags :const:`O_SHLOCK` and :const:`O_EXLOCK` are present
154
 
      in the :mod:`os` module, the :func:`os.open` function provides a more
155
 
      platform-independent alternative to the :func:`lockf` and :func:`flock`
156
 
      functions.
 
154
      in the :mod:`os` module (on BSD only), the :func:`os.open` function
 
155
      provides an alternative to the :func:`lockf` and :func:`flock` functions.
157
156