[Top][All Lists]

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

Re: [PATCH] src/print.c: Check for __GLIBC__ rather than GNU_LINUX

From: Paul Eggert
Subject: Re: [PATCH] src/print.c: Check for __GLIBC__ rather than GNU_LINUX
Date: Sun, 3 Apr 2016 01:24:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Eli Zaretskii wrote:

Are we sure fileno(stdin) will necessarily return 0, what with all the
redirections and stuff?

Yes. The redirections in Emacs don't change the file descriptor numbers associated with stdin, stdout, and stderr. They will always be 0, 1, and 2.

Why not keep the original code?

It's a bit slower, and (more important) it leads the reader to wonder whether fileno (stdin) might not equal STDIN_FILENO.

reply via email to

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