1 Return-Path: <awg@xvx.ca>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 9C4B0417330
\r
6 for <notmuch@notmuchmail.org>; Mon, 9 Apr 2012 08:46:52 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id Y7btr283TDyw for <notmuch@notmuchmail.org>;
\r
16 Mon, 9 Apr 2012 08:46:51 -0700 (PDT)
\r
17 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com
\r
18 [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 8D694417322
\r
21 for <notmuch@notmuchmail.org>; Mon, 9 Apr 2012 08:46:51 -0700 (PDT)
\r
22 Received: by lban1 with SMTP id n1so2151991lba.26
\r
23 for <notmuch@notmuchmail.org>; Mon, 09 Apr 2012 08:46:48 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=google.com; s=20120113;
\r
26 h=mime-version:sender:x-originating-ip:in-reply-to:references:date
\r
27 :x-google-sender-auth:message-id:subject:from:to:content-type
\r
28 :x-gm-message-state;
\r
29 bh=jYf3WZ/KdVSarJ/GD3eUBvak5Rg8ru1l64judCndEGw=;
\r
30 b=k1bxYdBK6glTKsC2UFOVYCK/1XdNQv/VoOHX/YX3wk3He3ZU6AiuqwywyWnD8SXmXJ
\r
31 16VFrUUBLbjZQXQgNbIrzU567AtXeLwlCRjFt8x67dofuRtJEyuOIyFVQzxyZ6BKh+dp
\r
32 AIzDXF8oVm7DbVkK+io5L+Q8JVKfq3dw9+FFe3siqunsHpXThzSpWjNzUGM8COjmKXKk
\r
33 lGFSNx9Gg2aCdZ6yUQtTY4YVhSsXPebDERdFR1rCi0OXNs1IS9fWlc4eUHqMrHZH0c4Z
\r
34 KtkMuAhoXYS7D5PSFLjGcWgBqqEKg2VamC8xBlK0wvWETy3YDw6dyyHgopbQvMe04DSO
\r
37 Received: by 10.152.112.161 with SMTP id ir1mr12148984lab.13.1333986408438;
\r
38 Mon, 09 Apr 2012 08:46:48 -0700 (PDT)
\r
40 Received: by 10.112.97.14 with HTTP; Mon, 9 Apr 2012 08:46:48 -0700 (PDT)
\r
41 X-Originating-IP: [128.221.197.57]
\r
42 In-Reply-To: <20120409151258.GB10554@pub.czech.sun.com>
\r
43 References: <1333966665-10469-1-git-send-email-Vladimir.Marek@oracle.com>
\r
44 <1333966665-10469-3-git-send-email-Vladimir.Marek@oracle.com>
\r
45 <CAB+hUn_gFp+bspNFa-4e6hnH077Sx3to8jZGo1MSwt82QFwxwQ@mail.gmail.com>
\r
46 <20120409151258.GB10554@pub.czech.sun.com>
\r
47 Date: Mon, 9 Apr 2012 09:46:48 -0600
\r
48 X-Google-Sender-Auth: cFbPKTGG27IfhA76xuicJyn5pAM
\r
50 <CAMoJFUvHbSfXLTGKf2ZZnaLpLzZiHJ7W_ZUYZzm70n5mw4r1Kg@mail.gmail.com>
\r
51 Subject: Re: [PATCH 2/4] dirent->d_type not available on Soalris
\r
52 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>
\r
53 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
54 Content-Type: text/plain; charset=ISO-8859-1
\r
56 ALoCoQl3E8S3h8NubFEqV4NB1FMNrSgPlHhn+1rd1bMtqacAPI4HSmDzPjhlzvNfhXdFrFfdq/b/
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Mon, 09 Apr 2012 15:46:52 -0000
\r
71 On Mon, Apr 9, 2012 at 09:12, Vladimir Marek <Vladimir.Marek@oracle.com> wrote:
\r
72 > Fair enough. Is there some performance test suite? Another way would be
\r
73 > to make this compile time option set by configure. Used only when the
\r
74 > system in question does not have dirent->d_type member.
\r
76 I like the idea of making it configurable. From the Linux readdir(3) man page:
\r
78 > Under glibc, programs can check for the availability
\r
79 > of the fields not defined in POSIX.1 by testing whether
\r
80 > the macros _DIRENT_HAVE_D_NAMLEN,
\r
81 > _DIRENT_HAVE_D_RECLEN, _DIRENT_HAVE_D_OFF,
\r
82 > or _DIRENT_HAVE_D_TYPE are defined.
\r
84 I read this as meaning that we can just test for _DIRENT_HAVE_D_TYPE
\r
85 instead of adding our own define.
\r
87 I expect the stat system calls will provide some overhead, and there's
\r
88 no real need to pay that overhead on systems where it isn't necessary.
\r