sleep

å称
     sleep — ç§åä½ã§æ¸¬å®ãããééã ãããã»ã¹ã®å®è¡ãä¸æãã

ã©ã¤ãã©ãª
     Standard C Library (libc, -lc)

æ¸å¼
     <unistd.h> unsigned int sleep(unsigned int seconds)

解説
     sleep() é¢æ°ã¯ seconds ç§ãçµéããããã¾ãã¯ã·ã°ãã«ãããã»ã¹ã«å°çããçµæ
     ã·ã°ãã«å¦çé¢æ°ãèµ·åãããããã»ã¹ãçµäºããã¾ã§ã å¼ã³åºãããã»ã¹ã®å®è¡ãä¸æãã¾ãã
     ã·ã¹ãã ã®ç¨¼åç¶æ³ã«ãã£ã¦ã¯ãããã»ã¹ã®ä¸æãã¦ããæéã
     ä¸ç¢ºå®ã¨ãªã£ã¦é·ã³ãå¯è½æ§ãããã¾ãã

     ãã®é¢æ°ã¯ã nanosleep(2) ã使ç¨ãã¦ã seconds
     ç§çµã¤ããã¾ãã¯ã·ã°ãã«ãå°çããã¾ã§ä¸æããã¨ããæ¹æ³ã§
     å®è£ããã¦ãã¾ãããããã£ã¦ããã®å®è£ã«ããã¦ã¯ã ããã»ã¹ãä¸æãããã¨ã«ãã£ã¦ãã‐
     ã»ã¹ã¿ã¤ãã®ç¶æã å½±é¿ãåãããã¨ã¯ãªããSIGALRM ã«å¯¾ããç¹å¥ãªå¦çã ããã¾ããã

æ»ãå¤
     è¦æ±ãããæéãçµéããããã« sleep() é¢æ°ã復帰ããå ´åãè¿ãããå¤ã¯ 0
     ã§ããã·ã°ãã«ãéãããããã« sleep() é¢æ°ã復帰ããå ´åãè¿ãããå¤ã¯ ããã»ã¹ãä¸æ‐
     ãã¦ããªãã£ãæéé (ç§åä½) ã«ãªãã¾ã (ããã¯è¦æ±ãããæéããå®éã«ä¸æãã¦ãã
     æéãæ¸ç®ãããã®ã§ã)ã

é¢é£é ç®
     nanosleep(2), usleep(3)

è¦æ ¼
     sleep() é¢æ°ã¯ ISO/IEC 9945-1:1990 (“POSIX.1”) ã«é©åãã¦ãã¾ãã

æ´å²
     sleep() é¢æ°ã¯ Version 7 AT&T UNIX ã§ç»å ´ãã¾ããã