summaryrefslogtreecommitdiff
path: root/linuxnamespaces/filedescriptor.py
AgeCommit message (Collapse)Author
28 hoursexpand use of FileDescriptor and add FileDescriptorLike type aliasHelmut Grohne
When accepting file descriptors, non-int objects with a fileno method are now generally accepted. When returning a file descriptor, a FileDescriptor instance is now returned.
2025-05-06FileDescriptor: add convenience wrapper for pidfd_openHelmut Grohne
2024-06-11fix formatting and spelling errorsHelmut Grohne
No functional changes.
2024-05-25add a FileDescriptor typeHelmut Grohne
It serves two main purposes. For one thing, it allows telling bare integers and file descriptors apart on a typing level similar to a NewType. For another it adds common methods to a file descriptor and enables closing it via a context manager.