File: epoll_create.2

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (138 lines) | stat: -rw-r--r-- 4,056 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
.\"
.\"  epoll by Davide Libenzi ( efficient event notification retrieval )
.\"  Copyright (C) 2003  Davide Libenzi
.\"
.\"  This program is free software; you can redistribute it and/or modify
.\"  it under the terms of the GNU General Public License as published by
.\"  the Free Software Foundation; either version 2 of the License, or
.\"  (at your option) any later version.
.\"
.\"  This program is distributed in the hope that it will be useful,
.\"  but WITHOUT ANY WARRANTY; without even the implied warranty of
.\"  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\"  GNU General Public License for more details.
.\"
.\"  You should have received a copy of the GNU General Public License
.\"  along with this program; if not, write to the Free Software
.\"  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
.\"
.\"  Davide Libenzi <davidel@xmailserver.org>
.\"
.\" Modified 2004-06-17 by Michael Kerrisk <mtk.manpages@gmail.com>
.\" Modified 2005-04-04 by Marko Kohtala <marko.kohtala@gmail.com>
.\" 2008-10-10, mtk: add description of epoll_create1()
.\"
.\" Japanese Version Copyright (c) 2004-2005 Yuichi SATO
.\"         all rights reserved.
.\" Translated Wed Jun  9 05:02:07 JST 2004
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\" Updated & Modified Wed Dec 29 07:12:00 JST 2004 by Yuichi SATO
.\" Updated & Modified Tue Apr 19 06:51:12 JST 2005 by Yuichi SATO
.\" Updated 2009-03-05 by Kentaro Shirakata <argrath@ub32.org>
.\"
.\"WORD:	backing store	Хå󥰥ȥ
.\"
.TH EPOLL_CREATE 2 2009-01-17 "Linux" "Linux Programmer's Manual"
.SH ̾
epoll_create, epoll_create1 \- epoll եǥץ򥪡ץ󤹤
.SH 
.nf
.B #include <sys/epoll.h>
.sp
.BI "int epoll_create(int " size );
.BI "int epoll_create1(int " flags );
.fi
.SH 
.BR epoll_create ()
ϡ
.I size
ĤΥǥץݻǤ礭Υ٥ȥХå
ȥγƤ򥫡ͥФ׵᤹뤳Ȥˤꡢ
epoll ֥󥹥󥹡פ롣
.I size
ϥХå󥰥ȥκ祵ǤϤʤ
¤礭ɤΰ̤ˤ뤫򥫡ͥΤ餻ҥȤǤʤ
.I size
̵뤵롣Ρաפ򻲾ȡ)

.BR epoll_create ()
ϡ epoll 󥹥󥹤򻲾Ȥեǥץ֤
Υեǥץϡθ
.B epoll
󥿥եθƤӽФ˻Ȥ롣
⤦ɬפǤʤʤäϡ
.BR epoll_create ()
֤줿եǥץ
.BR close (2)
Ȥäƥ٤Ǥ롣
 epoll 󥹥󥹤򻲾ȤƤΥեǥץȡ
ͥϤΥ󥹥󥹤˲ơб꥽
ƻѤǤ褦ˤ롣

.BR epoll_create1 ()
ϡ
.I flags
 0 ξ硢ߤǤϻȤƤʤ
.I size
ʤʤäƤ
.BR epoll_create ()
ƱǤ롣
.I flags
˰ʲͤӥå (OR) ǻꤹ뤳Ȥǡ
ۤʤư򤵤뤳ȤǤ롣
.TP
.B EPOLL_CLOEXEC
եǥץФ
close-on-exec
.RB ( FD_CLOEXEC )
ե饰򥻥åȤ롣
Υե饰ΩͳˤĤƤϡ
.BR open (2)

.B O_CLOEXEC
ե饰򻲾ȤΤȡ
.SH ֤
ȡΥƥॳ
Υեǥץ֤
顼ξ硢\-1 ֤
.I errno
˥顼򼨤ͤꤹ롣
.SH 顼
.TP
.B EINVAL
.I size
Ǥʤ
.TP
.B EINVAL
.RB ( epoll_create1 ())
.I flags
̵ͤꤵ줿
.TP
.B EMFILE
.I /proc/sys/fs/epoll/max_user_instances
ˤäƻꤵƤ롢epoll 󥹥󥹤Υ桼ñ̤¤ã
ʤܺ٤ˤĤƤ
.BR epoll (7)
򻲾ȤΤȡ
.TP
.B ENFILE
ץ󤵤줿եƥ¤ã
.TP
.B ENOMEM
ͥ륪֥ȤΤ˽ʬʥ꤬ʤä
.SH 
.BR epoll_create ()
 Linux ȼǤꡢͥ 2.5.44 Ƴ줿
.\" 󥿥ե Linux ͥ 2.5.66 dzꤵ٤Ǥ롣
.SH 
Linux 2.6.8 ʹߤǤϡ
.I size
ϻѤʤ
(ͥϡưŪɬפʥǡ¤礭ꤷ
ǽΥҥȤɬפʤ)
.SH Ϣ
.BR close (2),
.BR epoll_ctl (2),
.BR epoll_wait (2),
.BR epoll (7)