From owner-freebsd-questions Thu Jan 30 3:54:19 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D10D637B401 for ; Thu, 30 Jan 2003 03:54:17 -0800 (PST) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id D23D243F79 for ; Thu, 30 Jan 2003 03:54:16 -0800 (PST) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Thu, 30 Jan 2003 11:53:48 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 18eDFh-0007hh-00; Thu, 30 Jan 2003 11:53:05 +0000 Date: Thu, 30 Jan 2003 11:53:05 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Darren Pilgrim Cc: Giorgos Keramidas , questions Subject: Re: Why no /dev/one? In-Reply-To: <3E390FF3.5020706@pantherdragon.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 30 Jan 2003, Darren Pilgrim wrote: > Giorgos Keramidas wrote: > > On 2003-01-30 00:25, Darren Pilgrim wrote: > > > >> Why isn't there a /dev/one device to provide an infinite number of > >> all-ones bytes? > > > > > > Because it's easy to get any sequence of equal bytes by using just > > /dev/zero and tr(1). Try this command and check the output of hd(1) > > :-) > > > > $ dd if=/dev/zero bs=512 count=1 | tr '\0' '\777' | hd > > What I was trying to get at was more a question of if there's some deep > technical reason for the lack of a /dev/one beyond the triviality of > flipping the bits in a pipe. Nobody's implemented it. It'd be trivial; but why would you want it? -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ I am now available for general use under a modified BSD licence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message