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