[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] proposed patch for getpass and unlocked-io

From: Paul Eggert
Subject: Re: [Bug-gnulib] proposed patch for getpass and unlocked-io
Date: 09 Oct 2003 13:18:38 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Bruno Haible <address@hidden> writes:

> I think the fileno is irrelevant here: When you look at the Linux kernel
> source (as an example for general POSIX systems), you see that lseek
> does nothing on ttys (n_tty.c and tty_io.c).

The streams might not be ttys.  Admittedly the utility of non-ttys is
limited here....

>From a purely pedantic point of view, POSIX allows implementations
where ttys have file offsets.  I don't know of any such
implementations, but it's easy to be portable to them here, and it
simplifies the code slightly.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]