Skip to content

Commit 4b13bf7

Browse files
committed
libev
1 parent 93eaf61 commit 4b13bf7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+79113
-0
lines changed

libev/.CMakeLists.txt.swp

12 KB
Binary file not shown.

libev/CMakeLists.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
cmake_minimum_required(VERSION 2.6)
2+
project(libev_test)
3+
4+
#set binary tree type(output)
5+
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
6+
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
7+
8+
#find header file(include)
9+
set(LOCAL_INCLUDE_DIR /usr/local/include)
10+
11+
#lib
12+
set(LOCAL_LIB_DIR /usr/local/lib)
13+
14+
#link lib
15+
link_directories(${LOCAL_LIB_DIR})
16+
17+
#find library of static and shared
18+
#find_library(EV_LIB_FILE names libev libevview libevdocument paths /usr/lib/ /usr/local/lib/)
19+
find_library(EV_LIB_FILE names ev paths /usr/local/lib/)
20+
21+
#set build type
22+
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -Wall)
23+
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -Wall)
24+
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
25+
set(CMAKE_C_FLAGS_DEBUG "$ENV{CFLAGS} -O0 -Wall -g -ggdb")
26+
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
27+
set(CMAKE_C_FLAGS_RELEASE "$ENV{CFLAGS} -O3 -Wall")
28+
29+
30+
#project dir
31+
set(PROJECT_EV_DIR ${PROJECT_SOURCE_DIR}/src/ev/)
32+
33+
#message cmake subdirectory
34+
add_subdirectory(src)
35+
add_subdirectory(test)

