These types provide typesafe file descriptors along with auto-closing
file descriptors to ease interaction with system libraries. First
party code should always use these types in preference to raw
integers.
posix::FileDescriptor is implemented in terms of OpaqueValue (existing).
posix::UniqueFileDescriptor is implemented in terms of UniqueValue (new).
These types provide typesafe file descriptors along with auto-closing file descriptors to ease interaction with system libraries. First party code should always use these types in preference to raw integers.
posix::FileDescriptor is implemented in terms of OpaqueValue (existing). posix::UniqueFileDescriptor is implemented in terms of UniqueValue (new).