#25 trn fails on OpenBSD 64 bits arches

open
nobody
misc (7)
5
2005-05-29
2005-05-29
Anonymous
No

FIONREAD uses an int pointer on OpenBSD. I don't know
how it works on other architectures.

On 32 bits architectures, trn works by chance. On some 64
bits architectures, like sparc64, the FIONREAD in term.c will
NOT get the correct result. Thus eattypeahead ends in a loop.

Fix: I hardcoded FIONREAD to read int on the port. If some
OSes actually use long for their result, then I see no choice
but to include this in the hints file...

Submitted by espie@openbsd.org

I must have a sourceforge login somewhere, but I've
misplaced it...

Discussion


Log in to post a comment.