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