OSDN Git Service

(split) LDP: Update draft pages
[linuxjm/LDP_man-pages.git] / draft / man2 / alarm.2
index 324ca6c..9275b91 100644 (file)
@@ -1,8 +1,7 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
-.\"                               1993 Michael Haardt, Ian Jackson.
+.\"             and Copyright (C) 1993 Michael Haardt, Ian Jackson.
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
-.\" Modified Wed Jul 21 19:42:57 1993, Rik Faith <faith@cs.unc.edu>
-.\" Modified Sun Jul 21 21:25:26 1996, Andries Brouwer <aeb@cwi.nl>
+.\" Modified Wed Jul 21 19:42:57 1993 by Rik Faith <faith@cs.unc.edu>
+.\" Modified Sun Jul 21 21:25:26 1996 by Andries Brouwer <aeb@cwi.nl>
 .\" Modified Wed Nov  6 03:46:05 1996 by Eric S. Raymond <esr@thyrsus.com>
 .\"
-.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
-.\"         all rights reserved.
-.\" Translated Wed Feb 22 20:02:18 JST 1997
-.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
+.\"*******************************************************************
 .\"
-.\"WORD:       alarm                   ¥¢¥é¡¼¥à
-.\"WORD:       signal                  ¥·¥°¥Ê¥ë
-.\"WORD:       clock                   ¥¯¥í¥Ã¥¯
-.\"WORD:       process                 ¥×¥í¥»¥¹
-.\"WORD:       timer                   ¥¿¥¤¥Þ¡¼
-.\"WORD:       scheduling              ¥¹¥±¥¸¥å¡¼¥ê¥ó¥°
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.TH ALARM 2 2008-06-12 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O alarm \- set an alarm clock for delivery of a signal
-alarm \- ¥·¥°¥Ê¥ëÇÛÁ÷¤Î¤¿¤á¤Î¥¢¥é¡¼¥à¡¦¥¯¥í¥Ã¥¯¤òÀßÄꤹ¤ë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.\"*******************************************************************
+.TH ALARM 2 2013\-04\-18 Linux "Linux Programmer's Manual"
+.SH 名前
+alarm \- シグナル配送のためのアラーム・クロックを設定する
+.SH 書式
 .nf
-.B #include <unistd.h>
+\fB#include <unistd.h>\fP
 .sp
-.BI "unsigned int alarm(unsigned int " seconds );
+\fBunsigned int alarm(unsigned int \fP\fIseconds\fP\fB);\fP
 .fi
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O .BR alarm ()
-.\"O arranges for a
-.\"O .B SIGALRM
-.\"O signal to be delivered to the calling process in
-.\"O .I seconds
-.\"O seconds.
-.BR alarm ()
-¤Ï
-.B SIGALRM
-¥·¥°¥Ê¥ë¤ò
-.I seconds
-Éøå¤Ë¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤ËÇÛÁ÷¤¹¤ë¤è¤¦¤Ë¼êÇÛ¤¹¤ë¡£
+.SH 説明
+\fBalarm\fP()  は \fBSIGALRM\fP シグナルを \fIseconds\fP 秒後に呼び出したプロセスに配送するように手配する。
 
-.\"O If
-.\"O .I seconds
-.\"O is zero, no new
-.\"O .BR alarm ()
-.\"O is scheduled.
-.I seconds
-¤¬¥¼¥í¤Ê¤é¤Ð¡¢¿·¤¿¤Ê
-.BR alarm ()
-¤Ï¼êÇÛ¤µ¤ì¤Ê¤¤¡£
+\fIseconds\fP がゼロならば、処理待ち (pending) のアラームはすべてキャンセルされる。
 
-.\"O In any event any previously set
-.\"O .BR alarm ()
-.\"O is canceled.
-º£¤Þ¤Ç¤ËÀßÄꤵ¤ì¤Æ¤¤¤¿
-.BR alarm ()
-¤ÏÃæÃǤµ¤ì¤ë¡£
-.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
-.\"O .BR alarm ()
-.\"O returns the number of seconds remaining until any previously scheduled
-.\"O alarm was due to be delivered, or zero if there was no previously
-.\"O scheduled alarm.
-.BR alarm ()
-¤Ï°ÊÁ°¤ËͽÄꤵ¤ì¤Æ¤¤¤¿¥¢¥é¡¼¥à¤ÎÇÛÁ÷¤Þ¤Ç¤Î»Ä¤ê»þ´Ö¤òÊÖ¤¹¡£°ÊÁ°¤Ë
-¥¢¥é¡¼¥à¤¬Í½Äꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¥¼¥í¤òÊÖ¤¹¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
-SVr4, POSIX.1-2001, 4.3BSD.
-.\"O .SH NOTES
-.SH Ãí°Õ
-.\"O .BR alarm ()
-.\"O and
-.\"O .BR setitimer (2)
-.\"O share the same timer; calls to one will interfere with use of the
-.\"O other.
-.BR alarm ()
-¤È
-.BR setitimer (2)
-¤ÏƱ¤¸¥¿¥¤¥Þ¡¼¤ò¶¦Í­¤·¤Æ¤¤¤ë; ÊÒÊý¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤Ï¤â¤¦°ìÊý¤Î
-»ÈÍѤ˱ƶÁ¤òÍ¿¤¨¤ë¡£
+今までに設定されていた \fBalarm\fP()  は中断される。
+.SH 返り値
+\fBalarm\fP()  は以前に予定されていたアラームの配送までの残り時間を返す。以前に アラームが予定されていなければゼロを返す。
+.SH 準拠
+SVr4, POSIX.1\-2001, 4.3BSD.
+.SH 注意
+\fBalarm\fP()  と \fBsetitimer\fP(2)  は同じタイマーを共有している; 片方を呼び出すことはもう一方の 使用に影響を与える。
 .PP
-.\"O .BR sleep (3)
-.\"O may be implemented using
-.\"O .BR SIGALRM ;
-.\"O mixing calls to
-.\"O .BR alarm ()
-.\"O and
-.\"O .BR sleep (3)
-.\"O is a bad idea.
-.BR sleep (3)
-¤Ï
-.B SIGALRM
-¤òÍøÍѤ·¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
-.BR alarm ()
-¤È
-.BR sleep (3)
-¤òº®¤¼¤Æ»ÈÍѤ·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
+\fBsleep\fP(3)  は \fBSIGALRM\fP を利用して実装されているかもしれない。 \fBalarm\fP()  と \fBsleep\fP(3)
+を混ぜて使用してはならない。
 
-.\"O Scheduling delays can, as ever, cause the execution of the process to
-.\"O be delayed by an arbitrary amount of time.
-¥¹¥±¥¸¥å¡¼¥ê¥ó¥°(scheduling)¤ÎÃÙ±ä¤Ë¤è¤ê¡¢¥×¥í¥»¥¹¤Î¼Â¹Ô¤ËÉÔÄêÎ̤Î
-Ãٱ䤬µ¯¤­¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR gettimeofday (2),
-.BR pause (2),
-.BR select (2),
-.BR setitimer (2),
-.BR sigaction (2),
-.BR signal (2),
-.BR sleep (3),
-.BR time (7)
+スケジューリング(scheduling)の遅延により、プロセスの実行に不定量の 遅延が起きる可能性がある。
+.SH 関連項目
+\fBgettimeofday\fP(2), \fBpause\fP(2), \fBselect\fP(2), \fBsetitimer\fP(2),
+\fBsigaction\fP(2), \fBsignal\fP(2), \fBsleep\fP(3), \fBtime\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。