dtable.cc (build_fh_pc): serial port handling

Corinna Vinschen cygwin-patches@cygwin.com
Wed Nov 12 09:27:00 GMT 2003


On Tue, Nov 11, 2003 at 06:25:41PM -0600, Brian Ford wrote:
> Here is one I think I do understand.
> 
> 2003-11-11  Brian Ford  <ford@vss.fsi.com>
> 
>  	* dtable.cc (build_fh_pc): Use DEV_SERIAL_MAJOR to catch all
> 	serial ports.
> 
> -- 
> Brian Ford
> Senior Realtime Software Engineer
> VITAL - Visual Simulation Systems
> FlightSafety International
> Phone: 314-551-8460
> Fax:   314-551-8444
> Index: dtable.cc
> ===================================================================
> RCS file: /cvs/src/src/winsup/cygwin/dtable.cc,v
> retrieving revision 1.119
> diff -u -p -r1.119 dtable.cc
> --- dtable.cc	1 Oct 2003 12:36:39 -0000	1.119
> +++ dtable.cc	12 Nov 2003 00:25:16 -0000
> @@ -339,6 +339,9 @@ build_fh_pc (path_conv& pc)
>        case DEV_TAPE_MAJOR:
>  	fh = cnew (fhandler_dev_tape) ();
>  	break;
> +      case DEV_SERIAL_MAJOR:
> +	fh = cnew (fhandler_serial) ();
> +	break;
>        default:
>  	switch (pc.dev)
>  	  {
> @@ -355,9 +358,6 @@ build_fh_pc (path_conv& pc)
>  	    break;
>  	  case FH_WINDOWS:
>  	    fh = cnew (fhandler_windows) ();
> -	    break;
> -	  case FH_SERIAL:
> -	    fh = cnew (fhandler_serial) ();
>  	    break;
>  	  case FH_FIFO:
>  	    fh = cnew (fhandler_fifo) ();

This looks right to me.  Chris?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list