From e3352c654d58ffba5951e14aa8972c4c6f17212b Mon Sep 17 00:00:00 2001 From: karl ding Date: Tue, 29 Sep 2020 22:05:40 -0700 Subject: [PATCH] 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 --- stdlib/3/fcntl.pyi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stdlib/3/fcntl.pyi b/stdlib/3/fcntl.pyi index acd48176c..7b94c6e94 100644 --- a/stdlib/3/fcntl.pyi +++ b/stdlib/3/fcntl.pyi @@ -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