Juniper / ebplane

eBPF based dataplane prototypes
Apache License 2.0
23 stars 4 forks source link

Implement posix::FileDescriptor and posix::UniqueFileDescriptor #27

Closed ghost closed 5 years ago

ghost commented 5 years ago

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).