delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/01/13:39:58

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SARE_SUB_ENC_UTF8,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: struct =?utf-8?b?ZGlyZW50LmRfcmVjbGVu?=
Date: Tue, 1 Sep 2009 17:39:02 +0000 (UTC)
Lines: 19
Message-ID: <loom.20090901T193145-508@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Wish list (probably post 7.1): As long as we are making struct dirent more like 
Linux with the recent addition of d_type, we should probably also burn two of 
the remaining 3 __d_unused1 bytes to declare unsigned short d_reclen, whose 
value is always strlen(d_name), so that applications could get by with fewer 
strlen calls.  Coreutils ls would certainly benefit from this optimization.

P.S. This is an interesting thread related to struct dirent - it shows that for 
once, cygwin is doing something more POSIX-y than Linux (ie. POSIX 2008 added a 
requirement that readdir d_ino always match stat st_ino, even for mount 
points), and therefore Cygwin actually gets to benefit from a coreutils 
optimization when Linux doesn't!

http://lists.gnu.org/archive/html/bug-coreutils/2009-08/msg00320.html
http://lists.gnu.org/archive/html/bug-coreutils/2009-08/msg00331.html
http://marc.info/?l=linux-kernel&m=125181054102075

-- 
Eric Blake



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

- Raw text -


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