X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fio-layer%2Flocking.c;h=001df9bef7e9273d726f2999880915377f1cb9ef;hb=3319d6a5a753c3ded84c20a4ff2a0935a58fec21;hp=305c0ab48527cb7fd053c050a04041e7c1d7b10c;hpb=39393f118d6a532ccca30a9103a3dd0febdfbef6;p=mono.git diff --git a/mono/io-layer/locking.c b/mono/io-layer/locking.c index 305c0ab4852..001df9bef7e 100644 --- a/mono/io-layer/locking.c +++ b/mono/io-layer/locking.c @@ -6,6 +6,7 @@ * * (C) 2002 Ximian, Inc. * Copyright (c) 2002-2009 Novell, Inc. + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include #include @@ -14,10 +15,10 @@ #include #include #include -#include #include #include #include +#include gboolean _wapi_lock_file_region (int fd, off_t offset, off_t length) @@ -124,7 +125,7 @@ LockFile (gpointer handle, guint32 offset_low, guint32 offset_high, off_t offset, length; int fd = GPOINTER_TO_UINT(handle); - ok = _wapi_lookup_handle (handle, WAPI_HANDLE_FILE, + ok = mono_w32handle_lookup (handle, MONO_W32HANDLE_FILE, (gpointer *)&file_handle); if (ok == FALSE) { g_warning ("%s: error looking up file handle %p", __func__, @@ -171,7 +172,7 @@ UnlockFile (gpointer handle, guint32 offset_low, off_t offset, length; int fd = GPOINTER_TO_UINT(handle); - ok = _wapi_lookup_handle (handle, WAPI_HANDLE_FILE, + ok = mono_w32handle_lookup (handle, MONO_W32HANDLE_FILE, (gpointer *)&file_handle); if (ok == FALSE) { g_warning ("%s: error looking up file handle %p", __func__,