Commit Graph

545 Commits

Author SHA1 Message Date
mheily
c7ed4e84f3 Minor tweaks for cross-compiling to Win32
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@629 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-24 02:40:19 +00:00
mheily
a9575f667f try something different
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@628 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-24 02:00:41 +00:00
mheily
617dc2d953 Add an INSTALL file
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@627 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-24 00:16:54 +00:00
mheily
aaa29fd9d3 Fix regressions on Android. Tested OK on Android, Debian, and Debian without eventfd()/timerfd()/signalfd()
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@626 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-24 00:08:03 +00:00
mheily
1a3e7ee985 Revert the /dev/zero code path, and use syscall(SYS_eventfd) instead
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@625 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-23 02:00:55 +00:00
mheily
0dab9e7ce8 Use magic numbers because of missing SYS_timerfd_* functions
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@624 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-22 02:27:59 +00:00
mheily
622f3b43bf improve portability of timerfd() syscall wrappers
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@623 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-22 02:17:50 +00:00
mheily
9934ab8356 Support signalfd on RHEL 5 via syscall()
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@622 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-22 02:14:24 +00:00
mheily
16325b7e80 Try using syscall(3) on RHEL5
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@621 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-22 02:08:13 +00:00
mheily
c1678290dd attempt to use posix/user.c for RHEL 5
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@620 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-22 01:56:43 +00:00
mheily
e102269f24 Partial support for older Linux kernels without eventfd support
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@619 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-22 01:06:27 +00:00
mheily
9ef584b787 restore missing file
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@618 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-19 01:17:16 +00:00
mheily
24e055c215 Add libkqueue.pc
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@617 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-19 01:16:06 +00:00
mheily
b8d52cb5bf Install the manpages
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@616 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-13 15:56:56 +00:00
mheily
4e38904812 update configure script
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@615 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-13 05:18:44 +00:00
mheily
1d144326de Add the generated Makefile and configure script. This eliminates the requirement for having Makeconf and it's dependencies when building on certain platforms (Linux, at least).
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@614 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
2013-01-12 02:51:53 +00:00
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