summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 9b4c85ea2..336353a4b 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -1,7 +1,7 @@
/* path.h: path data structures
Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006 Red Hat, Inc.
+ 2006, 2007 Red Hat, Inc.
This file is part of Cygwin.
@@ -15,6 +15,13 @@ details. */
#include <fcntl.h>
#include <ntdef.h>
+#define isproc_dev(devn) \
+ (devn == FH_PROC || devn == FH_REGISTRY || devn == FH_PROCESS || \
+ devn == FH_PROCNET)
+
+#define isvirtual_dev(devn) \
+ (isproc_dev (devn) || devn == FH_CYGDRIVE || devn == FH_NETDRIVE)
+
extern PUNICODE_STRING get_nt_native_path (const char *, UNICODE_STRING &);
inline bool