Index of Section 2 Manual Pages

Interix / SUAsleep.2Interix / SUA

sleep(2)                                                       sleep(2)

  sleep()

  NAME

    sleep() - suspend process execution for interval of seconds

  SYNOPSIS

    #include 

    u_int sleep (u_int seconds)

  DESCRIPTION

    The sleep(2) function suspends execution of the calling process for at
    least seconds of time, or until a signal is delivered to the calling
    process which invokes a signal-catching function or terminates the
    process. System activity or time spent in processing the call may lengthen
    the sleep.

  RETURN VALUES

    sleep(2) returns 0 if its sleep was completed, or it returns the number of
    seconds left unslept if it was interrupted by a signal.

  USAGE NOTES

    The sleep function is thread safe.

    The sleep function is async-signal safe.


Interix / SUAHosted at SUA Community for Interix, SUA and SFUInterix / SUA