X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fwapihandles.c;h=c873a1d243b809827baab1f627e26a243e0814bd;hb=866ada23cff1594587760abe7c10e89dfad0ac5b;hp=9f9eac28fcba1e3b2d2fba6566851c46b2580c83;hpb=1c14f1ee6d701510c15499d71fc2b324151a8629;p=mono.git diff --git a/mono/mini/wapihandles.c b/mono/mini/wapihandles.c index 9f9eac28fcb..c873a1d243b 100644 --- a/mono/mini/wapihandles.c +++ b/mono/mini/wapihandles.c @@ -1,7 +1,9 @@ #include #include -#ifdef PLATFORM_WIN32 +#include "mini.h" + +#if defined(HOST_WIN32) || !defined(HAVE_SYS_IPC_H) || !defined(HAVE_SYS_SEM_H) int mini_wapi_hps (int argc, char **argv) { @@ -34,7 +36,9 @@ int mini_wapi_seminfo (int argc, char **argv) static const gchar *unused_details (struct _WapiHandleShared *handle); static const gchar *unshared_details (struct _WapiHandleShared *handle); +#if 0 static const gchar *thread_details (struct _WapiHandleShared *handle); +#endif static const gchar *namedmutex_details (struct _WapiHandleShared *handle); static const gchar *namedsem_details (struct _WapiHandleShared *handle); static const gchar *namedevent_details (struct _WapiHandleShared *handle); @@ -48,7 +52,7 @@ static const gchar * (*details[])(struct _WapiHandleShared *)= unused_details, unshared_details, /* file */ unshared_details, /* console */ - thread_details, + unshared_details, /* thread */ unshared_details, /* sem */ unshared_details, /* mutex */ unshared_details, /* event */ @@ -111,7 +115,7 @@ int mini_wapi_hps (int argc, char **argv) file_share = &_wapi_fileshare_layout->share_info[i]; if (file_share->handle_refs > 0) { - g_print ("dev: 0x%llx ino: %lld open pid: %d share: 0x%x access: 0x%x refs: %d\n", file_share->device, file_share->inode, file_share->opened_by_pid, file_share->sharemode, file_share->access, file_share->handle_refs); + g_print ("dev: 0x%llx ino: %lld open pid: %d share: 0x%x access: 0x%x refs: %d\n", (long long int)file_share->device, (long long int)file_share->inode, file_share->opened_by_pid, file_share->sharemode, file_share->access, file_share->handle_refs); } } @@ -128,6 +132,7 @@ static const gchar *unshared_details (struct _WapiHandleShared *handle) return("unshared details"); } +#if 0 static const gchar *thread_details (struct _WapiHandleShared *handle) { static gchar buf[80]; @@ -140,6 +145,7 @@ static const gchar *thread_details (struct _WapiHandleShared *handle) return(buf); } +#endif static const gchar *namedmutex_details (struct _WapiHandleShared *handle) {