2 * io-private.h: Private definitions for file, console and find handles
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
8 * Copyright 2011 Xamarin Inc
9 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
12 #ifndef _WAPI_IO_PRIVATE_H_
13 #define _WAPI_IO_PRIVATE_H_
21 #include <mono/io-layer/io.h>
22 #include <mono/io-layer/wapi-private.h>
24 extern struct _WapiHandleOps _wapi_file_ops;
25 extern struct _WapiHandleOps _wapi_console_ops;
26 extern struct _WapiHandleOps _wapi_find_ops;
27 extern struct _WapiHandleOps _wapi_pipe_ops;
29 extern gboolean _wapi_lock_file_region (int fd, off_t offset, off_t length);
30 extern gboolean _wapi_unlock_file_region (int fd, off_t offset, off_t length);
31 extern void _wapi_file_details (gpointer handle_info);
32 extern void _wapi_console_details (gpointer handle_info);
33 extern void _wapi_pipe_details (gpointer handle_info);
34 extern gpointer _wapi_stdhandle_create (int fd, const gchar *name);
36 /* Currently used for both FILE, CONSOLE and PIPE handle types. This may
37 * have to change in future.
39 struct _WapiHandle_file
42 struct _WapiFileShare *share_info; /* Pointer into shared mem */
44 guint32 security_attributes;
50 struct _WapiHandle_find
58 #endif /* _WAPI_IO_PRIVATE_H_ */