svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
sleep(3c)
sleep(3C) Standard C Library Functions sleep(3C)
NAME
sleep - suspend execution for an interval of time
SYNOPSIS
#include <unistd.h>
unsigned int sleep(unsigned int seconds);
DESCRIPTION
The sleep() function suspends the calling thread from execution for the
number of seconds specified by the argument. The actual suspension time
may be less than that requested because any signal caught by that
thread will terminate the sleep() following execution of that signal's
catching routine. The suspension time may be longer than requested by
an arbitrary amount due to the scheduling of other activity in the sys‐
tem.
The use of the sleep() function has no effect on the action or blockage
of any signal. In a multithreaded process, only the invoking thread is
suspended from execution.
RETURN VALUES
If sleep() returns because the requested time (or more) has elapsed,
the return value will be 0.
If the caller is woken early by the delivery of a signal, the value re‐
turned by sleep() will be the "unslept" amount (the requested time mi‐
nus the time actually slept).
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelAsync-Signal-
Safe _ StandardSee standards(7).
SEE ALSO
nanosleep(3C), attributes(7), standards(7)
HISTORY
The sleep() function has been included in all Sun and Oracle releases
of Solaris.
Oracle Solaris 11.4 27 Aug 2025 sleep(3C)