Re: [fpc-pascal] problem setting up serial port

2006-03-10 Thread Marc Santhoff
Hi again, from trying and decoding error messages I know the call to tcsetattr fails with an invalid input. The problem is caused by trying to set the field termios.c_ospeed, if left out the call is successfull. So I went the way trough the sources and have found something. On FreeBSD 4.11 termio

Re: [fpc-pascal] makeskel --update

2006-03-10 Thread Michael Van Canneyt
On Fri, 10 Mar 2006, Vincent Snijders wrote: > Hi, > > If I use the makeskel --update parameter, what is the best way to merge > the resulting file to the existing file? Copy and paste. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

[fpc-pascal] makeskel --update

2006-03-10 Thread Vincent Snijders
Hi, If I use the makeskel --update parameter, what is the best way to merge the resulting file to the existing file? Vincent ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] problem setting up serial port

2006-03-10 Thread Marc Santhoff
Am Freitag, den 10.03.2006, 17:06 +0100 schrieb Michael Van Canneyt: > > On Fri, 10 Mar 2006, Sebastian Günther wrote: > > > Marc Santhoff schrieb: > >> > >> Maybe I have looked at it for too long, where is the problem? > > > > just by the way, there is a unit called 'serial' in Free Pascal. Per

Re: [fpc-pascal] problem setting up serial port

2006-03-10 Thread Marc Santhoff
Am Freitag, den 10.03.2006, 16:46 +0100 schrieb Sebastian Günther: > Marc Santhoff schrieb: > > > > Maybe I have looked at it for too long, where is the problem? > > just by the way, there is a unit called 'serial' in Free Pascal. Perhaps > you might want to use this one, or at least have a look

Re: [fpc-pascal] problem setting up serial port

2006-03-10 Thread Michael Van Canneyt
On Fri, 10 Mar 2006, Sebastian Günther wrote: Marc Santhoff schrieb: Maybe I have looked at it for too long, where is the problem? just by the way, there is a unit called 'serial' in Free Pascal. Perhaps you might want to use this one, or at least have a look at the source code... Bette

Re: [fpc-pascal] problem setting up serial port

2006-03-10 Thread Sebastian Günther
Marc Santhoff schrieb: Maybe I have looked at it for too long, where is the problem? just by the way, there is a unit called 'serial' in Free Pascal. Perhaps you might want to use this one, or at least have a look at the source code... Regards, Sebastian __

[fpc-pascal] problem setting up serial port

2006-03-10 Thread Marc Santhoff
Hi, I'm trying to use a serial port at 1200baud, 7N2 with this code sequence: fCom := fpOpen('/dev/cuaa0', O_RDWR OR O_NOCTTY );//OR O_NONBLOCK); if (fCom < 0) then begin writeln(stderr, 'Couldn''t open serial port.'); halt(1); end; r := 0; fillchar(tios, sizeof(tios), #0); cfs

Re: [fpc-pascal] Random numbers

2006-03-10 Thread Michalis Kamburelis
Antal wrote: It's not just that, but randseed is not a threadvar. This means that all your threads use the same randseed variable, so if two threads call "random" at the same time they will still get the same "random" number. Jonas And also generating a rand * getpid you can't really get goo

Re: [fpc-pascal] Variable arguments, different types?

2006-03-10 Thread Michalis Kamburelis
L505 wrote: [...] In other words you can reinvent your own writeln style procedures and pass parameters of *different types* simutaneously. I was under the impression you could only pass parameters of the same type through this [] square bracket trickery. See docs: [http://www.freepascal.org/