X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@cygwin.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@kylheku.com>
In-Reply-To: <CAHSx_Ssk0i6UDxoNULcG4ugv_mt7hjTP-DAUQnOUgxX3pXit0w@mail.gmail.com>
References: <78512bbe-b912-9bf5-d6cf-9da5b982c955@SystematicSw.ab.ca> <016201d56a26$37271f70$a5755e50$@twcny.rr.com> <CAHSx_Ssk0i6UDxoNULcG4ugv_mt7hjTP-DAUQnOUgxX3pXit0w@mail.gmail.com>
Message-ID: <c128e605c925ed0704409d917c1b7f25@mail.kylheku.com>
X-Sender: 920-082-4242@kylheku.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


