X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEDC1385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1712332346; bh=V25VJc65D93DkI5SeNZmrHB7SGwPFMno+FvOozXXocE=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=v++djf0x5WvEuHIaxJvOW1aT+jFLL8uh8vtopK7FWO9f55m3/yyIJpZhaCpqF4LjJ m+1iYFQ/aQgMHUAjz7WDHANBX6Lp8x7Evw8Kt5v2Dk1HDPttICvxyXBSNwBhkBuK6T PcSTlmDvn13JwKR0FwWLQjR1I25+zHkbPbxCGr7s= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 131873858C98 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 131873858C98 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712332325; cv=none; b=U2XKMGeTFVXwBJKC5i039aXiK2i6YjmihjGZeIAZcw70SOzMF5aMZzbjBCNeODDf+5s8hBYFQsbufRggCqXChumue3VmKtRHB0CaQfrFIrlCbJgumGdW+UC7HUa6XZxGu8iJ+3OujEbbC850riSHYuxgZc5oQXVEOsXPvAJ1hlk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712332325; c=relaxed/simple; bh=W4zm0u/PKkt7rNRHTV8BnvIYYWSByCuEeJSEDIkx7Kg=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=wDKhZkKWWuLAUDpFN8jq2aY/N7y7p+t/ztA2p15vm5S48uUJ/6Ei7WlkF2Kev9twcp2EehpSr8bUAeEK59l61ReNa+QPfIzKgfEZwiL6R92jIjChukiCscXItMGIj6bzA1brYkeAz5k4n7NPK55Hekj7Ps2UVokUZtyFxa+P9Qc= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: Date: Fri, 5 Apr 2024 09:51:59 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Cygwin /usr/bin/stat returns "Birth: -", which value in FILE_BASIC_INFORMATION.CreationTime causes that? Content-Language: en-CA To: cygwin AT cygwin DOT com References: <31e79a62-2068-4488-9195-b9e7abf716e3 AT SystematicSW DOT ab DOT ca> Organization: Systematic Software In-Reply-To: X-Rspamd-Queue-Id: D19EA20024 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Stat-Signature: rtmw449ii9coies7hu5sg84cax3n5pra X-Rspamd-Server: rspamout04 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX18bA66oWeEpxscdi5eHW4yEXo/Nkn38orQ= X-HE-Tag: 1712332320-324135 X-HE-Meta: U2FsdGVkX1+p8J/ETILjewyw2sG3Fn09+J8RjdRhlgUurYkmliOx/HF9SV5msY3N+n2ToMOnCqThkXe2UuViDQpk/Vk57bPbCNjvuR0lOasVMjHU8ahS65Dz6c0/eAGylRrsKnvbyZMF+J80CoLhIU/Wa9nWJEofAg6K9evP28CJA+Y3aMj4tw9ViKXqYqiVg2HJmEnKv+XZTLIjInuY5FzYTXaBdilN0ozEsJUjYRAX5beIsC1swyCwhVqdgLXoJEqYDD6584okY3Ij8ui8sVsbJMIy7x9eT8c1/WI4oCS+8GrumZene1vvOQGguv1NKffHvKrxgJ71ch5UYm3pMycOm4M7mrMAGZz9mpoVIwo4OLKjMdRq8Wb1aH7ootfZfusQjxJDjGaZNbfSNFsfm0FW0DDKp5JWwovPPbfRERgrzRzLkdcAPskYCxQX2/Fw+NR9E/qRsuiKbvBFf3QDQdACuYpCwUsCieA6w5rz+v0= 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 437N4U34149966 On 2024-04-04 19:08, Martin Wege via Cygwin wrote: > 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? Caller or application can set 0 to mean keep/return current value, caller or driver can set -1 to mean don't update/return current value: https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_file_basic_information#remarks -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- 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