derek-will / SocketCANSharp

.NET managed wrapper for SocketCAN on Linux
BSD 3-Clause "New" or "Revised" License
54 stars 13 forks source link

Add simple shortcut to get errno #18

Closed derek-will closed 2 years ago

derek-will commented 2 years ago

Currently have to call System.Runtime.InteropServices.Marshal.GetLastWin32Error() to retrieve the errno associated with a failed function call.

A simple and Linux-friendly facade would add value.