Skip to content

Commit

Permalink
Set struct layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Aug 15, 2023
1 parent dd13f5a commit 5efacb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ enum OSX_LockType : short
/// <summary>
/// Flock structure on OSX. Fields are in a different order than Mono.Posix.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
struct OSX_Flock
{

Expand Down Expand Up @@ -448,6 +449,8 @@ enum OSX_Errno

EAGAIN = 35,
EACCES = 13,
EINTR = 4,
EDEADLK = 11,

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ public static long size(object self, object fd)
/// <returns></returns>
[DllImport("kernel32", SetLastError = true)]
static extern unsafe int UnlockFileEx(SafeFileHandle hFile, int dwReserved, int nNumberOfBytesToUnlockLow, int nNumberOfBytesToUnlockHigh, NativeOverlapped* lpOverlapped);

/// <summary>
/// Record locking flags for OS X.
/// </summary>
Expand All @@ -777,6 +778,7 @@ enum OSX_LockType : short
/// <summary>
/// Flock structure on OSX. Fields are in a different order than Mono.Posix.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
struct OSX_Flock
{

Expand Down Expand Up @@ -809,6 +811,7 @@ enum OSX_Errno
EAGAIN = 35,
EACCES = 13,
EINTR = 4,
EDEADLK = 11,

}

Expand Down

0 comments on commit 5efacb1

Please sign in to comment.