1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
|
Important general notes
-----------------------
Date Modules Changes
2022-07-24 bootstrap To specify a reference directory for the 'gnulib'
submodule, use the environment variable
GNULIB_REFDIR instead of GNULIB_SRCDIR or the
command-line option --gnulib-refdir instead of
--gnulib-srcdir.
2022-02-20 (all) Automake >= 1.14 and Autoconf >= 2.64 are required.
2021-06-04 (all) The license notices in source files are now really
stating the effective license, rather than a fake
GPL notice.
gnulib-tool no longer replaces GPL notices in source
files by something else.
2020-08-16 (all) Automake >= 1.11 and Autoconf >= 2.64 are required.
2019-12-11 Support for These modules are now supported in C++ mode as well.
ISO C or POSIX This means, while the autoconfiguration uses the C
functions compiler, the resulting header files and function
substitutes can be used with a matching C++ compiler
as well.
2019-02-14 gnulib-tool If you use multiple --local-dir options at once:
The first one now has the highest priority, not the
last one.
2019-01-04 (all) The meaning of the 'Link' section in the module
descriptions has been clarified: It overrides the
combined 'Link' sections from the dependencies.
2018-10-22 (all) Automake >= 1.11 and Autoconf >= 2.63 are required.
2016-09-05 progname There is now an alternate module 'getprogname'. It
defines a getprogname() function; use it to obtain
the name of the current program.
Recommended use:
- In a program's main() function, and associated
usage() and help() functions, use 'progname'.
- In library code, or more generally any code that
is not near the main() function, use
'getprogname'.
2013-04-24 gettext If your project uses 'gettextize --intl' it is now
your responsibility to put -I$(top_builddir)/intl
into the Makefile.am for gnulib.
2012-06-27 elisp-comp The module 'elisp-comp' is removed; the script is
not independently useful outside of automake.
2012-06-21 gnulib-tool The option --with-tests is now implied by the
options --create-testdir, --test,
--create-megatestdir, --megatest.
2012-01-07 quotearg In the C locale, the function will no longer use
the grave accent character to begin a quoted
string (`like this'). It will use apostrophes
'like these' or, in Unicode locales, single quotes
‘like these’. You may want to adjust any error
messages that hard code the quoting characters.
2010-09-04 gnulib-tool The option '--import' is no longer cumulative; it
now expects the complete list of modules and other
options on the command line. If you want to
augment (not set) the list of modules, use the
new option '--add-import' instead of '--import'.
User visible incompatible changes
---------------------------------
Date Modules Changes
2024-02-21 *printf-posix These modules no longer support the 'n' directive
by default. In order to keep the 'n' directive
enabled, you need to additionally request the
module 'printf-with-n-directive'.
2024-02-09 strftime This module, deprecated on 2017-07-23, is removed.
Use module 'nstrftime' instead.
2023-09-03 same-inode SAME_INODE, ST_BLKSIZE and ST_NBLOCKS args
stat-size must be addressable lvalues.
2023-08-08 readutmp The result element type of the function read_utmp,
STRUCT_UTMP, is no longer the same as the result
value type of the function getutxent, struct utmpx.
2023-08-03 readutmp Some STRUCT_UTMP members can be char *,
2023-08-01 rather than fixed-length char arrays.
On some platforms, the timestamp is ut_ts of type
struct timespec, not ut_tv of type struct timeval,
and ut_session is pid_t not long.
read_utmp's 2nd arg is now idx_t * not size_t *.
Link additionally with $(READUTMP_LIB).
2023-07-10 dfa The signature of the function
case_folded_counterparts, declared in localeinfo.h,
has changed.
2023-06-10 javacomp-script These modules now compile the Java code with option
javacomp '-source 1.6' or higher. As a consequence, the
compiler may emit notes "... uses unchecked or
unsafe operations". To avoid these notes, add
template arguments to the types or functions.
2023-04-28 largefile-required
year2038-required
Modules removed, for consistency with Autoconf
master. Use new module year2038-recommended
instead of year2038-required.
2023-03-25 mtx This module no longer provides the function
call_once. To get this function, use the new
separate module 'call_once'.
2023-03-08 time This module is renamed to 'time-h'.
The new 'time' module now also works around an
inconsistency in glibc 2.31+ on Linux.
2023-02-07 c-nullptr Rename this module to nullptr.
2023-01-21 getprogname The include file is changed from "getprogname.h"
to <stdlib.h>.
2023-01-15 stdalign This module is deprecated. Use alignasof instead.
2023-01-13 acl Link additionally with $(QCOPY_ACL_LIB).
qacl
copy-file
supersede
2023-01-13 qcopy-acl Link with $(QCOPY_ACL_LIB) instead of $(LIB_ACL).
2023-01-07 timer_time Link with $(TIMER_TIME_LIB) instead of
$(LIB_TIMER_TIME).
2023-01-07 setlocale-null Link with $(SETLOCALE_NULL_LIB) instead of
$(LIB_SETLOCALE_NULL).
2023-01-07 setlocale Link with $(SETLOCALE_LIB) instead of
$(LIB_SETLOCALE).
2023-01-07 select Link with $(SELECT_LIB) instead of $(LIB_SELECT).
2023-01-07 sched_yield Link with $(SCHED_YIELD_LIB) instead of
$(LIB_SCHED_YIELD).
2023-01-07 pthread_sigmask Link with $(PTHREAD_SIGMASK_LIB) instead of
$(LIB_PTHREAD_SIGMASK).
2023-01-07 posix_spawn Link with $(POSIX_SPAWN_LIB) instead of
$(LIB_POSIX_SPAWN).
2023-01-07 poll Link with $(POLL_LIB) instead of $(LIB_POLL).
2023-01-07 nanosleep Link with $(NANOSLEEP_LIB) instead of
$(LIB_NANOSLEEP).
2023-01-07 mbrtowc Link with $(MBRTOWC_LIB) instead of $(LIB_MBRTOWC).
2023-01-07 hard-locale Link with $(HARD_LOCALE_LIB) instead of
$(LIB_HARD_LOCALE).
2023-01-07 getrandom Link with $(GETRANDOM_LIB) instead of
$(LIB_GETRANDOM).
2023-01-07 getlogin Link with $(GETLOGIN_LIB) instead of
getlogin_r $(LIB_GETLOGIN).
2023-01-07 gethrxtime Link with $(GETHRXTIME_LIB) instead of
$(LIB_GETHRXTIME).
2023-01-07 fdatasync Link with $(FDATASYNC_LIB) instead of
$(LIB_FDATASYNC).
2023-01-07 euidaccess Link with $(EUIDACCESS_LIBGEN) instead of
$(LIB_EACCESS).
2023-01-07 duplocale Link with $(DUPLOCALE_LIB) instead of
$(LIB_DUPLOCALE).
2023-01-07 clock_time Link with $(CLOCK_TIME_LIB) instead of
$(LIB_CLOCK_GETTIME).
2023-01-06 file-has-acl Link with $(FILE_HAS_ACL_LIB), not $(LIB_HAS_ACL).
2022-12-25 largefile configure no longer enables year-2038 support,
unless you configure with --enable-year2038
or use the year2038 module. This temporary
hack should go away before the year 2038.
2022-12-24 stdnoreturn This module is deprecated. Use _Noreturn
or the noreturn module instead.
2022-12-21 ctime This module is deprecated. Use localtime_r
and strftime (or even sprintf) instead.
2022-11-03 dynarray These modules are renamed to glibc-internal/dynarray
scratch_buffer and glibc-internal/scratch_buffer, respectively.
They are not meant for general use.
2022-11-02 scratch_buffer The function 'gl_scratch_buffer_dupfree' is removed.
2022-09-10 stdbool This module now assumes C99 and provides C23,
instead of providing C99. For the old behavior,
use the already-deprecated stdbool-c99 module.
2022-03-09 statat This module is deprecated. Use fstatat instead.
2022-01-05 stack This module now uses idx_t instead of size_t
for indexes and counts.
2021-08-27 base32 These modules now use idx_t instead of size_t
base64 for indexes and counts.
2021-07-29 (all) Due to draft C2x, the following attributes should
now appear at the start of a function declaration:
_GL_ATTRIBUTE_DEPRECATED
_GL_ATTRIBUTE_MAYBE_UNUSED
_GL_ATTRIBUTE_NODISCARD
attribute Likewise for DEPRECATED, MAYBE_UNUSED, NODISCARD.
snippet/unused-parameter
Likewise for _GL_UNUSED_PARAMETER.
2021-07-01 largefile AC_SYS_LARGEFILE now also arranges for time_t
to be 64-bit on 32-bit GNU/Linux platforms
that support it (glibc 2.34 or later).
2021-03-21 fatal-signal The function at_fatal_signal now returns an error
indicator.
2021-03-21 diacrit This deprecated module is removed.
2021-03-07 mbrtowc For single-locale optimizations, you now need to
mbrtoc32 define GNULIB_WCHAR_SINGLE_LOCALE instead of
wcwidth GNULIB_WCHAR_SINGLE.
2021-02-28 parse-datetime The parse_datetime2 function has been moved
to the new parse-datetime2 module, so that
programs that need just parse_datetime need
not build the fancier function.
2020-12-23 execute These functions no longer execute scripts without
spawn-pipe '#!' marker through /bin/sh. To execute such a
posix_spawn script as a shell script, either add a '#!/bin/sh'
posix_spawnp marker in the first line, or specify "/bin/sh" as
the program to execute and the script as its first
argument.
2020-12-18 free This module, obsoleted in 2008, is gone.
2020-12-14 findprog-in The function 'find_in_given_path' now takes a 3rd
argument 'const char *directory'. To maintain the
previous behaviour, insert NULL as additional 3rd
argument.
2020-12-11 sh-quote The argv argument of the 'shell_quote_argv' function
is now of type 'const char * const *'. You no
longer need to cast read-only strings to 'char *'
when constructing this argument.
execute The prog_argv argument of the 'execute' function
is now of type 'const char * const *'. You no
longer need to cast read-only strings to 'char *'
when constructing this argument.
spawn-pipe The prog_argv argument of the functions
'create_pipe_out', 'create_pipe_in',
'create_pipe_bidi' is now of type
'const char * const *'. You no longer need to cast
read-only strings to 'char *' when constructing this
argument.
pipe-filter-gi The prog_argv argument of the
'pipe_filter_gi_create' function is now of type
'const char * const *'. You no longer need to cast
read-only strings to 'char *' when constructing this
argument.
pipe-filter-ii The prog_argv argument of the
'pipe_filter_ii_execute' function is now of type
'const char * const *'. You no longer need to cast
read-only strings to 'char *' when constructing this
argument.
javaexec The prog_argv argument of the 'execute_fn' function
type is now of type 'const char * const *'. Update
the signature of all your implementations of this
type.
csharpexec The prog_argv argument of the 'execute_fn' function
type is now of type 'const char * const *'. Update
the signature of all your implementations of this
type.
2020-12-02 spawn-pipe The functions 'create_pipe_out', 'create_pipe_in',
'create_pipe_bidi' now take a 4th argument
'const char *directory'. To maintain the previous
behaviour, insert NULL as additional 4th argument.
2020-12-02 execute The function 'execute' now takes a 4th argument
'const char *directory'. To maintain the previous
behaviour, insert NULL as additional 4th argument.
2020-10-16 hash This module deprecates the 'hash_delete' function
using gcc's "deprecated" attribute. Use the better-
named 'hash_remove' equivalent.
2020-08-24 diffseq If you do not define NOTE_ORDERED to true,
the NOTE_DELETE and NOTE_INSERT actions might
not be done in order, to help cut down worst-case
recursion stack space from O(N) to O(log N).
2020-08-01 libtextstyle-optional You now need to invoke
gl_LIBTEXTSTYLE_OPTIONAL explicitly, because
this macro now takes an optional
MINIMUM-VERSION argument.
2020-08-01 libtextstyle You now need to invoke gl_LIBTEXTSTYLE explicitly,
because this macro now takes an optional
MINIMUM-VERSION argument.
2020-06-27 clean-temp The functions open_temp, fopen_temp now take a
'bool delete_on_close' argument. If in doubt, pass
false.
2020-06-27 tempname The link requirements of these modules are changed
mkdtemp from empty to $(LIB_GETRANDOM).
mkstemp
mkstemps
mkostemp
mkostemps
tmpfile
stdlib-safer
tmpfile-safer
clean-temp
javacomp $(LIB_GETRANDOM) was added to the link requirements
of this module.
2020-05-27 read-file The functions provided by this module now take an
'int flags' argument to modify the file reading
behavior. The read_binary_file function has been
removed as it is no longer necessary.
2020-04-27 getdate This deprecated module is removed. Use the module
'parse-datetime' instead. Instead of
#include "getdate.h"
write
#include "parse-datetime.h"
The function get_date is renamed to parse_datetime.
2020-04-27 realloc This deprecated module is removed. Use the module
'realloc-gnu' instead.
2020-04-27 calloc This deprecated module is removed. Use the module
'calloc-gnu' instead.
2020-04-27 malloc This deprecated module is removed. Use the module
'malloc-gnu' instead.
2020-04-27 fnmatch-posix This deprecated module is removed. Use the module
'fnmatch' instead.
2020-04-27 pipe This deprecated module is removed. Use the module
'spawn-pipe' instead. Instead of
#include "pipe.h"
write
#include "spawn-pipe.h"
2020-04-27 getopt This deprecated module is removed. Please choose
among getopt-posix and getopt-gnu. getopt-gnu
provides "long options" and "options with optional
arguments", getopt-posix doesn't.
2020-04-27 rename-dest-slash This deprecated module is removed. Use the
module 'rename' instead.
2020-04-27 unictype/bidicategory-* These deprecated modules are removed. Use
the modules unictype/bidiclass-* instead.
2020-03-28 dosname On native Windows, OS/2, DOS,
IS_RELATIVE_FILE_NAME("c:") now returns false.
2020-03-28 filename The macro IS_ABSOLUTE_PATH is deprecated. Use
IS_ABSOLUTE_FILE_NAME instead.
The macro IS_PATH_WITH_DIR is deprecated. Use
IS_FILE_NAME_WITH_DIR instead.
2020-02-22 fchownat This module no longer defines the functions
'chownat' and 'lchownat'. Program that need these
functions should add the module 'chownat' to the
list of imported modules.
2020-02-22 fchmodat This module no longer defines the functions
'chmodat' and 'lchmodat'. Program that need these
functions should add the module 'chmodat' to the
list of imported modules.
2020-02-07 fchmodat When applied to non-symlinks, these now act like
lchmod chmod (the BSD behavior, which POSIX requires for
fchmodat + AT_SYMLINK_NOFOLLOW), instead of failing
(the GNU/Linux behavior through glibc 2.31).
Future versions of GNU/Linux are planned to act as
per POSIX and BSD.
2020-01-15 gc-pbkdf2-sha1 This module is deprecated. Use gc-pbkdf2 instead.
2019-12-12 dfa Its API now uses ptrdiff_t instead of size_t.
2019-12-11 dfa To call dfamust, one must now call dfaparse
without yet calling dfacomp. This fixes a bug
introduced on 2018-10-22 that broke dfamust.
2019-12-07 xstrtol This module no longer defines the function
xstrtoll 'xstrtol_fatal'. Program that need this function
xstrtoimax should add the module 'xstrtol-error' to the list
xstrtoumax of imported modules.
2019-05-90 verify verify_true (deprecated 2011-06-15) is removed.
2019-03-16 fatal-signal The function that you pass to at_fatal_signal now
|