1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-07 18:30:25 +02:00

* posix.texi (Signals): add docs for setitimer and getitimer.

This commit is contained in:
Rob Browning 2001-07-19 18:00:49 +00:00
parent 03061728cd
commit b3c9931852

View file

@ -10,7 +10,7 @@
* Time:: gettimeofday, localtime, strftime, etc.
* Runtime Environment:: Accessing and modifying Guile's environment.
* Processes:: getuid, getpid, etc.
* Signals:: sigaction, kill, pause, alarm, etc.
* Signals:: sigaction, kill, pause, alarm, setitimer, etc.
* Terminals and Ptys:: ttyname, tcsetpgrp, etc.
* Pipes:: Communicating data between processes.
* Networking:: gethostbyaddr, getnetent, socket, bind, listen.
@ -1456,6 +1456,30 @@ Sleep for I microseconds. @code{usleep} is not available on
all platforms.
@end deffn
@deffn primitive setitimer which_timer interval_seconds interval_microseconds value_seconds value_microseconds
Set the timer specified by @var{which_timer} according to the given
@var{interval_seconds}, @var{interval_microseconds},
@var{value_seconds}, and @var{value_microseconds} values, and return
information about the timer's previous setting. The timers available
are: @code{ITIMER_REAL}, @code{ITIMER_VIRTUAL}, and @code{ITIMER_PROF},
and the return value will be a list of two cons pairs representing the
current state of the given timer. The first pair is the seconds and
microseconds of the timer @code{it_interval}, and the second pair is the
seconds and microseconds of the timer @code{it_value}.
@end deffn
@deffn primitive getitimer which_timer
Return information about the timer specified by @var{which_timer}. The
timers available are: @code{ITIMER_REAL}, @code{ITIMER_VIRTUAL}, and
@code{ITIMER_PROF}, and the return value will be a list of two cons
pairs representing the current state of the given timer. The first pair
is the seconds and microseconds of the timer @code{it_interval}, and the
second pair is the seconds and microseconds of the timer
@code{it_value}.
@end deffn
@node Terminals and Ptys
@section Terminals and Ptys