fcntl: Add fcntl.F_OFD_XXXX constants (#4585)

Add support for the following open file description lock constants:

  - F_OFD_GETLK
  - F_OFD_SETLK
  - F_OFD_SETLKW
This commit is contained in:
karl ding
2020-09-29 22:05:40 -07:00
committed by GitHub
parent 353a65071b
commit e3352c654d

View File

@@ -1,3 +1,4 @@
import sys
from _typeshed import FileDescriptorLike
from array import array
from typing import Any, Union, overload
@@ -33,6 +34,10 @@ F_SETLK: int
F_SETLK64: int
F_SETLKW: int
F_SETLKW64: int
if sys.version_info >= (3, 9) and sys.platform == "linux":
F_OFD_GETLK: int
F_OFD_SETLK: int
F_OFD_SETLKW: int
F_SETOWN: int
F_SETSIG: int
F_SHLCK: int