tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lseek on tty
Date: Mon, 18 Sep 2023 17:59:38 -0400
From: Jan Schaumann <jschauma%netmeister.org@localhost>
Message-ID: <ZQjISr+rTXp1P3a1%netmeister.org@localhost>
| Wouldn't it be more helpful to the user to have
| lseek(2) return -1 here?
Not really, this is ancient practice, from the very very early days.
| Since it's undefined,
which is quite likely only because linux gratuitously decided to break
this.
Removing backwards compat for this would be the wrong thing to do.
(As far as I'm aware, only pipes ever give errors on what would otherwise
be a valid seek operation).
kre
Home |
Main Index |
Thread Index |
Old Index