mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-11 08:10:21 +02:00
* posix.texi (Signals): add docs for setitimer and getitimer.
This commit is contained in:
parent
03061728cd
commit
b3c9931852
1 changed files with 25 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
* Time:: gettimeofday, localtime, strftime, etc.
|
* Time:: gettimeofday, localtime, strftime, etc.
|
||||||
* Runtime Environment:: Accessing and modifying Guile's environment.
|
* Runtime Environment:: Accessing and modifying Guile's environment.
|
||||||
* Processes:: getuid, getpid, etc.
|
* Processes:: getuid, getpid, etc.
|
||||||
* Signals:: sigaction, kill, pause, alarm, etc.
|
* Signals:: sigaction, kill, pause, alarm, setitimer, etc.
|
||||||
* Terminals and Ptys:: ttyname, tcsetpgrp, etc.
|
* Terminals and Ptys:: ttyname, tcsetpgrp, etc.
|
||||||
* Pipes:: Communicating data between processes.
|
* Pipes:: Communicating data between processes.
|
||||||
* Networking:: gethostbyaddr, getnetent, socket, bind, listen.
|
* Networking:: gethostbyaddr, getnetent, socket, bind, listen.
|
||||||
|
@ -1456,6 +1456,30 @@ Sleep for I microseconds. @code{usleep} is not available on
|
||||||
all platforms.
|
all platforms.
|
||||||
@end deffn
|
@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
|
@node Terminals and Ptys
|
||||||
@section Terminals and Ptys
|
@section Terminals and Ptys
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue