You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As suggested in this comment here, an api to convert FDs to Windows handle can be useful for consumers of libbpf. An example is to use the handle for various Windows APIs that need a handle and do not operate on FDs.
The crt function _get_osfhandle depends on crt version used by the lib and can cause an exception if used from a different version of msvcrt than the one used by libbpf.
Proposed solution
Proposed solution is to export a function : ebpf_get_handle_from_fd from libbpf that can wrap the _get_osfhandle.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the feature you'd like supported
As suggested in this comment here, an api to convert FDs to Windows handle can be useful for consumers of libbpf. An example is to use the handle for various Windows APIs that need a handle and do not operate on FDs.
The crt function
_get_osfhandle
depends on crt version used by the lib and can cause an exception if used from a different version of msvcrt than the one used by libbpf.Proposed solution
Proposed solution is to export a function :
ebpf_get_handle_from_fd
from libbpf that can wrap the_get_osfhandle
.Additional context
No response
The text was updated successfully, but these errors were encountered: