Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
82e00d63
Kaydet (Commit)
82e00d63
authored
Ock 25, 2001
tarafından
Sjoerd Mullender
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Let's keep things portable to non GCC compilers, please.
You can only use mult-line strings in C if each line ends in \.
üst
517ce231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
fcntlmodule.c
Modules/fcntlmodule.c
+22
-22
No files found.
Modules/fcntlmodule.c
Dosyayı görüntüle @
82e00d63
...
...
@@ -262,28 +262,28 @@ fcntl_lockf(PyObject *self, PyObject *args)
}
static
char
lockf_doc
[]
=
"lockf (fd, operation, length=0, start=0, whence=0)
This is essentially a wrapper around the fcntl() locking calls. fd is the
file descriptor of the file to lock or unlock, and operation is one of the
following values:
LOCK_UN - unlock
LOCK_SH - acquire a shared lock
LOCK_EX - acquire an exclusive lock
When operation is LOCK_SH or LOCK_EX, it can also be bit-wise OR'd with
LOCK_NB to avoid blocking on lock acquisition. If LOCK_NB is used and the
lock cannot be acquired, an IOError will be raised and the exception will
have an errno attribute set to EACCES or EAGAIN (depending on the operating
system -- for portability, check for either value).
length is the number of bytes to lock, with the default meaning to lock to
EOF. start is the byte offset, relative to whence, to that the lock
starts. whence is as with fileobj.seek(), specifically:
0 - relative to the start of the file (SEEK_SET)
1 - relative to the current buffer position (SEEK_CUR)
"lockf (fd, operation, length=0, start=0, whence=0)
\n
\
\n
\
This is essentially a wrapper around the fcntl() locking calls. fd is the
\n
\
file descriptor of the file to lock or unlock, and operation is one of the
\n
\
following values:
\n
\
\n
\
LOCK_UN - unlock
\n
\
LOCK_SH - acquire a shared lock
\n
\
LOCK_EX - acquire an exclusive lock
\n
\
\n
\
When operation is LOCK_SH or LOCK_EX, it can also be bit-wise OR'd with
\n
\
LOCK_NB to avoid blocking on lock acquisition. If LOCK_NB is used and the
\n
\
lock cannot be acquired, an IOError will be raised and the exception will
\n
\
have an errno attribute set to EACCES or EAGAIN (depending on the operating
\n
\
system -- for portability, check for either value).
\n
\
\n
\
length is the number of bytes to lock, with the default meaning to lock to
\n
\
EOF. start is the byte offset, relative to whence, to that the lock
\n
\
starts. whence is as with fileobj.seek(), specifically:
\n
\
\n
\
0 - relative to the start of the file (SEEK_SET)
\n
\
1 - relative to the current buffer position (SEEK_CUR)
\n
\
2 - relative to the end of the file (SEEK_END)"
;
/* List of functions */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment