From owner-freebsd-current Thu Nov 11 20: 2: 2 1999 Delivered-To: freebsd-current@freebsd.org Received: from spock2.ECE.McGill.CA (Spock2.ECE.McGill.CA [132.206.63.11]) by hub.freebsd.org (Postfix) with ESMTP id 24B1814F3B for ; Thu, 11 Nov 1999 20:01:59 -0800 (PST) (envelope-from alainm@macs.ece.mcgill.ca) Received: from mccoy2.ECE.McGill.CA (alainm@Mccoy2.ECE.McGill.CA [132.206.63.174]) by spock2.ECE.McGill.CA (8.8.8/8.8.8) with ESMTP id XAA04662; Thu, 11 Nov 1999 23:03:00 -0500 (EST) From: Alain Magloire Received: by mccoy2.ECE.McGill.CA (8.8.8) id XAA07619; Thu, 11 Nov 1999 23:02:55 -0500 (EST) Message-Id: <199911120402.XAA07619@mccoy2.ECE.McGill.CA> Subject: Re: Bad 'grep' behaviour in -CURRENT, faulty binary detection? To: peter.jeremy@alcatel.com.au Date: Thu, 11 Nov 1999 23:02:55 -0500 (EST) Cc: bug-gnu-utils@gnu.org, freebsd-current@freebsd.org In-Reply-To: <99Nov12.131311est.40336@border.alcanet.com.au> from "Peter Jeremy" at Nov 12, 99 01:19:11 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bonjour M. Peter Jeremy > On 1999-Nov-12 13:13:54 +1100, Alain Magloire wrote: > >(On Solaris, you can read() a directory). > > On any real Unix you can read() a directory - `everything is a file'. > Yes, and real programmers do not eat quiche either. For the Solaris comment, maybe I'm mistaken, maybe it was Linux that could not open/read directories, I do not remember. open()/read()'ing directories was never portable, even in the ranks of "real" Unix. Or perhaps depending on the filesystems it is not permitted it. You don't like opendir() and its friends *dir() ? -- au revoir, alain ---- Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message