X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mono%2Fio-layer%2Fio-private.h;h=fad582754fda1e8d96a76f40d0718df6a1fc91f4;hb=bc1d754ec15285422b73d40d86cc85ddbd37ce16;hp=a517a317fb66409cb4fc98f4ee4ae5db7e6a47ca;hpb=669beaed8380fa592533c8755f72593b4422d01d;p=mono.git diff --git a/mono/io-layer/io-private.h b/mono/io-layer/io-private.h index a517a317fb6..fad582754fd 100644 --- a/mono/io-layer/io-private.h +++ b/mono/io-layer/io-private.h @@ -5,6 +5,7 @@ * Dick Porter (dick@ximian.com) * * (C) 2002 Ximian, Inc. + * Copyright 2011 Xamarin Inc */ #ifndef _WAPI_IO_PRIVATE_H_ @@ -12,7 +13,10 @@ #include #include +#ifdef HAVE_DIRENT_H #include +#endif + #include #include @@ -21,9 +25,12 @@ extern struct _WapiHandleOps _wapi_console_ops; extern struct _WapiHandleOps _wapi_find_ops; extern struct _WapiHandleOps _wapi_pipe_ops; +extern gboolean _wapi_lock_file_region (int fd, off_t offset, off_t length); +extern gboolean _wapi_unlock_file_region (int fd, off_t offset, off_t length); extern void _wapi_file_details (gpointer handle_info); extern void _wapi_console_details (gpointer handle_info); extern void _wapi_pipe_details (gpointer handle_info); +extern gpointer _wapi_stdhandle_create (int fd, const gchar *name); /* Currently used for both FILE, CONSOLE and PIPE handle types. This may * have to change in future. @@ -32,6 +39,7 @@ struct _WapiHandle_file { gchar *filename; struct _WapiFileShare *share_info; /* Pointer into shared mem */ + int fd; guint32 security_attributes; guint32 fileaccess; guint32 sharemode;