On 12/09/2011 17:01, Mark Morgan Lloyd wrote:
Mark Morgan Lloyd wrote:
Martin wrote:
Ok, the below code, emualtes the pseudoterminal handling => the read
is supposed to bne none blocking.
maybe some of the constants are indeed wrong for your system
(endianess)?
Thanks, I'll work on that as soon as I have time. If it were a simple
endianness issue I'd expect PPC (PowerPC, in an old Mac) to fail.
>> O_NONBLOCK = &04000;
For some reason that reminded me of a discussion of serial access on
OSX in the fpc-pascal ML a few days ago. Nobody actually said in that
thread that that varied by architecture, but a bit of Googling got me
http://comments.gmane.org/gmane.linux.kernel/1093174 hence on one of
my systems
$ find . -name fcntl.h -exec grep O_NONBLOCK \{\} \; -print
#define O_NONBLOCK 0x4000
./include/asm-sparc64/fcntl.h
etc. Also fpc/.../linux/ostypes.inc specifically has a different value
for SPARC... GOK who's originally responsible for that inconsistency.
I added a ifdef, as found in the fpc source.
Most curious that it depends on CPUsparc , instead of OSsomething.
Since I have no means of testing, could I asked you, please?
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus