delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/12/30/09:38:45

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
From: "Sergey Okhapkin" <sos AT sokhapkin DOT dyndns DOT org>
To: <cygwin-developers AT cygwin DOT com>
Subject: FW: setitimer/SIGVTALRM error form cygwin shell.
Date: Mon, 30 Dec 2002 09:39:29 -0500
Message-ID: <59A835EDCDDBEB46BC75402F4604D5528F75A9@elmer>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
X-OriginalArrivalTime: 30 Dec 2002 14:39:29.0932 (UTC) FILETIME=[42AC5CC0:01C2B011]

It seems to me it would be better to set errno to ENOSYS rather than
EINVAL if the first argument of setitimer call is not ITIMER_REAL. Any
objections?


-----Original Message-----
From: gilles BOURGEOIS [mailto:gbourgeois AT yaccom DOT com]
Sent: Monday, December 30, 2002 9:27 AM
To: Sergey Okhapkin
Subject: RE: setitimer/SIGVTALRM error form cygwin shell.


thanks for help.
just I was wondering why the #define ITIMER_VIRTUAL is still in the
interface ! (sys/time.h) gilles


-----Message d'origine-----
De : Sergey Okhapkin [mailto:sos AT sokhapkin DOT dyndns DOT org]
Envoyé : lundi 30 décembre 2002 12:56
À : gilles BOURGEOIS; cygwin AT cygwin DOT com
Objet : Re: setitimer/SIGVTALRM error form cygwin shell.


Cygwin supports ITIMER_REAL only.

Sergey Okhapkin
Somerset, NJ
----- Original Message -----
From: "gilles BOURGEOIS" <gbourgeois AT yaccom DOT com>
To: <cygwin AT cygwin DOT com>
Sent: Monday, December 30, 2002 3:27 AM
Subject: setitimer/SIGVTALRM error form cygwin shell.


> Hello
> I am trying to simulate a tick timer under cygwin but it does not work

> : with the following code :
>
>  /* Initialise timer structure */
>   interval.it_interval.tv_sec = 1;
>   interval.it_interval.tv_usec = 0;
>   interval.it_value.tv_sec = 1;
>   interval.it_value.tv_usec = 0;
>
>    /* Initialise virtual timer */
>    if (!sigaction (SIGVTALRM, &sigact, 0))
>       {
>       if ( (err=setitimer (ITIMER_PROF, &s_Rtk_interval, NULL)) <0)
>      {printf ("StartTimer could not setitimer %d\n",err);
>      printf ("errno errno = %d (%s).\n", errno, strerror(errno));
>
>           exit (0);
> }
>       }
>    else
>       {
>       fprintf( stderr, "Erreur :%d\n", errno );
>       }
>
> I got the invalid argument (errno) error ??
> did someone manage the use of virtual timer under cygwin? thanks
> gilles
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>



- Raw text -


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