delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/12/03/12:58:20

From: chris AT calligrafix DOT co DOT uk (Chris Warren)
Subject: ITIMER Implimentation???
3 Dec 1996 12:58:20 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <32A47EE5.210C.cygnus.gnu-win32@calligrafix.co.uk>
Reply-To: chris AT calligrafix DOT co DOT uk
Mime-Version: 1.0
X-Mailer: Mozilla 3.0Gold (Win95; I)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Have this code in a program I am trying to port (CircleMUD 3.0)... Only
one peice of code doesn't work....

  struct itimerval itime;

  interval.tv_sec = 180;
  interval.tv_usec = 0;
  itime.it_interval = interval;
  itime.it_value = interval;
  setitimer(ITIMER_VIRTUAL, &itime, NULL);
  my_signal(SIGVTALRM, checkpointing);

struct itimerval is not known nor are ITIMER_VIRTUAL, SIGVTALRM and
setitimer.

Anybody know of a way round this???

Thanks,
Chris
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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