From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 14 Apr 2005 13:25:43 -0600 From: "Ronald G. Minnich" To: Rob Pike , Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Common code - isatty In-Reply-To: <7359f049050414102910682555@mail.gmail.com> Message-ID: References: <200504132352.j3DNqJJ19726@augusta.math.psu.edu> <775b8d19050413170155776984@mail.gmail.com> <7359f049050414102910682555@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Topicbox-Message-UUID: 3a18d482-ead0-11e9-9d60-3106f5b1d025 On Thu, 14 Apr 2005, Rob Pike wrote: > int isatty(int) {return 0;} excellent. You know, we did do this on linux via LD_PRELOAD hackery, and of course it didn't work with glibc, since library functions in glibc don't bother calling that function -- inlines, macros, all that great stuff you know -- it's really important to optimize isatty() calls, as they are so frequent. ron