9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Common code - isatty
@ 2005-04-13 13:20 Einar Karttunen
  2005-04-13 21:50 ` Russ Cox
  0 siblings, 1 reply; 18+ messages in thread
From: Einar Karttunen @ 2005-04-13 13:20 UTC (permalink / raw)
  To: Plan9 ML

Hello

While reading source code I noticed several different isatty
implementations. They are slightly different and I would be interested
in 1) which is the correct implementation and 2) whether a patch
to fix the others would be welcome and whether a common location 
in a library or cut-paste is preferred.

The locations include at least:
ape/lib/ap/isatty.c      - check whether fd2path ends in "/dev/cons"
cmd/ip/telnet.c          - dirstat -> "cons"
cmd/rc/plan9.c           - dirstat -> "ptty" or same dev,type,qid as "/dev/cons"
cmd/ssh/ssh.c            - fd2path ends in "/dev/cons"
cmd/upas/common/libsys.c - dirstat -> "cons"
libstdio/setvbuf.c       - dirstat -> same dev,type and qid as "/dev/cons"

- Einar Karttunen


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-04-14 23:23 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-13 13:20 [9fans] Common code - isatty Einar Karttunen
2005-04-13 21:50 ` Russ Cox
2005-04-13 23:26   ` Ronald G. Minnich
2005-04-13 23:52     ` Dan Cross
2005-04-13 23:57       ` boyd, rounin
2005-04-14  0:00         ` Russ Cox
2005-04-14  0:14           ` boyd, rounin
2005-04-14  0:18             ` Russ Cox
2005-04-14  0:22               ` Bruce Ellis
2005-04-14  0:38                 ` Dan Cross
2005-04-14  1:02                   ` boyd, rounin
2005-04-14  0:56                 ` jmk
2005-04-14  0:01       ` Bruce Ellis
2005-04-14  0:39         ` Dan Cross
2005-04-14 17:14         ` Ronald G. Minnich
2005-04-14 17:29           ` Rob Pike
2005-04-14 19:25             ` Ronald G. Minnich
2005-04-14 23:23             ` Bruce Ellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).