]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Improved various error descriptions after message from
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 4 Apr 2005 16:33:48 +0000 (16:33 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 4 Apr 2005 16:33:48 +0000 (16:33 +0000)
Marko Kohtala <marko.kohtala@gmail.com>.

man2/epoll_create.2
man2/epoll_ctl.2
man2/epoll_wait.2

index e6ece72fdc6331a8f9349bafc9228a22312cb4a9..f1172cd9096d4af037a412309e70cdb163ae2051 100644 (file)
@@ -19,6 +19,7 @@
 .\"  Davide Libenzi <davidel@xmailserver.org>
 .\"
 .\" Modified 2004-06-17 by Michael Kerrisk <mtk-manpages@gmx.net>
+.\" Modified 2005-04-04 by Marko Kohtala <marko.kohtala@gmail.com>
 .\"
 .TH EPOLL_CREATE 2 "2004-06-17" "Linux 2.6.7" "Linux Programmer's Manual"
 .SH NAME
@@ -54,6 +55,11 @@ returns -1 and
 is set appropriately.
 .SH ERRORS
 .TP
+.B EINVAL
+.I size
+is not positive.
+.TP
+.TP
 .B ENFILE
 The system limit on the total number of open files has been reached.
 .TP
index 5eed4b748cedc5c6b1b361665ed62306f4f35184..8c219c5c62449c7db1af64e88424204091d4001a 100644 (file)
@@ -81,9 +81,15 @@ operations.
 .TP
 .B EPOLLERR
 Error condition happened on the associated file descriptor.
+.BR epoll_wait (2)
+will always wait for this event; it is not necessary to set it in
+.IR events .
 .TP
 .B EPOLLHUP
 Hang up happened on the associated file descriptor.
+.BR epoll_wait (2)
+will always wait for this event; it is not necessary to set it in
+.IR events .
 .TP
 .B EPOLLET
 Sets the Edge Triggered behaviour for the associated file descriptor.
@@ -154,19 +160,36 @@ is set appropriately.
 .SH ERRORS
 .TP
 .B EBADF
-The
 .I epfd
-file descriptor is not a valid file descriptor.
+is not a valid file descriptor.
+.TP
+.B EEXIST
+.I op
+was EPOLL_CTL_ADD, and the supplied file descriptor
+.IR fd
+is already in
+.IR epfd .
 .TP
 .B EINVAL
-The supplied file descriptor,
-.IR epfd ,
+.IR epfd 
 is not an
 .B epoll
-file descriptor, or the requested operation
+file descriptor,
+or
+.IR fd 
+is the same as
+.IR epfd ,
+or the requested operation
 .I op
 is not supported by this interface.
 .TP
+.B ENOENT
+.I op
+was EPOLL_CTL_MOD or EPOLL_CTL_DEL, and
+.IR fd
+is not in
+.IR epfd .
+.TP
 .B ENOMEM
 There was insufficient memory to handle the requested
 .I op
@@ -175,7 +198,7 @@ control operation.
 .B EPERM
 The target file
 .I fd
-is not supported by
+does not support
 .BR epoll .
 .SH CONFORMING TO
 .BR epoll_ctl (2)
index 89b040b7fdc97511bf3dc7493bd042cbb3cce413..5bc472f7c62b3022ba95e21542a34a19e74b9dba 100644 (file)
@@ -108,13 +108,12 @@ requested events occurred or the
 expired.
 .TP
 .B EINVAL
-The supplied file descriptor,
-.IR epfd ,
+.IR epfd 
 is not an
 .B epoll
-file descriptor, or the
+file descriptor, or
 .I maxevents
-parameter is less than or equal to zero.
+is less than or equal to zero.
 .SH CONFORMING TO
 .BR epoll_wait (2)
 is a new API introduced in Linux kernel 2.5.44.