summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-01-31 21:29:59 +0000
committerChristopher Faylor <me@cgf.cx>2005-01-31 21:29:59 +0000
commit17dc5be5e93091f6e594d646a96e87267366b9e0 (patch)
treeca2bb63920951fa3cba654c90d704677345824f8 /winsup/cygwin/fhandler.cc
parent4faae8d6e94dd15c94a515b85303c8b3086b8d97 (diff)
downloadcygnal-17dc5be5e93091f6e594d646a96e87267366b9e0.tar.gz
cygnal-17dc5be5e93091f6e594d646a96e87267366b9e0.tar.bz2
cygnal-17dc5be5e93091f6e594d646a96e87267366b9e0.zip
* path.h (path_conv::set_name): Declare new function.
* path.cc (path_conv::set_name): Define new function. * fhandler.h (fhandler_dev_null::open): Declare new function. * fhandler.cc (fhandler_dev_null::open): Define new function.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index ba539a33e..a58472b8c 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -1421,6 +1421,15 @@ fhandler_dev_null::dump (void)
paranoid_printf ("here");
}
+int
+fhandler_dev_null::open (int flags, mode_t mode)
+{
+ char posix[strlen (get_name ()) + 1];
+ strcpy (posix, get_name ());
+ pc.set_name ("NUL", posix);
+ return fhandler_base::open_9x (flags, mode);
+}
+
void
fhandler_base::set_no_inheritance (HANDLE &h, int not_inheriting)
{