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:
authorChristopher Faylor <me@cgf.cx>2002-11-04 07:09:14 +0300
committerChristopher Faylor <me@cgf.cx>2002-11-04 07:09:14 +0300
commitb6183403ae71e3ac544d486975b1c06ddf437a8a (patch)
tree72e709c80a2201865b09a4ae705871d9504f83b0 /winsup/cygwin/ioctl.cc
parent2f14399c1628280e8bf5fd0d50d330e9397646b0 (diff)
* fhandler_serial.cc (fhandler_serial::ioctl): Reformat. Set errno
appropriately. Exit from the bottom. Correctly deal with third argument for TCFLSH. (Suggested by Sergey Okhapkin)
Diffstat (limited to 'winsup/cygwin/ioctl.cc')
-rw-r--r--winsup/cygwin/ioctl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/ioctl.cc b/winsup/cygwin/ioctl.cc
index 17062eec7..e15d54437 100644
--- a/winsup/cygwin/ioctl.cc
+++ b/winsup/cygwin/ioctl.cc
@@ -52,5 +52,7 @@ ioctl (int fd, int cmd, ...)
return tcsetattr (fd, TCSAFLUSH, (struct termios *) argp);
}
- return cfd->ioctl (cmd, argp);
+ int res = cfd->ioctl (cmd, argp);
+ debug_printf ("returning %d", res);
+ return res;
}