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.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/winsup/cygwin/fhandler_virtual.h b/winsup/cygwin/fhandler_virtual.h
index de914eacd..f2f211727 100644
--- a/winsup/cygwin/fhandler_virtual.h
+++ b/winsup/cygwin/fhandler_virtual.h
@@ -1,6 +1,6 @@
/* fhandler_virtual.h: Header for virtual fhandlers
- Copyright 2009 Red Hat, Inc.
+ Copyright 2009, 2010 Red Hat, Inc.
This file is part of Cygwin.
@@ -8,20 +8,15 @@ 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;
+ size_t name_len;
__dev32_t fhandler;
virtual_ftype_t type;
_off64_t (*format_func)(void *data, char *&);
};
+#define _VN(s) s, sizeof (s) - 1
+
+extern virt_tab_t *virt_tab_search (const char *, bool, const virt_tab_t *,
+ size_t);