From owner-freebsd-current Thu Sep 14 6:54:52 2000 Delivered-To: freebsd-current@freebsd.org Received: from alpha.dante.org.uk (alpha.dante.org.uk [193.63.211.19]) by hub.freebsd.org (Postfix) with ESMTP id 0C66337B42C; Thu, 14 Sep 2000 06:54:47 -0700 (PDT) Received: from theta.dante.org.uk ([193.63.211.7]) by alpha.dante.org.uk with esmtp (Exim 3.12 #4) id 13ZZTP-00070a-00; Thu, 14 Sep 2000 14:54:43 +0100 Received: from localhost ([127.0.0.1] helo=dante.org.uk) by theta.dante.org.uk with esmtp (Exim 3.12 #4) id 13ZZTM-000332-00; Thu, 14 Sep 2000 14:54:40 +0100 Message-ID: <39C0D8A0.3BDC3B6C@dante.org.uk> Date: Thu, 14 Sep 2000 14:54:40 +0100 From: Konstantin Chuguev Organization: Delivery of Advanced Networking Service to Europe Ltd. X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en, ru MIME-Version: 1.0 To: Johnny Eriksson , hackers@freebsd.org, current@freebsd.org Subject: /proc & /dev/std* [Was: Fdescfs updates--coming to a devfs near you!] References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Johnny Eriksson wrote: > > phk@critter.freebsd.dk said: > > :- The majority of these programs could be handled by adding knowledge of > > :- "-" as a magic filename to fopen(3). > > > > Suppose I *want* a filename called "-"? My tough luck, huh? > > Could you settle for "./-"? > I think any "magic" name is not very good idea. To say more, it breaks POSIX. File names are a tratitional UNIX way to access character and block devices; in System V you can access much more via file names, using streams. Magic numbers are for MS DOS (remember COM1 and LPT1? :-) I am not sure /proc/ names are very useful, but /dev/std{in|out|err} definitely are. -- * * Konstantin Chuguev - Application Engineer * * Francis House, 112 Hills Road * Cambridge CB2 1PQ, United Kingdom D A N T E WWW: http://www.dante.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message