This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fail opening com1 or com2


When opening a serial port, the open function returns 0 (it is stdin).

int fd;

fd = open ("com1", O_RDWR);

then fd = 0

So, the system doesn't open serial port but STDIN.

How to solve that problem ?

Thank you.
Eric

  ______________________________________________________________________
  | Eric LECHOPIER			E-mail : ericl@elekta-igs.com 
  | Software Dev. Engineer
  |______________________________________________________________________
  |                                                            
  | ELEKTA IGS SA			Tel : (33) 4-76-63-31-90
  | 2 av de vignate			Fax : (33) 4-76-51-80-33
  | Centre Equation - Bat 5                                                
  
  | 38610 GIERES - FRANCE                                             
  |______________________________________________________________________

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]