From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] dirread From: rsc@swtch.com In-Reply-To: <200403182331.i2INVbsA096235@adat.davidashen.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-oqobcgpzhetrdlkucpxwzpfuzo" Date: Thu, 18 Mar 2004 22:38:53 -0500 Topicbox-Message-UUID: 3779e912-eacd-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-oqobcgpzhetrdlkucpxwzpfuzo Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit the data for the file you cannot get at is exactly equivalent to the result of stat(2) if only you could get at it, except that your name space is keeping you from doing that. but it's still there. ;-) russ --upas-oqobcgpzhetrdlkucpxwzpfuzo Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-admin@cse.psu.edu> X-Original-To: rsc@swtch.com Delivered-To: rsc@morphisms.net Received: from plan9.cs.bell-labs.com (plan9.bell-labs.com [204.178.31.2]) by holo.morphisms.net (Postfix) with ESMTP id 36A0724FE8 for ; Thu, 18 Mar 2004 18:34:53 -0500 (EST) Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Thu Mar 18 18:34:43 EST 2004 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Thu Mar 18 18:34:40 EST 2004 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 51B5319EC0; Thu, 18 Mar 2004 18:34:26 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id DEE5919EB7; Thu, 18 Mar 2004 18:34:20 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id DE44419AAB; Thu, 18 Mar 2004 18:33:49 -0500 (EST) Received: from adat.davidashen.net (unknown [217.113.20.242]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 7C47F19C99 for <9fans@cse.psu.edu>; Thu, 18 Mar 2004 18:33:47 -0500 (EST) Received: from adat.davidashen.net (localhost.davidashen.net [127.0.0.1]) by adat.davidashen.net (8.12.8p1/8.12.8) with ESMTP id i2INVc7b096236 for <9fans@cse.psu.edu>; Fri, 19 Mar 2004 03:31:38 +0400 (AMT) (envelope-from dvd@adat.davidashen.net) Received: (from dvd@localhost) by adat.davidashen.net (8.12.8p1/8.12.8/Submit) id i2INVbsA096235 for 9fans@cse.psu.edu; Fri, 19 Mar 2004 03:31:37 +0400 (AMT) From: David Tolpin Message-Id: <200403182331.i2INVbsA096235@adat.davidashen.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] dirread In-Reply-To: <200403182300.i2IN0p5T095713@adat.davidashen.net> Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 19 Mar 2004 03:31:37 +0400 (AMT) X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on psuvax1.cse.psu.edu X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Level: man 2 dirread :... :The data returned by a read(2) on a directory is a set of complete directory :entries in a machine-independent format, exactly equivalent to the result of :a stat(2) on each file or subdirectory in the directory. But it is not so. stat(2) on each file in the directory, when there are multiple files with identical names, will return data for the first entry only. What am I missing? David --upas-oqobcgpzhetrdlkucpxwzpfuzo--