Re: Issues with lseek(2) on a block device

2024-02-26 Thread Sad Clouds
On Mon, 26 Feb 2024 09:20:21 -0500 Thor Lancelot Simon wrote: > On Sun, Feb 25, 2024 at 04:41:37PM +, Sad Clouds wrote: > > > > The whole idea of Unix was "everything is a file" and the sooner people > > get rid of magic ioctls the better. > > But everything is *not*, actually, a file, and

Re: Issues with lseek(2) on a block device

2024-02-26 Thread Thor Lancelot Simon
On Sun, Feb 25, 2024 at 04:16:03AM -, Michael van Elst wrote: > t...@panix.com (Thor Lancelot Simon) writes: > > >Probably not a good idea to start with lseek() because if you _do_ > >encounter a tape device, seeking to SEEK_END could take you an extremely > >long time. > > lseek() doesn't mo

Re: Issues with lseek(2) on a block device

2024-02-26 Thread Thor Lancelot Simon
On Sun, Feb 25, 2024 at 04:41:37PM +, Sad Clouds wrote: > > The whole idea of Unix was "everything is a file" and the sooner people > get rid of magic ioctls the better. But everything is *not*, actually, a file, and forcing things that are not files into file-like shapes is not always the ri