mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 05:11:09 +08:00
stdlib: Add os.copy_file_range(src, dst, count)
This commit is contained in:
committed by
Jelle Zijlstra
parent
0978ef5c60
commit
352f5c3237
@@ -1021,6 +1021,9 @@ if sys.version_info >= (3, 8):
|
||||
MFD_HUGE_2GB: int
|
||||
MFD_HUGE_16GB: int
|
||||
def memfd_create(name: str, flags: int = ...) -> int: ...
|
||||
def copy_file_range(
|
||||
src: int, dst: int, count: int, offset_src: int | None = ..., offset_dst: int | None = ...
|
||||
) -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
def waitstatus_to_exitcode(status: int) -> int: ...
|
||||
|
||||
@@ -303,6 +303,7 @@ if sys.platform != "win32":
|
||||
MFD_HUGE_MASK as MFD_HUGE_MASK,
|
||||
MFD_HUGE_SHIFT as MFD_HUGE_SHIFT,
|
||||
MFD_HUGETLB as MFD_HUGETLB,
|
||||
copy_file_range as copy_file_range,
|
||||
memfd_create as memfd_create,
|
||||
)
|
||||
if sys.version_info >= (3, 7):
|
||||
|
||||
Reference in New Issue
Block a user