delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/20/16:25:05

X-Spam-Check-By: sourceware.org
From: Andreas Schwab <schwab AT suse DOT de>
To: Eric Blake <ebb9 AT byu DOT net>
Cc: Eli Zaretskii <eliz AT gnu DOT org>, cygwin AT cygwin DOT com, henman AT it DOT to-be DOT co DOT jp,
emacs-devel AT gnu DOT org
Subject: Re: New platform independent problem
References: <43D0797C DOT 1030604 AT it DOT to-be DOT co DOT jp> <ur773qhq5 DOT fsf AT gnu DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0601200821540 DOT 17119 AT access1 DOT cims DOT nyu DOT edu> <uoe27q9y6 DOT fsf AT gnu DOT org> <43D0F12A DOT 4000202 AT byu DOT 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
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Eric Blake <ebb9 AT byu DOT 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 AT suse DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019