OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man7 / epoll.7
index 13857bf..c1dab45 100644 (file)
@@ -18,7 +18,7 @@
 .\"
 .\"  Davide Libenzi <davidel@xmailserver.org>
 .\"
-.TH EPOLL 7 2014-07-08 "Linux" "Linux Programmer's Manual"
+.TH EPOLL 7 2015-01-10 "Linux" "Linux Programmer's Manual"
 .SH NAME
 epoll \- I/O event notification facility
 .SH SYNOPSIS
@@ -179,7 +179,7 @@ If the system is in
 mode via
 .I /sys/power/autosleep
 and an event happens which wakes the device from sleep, the device
-driver will only keep the device awake until that event is queued.
+driver will keep the device awake only until that event is queued.
 To keep the device awake until the event has been processed,
 it is necessary to use the
 .BR epoll (7)
@@ -262,12 +262,12 @@ from where it stopped before.
 struct epoll_event ev, events[MAX_EVENTS];
 int listen_sock, conn_sock, nfds, epollfd;
 
-/* Set up listening socket, \(aqlisten_sock\(aq (socket(),
-   bind(), listen()) */
+/* Code to set up listening socket, \(aqlisten_sock\(aq,
+   (socket(), bind(), listen()) omitted */
 
-epollfd = epoll_create(10);
+epollfd = epoll_create1(0);
 if (epollfd == \-1) {
-    perror("epoll_create");
+    perror("epoll_create1");
     exit(EXIT_FAILURE);
 }
 
@@ -580,7 +580,7 @@ and Solaris has
 .BR epoll_ctl (2),
 .BR epoll_wait (2)
 .SH COLOPHON
-This page is part of release 3.75 of the Linux
+This page is part of release 3.79 of the Linux
 .I man-pages
 project.
 A description of the project,