Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b9fc9e6

Browse files
committed
Merge pull request #2606 from nguerrera/add-errno-shim
Add errno shim (+ existing shim cleanup precursor)
2 parents 09d712f + e7be304 commit b9fc9e6

File tree

49 files changed

+1018
-715
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1018
-715
lines changed

src/Common/src/Interop/FreeBSD/Interop.Errors.cs

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/Common/src/Interop/Linux/Interop.Errors.cs

Lines changed: 0 additions & 113 deletions
This file was deleted.

src/Common/src/Interop/Linux/libc/Interop.inotify.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ internal static int inotify_rm_watch(int fd, int wd)
2222
int result = Interop.libc.inotify_rm_watch_extern(fd, wd);
2323
if (result < 0)
2424
{
25-
int hr = System.Runtime.InteropServices.Marshal.GetLastWin32Error();
26-
if (hr == Interop.Errors.EINVAL)
25+
Error hr = Interop.Sys.GetLastError();
26+
if (hr == Interop.Error.EINVAL)
2727
{
2828
// This specific case means that there was a deleted event in the queue that was not processed
2929
// so this call is expected to fail since the WatchDescriptor is no longer valid and was cleaned

0 commit comments

Comments
 (0)