X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:subject:mime-version:content-type :content-transfer-encoding:date:from:in-reply-to:references :message-id; q=dns; s=default; b=W2XUWkqkQ6UKJEK2HRv1hH05NhgnO5A /RoR6UoLGZzHDhkWSnVWvVDz5DtsO3m0QcsWnckiFGTuz41MHGfgdGJ9TjJtoKKL bZnPU2qQbdIEuZ9KyHvok5uQ4uPO07ygUzl3KZ71uAl9LizWFCcVCxJDfRt4KsX9 C5ySk1nvbfio= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:subject:mime-version:content-type :content-transfer-encoding:date:from:in-reply-to:references :message-id; s=default; bh=9ZgVazR62tC91w46Ua2OdmqYs9k=; b=TRynL vXNwPRk2KzeTubyz3eGyrqPrQkcmLm+1SRtbPGMkwSrdCCpi8eX6TeYEaO69bQ9Q VXOoQlHzoiil6goOx+P10ZmcWPuz57rErfkMrBOmZw8CbrgmciKcQnSKWHS1r0yU VFMmAX9QOgefvILnaXG1f4COosWbNP6bpzlL3c= 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,FROM_STARTS_WITH_NUMS,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-PHP-Originating-Script:rcmail.php, H*u:0.9.2, H*UA:0.9.2, HX-Spam-Relays-External:ESMTPA X-HELO: smtp-out-so.shaw.ca To: cygwin AT cygwin DOT com Subject: Re: Bug in TIME function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Fri, 13 Sep 2019 15:14:36 -0700 From: Kaz Kylheku <920-082-4242 AT kylheku DOT com> In-Reply-To: References: <78512bbe-b912-9bf5-d6cf-9da5b982c955 AT SystematicSw DOT ab DOT ca> <016201d56a26$37271f70$a5755e50$@twcny.rr.com> Message-ID: X-Sender: 920-082-4242 AT kylheku DOT com User-Agent: Roundcube Webmail/0.9.2 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x8DMFIeX029780 On 2019-09-13 12:11, Wayne Davison wrote: > On Fri, Sep 13, 2019 at 4:27 AM wrote: >> In Linux [times()] returns a time value and return code of 0: > > The Linux man page for times() mentions this special behavior, how it > isn't portable, and even advises against using the function: > > "On Linux, the buf argument can be specified as NULL, with the result > that times() just returns a function result. However, POSIX does not > specify this behavior, and most other UNIX implementations require a > non-NULL value for buf." Ah, so it is a documented extension in Linux, after all. In that case, Cygwin should support it. > One might argue that it would be nice to emulate the Linux behavior, > but it's not required by POSIX. Cygwin's explicit motto is "Get that Linux feeling --- on Windows"; and a tiny part of the Linux feeling is that times(NULL) works. -- 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