OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / release / man3 / usleep.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
28 .\" Modified 2001-04-01 by aeb
29 .\" Modified 2003-07-23 by aeb
30 .\"
31 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
32 .\"       all rights reserved.
33 .\" Translated Mon Jan 20 18:47:50 JST 1997
34 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
35 .\" Updated Sat May 19 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
36 .\" Updated Mon Sep  1 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
37 .\" Updated 2007-05-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.44
38 .\"
39 .TH USLEEP 3  2007-07-26 "" "Linux Programmer's Manual"
40 .SH Ì¾Á°
41 usleep \- ¥Þ¥¤¥¯¥íÉÃñ°Ì¤Ç¼Â¹Ô¤ò±ä´ü¤¹¤ë
42 .SH ½ñ¼°
43 .nf
44 .B "#include <unistd.h>"
45 .sp
46 .BI "int usleep(useconds_t " usec );
47 .fi
48 .sp
49 .in -4n
50 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
51 .RB ( feature_test_macros (7)
52 »²¾È):
53 .in
54 .sp
55 .BR usleep ():
56 _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
57 .SH ÀâÌÀ
58 .BR usleep ()
59 ´Ø¿ô¤Ï
60 (¾¯¤Ê¤¯¤È¤â) \fIusec\fP¥Þ¥¤¥¯¥íÉäδ֡¢
61 ¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î¼Â¹Ô¤ò±ä´ü¤¹¤ë¡£
62 ¥·¥¹¥Æ¥à¤ÎÆ°ºî¾õ¶·¤ä¸Æ¤Ó½Ð¤·¤Ë¤è¤ë»þ´Ö¤Î¾ÃÈñ¤ä¥·¥¹¥Æ¥à¥¿¥¤¥Þ¤ÎγÅ٤ˤè¤Ã¤Æ¡¢
63 Ää»ß»þ´Ö¤ÏÀßÄꤷ¤¿Ãͤè¤ê¤â¾¯¤·±ä¤Ð¤µ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
64 .SH ÊÖ¤êÃÍ
65 À®¸ù¤¹¤ë¤È 0¡¢¥¨¥é¡¼¤Î¾ì¹ç \-1 ¤òÊÖ¤¹¡£
66 .SH ¥¨¥é¡¼
67 .TP
68 .B EINTR
69 ¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤ÆÃæÃǤµ¤ì¤¿¡£
70 .BR signal (7)
71 »²¾È¡£
72 .TP
73 .B EINVAL
74 \fIusec\fP ¤¬ 1000000 °Ê¾å¤À¤Ã¤¿¡£
75 (¤³¤ì¤ò¥¨¥é¡¼¤È¤ß¤Ê¤¹¥·¥¹¥Æ¥à¤Î¤ß)
76 .SH ½àµò
77 4.3BSD, POSIX.1-2001.
78 POSIX.1-2001 ¤Ç¤Ï¡¢¤³¤Î´Ø¿ô¤Ï²áµî¤Î¤â¤Î¤ÈÀë¸À¤µ¤ì¤Æ¤¤¤ë¡£
79 Âå¤ï¤ê¤Ë
80 .BR nanosleep (2)
81 ¤ò»È¤¦¤³¤È¡£
82 POSIX.1-2008 ¤Ç¤Ï¡¢
83 .BR usleep ()
84 ¤Îµ¬Ä꤬ºï½ü¤µ¤ì¤Æ¤¤¤ë¡£
85
86 ¤â¤È¤â¤È¤Î BSD ¤Î¼ÂÁõ¤ä¡¢¥Ð¡¼¥¸¥ç¥ó 2.2.2 ¤è¤êÁ°¤Î glibc ¤Ç¤Ï¡¢
87 ¤³¤Î´Ø¿ô¤ÎÊÖ¤êÃͤη¿¤Ï
88 .I void
89 ¤Ç¤¢¤ë¡£
90 POSIX ÈǤÏ
91 .I int
92 ¤òÊÖ¤·¡¢¤³¤Î¥×¥í¥È¥¿¥¤¥×¤Ï glibc 2.2.2 °Ê¹ß¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤ë¡£
93
94 ¥¨¥é¡¼¤È¤·¤Æ
95 .B EINVAL
96 ¤òÊÖ¤¹¤È¤¤¤¦¤Î¤Ï
97 SUSv2 ¤È POSIX.1-2001 ¤Ç¤Î¤ßʸ½ñ²½¤µ¤ì¤Æ¤¤¤ë¡£
98 .SH Ãí°Õ
99 .I useconds_t
100 ·¿¤Ï [0,1000000] ¤ÎÈϰϤÎÀ°¿ô¤ò°·¤¦¤³¤È¤¬¤Ç¤­¤ë
101 Éä¹æ¤Ê¤·À°¿ô·¿¤Ç¤¢¤ë¡£
102 ÌÀ¼¨Åª¤Ë¤³¤Î·¿¤ò»È¤ï¤Ê¤¤¤³¤È¤Ç¥×¥í¥°¥é¥à¤Î°Ü¿¢À­¤¬¤è¤ê¹â¤Þ¤ë¡£
103 °Ê²¼¤Î¤è¤¦¤Ë»È¤¦¤³¤È¡£
104 .in +4n
105 .nf
106 .sp
107 #include <unistd.h>
108 \&...
109     unsigned int usecs;
110 \&...
111     usleep(usecs);
112 .fi
113 .in
114 .LP
115 ¤³¤Î´Ø¿ô¤È¡¢
116 .B SIGALRM
117 ¥·¥°¥Ê¥ë¤¢¤ë¤¤¤Ï
118 .BR alarm (2),
119 .BR sleep (3),
120 .BR nanosleep (2),
121 .BR setitimer (2),
122 .BR timer_create (2),
123 .BR timer_delete (2),
124 .BR timer_getoverrun (2),
125 .BR timer_gettime (2),
126 .BR timer_settime (2),
127 .BR ualarm (3)
128 ¤È¤¤¤Ã¤¿¤½¤Î¾¤Î¥¿¥¤¥Þ¡¼´Ø¿ô¤òƱ»þ¤Ë»È¤Ã¤¿¾ì¹ç¤ÎÆ°ºî¤Ï̤ÄêµÁ¤Ç¤¢¤ë¡£
129 .SH ´ØÏ¢¹àÌÜ
130 .BR alarm (2),
131 .BR getitimer (2),
132 .BR nanosleep (2),
133 .BR select (2),
134 .BR setitimer (2),
135 .BR sleep (3),
136 .BR ualarm (3),
137 .BR time (7)