My problem: I want to open a serial device in a GP-Program to read and write to it in changing order. I look for a way that allowes to do (non blocking) read AND write to one single file-variable assigned to eg /dev/ttySx. So far I have found the "CanRead-function" in the manual which serves perfect for the non blocking job! But still I have to use two file-variables, one opened with reset, one opened with rewrite, and both symbolically linked to the desired serial file eg. /dev/ttySx. And it works, reading from the first when "CanRead" is true and writing to the latter whenever it is necessary.
Having read almost all portions of the GNU Pascal Manual nevertheless could not find a solution to use only one file-variable.
What is behind it? I do have an awful lot of programs from old TP3-times doing exactly that using "aux" and a home made "CanRead" equivalent.
I dare to ask and will even be full of thanks if I get just the answer "rtfm, THERE"
Thanks to all who keep the GPC working,
Mathias Uhle
PS.: To keep this mail short I just add: a wonderful Compiler, great!