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
8cbb5b66
Unverified
Kaydet (Commit)
8cbb5b66
authored
May 31, 2019
tarafından
Christian Heimes
Kaydeden (comit)
GitHub
May 31, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-26835: Add file sealing constants to fcntl (GH-13694)
Co-authored-by:
nanjekyejoannah
<
nanjekyejoannah@gmail.com
>
üst
ffed76b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
fcntl.rst
Doc/library/fcntl.rst
+4
-0
2019-05-31-11-33-11.bpo-26835.xGbUX0.rst
...S.d/next/Library/2019-05-31-11-33-11.bpo-26835.xGbUX0.rst
+1
-0
fcntlmodule.c
Modules/fcntlmodule.c
+9
-1
No files found.
Doc/library/fcntl.rst
Dosyayı görüntüle @
8cbb5b66
...
@@ -28,6 +28,10 @@ descriptor.
...
@@ -28,6 +28,10 @@ descriptor.
Operations in this module used to raise an :exc:`IOError` where they now
Operations in this module used to raise an :exc:`IOError` where they now
raise an :exc:`OSError`.
raise an :exc:`OSError`.
.. versionchanged:: 3.8
The fcntl module now contains ``F_ADD_SEALS``, ``F_GET_SEALS``, and
``F_SEAL_*`` constants for sealing of :func:`os.memfd_create` file
descriptors.
The module defines the following functions:
The module defines the following functions:
...
...
Misc/NEWS.d/next/Library/2019-05-31-11-33-11.bpo-26835.xGbUX0.rst
0 → 100644
Dosyayı görüntüle @
8cbb5b66
The fcntl module now contains file sealing constants for sealing of memfds.
Modules/fcntlmodule.c
Dosyayı görüntüle @
8cbb5b66
...
@@ -620,7 +620,15 @@ all_ins(PyObject* m)
...
@@ -620,7 +620,15 @@ all_ins(PyObject* m)
if
(
PyModule_AddIntMacro
(
m
,
I_PLINK
))
return
-
1
;
if
(
PyModule_AddIntMacro
(
m
,
I_PLINK
))
return
-
1
;
if
(
PyModule_AddIntMacro
(
m
,
I_PUNLINK
))
return
-
1
;
if
(
PyModule_AddIntMacro
(
m
,
I_PUNLINK
))
return
-
1
;
#endif
#endif
#ifdef F_ADD_SEALS
/* Linux: file sealing for memfd_create() */
if
(
PyModule_AddIntMacro
(
m
,
F_ADD_SEALS
))
return
-
1
;
if
(
PyModule_AddIntMacro
(
m
,
F_GET_SEALS
))
return
-
1
;
if
(
PyModule_AddIntMacro
(
m
,
F_SEAL_SEAL
))
return
-
1
;
if
(
PyModule_AddIntMacro
(
m
,
F_SEAL_SHRINK
))
return
-
1
;
if
(
PyModule_AddIntMacro
(
m
,
F_SEAL_GROW
))
return
-
1
;
if
(
PyModule_AddIntMacro
(
m
,
F_SEAL_WRITE
))
return
-
1
;
#endif
return
0
;
return
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