National Institute of Advanced Industrial Science and Technology (AIST) This page is a page of the former research institute. We stopped updating on March 31.2001.
E-mail to webmaster (Japanese) E-mail to webmaster (English)
next up previous contents index
Next: Multithread Up: Unix System Calls Previous: File Systems and I/O

Signals

  unix:signal signal func [option] [function]

  unix:kill pid signal [function]   unix:pause [function]   unix:alarm time [function]   unix:ualarm time [function]
  • same as unix:alarm except that the unit of time is micro seconds. ualarm is not available on Solaris2 or on other Sys5 based systems.
  unix:getitimer timer [function]
  • timer is one of 0 (ITIMER_REAL), 1 (ITIMER_VIRTUAL), and 2(ITIMER_PROF). A list of two elements is returned: the value of the timer in second and the interval.
  unix:setitimer timer value interval [function]
  • sets value and interval in timer. timer is one of 0 (ITIMER_REAL), 1 (ITIMER_VIRTUAL), and 2(ITIMER_PROF). ITIMER_REAL delivers SIGALRM when value expires. ITIMER_VIRTUAL delivers SIGVTALRM, and ITIMER_PROF delivers SIGPROF.
  unix:select inlist outlist exceptlist timeout [function]
  • inlist, outlist and exceptlist are bitvectors indicating file descriptors whose I/O events should be tested. For example, if inlist=#b0110, outlist=#b100, and exceptlist=NIL, then whether it is possible to read on fd=1 or 2, or to write on fd=2 is tested. Timeout specifies seconds for which select is allowed to wait. Immediately after incoming data appear on one of the ports specified in inlist, or writing become available on one of the ports specified in outlist, or exceptional condition arises in one of the ports specified in exceptlist, select returns the number of ports that are available for I/O operation, setting ones for the possible port s in each of inlist, outlist and exceptlist.
  unix:select-read-fd read-fdset timeout [function]
  • I/O selection is usually meaningful only for input operation. unix:select-read-fd is a short-hand for select fdset nil nil timeout. Read-fdset is not a bit-vector, but an integer that specifies the reading fd set.

next up previous contents index
Next: Multithread Up: Unix System Calls Previous: File Systems and I/O

Hirofumi Nakagaki
Fri Mar 22 12:46:38 JST 1996