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 Subject: struct =?utf-8?b?ZGlyZW50LmRfcmVjbGVu?= Date: Tue, 1 Sep 2009 17:39:02 +0000 (UTC) Lines: 19 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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