delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/12/14:06:20

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:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=xGs
vDmm/3eQEaa9SUqTXUOJvd39FF68he4EHwmQy/2sG00cFHFcEDtVjMwMoicZvkiL
H0iPuQyFFLULHfoJnmuFJP+ip/y3byhnD1QaqrQTny7M2dg0e+FB/1JdLbdALiHL
3Wpp718wfrqgoc/fxw4ZH1gMOrk5wRVhcFYSFxww=
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:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=MlBde9a6J
p09WmX2QgnIRiGzEP4=; b=S/qqBYt/EPhRJwKggOxAF/kNt1xFag4yUap0nPrkz
11UhQoaiNQ9sZTALr5R6DKF9hpPFFXrV4E9TucesUSuxeubVJe+Nc8BKvMFv+uWI
QYahTTBcATMyhtyP/nU4moUbhBYJuzdOTcBQbbxXwo59d1j7rysRcotNu7qOV1Zv
Fc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=1.6 required=5.0 tests=AWL,BAYES_20,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:NHxtPHrt, H*UA:Outlook, H*x:Outlook, H*UA:Microsoft
X-HELO: dnvrco-cmomta02.email.rr.com
From: <tlake AT twcny DOT rr DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Bug in TIME function
Date: Thu, 12 Sep 2019 14:05:24 -0400
Message-ID: <009d01d56994$a8065040$f812f0c0$@twcny.rr.com>
MIME-Version: 1.0

The code below returns -1. It shouldn't.

 

#include <sys/times.h>

#include <stdio.h>

 

int main(int argc, char *argv[])

{

  printf("return value %ld\n", (long)times((struct tms*)0));

  return 0;

}

 


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019