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
2d218632
Kaydet (Commit)
2d218632
authored
Agu 29, 2000
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add support for FreeBSD-[45].
-- tg@FreeBSD.org
üst
e504c0c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
posixfile.py
Lib/posixfile.py
+2
-2
test_fcntl.py
Lib/test/test_fcntl.py
+1
-1
No files found.
Lib/posixfile.py
Dosyayı görüntüle @
2d218632
...
...
@@ -176,7 +176,7 @@ class _posixfile_:
import
sys
,
os
if
sys
.
platform
in
(
'netbsd1'
,
'openbsd2'
,
'freebsd2'
,
'freebsd3'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'bsdos2'
,
'bsdos3'
,
'bsdos4'
):
flock
=
struct
.
pack
(
'lxxxxlxxxxlhh'
,
\
l_start
,
l_len
,
os
.
getpid
(),
l_type
,
l_whence
)
...
...
@@ -192,7 +192,7 @@ class _posixfile_:
if
'?'
in
how
:
if
sys
.
platform
in
(
'netbsd1'
,
'openbsd2'
,
'freebsd2'
,
'freebsd3'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'bsdos2'
,
'bsdos3'
,
'bsdos4'
):
l_start
,
l_len
,
l_pid
,
l_type
,
l_whence
=
\
struct
.
unpack
(
'lxxxxlxxxxlhh'
,
flock
)
...
...
Lib/test/test_fcntl.py
Dosyayı görüntüle @
2d218632
...
...
@@ -17,7 +17,7 @@ if verbose:
print
'Status from fnctl with O_NONBLOCK: '
,
rv
if
sys
.
platform
in
(
'netbsd1'
,
'freebsd2'
,
'freebsd3'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'bsdos2'
,
'bsdos3'
,
'bsdos4'
,
'openbsd'
,
'openbsd2'
):
lockdata
=
struct
.
pack
(
'lxxxxlxxxxlhh'
,
0
,
0
,
0
,
FCNTL
.
F_WRLCK
,
0
)
...
...
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