grammar updates
[mono.git] / mono / io-layer / io-private.h
index 146c86954aecdd337810c094145e0a8f354248a9..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_
 
@@ -8,8 +17,9 @@
 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 and CONSOLE handle types.  This may
+/* Currently used for both FILE, CONSOLE and PIPE handle types.  This may
  * have to change in future.
  */
 struct _WapiHandle_file
@@ -21,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
@@ -37,5 +51,6 @@ struct _WapiHandlePrivate_find
        int dummy;
 };
 
+extern int _wapi_file_handle_to_fd (gpointer handle);
 
 #endif /* _WAPI_IO_PRIVATE_H_ */