diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-02-15 08:59:55 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-02-15 08:59:55 +0000 |
commit | d2bd82aa921c109853b80adde21f40ba95bbfd32 (patch) | |
tree | 0bf2ad636a9cec62d6457e0306c9eed8b688d296 /winsup/cygwin/pipe.cc | |
parent | 6b14f3988c52874a01845d49e03486cc3336bd4f (diff) | |
download | cygnal-d2bd82aa921c109853b80adde21f40ba95bbfd32.tar.gz cygnal-d2bd82aa921c109853b80adde21f40ba95bbfd32.tar.bz2 cygnal-d2bd82aa921c109853b80adde21f40ba95bbfd32.zip |
* path.h (path_conv): Make path_flags private. Rename known_suffix to
suffix and make private. Rename normalized_path to posix_path and
make privtae. Accommodate name changes throughout in path_conv
methods.
(path_conv::known_suffix): New method. Use throughout instead of
accessing suffix directly.
(path_conv::get_win32): Constify.
(path_conv::get_posix): New method to read posix_path. Use throughout
instead of accessing normalized_path directly.
(path_conv::set_posix): Rename from set_normalized_path. Accommodate
name change throughout.
* spawn.cc (find_exec): Return POSIX path, not Win32 path.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r-- | winsup/cygwin/pipe.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index 9159dddb0..945c8fc24 100644 --- a/winsup/cygwin/pipe.cc +++ b/winsup/cygwin/pipe.cc @@ -1,7 +1,7 @@ /* pipe.cc: pipe for Cygwin. Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, - 2008, 2009, 2010, 2011, 2012, 2013 Hat, Inc. + 2008, 2009, 2010, 2011, 2012, 2013, 2015 Hat, Inc. This file is part of Cygwin. @@ -412,9 +412,9 @@ pipe_worker (int filedes[2], unsigned int psize, int mode) cygheap_fdnew fdout (fdin, false); char buf[sizeof ("/dev/fd/pipe:[2147483647]")]; __small_sprintf (buf, "/dev/fd/pipe:[%d]", (int) fdin); - fhs[0]->pc.set_normalized_path (buf); + fhs[0]->pc.set_posix (buf); __small_sprintf (buf, "pipe:[%d]", (int) fdout); - fhs[1]->pc.set_normalized_path (buf); + fhs[1]->pc.set_posix (buf); fdin = fhs[0]; fdout = fhs[1]; filedes[0] = fdin; |