9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu
Subject: [9fans] /fd/n
Date: Sat, 12 Nov 2005 10:28:39 -0600	[thread overview]
Message-ID: <20051112162839.67C41103575@dexter-peak.quanstro.net> (raw)

it seems a number of p9p programs assume /fd/n is valid:

; rcsdiff toico.c
===================================================================
RCS file: RCS/toico.c,v
retrieving revision 1.1
diff -r1.1 toico.c
80c80
< 		readicon("/fd/0");
---
> 		readicon("/dev/fd/0");
; grep /fd/ ../*.c ../*/*.c | grep -v /dev/
../strings.c:		stringit("/fd/0");
../acme/acme.c:	sprint(buf, "/fd/%d", pfd[1]);
../page/filter.c:		sprint(fdbuf, "/fd/%d", fd);
../page/gs.c:	fprint(fd, "(/fd/3) (w) file dup (THIS IS NOT AN INFERNO BITMAP\\n) writestring flushfile\n");
../page/gs.c:	args[nargs++] = "-sOutputFile=/fd/3";
../page/gs.c:	gscmd(g, "/PAGEOUT (/fd/4) (w) file def\n");
../page/pdf.c:		sprint(fdbuf, "/fd/%d", fd);
../page/ps.c:		sprint(fdbuf, "/fd/%d", fd);
../page/ps.c:		fprint(ps->gs.gsfd, "(/fd/3) (w) file dup (THIS IS NOT A PLAN9 BITMAP 01234567890123456789012345678901234567890123456789\\n) writestring flushfile\n");


             reply	other threads:[~2005-11-12 16:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-12 16:28 erik quanstrom [this message]
2005-11-12 16:44 ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051112162839.67C41103575@dexter-peak.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).