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