Re: Better news (Re: [Gpsbabel-misc] OS X <> Meridian)
Brought to you by:
robertl
From: Robert L. <rob...@us...> - 2002-12-13 19:03:25
|
Carsten Kurz wrote: > > > > It's blocking the open. Gpsbabel doesn't get a chance to set it up > > becuase the port has to be open to configure it. > > But why only with the Meridian connected, not with the Garmin? Because the garmin code uses open(2) and the Magellan uses fopen() and something - either his C library or his device driver - is hanging in the open. The fopen wrapping is further hosing up the arguments to open itself, adding O_WRITE and two exclusive bits. On his system, the first fopen never completes. #define P "/dev/tty.USA28X11P2.2" #include <stdio.h> #include <errno.h> #include <fcntl.h> main() { FILE *a,*b; printf("First open\n"); a = fopen("/dev/tty.USA28X11P2.2", "r"); printf("a %p\n", a); printf("Second open\n"); b = fopen("/dev/tty.USA28X11P2.2", "w+"); printf("b %p\n", a); } I've pretty well thrown up my hands on that. He'll have to find a Mac Dude to chase it from here... RJL |