From db5f308b9a3897c74514ad5b366fb43dfec52a7c Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Fri, 16 Feb 2007 14:39:24 +0000 Subject: [PATCH] Better check for epoll(). --- CHANGES | 5 +++++ TODO | 6 ++++-- configure.ad | 2 +- lib/configure.ad | 21 +++++++++++++++++++++ 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 94d2deed..dc8aaf45 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +Fri Feb 16 16:53:16 EET 2007 Pekka Riikonen + + * Added better check for epoll() in configure. Affected file + is lib/configure.ad. + Thu Feb 15 16:50:34 EET 2007 Pekka Riikonen * Fixed per scheduler data input buffer in packet engine. Use diff --git a/TODO b/TODO index 79e67d8f..7b4de93e 100644 --- a/TODO +++ b/TODO @@ -31,7 +31,7 @@ lib/silcclient, The Client Library ***PARTLY DONE**** o Finish all the missing SILC packet processings, rewrites. (***DONE) - o The client_notify.c rewrite. (***TESTING NEEDED) + o The client_notify.c rewrite. (***DONE) o Resuming to client_register.c (remove client_resume.c) (***TESTING NEEDED) @@ -51,7 +51,7 @@ lib/silcclient, The Client Library ***PARTLY DONE**** o Starting key exchange directly, rewrite. (***DONE) o Channel messages, channel private keys, channel entires, channel - search, etc. rewrite. (***TESTING NEEDED */ + search, etc. rewrite. (***TESTING NEEDED) o For many APIs leave the hash context allocations to the caller instead of using client->sha1hash and client->md5hash, or some kind of thread @@ -89,6 +89,8 @@ lib/silcsftp ****DONE**** o Porting to use the new util library. (***DONE) + o Read-ahead (1.2) + lib/silccore/silcpacket.[ch] ****PARTLY DONE**** ============================ diff --git a/configure.ad b/configure.ad index 221edd9a..2b2313d5 100644 --- a/configure.ad +++ b/configure.ad @@ -179,7 +179,7 @@ AC_CHECK_FUNCS(poll select listen bind shutdown close connect setsockopt) AC_CHECK_FUNCS(setrlimit time ctime utime gettimeofday getrusage) AC_CHECK_FUNCS(chmod fcntl stat fstat getenv putenv strerror) AC_CHECK_FUNCS(getpid getgid getsid getpgid getpgrp getuid) -AC_CHECK_FUNCS(setgroups initgroups nl_langinfo epoll_wait nanosleep) +AC_CHECK_FUNCS(setgroups initgroups nl_langinfo nanosleep) AC_CHECK_FUNCS(strchr snprintf strstr strcpy strncpy memcpy memset memmove) #ifdef SILC_DIST_SIM diff --git a/lib/configure.ad b/lib/configure.ad index a3a7eea9..6da5e7c5 100644 --- a/lib/configure.ad +++ b/lib/configure.ad @@ -110,6 +110,27 @@ AC_SUBST(LIBSILCSERVER_AGE) # Check for big-endian machines AC_C_BIGENDIAN +# Check for epoll_wait and verify that epoll_create works +AC_CHECK_FUNC(epoll_wait, + [ + AC_RUN_IFELSE( + [ + #include + int main() + { + int ret = epoll_create(5); + if (ret < 0) + return 1; + close(ret); + return 0; + } + ], + [ + AC_DEFINE([HAVE_EPOLL_WAIT], [1], [HAVE_EPOLL_WAIT]) + ], + ) + ]) + #ifdef SILC_DIST_SIM # SIM modules directory # -- 2.24.0