Am Donnerstag, den 17.08.2006, 22:02 +0300 schrieb Timo Sirainen:
So, apparently the original kqueue code was working fine after all, although it was much more complex than it really needed to be. So, this time there's a really simple and pretty kqueue implementation:
http://dovecot.org/nightly/dovecot-latest.tar.gz
Tested that it seems to work with FreeBSD.
lite tested on OpenBSD 4.0-beta, seems to work use an updated OpenBSD-Port compiled --with-notify=kqueue --with-ioloop=kqueue
some warnings:
if cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib
-I../../src/lib-mail -std=gnu99 -O2 -pipe -I/usr/local/include -Wall
-W -Wmissing-prototypes -Wmi
mail-index-transaction.c: In function mail_index_update_header_ext': mail-index-transaction.c:780: warning: unused parameter
t'
mail-index-transaction.c:781: warning: unused parameter ext_id' mail-index-transaction.c:781: warning: unused parameter
offset'
mail-index-transaction.c:782: warning: unused parameter data' mail-index-transaction.c:782: warning: unused parameter
size'
if cc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/lib
-I../../../../src/lib-mail -I../../../../src/lib-imap
-I../../../../src/lib-index -I..
maildir-storage.c: In function rename_subfolders': maildir-storage.c:799: warning:
names' might be used uninitialized in
this function
if cc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/lib
-I../../../../src/lib-mail -I../../../../src/lib-imap
-I../../../../src/lib-index -I..
dbox-uidlist.c: In function dbox_uidlist_append_commit': dbox-uidlist.c:839: warning:
ret' might be used uninitialized in this
function
if cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib
-I../../src/lib-sql -I../../src/lib-settings -I../../src/lib-ntlm
-DAUTH_MODULE_DIR=\""/usr/local/
auth-master-connection.c: In function master_input_die': auth-master-connection.c:145: warning: unused parameter
conn'
if /usr/local/bin/libtool --mode=compile --tag=CC cc -DHAVE_CONFIG_H
-I. -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail
-I../../../src/lib-st cc -DHAVE_CONFIG_H -I. -I. -I../../..
-I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-storage
-std=gnu99 -O2 -pipe -I/usr/local/include -Wall
acl-backend-vfile.c: In function acl_backend_vfile_object_update': acl-backend-vfile.c:423: warning: unused parameter
aclobj'
acl-backend-vfile.c:424: warning: unused parameter rights' acl-backend-vfile.c: In function
acl_backend_vfile_object_list_next':
acl-backend-vfile.c:441: warning: unused parameter iter' acl-backend-vfile.c:442: warning: unused parameter
rights_r'
-- Christian Rueger <cr+lists@rueger-net.de>