sleep man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]

SLEEP(2)							      SLEEP(2)

NAME
       sleep, alarm - delay, ask for delayed note

SYNOPSIS
       #include <u.h>
       #include <libc.h>

       int sleep(long millisecs)

       long alarm(unsigned long millisecs)

DESCRIPTION
       Sleep suspends the current process for the number of milliseconds spec‐
       ified by the argument.  The actual suspension time may be a little more
       or  less	 than the requested time. If millisecs is 0, the process gives
       up the CPU if another process is waiting to run, returning  immediately
       if not.	Sleep returns -1 if interrupted, 0 otherwise.

       Alarm  causes  an alarm note (see notify(2)) to be sent to the invoking
       process after the number of milliseconds given by the  argument.	  Suc‐
       cessive	calls  to alarm reset the alarm clock.	A zero argument clears
       the alarm.  The return value is the amount of time previously remaining
       in the alarm clock.

SOURCE
       /sys/src/libc/9syscall

SEE ALSO
       intro(2)

DIAGNOSTICS
       These functions set errstr.

								      SLEEP(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net