Date: Thu, 14 Sep 2000 14:54:40 +0100 From: Konstantin Chuguev <Konstantin.Chuguev@dante.org.uk> To: Johnny Eriksson <bygg@cafax.se>, hackers@freebsd.org, current@freebsd.org Subject: /proc & /dev/std* [Was: Fdescfs updates--coming to a devfs near you!] Message-ID: <39C0D8A0.3BDC3B6C@dante.org.uk> References: <CMM.0.90.0.968938842.bygg@nic.cafax.se>
next in thread | previous in thread | raw e-mail | index | archive | help
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/<any number> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39C0D8A0.3BDC3B6C>