Commit Graph

529 Commits

Author SHA1 Message Date
mheily
c16e255e6b restore missing check for sys/event.h
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@613 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-06 17:29:36 +00:00
mheily
24baeafda7 Use ifdef instead of check_decl() where possible.
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@612 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-06 17:28:12 +00:00
mheily
a21da812d9 add changelog
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@611 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-12-24 23:39:25 +00:00
mheily
3530b37e2a * Use ppoll(2) where possible (Credit: Eric Wong)
* Reenable some additional unit tests



git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@610 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-12-24 23:37:59 +00:00
mheily
a316fbb867 * Optimize kevent() when it is called with a zero timeout.
(Credit: Eric Wong)



git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@609 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-12-24 17:19:37 +00:00
mheily
21f15f32e2 * Avoid calling getsockopt() on file descriptors that are not sockets.
(Credit: Eric Wong)

  * Call epoll_wait after linux_kevent_wait_hires()
    (Credit: Eric Wong)

  * Detect regular files correctly 
    (Credit: Eric Wong)



git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@608 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-12-09 22:28:45 +00:00
mheily
b39187af2f Install sys/event.h
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@607 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-12-05 03:10:25 +00:00
mheily
1a7a77af13 Upgrade Makeconf to get some fixes for Android
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@606 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-12-05 02:51:07 +00:00
mheily
b081d775e0 Add support for Android
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@605 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-12-04 02:54:17 +00:00
mheily
7b5d4f36f6 Pin makeconf to rev 326
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@604 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-12-03 02:32:59 +00:00
mheily
a3fde75592 Remove -I. from cflags, use shared library for kqtest
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@603 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-12-03 02:31:11 +00:00
mheily
ddd7f1b4b3 More win32 test changes
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@602 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-27 04:49:44 +00:00
mheily
00f4e1aac4 Minor fixes for win32
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@601 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-27 04:31:43 +00:00
mheily
ad40a816ae Add missing Win32 files
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@600 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-27 04:23:15 +00:00
mheily
d8344a0415 Do not call pthread_once() on Win32
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@599 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-27 04:07:32 +00:00
mheily
a261e4cebe Use the local copy of makeconf if needed
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@598 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-27 03:35:06 +00:00
mheily
214ef72435 Fix path to config.h
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@597 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-27 00:00:26 +00:00
mheily
964a6bcf98 Add missing file
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@596 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-26 23:42:56 +00:00
mheily
d46b5e43bf Final fixes for Android.
The testsuite runs on Linux and Android now.


git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@595 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-26 03:59:02 +00:00
mheily
a9f15f94b5 More fixes for Android
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@594 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-26 03:46:31 +00:00
mheily
59c2a31d48 Minor fixes for Android
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@593 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-26 02:56:10 +00:00
mheily
1d174668f1 Convert the build script to Makeconf
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@592 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-26 02:42:53 +00:00
mheily
1e3ee7ad18 Use pthread_once() instead of marking libkqueue_init() as a constructor.
This gives the correct behavior for both static and dynamic libraries.


git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@591 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-26 02:32:45 +00:00
mheily
e41cc259a0 * Ensure that calling close() on a file descriptor will remove any
kevents that reference the descriptor. [merged from ^/branches/stable@551]



git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@590 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-25 22:31:57 +00:00
mheily
c769f3fa04 Merge c542 from the stable branch. Fixes a concurrency problem in posix_kevent_wait()
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@589 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-25 21:52:11 +00:00
mheily
82c6b5c5bc Avoid generating extra code if NDEBUG is defined
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@588 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-25 21:35:37 +00:00
mheily
e83001b8fd * Remove the SERIALIZE_KEVENT macro, and always protect kevent_copyin()
and kevent_copyout() with a mutex.
 
 * Remove fine-grained locking at the knote level.



git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@585 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-11-25 20:46:02 +00:00
mheily
655a045482 Warn people not to use the trunk
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@562 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-10-26 01:42:30 +00:00
mheily
0e25c817d0 Document the need to use deferred cancellation with specific cancellation points.
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@540 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-04-20 18:18:30 +00:00
mheily
25a23721b5 Document the need to fix the "stub" functions
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@537 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-04-19 19:33:00 +00:00
marius
d38e2e3479 * Merged a bugfix from xdispatch within windows_kevent_wait causing wrong timeouts
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@536 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-02-23 07:34:53 +00:00
mheily
f6a37c0a51 Add support for concurrent tests.
Test providing an invalid kqueue descriptor to kevent()

git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@532 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2012-02-10 01:25:35 +00:00
marius
6df0650bc4 Fixed a compiler warning on 32bit linux introduced while streamlining the variables
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@526 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-06-21 17:50:07 +00:00
marius
9994502c20 Fixed a compiler warning on gcc introduced in r524
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@525 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-06-15 19:46:39 +00:00
marius
f786d2e798 * Streamlined some variables to be of the same type regardless of the architecture used
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@524 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-06-13 19:27:44 +00:00
mheily
8cbdb46b43 Eliminate use of global variable "cur_test_id"
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@523 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-30 14:59:08 +00:00
marius
624c4e6358 * Repair inclusion of stdint on non-windows platforms
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@522 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-27 18:00:58 +00:00
marius
3ff56c255f + stdint.h compatibility when using VS 2008
* Fixed usage of knote_release macros

git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@521 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-26 19:17:33 +00:00
mheily
a0d54bda95 Build a debug-enabled static library.
Build two versions of kqtest with and without debugging enabled.
Use static linking for kqtest and kqtest_debug.
Add additional Makefile targets for profiling with Valgrind
Enable gprof profiling in the debug targets.


git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@520 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-26 03:45:28 +00:00
mheily
cd858d02fd Eliminate the use of global state variables in kqtest to allow the tests
to be run in parallel.

Add two kqtest options: one for iterations, and one for concurrency.

Use -rpath when building kqtest instead of using LD_LIBRARY_PATH



git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@519 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-25 02:10:36 +00:00
mheily
68e94a12eb Fix compilation issues on Solaris 10 with GCC 4.5
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@518 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-22 03:29:14 +00:00
mheily
5d11e7e930 - Build the static library with MAKE_STATIC to expose libkqueue_init().
- Build a statically-linked version of kqtest during 'make check'.


git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@517 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-22 03:01:24 +00:00
mheily
0c2f0771b5 - Build two versions of the library: one for debugging, and one for release.
- Link kqtest against libkqueue_debug.so
- Build 


git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@516 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-22 02:44:16 +00:00
mheily
af270012fc Another tracing_mutex_assert() fix
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@515 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-22 01:20:24 +00:00
mheily
140343f197 Fix tracing_mutex_assert() by tracking the thread ID of the lock owner and
behave properly when the mutex is held by another thread.


git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@514 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-22 00:57:44 +00:00
mheily
54cafd9c68 Add -Wextra to CFLAGS and fix all related warnings on Linux.
This will also need to be done on Solaris.


git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@513 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-22 00:28:35 +00:00
jocke
8f90bd7127 Updated Xcode project
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@512 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-20 05:47:20 +00:00
jocke
1f04856a80 Analogous knote locking logic compared to Linux implementation, now we don't fail assertions any more.
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@511 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-19 14:18:22 +00:00
jocke
68d14fabb0 Fix proper semantics for read events on Solaris, fixing kqtest failure. According to the original kqueue paper, such events should not be signaled (which is also tested by kqtest).
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@510 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-19 13:38:37 +00:00
jocke
c1e6d52fcf Match signed type of 'filt' coming in (alternatively change line 175 and remove otherwise useless comparison < 0).
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@509 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2011-05-19 07:36:55 +00:00