summaryrefslogtreecommitdiff
path: root/linuxnamespaces/filedescriptor.py
AgeCommit message (Collapse)Author
23 hoursagree a bit with black's formatting recommendationsHelmut Grohne
24 hoursfix return type of FileDescriptor.filenoHelmut Grohne
Fixes: 30a111639ce6 ("expand use of FileDescriptor and add FileDescriptorLike type alias")
24 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.