Date: Thu, 30 Jan 2003 03:43:47 -0800 From: Darren Pilgrim <dmp@pantherdragon.org> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: questions@FreeBSD.org Subject: Re: Why no /dev/one? Message-ID: <3E390FF3.5020706@pantherdragon.org> In-Reply-To: <3E38E15C.7080302@pantherdragon.org> References: <3E38E15C.7080302@pantherdragon.org> <20030130092812.GB1262@gothmog.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E390FF3.5020706>