libev/README

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
libev is a high-performance event loop/event model with lots of features.
2+
(see benchmark at http://libev.schmorp.de/bench.html)
3+
4+
5+
ABOUT
6+
7+
Homepage: http://software.schmorp.de/pkg/libev
8+
Mailinglist: libev@lists.schmorp.de
9+
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
10+
Library Documentation: http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod
11+
12+
Libev is modelled (very losely) after libevent and the Event perl
13+
module, but is faster, scales better and is more correct, and also more
14+
featureful. And also smaller. Yay.
15+
16+
Some of the specialties of libev not commonly found elsewhere are:
17+
18+
- extensive and detailed, readable documentation (not doxygen garbage).
19+
- fully supports fork, can detect fork in various ways and automatically
20+
re-arms kernel mechanisms that do not support fork.
21+
- highly optimised select, poll, epoll, kqueue and event ports backends.
22+
- filesystem object (path) watching (with optional linux inotify support).
23+
- wallclock-based times (using absolute time, cron-like).
24+
- relative timers/timeouts (handle time jumps).
25+
- fast intra-thread communication between multiple
26+
event loops (with optional fast linux eventfd backend).
27+
- extremely easy to embed.
28+
- very small codebase, no bloated library.
29+
- fully extensible by being able to plug into the event loop,
30+
integrate other event loops, integrate other event loop users.
31+
- very little memory use (small watchers, small event loop data).
32+
- optional C++ interface allowing method and function callbacks
33+
at no extra memory or runtime overhead.
34+
- optional Perl interface with similar characteristics (capable
35+
of running Glib/Gtk2 on libev, interfaces with Net::SNMP and
36+
libadns).
37+
- support for other languages (multiple C++ interfaces, D, Ruby,
38+
Python) available from third-parties.
39+
40+
Examples of programs that embed libev: the EV perl module,
41+
rxvt-unicode, gvpe (GNU Virtual Private Ethernet), the Deliantra MMORPG
42+
server (http://www.deliantra.net/), Rubinius (a next-generation Ruby
43+
VM), the Ebb web server, the Rev event toolkit.
44+
45+
46+
CONTRIBUTORS
47+
48+
libev was written and designed by Marc Lehmann and Emanuele Giaquinta.
49+
50+
The following people sent in patches or made other noteworthy
51+
contributions to the design (for minor patches, see the Changes
52+
file. If I forgot to include you, please shout at me, it was an
53+
accident):
54+
55+
W.C.A. Wijngaards
56+
Christopher Layne
57+
Chris Brody
58+

libev/Symbols.event

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
event_active
2+
event_add
3+
event_base_dispatch
4+
event_base_free
5+
event_base_loop
6+
event_base_loopexit
7+
event_base_once
8+
event_base_priority_init
9+
event_base_set
10+
event_del
11+
event_dispatch
12+
event_get_method
13+
event_get_version
14+
event_init
15+
event_loop
16+
event_loopexit
17+
event_once
18+
event_pending
19+
event_priority_init
20+
event_priority_set
21+
event_set

libev/build/CMakeCache.txt

Lines changed: 282 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,282 @@
1+
# This is the CMakeCache file.
2+
# For build in directory: /home/wuxiang/source/libev/build
3+
# It was generated by CMake: /usr/bin/cmake
4+
# You can edit this file to change values found and used by cmake.
5+
# If you do not want to change any of the values, simply exit the editor.
6+
# If you do want to change a value, simply edit, save, and exit the editor.
7+
# The syntax for the file is as follows:
8+
# KEY:TYPE=VALUE
9+
# KEY is the name of a variable in the cache.
10+
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
11+
# VALUE is the current value for the KEY.
12+
13+
########################
14+
# EXTERNAL cache entries
15+
########################
16+
17+
//Path to a program.
18+
CMAKE_AR:FILEPATH=/usr/bin/ar
19+
20+
//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
21+
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
22+
CMAKE_BUILD_TYPE:STRING=
23+
24+
//Enable/Disable color output during build.
25+
CMAKE_COLOR_MAKEFILE:BOOL=ON
26+
27+
//CXX compiler.
28+
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
29+
30+
//Flags used by the compiler during all build types.
31+
CMAKE_CXX_FLAGS:STRING=
32+
33+
//Flags used by the compiler during debug builds.
34+
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
35+
36+
//Flags used by the compiler during release minsize builds.
37+
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
38+
39+
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
40+
// /Ot /Oy /Gs will produce slightly less optimized but smaller
41+
// files).
42+
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
43+
44+
//Flags used by the compiler during Release with Debug Info builds.
45+
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g
46+
47+
//C compiler.
48+
CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc
49+
50+
//Flags used by the compiler during all build types.
51+
CMAKE_C_FLAGS:STRING=
52+
53+
//Flags used by the compiler during debug builds.
54+
CMAKE_C_FLAGS_DEBUG:STRING=-g
55+
56+
//Flags used by the compiler during release minsize builds.
57+
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
58+
59+
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
60+
// /Ot /Oy /Gs will produce slightly less optimized but smaller
61+
// files).
62+
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
63+
64+
//Flags used by the compiler during Release with Debug Info builds.
65+
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g
66+
67+
//Flags used by the linker.
68+
CMAKE_EXE_LINKER_FLAGS:STRING=
69+
70+
//Flags used by the linker during debug builds.
71+
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
72+
73+
//Flags used by the linker during release minsize builds.
74+
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
75+
76+
//Flags used by the linker during release builds.
77+
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
78+
79+
//Flags used by the linker during Release with Debug Info builds.
80+
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
81+
82+
//Install path prefix, prepended onto install directories.
83+
CMAKE_INSTALL_PREFIX:PATH=/usr/local
84+
85+
//Path to a program.
86+
CMAKE_LINKER:FILEPATH=/usr/bin/ld
87+
88+
//Path to a program.
89+
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
90+
91+
//Flags used by the linker during the creation of modules.
92+
CMAKE_MODULE_LINKER_FLAGS:STRING=
93+
94+
//Flags used by the linker during debug builds.
95+
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
96+
97+
//Flags used by the linker during release minsize builds.
98+
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
99+
100+
//Flags used by the linker during release builds.
101+
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
102+
103+
//Flags used by the linker during Release with Debug Info builds.
104+
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
105+
106+
//Path to a program.
107+
CMAKE_NM:FILEPATH=/usr/bin/nm
108+
109+
//Path to a program.
110+
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
111+
112+
//Path to a program.
113+
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
114+
115+
//Value Computed by CMake
116+
CMAKE_PROJECT_NAME:STATIC=libev_test
117+
118+
//Path to a program.
119+
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
120+
121+
//Flags used by the linker during the creation of dll's.
122+
CMAKE_SHARED_LINKER_FLAGS:STRING=
123+
124+
//Flags used by the linker during debug builds.
125+
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
126+
127+
//Flags used by the linker during release minsize builds.
128+
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
129+
130+
//Flags used by the linker during release builds.
131+
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
132+
133+
//Flags used by the linker during Release with Debug Info builds.
134+
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
135+
136+
//If set, runtime paths are not added when using shared libraries.
137+
CMAKE_SKIP_RPATH:BOOL=NO
138+
139+
//Path to a program.
140+
CMAKE_STRIP:FILEPATH=/usr/bin/strip
141+
142+
//If true, cmake will use relative paths in makefiles and projects.
143+
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF
144+
145+
//If this value is on, makefiles will be generated without the
146+
// .SILENT directive, and all commands will be echoed to the console
147+
// during the make. This is useful for debugging only. With Visual
148+
// Studio IDE projects all commands are done without /nologo.
149+
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
150+
151+
//Path to a library.
152+
EV_LIB_FILE:FILEPATH=EV_LIB_FILE-NOTFOUND
153+
154+
//Value Computed by CMake
155+
libev_test_BINARY_DIR:STATIC=/home/wuxiang/source/libev/build
156+
157+
//Value Computed by CMake
158+
libev_test_SOURCE_DIR:STATIC=/home/wuxiang/source/libev
159+
160+
161+
########################
162+
# INTERNAL cache entries
163+
########################
164+
165+
//ADVANCED property for variable: CMAKE_AR
166+
CMAKE_AR-ADVANCED:INTERNAL=1
167+
//ADVANCED property for variable: CMAKE_BUILD_TOOL
168+
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
169+
//What is the target build tool cmake is generating for.
170+
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/make
171+
//This is the directory where this CMakeCache.txt was created
172+
CMAKE_CACHEFILE_DIR:INTERNAL=/home/wuxiang/source/libev/build
173+
//Major version of cmake used to create the current loaded cache
174+
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
175+
//Minor version of cmake used to create the current loaded cache
176+
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
177+
//Patch version of cmake used to create the current loaded cache
178+
CMAKE_CACHE_PATCH_VERSION:INTERNAL=3
179+
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
180+
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
181+
//Path to CMake executable.
182+
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
183+
//Path to cpack program executable.
184+
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
185+
//Path to ctest program executable.
186+
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
187+
//ADVANCED property for variable: CMAKE_CXX_COMPILER
188+
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
189+
CMAKE_CXX_COMPILER_WORKS:INTERNAL=1
190+
//ADVANCED property for variable: CMAKE_CXX_FLAGS
191+
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
192+
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
193+
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
194+
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
195+
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
196+
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
197+
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
198+
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
199+
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
200+
//ADVANCED property for variable: CMAKE_C_COMPILER
201+
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
202+
CMAKE_C_COMPILER_WORKS:INTERNAL=1
203+
//ADVANCED property for variable: CMAKE_C_FLAGS
204+
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
205+
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
206+
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
207+
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
208+
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
209+
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
210+
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
211+
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
212+
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
213+
//Result of TRY_COMPILE
214+
CMAKE_DETERMINE_CXX_ABI_COMPILED:INTERNAL=TRUE
215+
//Result of TRY_COMPILE
216+
CMAKE_DETERMINE_C_ABI_COMPILED:INTERNAL=TRUE
217+
//Executable file format
218+
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
219+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
220+
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
221+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
222+
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
223+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
224+
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
225+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
226+
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
227+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
228+
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
229+
//Name of generator.
230+
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
231+
//Start directory with the top level CMakeLists.txt file for this
232+
// project
233+
CMAKE_HOME_DIRECTORY:INTERNAL=/home/wuxiang/source/libev
234+
//Install .so files without execute permission.
235+
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
236+
//ADVANCED property for variable: CMAKE_LINKER
237+
CMAKE_LINKER-ADVANCED:INTERNAL=1
238+
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
239+
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
240+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
241+
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
242+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
243+
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
244+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
245+
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
246+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
247+
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
248+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
249+
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
250+
//ADVANCED property for variable: CMAKE_NM
251+
CMAKE_NM-ADVANCED:INTERNAL=1
252+
//number of local generators
253+
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=3
254+
//ADVANCED property for variable: CMAKE_OBJCOPY
255+
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
256+
//ADVANCED property for variable: CMAKE_OBJDUMP
257+
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
258+
//ADVANCED property for variable: CMAKE_RANLIB
259+
CMAKE_RANLIB-ADVANCED:INTERNAL=1
260+
//Path to CMake installation.
261+
CMAKE_ROOT:INTERNAL=/usr/share/cmake-2.8
262+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
263+
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
264+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
265+
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
266+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
267+
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
268+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
269+
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
270+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
271+
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
272+
//ADVANCED property for variable: CMAKE_SKIP_RPATH
273+
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
274+
//ADVANCED property for variable: CMAKE_STRIP
275+
CMAKE_STRIP-ADVANCED:INTERNAL=1
276+
//uname command
277+
CMAKE_UNAME:INTERNAL=/bin/uname
278+
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
279+
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
280+
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
281+
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
282+

0 commit comments

Comments
 (0)