Move the malloc checking from module 'oset' to new module 'xoset'.
[gnulib.git] / NEWS
1 Important notes
2 ---------------
3
4 User visible incompatible changes
5 ---------------------------------
6
7 Date        Modules         Changes
8
9 2009-12-13  oset            The module does not define functions any more that
10                             call xalloc_die() in out-of-memory situations.
11                             Use module 'xoset' and include file "gl_xoset.h"
12                             instead.
13
14 2009-12-10  *               Most source code files have been converted to
15                             indentation by spaces (rather than tabs). Patches
16                             of gnulib source code needs to be updated.
17
18 2009-12-09  link-warning    The Makefile rules that use $(LINK_WARNING_H) now
19                             must contain an explicit dependency on
20                             $(LINK_WARNING_H).
21
22 2009-11-12  getgroups       These functions now use a signature of gid_t,
23             getugroups      rather than GETGROUPS_T.  This probably has no
24                             effect except on very old platforms.
25
26 2009-11-04  tempname        The gen_tempname function takes an additional
27                             'suffixlen' argument. You can safely pass 0.
28
29 2009-11-04  nproc           The num_processors function now takes an argument.
30
31 2009-11-02  inet_pton       The use of this module now requires linking with
32                             $(INET_PTON_LIB).
33
34 2009-11-02  inet_ntop       The use of this module now requires linking with
35                             $(INET_NTOP_LIB).
36
37 2009-10-10  utimens         The use of this module now requires linking with
38                             $(LIB_CLOCK_GETTIME).
39
40 2009-09-16  canonicalize-lgpl
41                             The include file is changed from "canonicalize.h"
42                             to <stdlib.h>.
43
44 2009-09-04  link-follow     The macro LINK_FOLLOWS_SYMLINK is now tri-state,
45                             rather than only defined to 1.
46
47 2009-09-03  openat          The include files are standardized to POSIX 2008.
48                             For openat, include <fcntl.h>; for
49                             fchmodat, fstatat, and mkdirat, include
50                             <sys/stat.h>; for fchownat and unlinkat,
51                             include <unistd.h>.  For all other
52                             functions provided by this module,
53                             continue to include "openat.h".
54
55 2009-08-30  striconveh      The functions mem_cd_iconveh and str_cd_iconveh
56                             now take an 'iconveh_t *' argument instead of three
57                             iconv_t arguments.
58
59 2009-08-23  tempname        The gen_tempname function takes an additional
60                             'flags' argument. You can safely pass 0.
61
62 2009-08-12  getopt          This module is deprecated. Please choose among
63                             getopt-posix and getopt-gnu. getopt-gnu provides
64                             "long options" and "options with optional
65                             arguments", getopt-posix doesn't.
66
67 2009-06-25  fpurge          The include file is changed from "fpurge.h" to
68                             <stdio.h>.
69
70 2009-04-26  modules/uniconv/u8-conv-from-enc
71             modules/uniconv/u16-conv-from-enc
72             modules/uniconv/u32-conv-from-enc
73                             The calling convention of the functions
74                             u*_conv_from_encoding is changed.
75
76 2009-04-26  modules/uniconv/u8-conv-to-enc
77             modules/uniconv/u16-conv-to-enc
78             modules/uniconv/u32-conv-to-enc
79                             The calling convention of the functions
80                             u*_conv_to_encoding is changed.
81
82 2009-04-24  maintainer-makefile
83                             The maint.mk file was copied from
84                             coreutils, and the old
85                             coverage/gettext/indent rules were
86                             re-added.  If you used 'make syntax-check'
87                             this will add several new checks.  If some
88                             new check is annoying, add the name of the
89                             checks to 'local-checks-to-skip' in your
90                             cfg.mk.
91
92 2009-04-01  visibility      Renamed to lib-symbol-visibility.
93
94 2009-04-01  ld-version-script  Renamed to lib-symbol-versions.
95
96 2009-03-20  close           The substituted variable LIB_CLOSE is removed.
97
98 2009-03-05  filevercmp      Move hidden files up in ordering.
99
100 2009-01-22  c-strtod        This function no longer calls xalloc_die(). If
101             c-strtold       you want to exit the program in case of out-of-
102                             memory, the calling function needs to arrange
103                             for it, like this:
104                                 errno = 0;
105                                 val = c_strtod (...);
106                                 if (val == 0 && errno == ENOMEM)
107                                   xalloc_die ();
108
109 2009-01-17  relocatable-prog  In the Makefile.am or Makefile.in, you now also
110                             need to set RELOCATABLE_STRIP = :.
111
112 2008-12-22  getaddrinfo     When using this module, you now need to link with
113             canon-host      $(GETADDRINFO_LIB).
114
115 2008-12-21  mbiter          The header files "mbiter.h", "mbuiter.h",
116             mbuiter         "mbfile.h" can now be included without checking
117             mbfile          HAVE_MBRTOWC. The macro HAVE_MBRTOWC will no
118                             longer be defined by these modules in a year. If
119                             you want to continue to use it, you need to invoke
120                             AC_FUNC_MBRTOWC yourself.
121
122 2008-11-11  warnings        This module subsumes the file m4/warning.m4 which
123                             was removed.
124
125 2008-10-20  lstat           The include file is changed from "lstat.h" to
126                             <sys/stat.h>.
127
128 2008-10-20  getaddrinfo     The include file is changed from "getaddrinfo.h"
129                             to <netdb.h>.
130
131 2008-10-19  isnanf          The include file is changed from "isnanf.h" to
132                             <math.h>.
133             isnand          The include file is changed from "isnand.h" to
134                             <math.h>.
135             isnanl          The include file is changed from "isnanl.h" to
136                             <math.h>.
137
138 2008-10-18  lchmod          The include file is changed from "lchmod.h" to
139                             <sys/stat.h>.
140
141 2008-10-18  dirfd           The include file is changed from "dirfd.h" to
142                             <dirent.h>.
143
144 2008-10-18  euidaccess      The include file is changed from "euidaccess.h"
145                             to <unistd.h>.
146
147 2008-10-18  getdomainname   The include file is changed from "getdomainname.h"
148                             to <unistd.h>.
149
150 2008-09-28  sockets         When using this module, you now need to link with
151                             $(LIBSOCKET).
152
153 2008-09-24  sys_select      The limitation on `select', introduced 2008-09-23,
154                             was removed.  sys_select now includes a select
155                             wrapper for Winsock.  The wrapper expects socket
156                             and file descriptors to be compatible as arranged
157                             by the sys_socket on MinGW.
158
159 2008-09-23  sys_socket      Under Windows (MinGW), the module now adds
160                             wrappers around Winsock functions, so that
161                             socket descriptors are now compatible with
162                             file descriptors.  In general, this change
163                             will simply improve your code's portability
164                             between POSIX platforms and Windows.  In
165                             particular, you will be able to use ioctl and
166                             close instead of ioctlsocket and closesocket,
167                             and test errno instead of WSAGetLastError ().
168                             On the other hand, you have to audit your code to
169                             remove usage of these Winsock-specific functions.
170
171                             This change does not remove the need to call
172                             the gl_sockets_startup function from the sockets
173                             gnulib module.  Also, for now select is disabled
174                             when you include the sys_socket module; while
175                             the functionality will be restored soon, for
176                             efficiency it is suggested to use the poll system
177                             poll system call and gnulib module instead.
178
179 2008-09-13  EOVERFLOW       The module is removed. Use module errno instead.
180
181 2008-09-01  filename        The module does not define the function
182                             concatenated_filename any more. To get an
183                             equivalent function, use function
184                             xconcatenated_filename from module
185                             'xconcat-filename'.
186
187 2008-08-31  havelib         On Solaris, when searching for 64-bit mode
188                             libraries the directory $prefix/lib is now ignored.
189                             Instead the directory $prefix/lib/64 is searched.
190                             You may need to create a symbolic link for
191                             $prefix/lib/64 if you have 64-bit libraries
192                             installed in $prefix/lib.
193
194 2008-08-19  strverscmp      The include file is changed from "strverscmp.h"
195                             to <string.h>.
196
197 2008-08-14  lock            The include file is changed from "lock.h"
198                             to "glthread/lock.h".
199             tls             The include file is changed from "tls.h"
200                             to "glthread/tls.h".
201
202 2008-07-17  c-stack         The module now requires the addition of
203                             $(LIBCSTACK) or $(LTLIBCSTACK) in Makefile.am,
204                             since it may depend on linking with libsigsegv.
205
206 2008-07-07  isnanf-nolibm   The include file is changed from "isnanf.h"
207                             to "isnanf-nolibm.h".
208             isnand-nolibm   The include file is changed from "isnand.h"
209                             to "isnand-nolibm.h".
210
211 2008-06-10  execute         The execute function takes an additional termsigp
212                             argument. Passing termsigp = NULL is ok.
213             wait-process    The wait_subprocess function takes an additional
214                             termsigp argument. Passing termsigp = NULL is ok.
215
216 2008-05-10  linebreak       The module is split into several modules unilbrk/*.
217                             The include file is changed from "linebreak.h" to
218                             "unilbrk.h". Two functions are renamed:
219                             mbs_possible_linebreaks -> ulc_possible_linebreaks
220                             mbs_width_linebreaks -> ulc_width_linebreaks
221
222 2008-04-28  rpmatch         The include file is now <stdlib.h>.
223
224 2008-04-28  inet_ntop       The include file is changed from "inet_ntop.h"
225                             to <arpa/inet.h>.
226
227 2008-04-28  inet_pton       The include file is changed from "inet_pton.h"
228                             to <arpa/inet.h>.
229
230 2008-03-06  freadahead      The return value's computation has changed. It
231                             now increases by 1 after ungetc.
232
233 2008-01-26  isnan-nolibm    The module name is changed from isnan-nolibm to
234                             isnand-nolibm. The include file is changed from
235                             "isnan.h" to "isnand.h". The function that it
236                             defines is changed from isnan() to isnand().
237
238 2008-01-14  strcasestr      This module now replaces worst-case inefficient
239                             implementations; clients that use controlled
240                             needles and thus do not care about worst-case
241                             efficiency should use the new strcasestr-simple
242                             module instead for smaller code size.
243
244 2008-01-09  alloca-opt      Now defines HAVE_ALLOCA_H only when the system
245                             supplies an <alloca.h>.  Gnulib-using code is now
246                             expected to include <alloca.h> unconditionally.
247                             Non-gnulib-using code can continue to include
248                             <alloca.h> only if HAVE_ALLOCA_H is defined.
249
250 2008-01-08  memmem          This module now replaces worst-case inefficient
251                             implementations; clients that use controlled
252                             needles and thus do not care about worst-case
253                             efficiency should use the new memmem-simple
254                             module instead for smaller code size.
255
256 2007-12-24  setenv          The include file is changed from "setenv.h" to
257                             <stdlib.h>. Also, the unsetenv function is no
258                             longer declared in this module; use the 'unsetenv'
259                             module if you need it.
260
261 2007-12-03  getpagesize     The include file is changed from "getpagesize.h"
262                             to <unistd.h>.
263
264 2007-12-03  strcase         The include file is changed from <string.h> to
265                             <strings.h>.
266
267 2007-10-07  most modules    The license for most modules has changed from
268                             GPLv2+ to GPLv3+, and from LGPLv2+ to LGPLv3+.
269                             A few modules are still under LGPLv2+; see the
270                             module description for the applicable license.
271
272 2007-09-01  linebreak       "linebreak.h" no longer declares the functions
273                             locale_charset, uc_width, u{8,16,32}_width. Use
274                             "uniwidth.h" to get these functions declared.
275
276 2007-08-28  areadlink-with-size
277                             Renamed from mreadlink-with-size.
278                             Function renamed: mreadlink_with_size ->
279                             areadlink_with_size.
280
281 2007-08-22  getdelim, getline
282                             The include file is changed from "getdelim.h"
283                             and "getline.h" to the POSIX 200x <stdio.h>.
284
285 2007-08-18  idcache         Now provides prototypes in "idcache.h".
286
287 2007-08-10  xstrtol         The STRTOL_FATAL_ERROR macro is removed.
288                             Use the new xstrtol_fatal function instead.
289
290 2007-08-04  human           The function human_options no longer reports an
291                             error to standard error; that is now the
292                             caller's responsibility.  It returns an
293                             error code of type enum strtol_error
294                             instead of the integer option value, and stores
295                             the option value via a new int * argument.
296             xstrtol         The first two arguments of STRTOL_FATAL_ERROR
297                             are now an option name and option argument
298                             instead of an option argument and a type string,
299                             STRTOL_FAIL_WARN is removed.
300
301 2007-07-14  gpl, lgpl       New Texinfo versions with no sectioning commands.
302
303 2007-07-10  version-etc     Output now mentions GPLv3+, not GPLv2+.  Use
304                             gnulib-tool --local-dir to override this.
305
306 2007-07-07  wcwidth         The include file is changed from "wcwidth.h" to
307                             <wchar.h>.
308
309 2007-07-02  gpl, lgpl       Renamed to gpl-2.0 and lgpl-2.1 respectively.
310                             (There is also a new module gpl-3.0.)
311
312 2007-06-16  lchown          The include file is changed from "lchown.h" to
313                             <unistd.h>.
314
315 2007-06-09  xallocsa        Renamed to xmalloca. The include file "xallocsa.h"
316                             was remamed to "xmalloca.h". The function was
317                             renamed:
318                               xallocsa -> xmalloca
319
320 2007-06-09  allocsa         Renamed to malloca. The include file "allocsa.h"
321                             was remamed to "malloca.h". The function-like
322                             macros were renamed:
323                               allocsa -> malloca
324                               freesa -> freea
325
326 2007-05-20  utimens         Renamed futimens to gl_futimens, to avoid
327                             conflict with the glibc-2.6-introduced function
328                             that has a different signature.
329
330 2007-05-01  sigprocmask     The module now depends on signal, so replace
331                               #include "sigprocmask.h"
332                             with
333                               #include <signal.h>
334
335 2007-04-06  gettext         The macro HAVE_LONG_DOUBLE is no longer set.
336                             You can replace all its uses with 1, i.e. assume
337                             'long double' as a type exists.
338
339 2007-04-01  arcfour         Renamed to crypto/arcfour.
340             arctwo          Renamed to crypto/arctwo.
341             des             Renamed to crypto/des.
342             gc              Renamed to crypto/gc.
343             gc-arcfour      Renamed to crypto/gc-arcfour.
344             gc-arctwo       Renamed to crypto/gc-arctwo.
345             gc-des          Renamed to crypto/gc-des.
346             gc-hmac-md5     Renamed to crypto/gc-hmac-md5.
347             gc-hmac-sha1    Renamed to crypto/gc-hmac-sha1.
348             gc-md2          Renamed to crypto/gc-md2.
349             gc-md4          Renamed to crypto/gc-md4.
350             gc-md5          Renamed to crypto/gc-md5.
351             gc-pbkdf2-sha1  Renamed to crypto/gc-pbkdf2-sha1.
352             gc-random       Renamed to crypto/gc-random.
353             gc-rijndael     Renamed to crypto/gc-rijndael.
354             gc-sha1         Renamed to crypto/gc-sha1.
355             hmac-md5        Renamed to crypto/hmac-md5.
356             hmac-sha1       Renamed to crypto/hmac-sha1.
357             md2             Renamed to crypto/md2.
358             md4             Renamed to crypto/md4.
359             md5             Renamed to crypto/md5.
360             rijndael        Renamed to crypto/rijndael.
361             sha1            Renamed to crypto/sha1.
362
363 2007-03-27  vasprintf       The module now depends on stdio, so replace
364                                #include "vasprintf.h"
365                             with
366                                #include <stdio.h>
367
368 2007-03-24  tsearch         The include file is changed from "tsearch.h" to
369                             <search.h>.
370
371 2007-03-24  utf8-ucs4       The include file is changed from "utf8-ucs4.h"
372                             to "unistr.h".
373             utf8-ucs4-unsafe  The include file is changed from
374                             "utf8-ucs4-unsafe.h" to "unistr.h".
375             utf16-ucs4      The include file is changed from "utf16-ucs4.h"
376                             to "unistr.h".
377             utf16-ucs4-unsafe  The include file is changed from
378                             "utf16-ucs4-unsafe.h" to "unistr.h".
379             ucs4-utf8       The include file is changed from "ucs4-utf8.h"
380                             to "unistr.h".
381             ucs4-utf16      The include file is changed from "ucs4-utf16.h"
382                             to "unistr.h".
383
384 2007-03-19  iconvme         The module is removed. Use module striconv instead:
385                             iconv_string -> str_iconv
386                             iconv_alloc -> str_cd_iconv (with reversed
387                                            arguments)
388
389 2007-03-15  list            The functions gl_list_create_empty and
390             array-list      gl_list_create now take an extra fourth argument.
391             carray-list     You can pass NULL.
392             linked-list
393             linkedhash-list
394             avltree-list
395             rbtree-list
396             avltreehash-list
397             rbtreehash-list
398
399 2007-03-15  oset            The function gl_oset_create_empty now takes a
400             array-oset      third argument. You can pass NULL.
401             avltree-oset
402             rbtree-oset
403
404 2007-03-12  des             The types and functions in lib/des.h have been
405             gc-des          renamed:
406
407                             des_ctx -> gl_des_ctx, tripledes_ctx -> gl_3des_ctx,
408                             des_is_weak_key -> gl_des_is_weak_key,
409                             des_setkey -> gl_des_setkey,
410                             des_makekey -> gl_des_makekey,
411                             des_ecb_crypt -> gl_des_ecb_crypt,
412                             des_ecb_encrypt -> gl_des_ecb_encrypt,
413                             des_ecb_decrypt -> gl_des_ecb_decrypt,
414                             tripledes_set2keys -> gl_3des_set2keys,
415                             tripledes_set3keys -> gl_3des_set3keys,
416                             tripledes_makekey -> gl_3des_makekey,
417                             tripledes_ecb_crypt -> gl_3des_ecb_crypt.
418
419                             Also consider using the "gc-des" buffer instead of
420                             using the "des" module directly.
421
422 2007-02-28  xreadlink       The module xreadlink was renamed to
423                             xreadlink-with-size. The function was renamed:
424                             xreadlink -> xreadlink_with_size.
425
426 2007-02-18  exit            The modules now depend on stdlib, so replace
427             mkdtemp           #include "exit.h"
428             mkstemp           #include "mkdtemp.h"
429                               #include "mkstemp.h"
430                             with
431                               #include <stdlib.h>
432
433 2007-01-26  strdup          The module now depends on string, so replace
434                               #include "strdup.h"
435                             with
436                               #include <string.h>
437
438 # This is for Emacs.
439 # Local Variables:
440 # indent-tabs-mode: nil
441 # whitespace-check-buffer-indent: nil
442 # End: