grammar updates
[mono.git] / mono / io-layer / io-private.h
index 18ba8c7496913a0d648929be8a75066311f616d8..306e253ab0d8af44bc8bbcee37c10113ab6860e9 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * io-private.h:  Private definitions for file, console and find handles
+ *
+ * Author:
+ *     Dick Porter (dick@ximian.com)
+ *
+ * (C) 2002 Ximian, Inc.
+ */
+
 #ifndef _WAPI_IO_PRIVATE_H_
 #define _WAPI_IO_PRIVATE_H_
 
@@ -5,7 +14,12 @@
 #include <glib.h>
 #include <glob.h>
 
-/* Currently used for both FILE and CONSOLE handle types.  This may
+extern struct _WapiHandleOps _wapi_file_ops;
+extern struct _WapiHandleOps _wapi_console_ops;
+extern struct _WapiHandleOps _wapi_find_ops;
+extern struct _WapiHandleOps _wapi_pipe_ops;
+
+/* Currently used for both FILE, CONSOLE and PIPE handle types.  This may
  * have to change in future.
  */
 struct _WapiHandle_file
@@ -17,9 +31,13 @@ struct _WapiHandle_file
        guint32 attrs;
 };
 
+/* The boolean is for distinguishing between a zeroed struct being not
+ * as yet assigned, and one containing a valid fd 0
+ */
 struct _WapiHandlePrivate_file
 {
        int fd;
+       gboolean assigned;
 };
 
 struct _WapiHandle_find
@@ -33,5 +51,6 @@ struct _WapiHandlePrivate_find
        int dummy;
 };
 
+extern int _wapi_file_handle_to_fd (gpointer handle);
 
 #endif /* _WAPI_IO_PRIVATE_H_ */