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>2001-10-29 08:28:24 +0300
committerChristopher Faylor <me@cgf.cx>2001-10-29 08:28:24 +0300
commit711ded6d2866e00b42e4d7c1136b201944e16578 (patch)
tree4813c3e9737e7bf1f90abfc758a8e3d67e071ff0 /winsup/cygwin/fhandler.h
parentaa9d50a1c15b5aa4f4a192b9a146a377de4d42cb (diff)
* fhandler.h (fhandler_serial::fhandler_serial): Change to only accept unit
argument. * fhandler_serial.cc (fhandler_serial::fhandler_serial): Ditto. (fhandler_serial::open): Avoid else when previous clause is a return(). * path.cc (get_devn): Alias /dev/ttyS0 -> /dev/com1, etc. (get_device_number): Reallow standalone "com1" as a valid name for /dev/com1.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 5294292a6..7307a8fdc 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -159,7 +159,6 @@ class fhandler_base
{
protected:
DWORD status;
-public:
private:
int access;
HANDLE io_handle;
@@ -579,7 +578,7 @@ public:
OVERLAPPED io_status;
/* Constructor */
- fhandler_serial (DWORD devtype = FH_SERIAL, int unit = 0);
+ fhandler_serial (int unit);
int open (path_conv *, int flags, mode_t mode);
int close ();