SILC_ERR_INVALID_ARGUMENT is return by silc_stack_realloc if
[crypto.git] / CHANGES.RUNTIME
1 Sat Dec 22 19:55:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * Added SILC errno API to lib/silcutil/silcerrno.[ch].  Added
4           SilcResult, generic error code and return value type.  Added
5           global silc_errno that returns last error in that thread.
6
7         * Deprecated SilcSocketStreamStatus, SilcResult replaces it.
8           Backwards support remains.  Affected files are
9           lib/silcutil/silcsocketstream.[ch].
10
11         * Deprecated SilcNetStatus, SilcResult replaces it.  Backwards
12           support remains.  Affected files are lib/silcutil/silcnet.[ch].
13
14         * Added errno setting to almost all Runtime Tooolkit routines
15           in error conditions.
16
17 Sun Dec 16 16:18:04 EET 2007  Pekka Riikonen <priikone@silcnet.org>
18
19         * Added SILC Bit Operations API to lib/silcutil/silcbitops.[ch].
20
21 Sat Dec 15 19:59:53 EET 2007  Pekka Riikonen <priikone@silcnet.org>
22
23         * Added SILC Tls API for Thread-local storage in
24           lib/silcutil/silcthread.[ch].  Added all platform specific
25           implementations.  Added SilcTls structure to 
26           lib/silcutil/silcthread_i.h that is now in all threads' Tls.
27
28 Thu Dec 13 17:37:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
29
30         * Clear the locked flag before unlocking mutex, not after.
31           Affected files are lib/silcutil/unix/silcunixthread.c and
32           lib/silcutil/symbian/silcsymbianthread.c.
33
34         * Fixed thread pool locking dealing with thread stopping to
35           prevent deadlocks and crashes.  Affected file is 
36           lib/silcutil/silcthread.c.
37
38 Tue Nov  6 17:09:42 EET 2007  Pekka Riikonen <priikone@silcnet.org>
39
40         * Added '%@' formatting to silc_snprintf and variants.  It
41           can be used to render data and structures.  Affected files
42           are lib/silcutil/silcsnprintf.[ch].
43
44 Sat Oct 27 18:12:40 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
45
46         * Added silc_net_tcp_create_listener2.  Affected files are
47           lib/silcutil/silcnet.h and platform specific implementation.
48
49 Sat Sep  1 12:09:32 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
50
51         * Rewrote parts of the SILC Atomic API to not use volatile
52           members in structures but to handle the memory accesses
53           volatily, the right way to do it.  Affected file is
54           lib/silcutil/silcatomic.h.
55
56         * Added silc_timer_tick and silc_timer_synchronize functions
57           to SILC Timer API.  Affected files are 
58           lib/silcutil/silctimer.[ch] and silctimer_i.h.
59
60         * Use clock_gettime in place of gettimeofday, if it is
61           available.  Affected files are configure.ad and
62           lib/silcutil/unix/silcunixutil.c.
63
64         * Added silc_offsetof, silc_likely and silc_unlikely to public
65           API.  Added silc_attribute compiler specific definition.
66           Affected file is lib/silcutil/silctypes.h.
67
68         * Added silc_prefetch and silc_prefetch_block functions that
69           provide routines for prefetching data to CPU cache.  Affected
70           file is lib/silcutil/silctypes.h.
71
72         * Added --with-alignment for specifying default memory alignment
73           used in the compiled code.  Currently only SilcStack respects
74           this value.  Affected files are lib/configure.ad,
75           lib/silcutil/silcstack_i.h and includes/silc.h.in.
76
77 Tue Aug  7 21:00:00 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
78
79         * Fixed alignment issues on 64-bit CPUs.  Affected files are
80           lib/silcutil/silcschedule.c and unix/silcunixschedule.c.
81
82 Sat Aug  4 19:09:14 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
83
84         * Added assembler optimized versions of SILC_[GET|PUT]XX_MSB
85           macros, and SILC_SWAB_XX macros.  Added new functions
86           silc_rol, silc_ror, silc_rol64 and silc_ror64, all of which
87           have assembler optimizations also.  Affected file is
88           lib/silcutil/silctypes.h.
89
90 Thu Jul 26 18:13:59 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
91
92         * Changed thread pool call queues thread specific and changed
93           queues to be consumed in last-in-first-out order.  These
94           are optimizations to the thread pool.  Affected file is
95           lib/silcutil/silcthread.c.
96
97 Wed Jul 25 19:32:41 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
98
99         * Added silc_mime_assembler_purge to lib/silcutil/silcmime.[ch]
100           to purge unfinished fragments from MIME assembler.
101
102 Sat Jul 21 14:47:28 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
103
104         * Added silc_data2hex and silc_hex2data to
105           lib/silcutil/silcutil.[ch].
106
107 Thu Jul 19 17:07:02 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
108
109         * Added silc_buffer_strchr to lib/silcutil/silcbuffer.h.
110
111 Tue Jul 17 20:10:41 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
112
113         * Added silc_hexdump to lib/silcutil/silcutil.[ch].
114
115 Fri Jul 13 23:01:45 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
116
117         * Added SILC_GET32_X_MSB macro to lib/silcutil/silctypes.h.
118
119 Wed Jul 11 17:10:11 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
120
121         * Added SILC Timer API to lib/silcutil/silctimer.[ch],
122           silctimer_i.h, tests/test_silctimer.c.
123
124 Tue Jul 10 20:02:04 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
125
126         * Added queue entry free list to thread pool instead of
127           allocating new entry everytime new entry is needed.  Affected
128           file is lib/silcutil/silcthread.c.
129
130 Mon Jul  9 20:21:13 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
131
132         * Changed thread pool completion callback to SilcTaskCallback so
133           that it can be given directly to destination scheduler.
134           Affected files are lib/silcutil/silcthread.[ch].
135
136 Sun Jul  8 20:20:22 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
137
138         * Moved Base64 routines to lib/silcutil/silcbase64.[ch].  Added
139           SilcStack support to the API.
140
141         * Inherit the lock from parent in SilcStack child.  If child
142           doesn't find stack blocks, check from parent.  Added
143           silc_stack_purge.  Affected file is lib/silcutil/silcstack.c.
144
145 Wed Jul  4 20:20:05 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
146
147         * Unified the SILC_STR_FUNC callback.  Affected files are
148           lib/silcutil/silcbuffmt.[ch].
149
150         * Added SilcStack support to SILC File Util API.  Affected files
151           are lib/silcutil/silcfileutil.[ch].
152
153         * Added SilcStack support to SILC FD Stream API.  Affected files
154           are lib/silcutil/silcfdstream.[ch].
155
156         * Added SilcStack support to SILC Scheduler API.  The scheduler
157           now creates stack always.  It can be retrieved by
158           silc_schedule_get_stack.  Affected files are
159           lib/silcutil/silcschedule.[ch], silcschedule_i.h.
160
161         * Added SilcStack child creation and use multi-thread support.
162           Added OOM handler, silc_stack_set_oom_handler.  Affected
163           files are lib/silcutil/silcstack.[ch].
164
165 Tue Jul  3 22:45:56 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
166
167         * Added concept of child stacks to SilcStack, allowing to create
168           true memory pools using SilcStack.  It is now possible to
169           create childs from the parent, without consuming the parent's
170           memory.  The child's memory is returned back to parent when
171           it is freed.  Affected files are lib/silcutil/silcstack.[ch],
172           silcstack_i.h.
173
174 Tue Jul  3 18:17:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
175
176         * Added SILC DLL API for loading and using shared objects and
177           DLLs.  Affected files are lib/silcutil/sildll.[ch].  Added
178           also test program lib/silcutil/tests/test_silcdll.c.
179
180         * Added SILC Environment manipulation API to
181           lib/silcutil/silcenv.[ch] and test program to
182           lib/silcutil/tests/test_silcenv.c.
183
184         * Renamed silc_hash_table_replace to silc_hash_table_set.
185           Added SilcStack support to SilcHashTable.  Affected files are
186           lib/silcutil/silchashtable.[ch].
187
188         * Added SilcStack support to SilcDList.  Added new function
189           silc_dlist_sinit.  Affected file is lib/silcutil/silcdlist.h.
190
191 Mon Jul  2 21:07:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
192
193         * Removed unaligned memory allocation from SilcStack.  Moved
194           silc_stack_malloc and silc_stack_realloc to public API from
195           private API.  Added silc_stack_[set|get]_alignment that is
196           used to get/set memory alignment with SilcStack.  Affected
197           files are lib/silcutil/silcstack.[ch], silcstack_i.h.
198
199         * Added silc_sfree to lib/silcutil/silcmemory.[ch].
200
201         * Removed silc_smalloc_ua and silc_srealloc_ua.  Affected files
202           are lib/silcutil/silcmemory.[ch].
203
204 Mon Jul  2 17:13:51 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
205
206         * Added SILC Thread Pool API to lib/silcutil/silcthread.[ch],
207           and test program in lib/silcutil/tests/test_silcthread.c.
208
209 -----------------------------------------------------------------------------
210
211 For older changes please see the CHANGES file from the CVS tree.