[fpc-pascal] Serial port access on Darwin PPC

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Sep 23 13:50:51 CEST 2008

On 23 Sep 2008, at 12:51, Brad Campbell wrote:

> Can any Mac people tell me why
> FHandle := fpOpen(Port, O_RDWR or O_NOCTTY);
> (Where FHandle is a longint and port is '/dev/tty.usbserial-A400379A')
> .. just locks up waiting ?

No, I can't tell you why this happens. Does the same happen if you do  
it in a C program?

> Obviously I'm doing something dumb, I just don't know how to debug  
> it. No strace on MacOS.

There's druss on Mac OS X 10.5.x and higher, and ktrace/kdump on Mac  
OS X 10.4.x and lower. The rosetta stone for Unix is your friend: http://bhami.com/rosetta.html


More information about the fpc-pascal mailing list