X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B070F385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1712279315; bh=kqkvOZ3p/aQlRtwBMOGP0JIJ6rZ4uymMuKRF108A4F0=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=bjLcMnq8hwVjcB/MTjv4lHsMLkhP3eXLsFpl9v4sSHruQ6tN79b9r4yySFZ8nvKAm ikNINGFwJP5YaMFoWBpOR/G5KRnav5XBFc+pAJiKINLIs/BbSAan1JwOgTfAtFZnzB 56O+M8pTeiVj84iMJ2+OVcLbyRZCAGhTCCAyVJXU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F2093858C98 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6F2093858C98 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712279295; cv=none; b=n6M7IWE3d80Iq0Y94QztmwPTnwpfPWTC9+cMQCnOnC1sCjUVKRwVxKbAO0H3sSoOd8RdFp25QuCcc9ufLeeTEAaCuqUaBlRVQeS5Oi98/tWcsA+jEyOyAsiSTouw50ik6itwSJdusjg5vc+anSv2yG8tA+ec1pkQi/IFpuOR7js= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712279295; c=relaxed/simple; bh=fDG3d5OmXsYczMx8MbSddqDx6tgGERleBSkTpxbS63k=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=qYHhQynVQJ0HgmK1IEGYinTs+vHvgkBq2h/Yv3jGTMLyP6XpiH3yg5yQiK52Qfui2aukDv57KEjt0i3qgKNEudF+J70fSKvmIl0Ta32gPM2T16oqSQa+4MmBEl1E5zwEhAWw6g9kgh6XNlnaFqcopTVUPb+wZU3Ws01Z0if0Tno= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712279292; x=1712884092; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fDG3d5OmXsYczMx8MbSddqDx6tgGERleBSkTpxbS63k=; b=e3LbIpWhF9DOVnE4NoEU921AMqVjQL3kW/WiRm+ha8VYBItFCP9WxKPmp8XDb3YH3o 5SM5ddUjhgCIEmPIdcksJsdqnujaL007O8gwt4HPNHadyCJBZQjMtWBVLZjiSTrJ5LZv 67FcRns8VTha0VLpobmTSWWtZWNa+R0R82m4Hu/diXNZsQUVtg/nRKzpAWoWbK0V0ix7 KcFOZyyITy8F4JQllNKocHWqfzdr9GwAKaOwHNaHYBVtdS1q4H/iFeFmxecPDacb/gcQ x20oj9m7ULAZZRbmFNJCOVa2UuAexxo/7jRuvo2HcIWXCDRnfiZn6dAMZFd93yLgVKkV ktWA== X-Gm-Message-State: AOJu0YzVk8ZmhVx1cUYTcscAmD280N3R1AwV1tL5ckYmxof8VTZa6mLR 25c7LYFxRf5ubze9Pos+fr9Nc5bpUjq3NsShxOXCb5REmPnV1g/fqcboUrTsqlYEINo3IF4nYqx ykm7AYa2c4dWm6ZZeXft9VA7nwSaMt7bXisk= X-Google-Smtp-Source: AGHT+IGvLici0r/rWAB/24W5TQlsnp3ERnSSF1kySUC9EY7uclc0a0G3LYZi3vFO8gkwFg6tNKsjF+E2fC+n4pwYLEE= X-Received: by 2002:a17:906:ca52:b0:a51:a68b:1ce3 with SMTP id jx18-20020a170906ca5200b00a51a68b1ce3mr62842ejb.17.1712279291769; Thu, 04 Apr 2024 18:08:11 -0700 (PDT) MIME-Version: 1.0 References: <31e79a62-2068-4488-9195-b9e7abf716e3 AT SystematicSW DOT ab DOT ca> In-Reply-To: <31e79a62-2068-4488-9195-b9e7abf716e3@SystematicSW.ab.ca> Date: Fri, 5 Apr 2024 03:08:00 +0200 Message-ID: Subject: Re: Cygwin /usr/bin/stat returns "Birth: -", which value in FILE_BASIC_INFORMATION.CreationTime causes that? To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Martin Wege via Cygwin Reply-To: Martin Wege Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 437NOTjG153315 On Fri, Apr 5, 2024 at 2:55 AM Brian Inglis via Cygwin wrote: > > On 2024-04-04 18:05, Martin Wege via Cygwin wrote: > > I have problems with debugging, so a quick help would be appreciated, > > as I cannot figure this out after several hours of digging. > > > > Cygwin /usr/bin/stat returns "Birth: -" for some files. Which value > > must the CreationTime member of FILE_BASIC_INFORMATION have to cause > > /usr/bin/stat ti return "-"? 0, -1, or something else? > > https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/stat.c#n1618 > > => tv_nsec < 0 > > https://cygwin.com/git?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/fhandler/disk_file.cc#l414 > > https://cygwin.com/git/?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/times.cc#l283 Thank you But how can tv_nsec become negative (tv_nsec < 0)? That can only happen if BasicInformation.CreationTime.QuadPart is negative, right? Thanks, Martin -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple