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