Bruno Haible <[EMAIL PROTECTED]> wrote: > Eric Blake wrote: >> m4 already calls close_stdin always, whether or not it read from stdin, so >> the current implementation is correct even when stdin is still in the >> initial state. However, if you want to optimize it further, such patches >> are worth considering. > > Here is a primitive function that could be used in close_stdin to optimize > away the lseek system call. > > The function name 'finpending()' is not particularly good. Can you think of a > better name?
I like fpending_in. Not only is it closer to __fpending, but it won't make me think of TCP's FIN.