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