From: Pekka Riikonen Date: Tue, 3 Jul 2007 19:50:34 +0000 (+0000) Subject: updates. X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=c496063e2dcbce20ed4dbe221240921960d2f9c0 updates. --- diff --git a/CHANGES.RUNTIME b/CHANGES.RUNTIME index 48b719c2..1983a05f 100644 --- a/CHANGES.RUNTIME +++ b/CHANGES.RUNTIME @@ -1,3 +1,32 @@ +Tue Jul 3 22:45:56 EEST 2007 Pekka Riikonen + + * Added concept of child stacks to SilcStack, allowing to create + true memory pools using SilcStack. It is now possible to + create childs from the parent, without consuming the parent's + memory. The child's memory is returned back to parent when + it is freed. Affected files are lib/silcutil/silcstack.[ch], + silcstack_i.h. + + * Added user specified SilcStack support to SILC ASN.1 API. + Affected files are lib/silcasn1/silcasn1.[ch]. + +Tue Jul 3 18:17:54 EEST 2007 Pekka Riikonen + + * Added SILC DLL API for loading and using shared objects and + DLLs. Affected files are lib/silcutil/sildll.[ch]. Added + also test program lib/silcutil/tests/test_silcdll.c. + + * Added SILC Environment manipulation API to + lib/silcutil/silcenv.[ch] and test program to + lib/silcutil/tests/test_silcenv.c. + + * Renamed silc_hash_table_replace to silc_hash_table_set. + Added SilcStack support to SilcHashTable. Affected files are + lib/silcutil/silchashtable.[ch]. + + * Added SilcStack support to SilcDList. Added new function + silc_dlist_sinit. Affected file is lib/silcutil/silcdlist.h. + Mon Jul 2 21:07:34 EEST 2007 Pekka Riikonen * Removed unaligned memory allocation from SilcStack. Moved diff --git a/TODO b/TODO index 2941e0f8..ac0175a6 100644 --- a/TODO +++ b/TODO @@ -82,20 +82,11 @@ Runtime library, lib/silcutil/ o Fix universal time decoding (doesn't accept all formats) in silctime.c. - o Add functions to manipulate environment variables. - - SilcBool silc_setenv(const char *variable, const char *value); - const char *silc_getenv(const char *variable); - SilcBool silc_clearenv(const char *variable); + o Add functions to manipulate environment variables. (***DONE) o Add functions to loading shared/dynamic object symbols (replaces the SIM library (lib/silcsim) and introduces generic library). Add this - to lib/silcutil/silcdll.[ch]. - - SilcDll silc_dll_load(const char *object_path, SilcDllFlags flags); - void silc_dll_close(SilcDll dll); - void *silc_dll_getsym(SilcDll dll, const char *symbol); - const char *silc_dll_error(SilcDll dll); + to lib/silcutil/silcdll.[ch]. (***TESTING NEEDED WIN32, TODO Symbian) o Add directory opening/traversing functions @@ -181,11 +172,11 @@ Runtime library, lib/silcutil/ o silc_stringprep to non-allocating version. o silc_hash_table_replace -> silc_hash_table_set. Retain support for - silc_hash_table_replace as macro. + silc_hash_table_replace as macro. (***DONE) - o SilcStack aware SilcHashTable. + o SilcStack aware SilcHashTable. (***DONE) - o SilcStack aware SilcDList. + o SilcStack aware SilcDList. (***DONE) o Thread pool API. Add this to lib/silcutil/silcthread.[ch]. (***DONE) diff --git a/configure.ad b/configure.ad index 8ee9d61b..8926d430 100644 --- a/configure.ad +++ b/configure.ad @@ -211,6 +211,7 @@ AC_CHECK_FUNCS(chmod fcntl stat fstat getenv putenv strerror) AC_CHECK_FUNCS(getpid getgid getsid getpgid getpgrp getuid sched_yield) AC_CHECK_FUNCS(setgroups initgroups nl_langinfo nanosleep) AC_CHECK_FUNCS(strchr snprintf strstr strcpy strncpy memcpy memset memmove) +AC_CHECK_FUNCS(setenv getenv putenv unsetenv clearenv) # lib/contrib conditionals # @@ -671,6 +672,7 @@ AC_CHECK_HEADERS(dlfcn.h, AC_CHECK_LIB(dl, dlopen, [ AC_DEFINE([SILC_SIM], [], [HAVE_SIM]) + AC_DEFINE([HAVE_DLOPEN], [], [HAVE_DLOPEN]) sim_support=true LIBS="$LIBS -ldl" ], @@ -678,6 +680,7 @@ AC_CHECK_HEADERS(dlfcn.h, AC_CHECK_LIB(c, dlopen, [ AC_DEFINE([SILC_SIM], [], [HAVE_SIM]) + AC_DEFINE([HAVE_DLOPEN], [], [HAVE_DLOPEN]) sim_support=true ]) ]) diff --git a/includes/silc.h.in b/includes/silc.h.in index accf5225..b758c50a 100644 --- a/includes/silc.h.in +++ b/includes/silc.h.in @@ -220,6 +220,7 @@ extern "C" { #include "silcversion.h" /* SILC util library includes */ +#include "silclist.h" #include "silcstack.h" #include "silcmemory.h" #include "silcsnprintf.h" @@ -247,8 +248,9 @@ extern "C" { #include "silcpkcs1.h" /* More SILC util library includes */ +#include "silcenv.h" +#include "silcdll.h" #include "silchashtable.h" -#include "silclist.h" #include "silcdlist.h" #include "silcasync.h" #include "silcstream.h"