Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_virtual.h')
-rw-r--r--winsup/cygwin/fhandler_virtual.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_virtual.h b/winsup/cygwin/fhandler_virtual.h
new file mode 100644
index 000000000..de914eacd
--- /dev/null
+++ b/winsup/cygwin/fhandler_virtual.h
@@ -0,0 +1,27 @@
+/* fhandler_virtual.h: Header for virtual fhandlers
+
+ Copyright 2009 Red Hat, Inc.
+
+This file is part of Cygwin.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+enum virtual_ftype_t {
+ virt_socket = -4,
+ virt_pipe = -3,
+ virt_symlink = -2,
+ virt_file = -1,
+ virt_none = 0,
+ virt_directory = 1,
+ virt_rootdir = 2
+};
+
+struct virt_tab_t {
+ const char *name;
+ __dev32_t fhandler;
+ virtual_ftype_t type;
+ _off64_t (*format_func)(void *data, char *&);
+};
+