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
50ec5c07
Kaydet (Commit)
50ec5c07
authored
Haz 26, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add flock; warn about lockdata system dependency when using fcntl.
üst
164c36b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
libfcntl.tex
Doc/lib/libfcntl.tex
+9
-1
libfcntl.tex
Doc/libfcntl.tex
+9
-1
No files found.
Doc/lib/libfcntl.tex
Dosyayı görüntüle @
50ec5c07
...
@@ -36,6 +36,12 @@ The module defines the following functions:
...
@@ -36,6 +36,12 @@ The module defines the following functions:
\code
{
IOCTL
}
.
\code
{
IOCTL
}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
flock
}{
fd
\,
op
}
Perform the lock operation
\var
{
op
}
on file descriptor
\var
{
fd
}
.
See the Unix manual for details. (On some systems, this function is
emulated using
\code
{
fcntl
}
.)
\end{funcdesc}
If the library modules
\code
{
FCNTL
}
or
\code
{
IOCTL
}
are missing, you
If the library modules
\code
{
FCNTL
}
or
\code
{
IOCTL
}
are missing, you
can find the opcodes in the C include files
\code
{
sys/fcntl
}
and
can find the opcodes in the C include files
\code
{
sys/fcntl
}
and
\code
{
sys/ioctl
}
. You can create the modules yourself with the h2py
\code
{
sys/ioctl
}
. You can create the modules yourself with the h2py
...
@@ -57,4 +63,6 @@ rv = fcntl(file.fileno(), FCNTL.F_SETLKW, lockdata)
...
@@ -57,4 +63,6 @@ rv = fcntl(file.fileno(), FCNTL.F_SETLKW, lockdata)
Note that in the first example the return value variable
\code
{
rv
}
will
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
hold an integer value; in the second example it will hold a string
value.
value. The structure lay-out for the
\var
{
lockadata
}
variable is
system dependent -- therefore using the
\code
{
flock()
}
call may be
better.
Doc/libfcntl.tex
Dosyayı görüntüle @
50ec5c07
...
@@ -36,6 +36,12 @@ The module defines the following functions:
...
@@ -36,6 +36,12 @@ The module defines the following functions:
\code
{
IOCTL
}
.
\code
{
IOCTL
}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
flock
}{
fd
\,
op
}
Perform the lock operation
\var
{
op
}
on file descriptor
\var
{
fd
}
.
See the Unix manual for details. (On some systems, this function is
emulated using
\code
{
fcntl
}
.)
\end{funcdesc}
If the library modules
\code
{
FCNTL
}
or
\code
{
IOCTL
}
are missing, you
If the library modules
\code
{
FCNTL
}
or
\code
{
IOCTL
}
are missing, you
can find the opcodes in the C include files
\code
{
sys/fcntl
}
and
can find the opcodes in the C include files
\code
{
sys/fcntl
}
and
\code
{
sys/ioctl
}
. You can create the modules yourself with the h2py
\code
{
sys/ioctl
}
. You can create the modules yourself with the h2py
...
@@ -57,4 +63,6 @@ rv = fcntl(file.fileno(), FCNTL.F_SETLKW, lockdata)
...
@@ -57,4 +63,6 @@ rv = fcntl(file.fileno(), FCNTL.F_SETLKW, lockdata)
Note that in the first example the return value variable
\code
{
rv
}
will
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
hold an integer value; in the second example it will hold a string
value.
value. The structure lay-out for the
\var
{
lockadata
}
variable is
system dependent -- therefore using the
\code
{
flock()
}
call may be
better.
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