Home | History | Annotate | Download | only in epoll
      1 Epoll Setup
      2 
      3 
      4 	** Directions for glibc version of 2.3.2 or higher **
      5 
      6 Epoll support is currently implemented in glibc 2.3.2, therefore if you have a$
      7 glibc version of 2.3.2 or higher then do the following steps:
      8 
      9 1. Download and untar the epoll library from:
     10   http://www.xmailserver.org/linux-patches/epoll-lib-0.11.tar.gz
     11 2. Copy <epoll-lib_directory>/include/epoll.h    /usr/include
     12 3. Compile epoll-ltp.c in the  <ltp_dir>testcases/kernel/syscall/epoll
     13 
     14 
     15 
     16 	** Older version of glibc **
     17 To compile the epoll-ltp successfully the following libraries are needed:
     18 
     19 Epoll library http://www.xmailserver.org/linux-patches/epoll-lib-0.11.tar.gz
     20 Portable Coroutine Library (PCL)  http://www.xmailserver.org/libpcl.html
     21 
     22 
     23 1.	Download and untar the PCL library
     24 2.	Run ./configure
     25 3.	Run make
     26 4.	Run make install
     27 5.	Copy <libpcl_directory>/pcl/.libs/libpcl.* /lib
     28 6.	Download and untar the epoll library
     29 7.	*You may have to modify the makefile in <epoll-lib_directory>/Makefile and <epoll-lib_directory>/examples/Makefile with the following
     30 -	KERNELDIR = kernel_directory
     31 -	#all: .depend $(TARGET) epoll-example  change this line to$
     32 -	all: .$(TARGET) epoll-example
     33 -	#include .depend  comment out this line
     34 8.	Copy <epoll-lib_directory>/include/epoll.h    /usr/include
     35 9.	<epoll-lib_directory>  make
     36 10. Copy <epoll-lib_directory>/lib/libepoll*    /lib
     37 11. Compile epoll-ltp.c in the  <ltp_dir>testcases/kernel/syscall/epoll
     38 
     39