X-Spam-Check-By: sourceware.org
From: Andreas Schwab <schwab@suse.de>
To: Eric Blake <ebb9@byu.net>
Cc: Eli Zaretskii <eliz@gnu.org>, cygwin@cygwin.com, henman@it.to-be.co.jp,
   emacs-devel@gnu.org
Subject: Re: New platform independent problem
References: <43D0797C.1030604@it.to-be.co.jp> <ur773qhq5.fsf@gnu.org> 	<Pine.GSO.4.63.0601200821540.17119@access1.cims.nyu.edu> 	<uoe27q9y6.fsf@gnu.org> <43D0F12A.4000202@byu.net>
X-Yow: Hello?  Enema Bondage?  I'm calling because I want to be happy, I guess..
Date: Fri, 20 Jan 2006 22:24:29 +0100
In-Reply-To: <43D0F12A.4000202@byu.net> (Eric Blake's message of "Fri, 20 Jan 	2006 07:18:18 -0700")
Message-ID: <jeoe267fua.fsf@sykes.suse.de>
User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Eric Blake <ebb9@byu.net> writes:

> What platforms use d_ino==0 to mean an empty entry, rather than an entry
> where st_ino must be checked?

This is traditional Unix behaviour.  The original dirent structure (which
was actually struct direct from <sys/dir.h>) directly matched the contents
of the directory file on disk, and an entry was deleted by setting d_ino
to zero.  Modern implementations of the dirent functions hide this detail
from the user and never return entries with d_ino == 0 any more.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

