Rechercher une page de manuel
ualarm
Langue: ja
Version: 2003-07-24 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
̾Á°
ualarm - »ØÄꤷ¤¿¥Þ¥¤¥¯¥íÉøå¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤ëͽÄê¤ò¤¹¤ë½ñ¼°
#define _XOPEN_SOURCE 500 /* ¤Þ¤¿¤Ï #define _BSD_SOURCE */ #include <unistd.h> useconds_t ualarm(useconds_t usecs, useconds_t interval);
ÀâÌÀ
ualarm() ´Ø¿ô¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤ËÂФ·¤Æ usecs ¥Þ¥¤¥¯¥íÉà (°Ê¾å) ¸å¤Ë SIGALRM ¥·¥°¥Ê¥ë¤òÁ÷¤ë¡£ ÃÙ¤ì¤Ï¥·¥¹¥Æ¥à¤Î³èÀÅÙ¡¦¸Æ¤Ó½Ð¤·¤Î½èÍý»þ´Ö¡¦ ¥·¥¹¥Æ¥à¥¿¥¤¥Þ¡¼¤ÎγÅ٤ˤè¤Ã¤ÆŤ¯¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¡£Ê᪤ޤ¿¤Ï̵»ë¤µ¤ì¤Ê¤¤¸Â¤ê¡¢ SIGALRM ¥·¥°¥Ê¥ë¤Ï¥×¥í¥»¥¹¤ò½ªÎ»¤µ¤»¤ë¡£
interval °ú¤¿ô¤¬ 0 ¤Ç¤Ê¤¤¾ì¹ç¡¢ºÇ½é¤Î SIGALRM ¥·¥°¥Ê¥ë¤Î¸å¡¢ ¹¹¤Ë interval ¥Þ¥¤¥¯¥íÉÃËè¤Ë SIGALRM ¥·¥°¥Ê¥ë¤¬Á÷¤é¤ì¤ë¡£
ÊÖ¤êÃÍ
¤³¤Î´Ø¿ô¤Ï¡¢²áµî¤ËÀßÄꤵ¤ì¤¿ alarm ¤Î»Ä¤ê¥Þ¥¤¥¯¥íÉÿô¤òÊÖ¤¹¡£ ¼Â¹ÔÃæ¤Î alarm ¤¬¤Ê¤¤¾ì¹ç¤Ï 0 ¤òÊÖ¤¹¡£¥¨¥é¡¼
- EINTR
- ¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤Æ³ä¤ê¹þ¤Þ¤ì¤¿¡£
- EINVAL
- usecs ¤Þ¤¿¤Ï interval ¤¬ 1000000 ̤Ëþ¤Ç¤Ê¤¤ (¤³¤ì¤¬¥¨¥é¡¼¤È¤·¤Æ°·¤ï¤ì¤ë¥·¥¹¥Æ¥à¤Î¾ì¹ç)¡£
½àµò
4.3BSD, POSIX.1-2001. POSIX.1-2001 ¤Ç¤Ï ualarm() ¤Ï²áµî¤Î¤â¤Î¤È¤µ¤ì¤Æ¤¤¤ë¡£ 4.3BSD, SUSv2, POSIX ¤Ï¥¨¥é¡¼¤òÄêµÁ¤·¤Æ¤¤¤Ê¤¤¡£Ãí°Õ
useconds_t ·¿¤Ï [0,1000000] ¤ÎÈϰϤÎÀ°¿ô¤òÊÝ»ý¤Ç¤¤ëÉä¹æ¤Ê¤·À°¿ô·¿¤Ç¤¢¤ë¡£ ¤â¤È¤â¤È¤Î BSD ¤Ç¤Î¼ÂÁõ¤ä¡¢¥Ð¡¼¥¸¥ç¥ó 2.1 ¤è¤êÁ°¤Î glibc ¤Ç¤Ï¡¢ ualarm() ¤Î°ú¤¿ô¤Î·¿¤Ï unsigned int ¤Ç¤¢¤Ã¤¿¡£ ¥×¥í¥°¥é¥àÃæ¤ËÌÀ¼¨Åª¤Ë useconds_t ¤È½ñ¤«¤Ê¤¤Êý¤¬¡¢°Ü¿¢À¤¬¹â¤¯¤Ê¤ë¡£¤³¤Î´Ø¿ô¤È alarm(2), sleep(3), nanosleep(2), setitimer(2), timer_create(3), timer_delete(3), timer_getoverrun(3), timer_gettime(3), timer_settime(3), usleep(3) ¤Î¤è¤¦¤Ê¾¤Î¥¿¥¤¥Þ¡¼´Ø¿ô¤È¤ÎÁê¸ßºîÍѤϵ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
¤³¤Î´Ø¿ô¤ÏÇѤ줿¤â¤Î¤Ç¤¢¤ë¡£ Âå¤ï¤ê¤Ë setitimer(2) ¤â¤·¤¯¤Ï POSIX ¥¤¥ó¥¿¡¼¥Ð¥ë¥¿¥¤¥Þ (timer_create(3) ¤Ê¤É) ¤ò»È¤¦¤³¤È¡£
´ØÏ¢¹àÌÜ
alarm(2), getitimer(2), nanosleep(2), select(2), setitimer(2), usleep(3), feature_test_macros(7), time(7)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre