On 2003-01-16 15:44, Paul Hamilton <[EMAIL PROTECTED]> wrote: > Thanks Giorgos! > > I needed to know the function used to access the Serial ports under FreeBSD. > Your program compiles, but generates the following error msg when run: > > test_prog: ioctl: Inappropriate ioctl for device > > Thanks to the ioctl 'tip', I researched around, and found that the > serial port needed opening, so this is the finished code (just in > case someone else needs it):
Ah, of course. When I tested it, I used: % ./a.out < /dev/cuaa1 so the shell did the open() for me :) You're right, of course... > [snip C source] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message