mahkoh/uapi

Impl std::os::fd traits for OwnedFD

Closed this issue · 2 comments

std includes several file-descriptor-related traits that OwnedFD ought to implement.

Alternatively, use std::os::fd::OwnedFd and std::os::fd::BorrowedFd instead of uapi's custom implementations.

mahkoh commented

std includes several file-descriptor-related traits that OwnedFD ought to implement.

Please create a PR.

Alternatively, use std::os::fd::OwnedFd and std::os::fd::BorrowedFd instead of uapi's custom implementations.

The APIs of these std types are very different from the uapi types.

These traits are now implemented.