summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-27 05:35:02 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-27 05:35:02 +0000
commit3c1e8187bd172877bf56c1e0bdb1a6919f7238a2 (patch)
tree328e0c638176215a6453c736bcc20d1b7da82ff5 /winsup/cygwin/syscalls.cc
parentdfb2ac80888863ce2fc6767c3aebc506bc2cf658 (diff)
downloadcygnal-3c1e8187bd172877bf56c1e0bdb1a6919f7238a2.tar.gz
cygnal-3c1e8187bd172877bf56c1e0bdb1a6919f7238a2.tar.bz2
cygnal-3c1e8187bd172877bf56c1e0bdb1a6919f7238a2.zip
* cygwin-shilka: Remove '#line directives' or suffer debugging oddities. Use
-length option so that device prefixes are used. * devices.cc: Regenerate. * syscalls.cc (ttyname): Add debugging output.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 7f58c2857..51ce08e2f 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1654,10 +1654,13 @@ pathconf (const char *file, int v)
extern "C" char *
ttyname (int fd)
{
+ char *name;
cygheap_fdget cfd (fd);
if (cfd < 0 || !cfd->is_tty ())
return 0;
- return (char *) (cfd->ttyname ());
+ name = (char *) (cfd->ttyname ());
+ debug_printf ("returning %s", name);
+ return name;
}
extern "C" char *