/
ChangeLog-2007
8753 lines (6427 loc) · 309 KB
/
ChangeLog-2007
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
2007-05-31 Jim Meyering <jim@meyering.net>
* printf-parse.c, vasnprintf.c, unicodeio.c: Remove local
copies, so we now get these files from gnulib.
2007-03-20 Jim Meyering <jim@meyering.net>
Fix a typo in the handling of %x and %X.
* vasnprintf.c (VASNPRINTF): When adding 2 to buffer length,
don't double it.
2007-03-04 Jim Meyering <jim@meyering.net>
* vasnprintf.c (VASNPRINTF): Add missing semicolon.
2007-03-02 Jim Meyering <jim@meyering.net>
* vasnprintf.c (VASNPRINTF): Remove cast of alloca return value.
2007-03-01 Jim Meyering <jim@meyering.net>
Merge in changes from gnulib:
* vasnprintf.c: Add a comment explaining why coreutils has its own
version of this file.
Include <stdint.h>.
(SIZE_MAX): Remove definition (now, stdint.h covers that).
(EOVERFLOW): Remove definition (now done via the eoverflow module).
Update some #ifdef to #if.
Use HAVE_LONG_LONG_INT, not HAVE_LONG_LONG.
* printf-parse.c: Likewise.
2007-02-28 Jim Meyering <jim@meyering.net>
* tsearch.c: Remove unused file.
2007-02-23 Jim Meyering <jim@meyering.net>
* randperm.c (randperm_new): Comment: say that this function
returns a pointer to malloc'd storage.
2007-02-18 Jim Meyering <jim@meyering.net>
* xfts.c: Include <stdlib.h> rather than exit.h, now that stdlib.h
is guaranteed to provide a valid definition of EXIT_FAILURE.
2007-01-19 Jim Meyering <jim@meyering.net>
* .cvsignore, .gitignore: Add sys, as well as more
bootstrap-inserted file names.
2007-01-14 Jim Meyering <jim@meyering.net>
* fchdir-stub.c: Remove file. No longer needed.
2006-12-03 Jim Meyering <jim@meyering.net>
* Makefile.am (libcoreutils_a_SOURCES): Remove xmemcoll.c and
xmemcoll.h. Now, they're handled by the gnulib xmemcoll module.
2006-11-22 Paul Eggert <eggert@cs.ucla.edu>
* randread.c (__attribute__): Don't define if __attribute__ is
already defined. Otherwise, the code won't conform to C99, since
the macro arg is spelled differently by some include file, and the
compilation fails with pedantic GCC.
2006-11-22 Jim Meyering <jim@meyering.net>
* .cvsignore, .gitignore: Add fstat.c.
2006-11-14 Jim Meyering <jim@meyering.net>
* readlink-stub.c, lstat-stub.c: Remove now-unused files.
2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
Port sha512sum to hosts where uintmax_t is only 32 bits, e.g.,
HP/Tandom NonStop OSS circa 2005 has 32-bit uintmax_t, 64-bit intmax_t.
* u64.h: New file.
* sha512.c (SWAP, sha512_init_ctx, sha384_init_ctx, sha512_read_ctx):
(sha384_read_ctx, sha512_conclude_ctx, sha512_process_bytes):
(sha512_round_constants, F2, F1, sha512_process_block):
(S0, S1, SS0, SS1, M, R):
Rewrite to use u64.h instead of assuming uint64_t.
* sha512.h: Include u64.h rather than stdint.h.
(rol64): Remove; moved to u64.h and renamed to u64rol.
2006-10-12 Jim Meyering <jim@meyering.net>
* Makefile.am (libcoreutils_a_LIBADD): Append $(LIBOBJS),
to accommodate the latest version of gnulib-tool.
(libcoreutils_a_DEPENDENCIES): Likewise.
From Bruno Haible.
2006-10-06 Jim Meyering <jim@meyering.net>
Avoid a compiler warning: const'ify and remove a cast.
* randread.c (struct randread_source) [handler]: Make parameter "const".
[handler_arg]: Add "const" attribute.
(randread_error): Make parameter "const".
(simple_new, randread_set_handler, randread_set_handler_arg): Likewise.
(randread_new): Remove now-unnecessary cast.
* randread.h: Adjust prototypes.
2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
* .cvsignore: Add openat-proc.c.
2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
* .cvsignore: Add fchmodat.c.
2006-09-25 Jim Meyering <jim@meyering.net>
* fchmodat.c: Remove file. gnulib's copy is identical.
2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
* .cvsignore: Add fcntl.h, fcntl_.h, inttypes_.h, isapipe.c,
isapipe.h.
2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
* euidaccess-stat.c: Include <config.h> unconditionally, since
we now assume config.h exists.
* fchmodat.c: Likewise.
* fd-reopen.c: Likewise.
* fdopendir-glibc.c: Likewise.
* memxfrm.c: Likewise.
* printf-parse.c: Likewise.
* rand-isaac.c: Likewise.
* randint.c: Likewise.
* randperm.c: Likewise.
* randread.c: Likewise.
* root-dev-ino.c: Likewise.
* sha256.c: Likewise.
* sha512.c: Likewise.
* stdopen.c: Likewise.
* strintcmp.c: Likewise.
* strnumcmp.c: Likewise.
* t-chdir-long: Likewise.
* tsearch.c: Likewise.
* unicodeio.c: Likewise.
* vasnprintf.c: Likewise.
* xfts.c: Likewise.
* xmemxfrm.c: Likewise.
* .cvsignore: Add configmake.h, stamp-h1.
2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
* .cvsignore: Add config.h, config.hin.
* Makefile.am (AM_CPPFLAGS): Remove; we no longer need '-I..'.
2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
* .cvsignore: Add Makefile.in, getdate.tab.h.
Remove stat.c, sysexit.h.
2006-08-22 Jim Meyering <jim@meyering.net>
* .cvsignore: Add files that are now generated by ../bootstrap.
2006-08-21 Eric Blake <ebb9@byu.net>
* Makefile.am (LDADD): Restore this line; it is still needed for
t-fpending on platforms without __fpending.
2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
(libcoreutils_a_LIBADD, lib_OBJECTS, BUILT_SOURCES, CLEANFILES):
(MAINTAINERCLEANFILES, MOSTLYCLEANDIRS, MOSTLYCLEANFILES):
(SUFFIXES, EXTRA_DIST, all-local, charset_alias, charset_tmp):
(install-exec-local, uninstall-local, charset.alias, .sin.sed):
(stdbool.h, stdint.h, fnmatch.h, arpa/inet.h, netinet/in.h):
(sys/socket.h, getopt.h): Remove.
* Makefile.in, README, __fpending.c, __fpending.h, acl.c, acl.h:
* alloca.c, alloca_.h, allocsa.c, allocsa.h, argmatch.c, argmatch.h:
* asnprintf.c, asprintf.c, at-func.c, atexit.c, backupfile.c:
* backupfile.h, base64.c, base64.h, basename.c, bcopy.c, c-strtod.c:
* c-strtod.h, c-strtold.c, calloc.c, canon-host.c, canon-host.h:
* canonicalize.c, canonicalize.h, chdir-long.c, chdir-long.h:
* chdir-safer.c, chdir-safer.h, chown.c, cloexec.c, cloexec.h:
* close-stream.c, close-stream.h, closeout.c, closeout.h:
* config.charset, creat-safer.c, cycle-check.c, cycle-check.h:
* dev-ino.h, diacrit.c, diacrit.h, dirchownmod.c, dirchownmod.h:
* dirfd.c, dirfd.h, dirname.c, dirname.h, dup-safer.c, dup2.c:
* error.c, error.h, euidaccess.c, euidaccess.h, exclude.c:
* exclude.h, exit.h, exitfail.c, exitfail.h, fchown-stub.c:
* fcntl--.h, fcntl-safer.h, fd-safer.c, file-type.c, file-type.h:
* fileblocks.c, filemode.c, filemode.h, filenamecat.c:
* filenamecat.h, fnmatch.c, fnmatch_.h, fnmatch_loop.c:
* fopen-safer.c, fprintftime.c, fprintftime.h, free.c, fsusage.c:
* fsusage.h, ftruncate.c, fts-cycle.c, fts.c, fts_.h, full-read.c:
* full-read.h, full-write.c, full-write.h, gai_strerror.c:
* getaddrinfo.c, getaddrinfo.h, getcwd.c, getcwd.h, getdate.h:
* getdate.y, getdelim.c, getdelim.h, getgroups.c, gethostname.c:
* gethrxtime.c, gethrxtime.h, getline.c, getline.h, getloadavg.c:
* getndelim2.c, getndelim2.h, getopt.c, getopt1.c, getopt_.h:
* getopt_int.h, getpagesize.h, getpass.c, getpass.h, gettext.h:
* gettime.c, gettimeofday.c, getugroups.c, getusershell.c:
* group-member.c, group-member.h, hard-locale.c, hard-locale.h:
* hash-pjw.c, hash-pjw.h, hash.c, hash.h, human.c, human.h:
* idcache.c, imaxtostr.c, inet_ntop.c, inet_ntop.h, intprops.h:
* inttostr.c, inttostr.h, lchmod.h, lchown.c, lchown.h:
* linebuffer.c, linebuffer.h, localcharset.c, localcharset.h:
* long-options.c, long-options.h, lstat.c, lstat.h, malloc.c:
* mbchar.c, mbchar.h, mbswidth.c, mbswidth.h, mbuiter.h, md5.c:
* md5.h, memcasecmp.c, memcasecmp.h, memchr.c, memcmp.c, memcoll.c:
* memcoll.h, memcpy.c, memmove.c, mempcpy.c, mempcpy.h, memrchr.c:
* memrchr.h, memset.c, mkancesdirs.c, mkancesdirs.h, mkdir-p.c:
* mkdir-p.h, mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c:
* mktime.c, modechange.c, modechange.h, mountlist.c, mountlist.h:
* nanosleep.c, obstack.c, obstack.h, offtostr.c, open-safer.c:
* openat-die.c, openat-priv.h, openat.c, openat.h, pathmax.h:
* physmem.c, physmem.h, pipe-safer.c, posixtm.c, posixtm.h:
* posixver.c, posixver.h, printf-args.c, printf-args.h:
* printf-parse.h, putenv.c, quote.c, quote.h, quotearg.c:
* quotearg.h, raise.c, readlink.c, readtokens.c, readtokens.h:
* readtokens0.c, readtokens0.h, readutmp.c, readutmp.h, realloc.c:
* ref-add.sin, ref-del.sin, regcomp.c, regex.c, regex.h:
* regex_internal.c, regex_internal.h, regexec.c, rename.c, rmdir.c:
* rpmatch.c, safe-read.c, safe-read.h, safe-write.c, safe-write.h:
* same-inode.h, same.c, same.h, save-cwd.c, save-cwd.h, savedir.c:
* savedir.h, setenv.c, setenv.h, settime.c, sha1.c, sha1.h:
* sig2str.c, sig2str.h, snprintf.c, snprintf.h, socket_.h:
* stat-macros.h, stat-time.h, stdbool_.h, stdint_.h, stdio--.h:
* stdio-safer.h, stdlib--.h, stdlib-safer.h, stpcpy.c, strcase.h:
* strcasecmp.c, strcspn.c, strdup.c, strdup.h, strftime.c:
* strftime.h, stripslash.c, strncasecmp.c, strndup.c, strndup.h:
* strnlen.c, strnlen.h, strnlen1.c, strnlen1.h, strpbrk.c, strstr.c:
* strstr.h, strtod.c, strtoimax.c, strtol.c, strtoll.c, strtoul.c:
* strtoull.c, strtoumax.c, strverscmp.c, strverscmp.h, tempname.c:
* time_r.c, time_r.h, timespec.h, umaxtostr.c, unicodeio.h:
* unistd--.h, unistd-safer.h, unlinkdir.c, unlinkdir.h:
* unlocked-io.h, unsetenv.c, userspec.c, userspec.h, utime.c:
* utimecmp.c, utimecmp.h, utimens.c, utimens.h, vasnprintf.h:
* vasprintf.c, vasprintf.h, verify.h, version-etc-fsf.c:
* version-etc.c, version-etc.h, wcwidth.h, xalloc-die.c, xalloc.h:
* xgetcwd.c, xgetcwd.h, xgethostname.c, xgethostname.h, xmalloc.c:
* xmemcoll.c, xmemcoll.h, xnanosleep.c, xnanosleep.h, xreadlink.c:
* xreadlink.h, xstrndup.c, xstrndup.h, xstrtod.c, xstrtod.h:
* xstrtoimax.c, xstrtol.c, xstrtol.h, xstrtold.c, xstrtoul.c:
* xstrtoumax.c, xtime.h, yesno.c, yesno.h:
Remove from CVS, since ../bootstrap generates them automatically.
2006-08-18 Bruno Haible <bruno@clisp.org>
* mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
(ME_DUMMY): Treat "kernfs" as a dummy.
(read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
* ChangeLog: Add copyright notice.
* .gdb-history: Likewise.
* TODO: Likewise.
* __fpending.h: Likewise.
* fdopendir-glibc.c: Likewise.
* fprintftime.h: Likewise.
* root-dev-ino.h: Likewise.
* search_.h: Likewise.
* t-chdir-long: Likewise.
* t-fpending.c: Likewise.
* savedir.c: Use (C) in copyright notice.
* savedir.h: Likewise.
2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
* memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
Problem and fix reported by Pádraig Brady in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
2006-08-16 Jim Meyering <jim@meyering.net>
* fts.c (fts_children): Remove obsolete "// FIXME ..." comment.
Reported by Bruno Haible.
2006-08-15 Jim Meyering <jim@meyering.net>
* at-func.c: New file, with the logic of all emulated at-functions.
* openat-priv.h: Include <errno.h> and define ENOSYS,
in support of the EXPECTED_ERRNO macro.
* openat.c (fstatat, unlinkat, fchownat): Remove function definitions.
Instead, define the appropriate symbols and include "at-func.c".
* mkdirat.c (mkdirat): Likewise.
* fchmodat.c (fchmodat): Likewise.
(ENOSYS): Remove definition.
* openat.c: Don't include <errno.h>, now that "openat-priv.h" does it.
Don't include "unistd--.h" -- it wasn't ever used.
2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
* memcoll.c (memcoll): Optimize for the common case where the
arguments are bytewise equal.
2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
* pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
* regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
in wchar_t. Problem reported by Eric Blake.
* snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
LEN is smaller than SIZE. Suggested by Bruno Haible.
Also, help the compiler to keep LEN in a register.
2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
Import the following changes from libc:
2006-06-02 Jakub Jelinek <jakub@redhat.com>
* posix/regex_internal.c (re_string_skip_chars): If no character has
been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
to the byte which couldn't be converted.
(re_string_reconstruct): Don't clear valid_raw_len before calling
re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
tip_context using re_string_context_at.
2006-05-02 Ulrich Drepper <drepper@redhat.com>
* posix/regex.h: g++ still cannot handled [restrict].
2006-04-21 Ulrich Drepper <drepper@redhat.com>
* posix/regex.h: Remove special handling for VMS.
Accommodate new getaddrinfo implementation in gnulib.
* inet_ntop.c, inet_ntop.h, snprintf.c, snprintf.h, socket_.h:
New files, from gnulib.
* .cppi-disable: Add snprintf.h, socket_.h.
* Makefile.am (libcoreutils_a_SOURCES): Add inet_ntop.h, snprintf.h.
(MOSTLYCLEANDIRS): New macro.
(BUILT_SOURCES): Add $(ARPA_INET_H), $(SYS_SOCKET_H), $(NETINET_IN_H).
(arpa/inet.h, netinet/in.h, sys/socket.h): New rules.
(MOSTLYCLEANFILES): Add arpa/inet.h, arpa/inet.h-t, netinet/in.h,
netinet/in.h-t, sys/socket.h, sys/socket.h-t.
(EXTRA_DIST): Add socket_.h.
2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
* allocsa.h, config.charset, error.c, error.h, exitfail.c, full-write.c:
* getaddrinfo.c, getaddrinfo.h, gettext.h, localcharset.c, mbchar.h:
* mbswidth.c, mkstemp-safer.c, pipe-safer.c, printf-args.c, quote.c:
* readlink.c, regex_internal.h, setenv.c, stdint_.h, stdio--.h:
* stdio-safer.h, stpcpy.c, strcspn.c, strtoimax.c, vasnprintf.h:
* version-etc.c, wcwidth.h:
Update from gnulib.
2006-08-09 Jim Meyering <jim@meyering.net>
* rand-isaac.c: Include <config.h>.
2006-08-08 Paul Eggert <eggert@cs.ucla.edu>
* Makefile.am (libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.
* memxfrm.c, memxfrm.h, randint.c, randint.h, randperm.c, randperm.h:
* randread.c, randread.h, xmemxfrm.c, xmemxfrm.h: New files.
* rand-isaac.h: New file.
* rand-isaac.c: New file, mostly taken from ../src/rand-isaac.c.
2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
* modechange.c (mode_compile): Numeric modes now affect setuid and
setgid on directories only if they set these bits.
* modechange.h: Remove obsolete comment about masks.
2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
* close-stream.c, close-stream.h: New files.
* closeout.c (close_stdout): Use new function close_stream.
2006-07-19 Mike Frysinger <vapier@gentoo.org>
* mountlist.c [ME_REMOTE]: Filter out cifs.
Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
2006-07-20 Jim Meyering <jim@meyering.net>
* mountlist.c (ME_REMOTE): Compare strchr's result to NULL, not 0,
for better readability.
2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
* dirchownmod.c, dirchownmod.h, mkancesdirs.c, mkancesdirs.h:
New files.
* mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
(make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
callers changed. Revamp internals significantly, by not
attempting to create directories that are temporarily more
permissive than the final results. Do not attempt to use
save_cwd/restore_cwd; it isn't worth it for mkdir and install.
This removes some race conditions, fixes some bugs, and simplifies
things. Use new dirchownmod function to do owner and mode changes.
* mkdir-p.h: Likewise.
* modechange.c (octal_to_mode): New function.
(struct mode_change): New member mentioned.
(make_node_op_equals): New arg mentioned. All callers changed.
(mode_compile): Keep track of which mode bits the user has explicitly
mentioned.
(mode_adjust): New arg DIR, so that we implement the X op correctly.
New arg PMODE_BITS, to keep track of which mode bits the user
mentioned; it treats S_ISUID and S_ISGID speciall.
All callers changed.
* modechange.h: Likewise.
2006-07-16 Jim Meyering <jim@meyering.net>
* userspec.c (parse_with_separator): Say "invalid spec" rather than
the sometimes erroneous "cannot get the login group of a numeric UID"
for a spec like "not-a-username:" or "1:". Reported by
suckfish@ihug.co.nz in https://bugzilla.redhat.com/bugzilla/199027.
2006-07-10 Derek R. Price <derek@ximbiot.com>
* backupfile.c, dirfd.h, fts.c, getcwd.c:
Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
macros into the GNU _D_EXACT_NAMLEN.
* savedir.c: Likewise.
(savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
* Makefile.am (stdint.h): FULL_PATH_STDINT_H -> ABSOLUTE_STDINT_H,
to accommodate update from gnulib.
Update from gnulib, as follows:
2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
* getaddrinfo.c: Changes to compile under MSVC6: changed
'#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
brackets. Other minor changes to suppress some compiler
warnings.
2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
* getloadavg.c: Use __VMS, not VMS.
* getopt.c: Likewise.
* getpagesize.h: Likewise.
2006-07-06 Derek R. Price <derek@ximbiot.com>
and Paul Eggert <eggert@cs.ucla.edu>
* backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
Don't worry about this obsolete case any more.
(HAVE_DIR): Remove. All uses removed; we now assume you can read
directories.
* dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
worry about this obsolete case any more.
* fts.c: Likewise.
* getcwd.c: Likewise.
* savedir.c: Likewise.
2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
* fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
(isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
(ISGRAPH): Remove. All uses changed to isgraph.
(FOLD) [!defined _LIBC]: Remove special case.
* getdate.y (lookup_word): Remove no-longer-needed call to islower.
* regext_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
HAVE_ISBLANK.
* strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special case.
2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* strtod.c (strtod): cast the argument of tolower to unsigned char.
2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
* memcasecmp.c: Include <limits.h>.
(memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
* strtod.c (strtod): Don't assume isspace works on negative chars.
Don't assume isdigit succeeds only on '0' through '9'.
2006-07-05 Derek R. Price <derek@ximbiot.com>
* exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
All uses of is_space replaced by isspace.
* exit.h: Don't talk about STDC_HEADERS.
* fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
(ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
(ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
replaced by isprint etc.
* getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
* getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
* memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
* strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
* strtol.c (IN_CTYPE_DOMAIN): Likewise.
* xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
2006-07-05 Eric Blake <ebb9@byu.net>
* getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
missing from netdb.h.
* getaddrinfo.c (includes): Include inet_ntop and snprintf.
2006-06-27 Bruno Haible <bruno@clisp.org>
Assume ANSI C header files and <ctype.h> functions.
* mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
(mbsnwidth): Use isprint, iscntrl instead.
2006-07-08 Jim Meyering <jim@meyering.net>
* getndelim2.h (getndelim2): Remove doubled "after" in comment.
2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
* Makefile.am (libcoreutils_a_SOURCES): Add setenv.h, wcwidth.h,
to accommodate sync from gnulib.
Sync from gnulib.
2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
* getaddrinfo.c: fixed typo
2006-06-28 Bruno Haible <bruno@clisp.org>
* getaddrinfo.h: Fix POSIX URL.
* getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of _WIN32.
(use_win32_p): Make static.
(getaddrinfo): Reject service name if it is empty or does not consist
solely of decimal digits, or if its value is > 65535.
(getnameinfo): Remove useless casts.
2006-06-28 Eric Blake <ebb9@byu.net>
* mbchar.h (wcwidth): Include wcwidth.h.
* mbswidth.c (wcwidth): Move from here...
* wcwidth.h: ...to this new file.
2006-06-28 Simon Josefsson <jas@extundo.com>
* getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
functions there. It will succeed on Windows XP, but on Windows
2000 and (presumably) earlier, it will fail, and use the internal
re-implementation.
(use_win32_p): New function.
(getaddrinfo): Use strtoul on servname, to support numeric ports.
Support AI_NUMERICSERV to disable getservbyname.
(getnameinfo): New function, only supports
NI_NUMERICHOST|NI_NUMERICSERV for now.
* getaddrinfo.h: Test and check for AI_* flags separately, MinGW
only have some of them. Add AI_NUMERICSERV. Add prototype for
getnameinfo.
2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
* base64.c (B64): Use _ as the formal parameter, not x, to avoid
bug in IBM C V6 for AIX. Problem reported by Larry Jones in
<http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
2006-06-21 Simon Josefsson <jas@extundo.com>
* getaddrinfo.c (getaddrinfo): Set ai_family in the return
variable.
2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
* alloca_.h (alloca) [defined alloca]: Don't define or declare.
2006-06-16 Eric Blake <ebb9@byu.net>
* unsetenv.c [!defined errno]: Assume errno.h declares errno.
* unicodeio.c [!defined errno]: Likewise.
* strtol.c [!defined errno]: Likewise.
* strtod.c [!defined errno]: Likewise.
2006-05-26 Martin Lambers <marlam@marlam.de>
* getpass.c: Updates the test for the native W32 API, and adds
missing includes, thus fixing compilation warnings.
2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
* exclude.c (exclude_fnmatch): New function.
(excluded_file_name): Call exclude_fnmatch.
* exclude.h (excluded_file_name): New prototype
2006-05-19 Jim Meyering <jim@meyering.net>
* getugroups.c: Correct an outdated comment. From Bruno Haible.
2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
* sha1.c (rol): Cast right-shift arg to uint32_t to prevent
unwanted sign propagation, e.g., on hosts with 64-bit int.
There still are some problems with reeelly weird theoretical hosts
(e.g., 33-bit int) but it's not worth worrying about now.
(K1, K2, K3, K4): Remove unnecessary L suffix.
2006-03-24 Simon Josefsson <jas@extundo.com>
* base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
including some doc fixes.
(base64_encode_alloc): Fix +1 bug on allocation failures.
2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* base64.c (base64_encode): Do not read past end of array with
unsanitized input on systems with CHAR_BIT > 8.
2006-03-24 Eric Blake <ebb9@byu.net>
* time_r.c (copy_string_result): Remove, as it is no longer used.
2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
* stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
reported by Mark D. Baushke, one in
<http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
2006-07-03 Jim Meyering <jim@meyering.net>
* cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
macro is used before the first cycle_check call.
2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
* stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
both are 64 bits, since this seems to be the tradition, and this
prevents gcc -Wformat from warning about usages with PRIuMAX. If
we ever run into a host that prefers long long to long in this
case, we'll need another configure-time test. Problem reported by
Jim Meyering.
2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
* Makefile.am (stdint.h): Sync from gnulib.
* stdint_.h: Sync from gnulib.
2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
* xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
both double and long double versions.
(XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
* xstrtold.c: New file.
* xstrtod.h (xstrtold): New decl.
2006-06-29 Derek R. Price <derek@ximbiot.com>
* strftime.c: Assume strftime exists.
2006-06-28 Derek R. Price <derek@ximbiot.com>
* savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
Autoconf 2.60 says this stuff was obsolete.
2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
* openat.c (openat): Use ?:, not if, to work around GCC bug 4210
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
Problem reported by Denis Excoffier in
<http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
2006-06-19 Jim Meyering <jim@meyering.net>
Apply this change from gnulib:
2006-06-16 Eric Blake <ebb9@byu.net>
* unsetenv.c [!defined errno]: Assume errno.h declares errno.
2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
* getdate.y (__attribute__): Don't define if already defined.
Problem reported by Larry Jones.
* utimens.c (__attribute__): Likewise.
2006-06-10 Jim Meyering <jim@meyering.net>
Apply this change from gnulib:
2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Bruno Haible <bruno@clisp.org>
* strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
* regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
reported by Andreas Schwab.
2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
* tempname.c (small_open, large_open): New macros.
(__open, __open64) [!_LIBC]: Remove.
(__gen_tempname): Use small_open and large_open instead of __open
and __open64. This fixes a portability bug on HP-UX 11.11i
reported by Simon Wing-Tang in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
2006-05-23 Paul Eggert <eggert@cs.ucla.edu>
* filemode.c: Don't include <string.h>; this include was
inadvertently put into the previous patch. Problem noted
by Jim Meyering.
2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
* filemode.c (setst): Remove.
(strmode): Rewrite to avoid setst. This makes the code shorter,
(arguably) clearer, and the generated code is a bit smaller on my
Debian GNU/Linux stable x86 host.
Import from gnulib.
* verify.h: Document the internals better. Most of this change
was written by Bruno Haible.
2006-05-21 Jim Meyering <jim@meyering.net>
* fts.c (fts_open): Fail with EINVAL if a caller violates this rule:
Either FTS_LOGICAL or FTS_PHYSICAL must be provided to the
fts_open() function.
2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
* nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
Use the usual Autoconf way to include <time.h> and/or sys/time.h.
(my_usleep): Don't mishandle maximum value.
2006-05-15 Jim Meyering <jim@meyering.net>
Avoid the expense of an fstat, when possible.
* fts.c (O_NOFOLLOW, STREQ): Define.
(diropen_fd): Remove function. Merge it into sole caller...
(diropen): ...here. Use O_NOFOLLOW when appropriate.
(fts_safe_changedir): Call fstat for dev/inode check, only if the
previous open/openat call may have opened the wrong directory.
2006-05-13 Jim Meyering <jim@meyering.net>
* xfts.c (xfts_open): Always use FTS_CWDFD.
Restore the parts of fts that were removed on 2006-01-17, so that
it's easier for legacy applications designed for the version
of fts in glibc or BSD to convert to this more robust version.
Add a new mode, FTS_CWDFD, by which to enable the improved
(openat- based -- aka no-chdir) semantics.
* fts_.h (FTS_CWDFD): Define. Callers must use this fts_open
option to enable the more robust behavior.
(FTS_OPTIONMASK): Widen accordingly.
* fts.c: Restore removed code, reverting the default behavior.
2006-05-11 Jim Meyering <jim@meyering.net>
* sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From James Lemley.
2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
* getdate.y (get_date): When adding relative date, start with the
initial time, not with the result of the first mktime call.
2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
* filemode.c: Include "filemode.h" first, to test the interface.
Assume that filemode.h includes sys/types.h and sys/stat.h.
(HAVE_ST_DM_MODE): New macro, moved here from ls.c.
(ftypelet): Reorder to put common cases first, for efficiency.
Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
to do 'M'.
(strmode): Renamed from mode_string, and now stores 12 bytes instead
of 10, for compatibility with FreeBSD. All callers changed.
(filemodestring): Now stores 12 bytes instead of 10, and sets file types
that can't be deduced solely from st_mode. First arg is now a const
pointer.
* filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
(strmode): Renamed from mode_string.
(filemodestring): New decl.
* stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
(S_ISDOOR): Don't bother with S_IFDOOR, since that code is never needed.
(S_ISPORT, S_ISWHT): New macros, if not already defined.
* openat.h (openat_needs_fchdir) [ ! defined __OPENAT_PREFIX]:
Turn this into a macro that always returns false.
2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
* utimens.c (futimens): glibc futimesat messes up if /proc
isn't mounted. Problem reported by Kir Kolyshkin.
2006-04-14 Jim Meyering <jim@meyering.net>
Remove unreachable code and plug leaks in code that handles degenerate
input and some failure cases.
* fts.c (fts_build): #if-0-out a block of unused code. Patch from glibc.
(fts_build): Remove just-#if-0'd code and the code that
declares and sets cderrno.
(fts_build): Free `head' before returning NULL, in two places,
to avoid leaks. Patch from glibc.
(fts_open): Don't allocate parent if *argv==NULL. Patch from glibc.
2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
* regcomp.c (init_dfa): Don't use wchar_t or wctype_t if RE_ENABLE_I18N
is not defined. Problem reported by Mark D. Baushke via Derek R. Price.
* regex.h (RE_DUP_MAX): Update comment to match current implementation.
2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
* fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
fsusage.h now does that. Include fsusage.h first, to test interface.
Prefer statvfs if it works, since it's blessed by POSIX. Attempt
at most one method (the old code could have generated decls that
didn't conform to C89, not that this was ever exercised).
* fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
Merge regex changes from libc, removing some of our
POSIX-conformance changes that were rejected and redoing them in a
less-intrusive way.
* regcomp.c (re_compile_internal, init_dfa):
Length arg is now size_t, not Idx. All uses changed.
(peek_token): Forward decl now says internal_function.
(__re_error_msgid, __re_error_msgid_idx):
Now static rather than extern with attribute_hidden.
(re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
For some reason libc prefers K&R style defns for external functions.
(regerror) [!defined _LIBC]: Likewise.
(re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
(seek_collating_symbol_entry, lookup_collation_sequence_value):
(build_range_exp, build_collating_symbol):
Use K&R-style defn.
(re_compile_fastmap): Use '\0' to memset, not 0.
(utf8_sb_map): Make the calculations more obvious.
(init_dfa, parse_bracket_exp, build_charclass_op):
Call calloc and cast result, as glibc does.
(init_word_char, fetch_token, peek_token, peek_token_bracket):
(build_range_exp, build_collating_symbol):
Now internal functions.
* regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
* regex.h (__USE_GNU_REGEX): New macro. Don't depend on
_REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
Don't depend on VMS; depend on __VMS instead, for POSIX
namespace cleanness.
(regoff_t): Define to ssize_t, not long int.
Remove the REG_ macros named below. Instead, make the old names
(e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
__USE_GNU_REGEX.
(REG_BACKSLASH_ESCAPE_IN_LISTS):
(REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
(REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
(REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
(REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
(REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
(REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
(REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
(REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
(REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
(REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
(REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
(REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
(REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
(REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
(REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
(REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
(REG_NREGS):
Remove. All uses replaced by the old RE_* names.
(RE_BACKSLASH_ESCAPE_IN_LISTS):
(RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
(RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
(RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
(RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
(RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
(RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
(RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
(RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
(RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
(RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
Don't bother having these macros be independent of each others'
values, since they no longer exist in the POSIX name space.
Rename the following member names back to their old names,
unless !__USE_GNU_REGEX. All uses changed back.
(buffer): Renamed from re_buffer.
(allocated): Renamed from re_allocated.
(used): Renamed from re_used.
(syntax): Renamed from re_syntax.
(fastmap): Renamed from re_fastmap.
(translate): Renamed from re_translate.
(can_be_null): Renamed from re_can_be_null.
(regs_allocated): Renamed from re_regs_allocated.
(fastmap_accurate): Renamed from re_fastmap_accurate.
(no_sub): Renamed from re_no_sub.
(not_bol): Renamed from re_not_bol.
(not_eol): Renamed from re_not_eol.
(newline_anchor): Renamed from re_newline_anchor.
(num_regs): Renamed from rm_num_regs.
(start): Renamed from rm_start.
(end): Renamed from rm_end.
(free_state): Move up a bit.
* regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
#define to be empty.
(ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
when that is what is intended.
(SBC_MAX): Define to UCHAR_MAX + 1, not 256.
(__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
(MAX): New macro.
(re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
All uses changed back to re_malloc, etc. It's now the caller's
responsibility to check for overflow; all callers changed.
(re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
(re_x2nrealloc): Remove.
(free_state): Remove decl.
* regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
(re_set_registers, re_exec):
Use K&R-style defn.
2006-01-31 Roland McGrath <roland@redhat.com>
* regcomp.c (calc_eclosure_iter): Remove dead variables.
Reported by Mike Frysinger <vapier@gentoo.org>.
2006-01-15 Andreas Jaeger <aj@suse.de>
[BZ #1950]
* regex_internal.c (re_string_reconstruct): Adjust for
build_wcs_upper_buffer change.
(build_wcs_upper_buffer): Change return type.
2005-12-10 Ulrich Drepper <drepper@redhat.com>
* regex_internal.h: Include <stdint.h> if available.
2005-12-06 Paolo Bonzini <bonzini@gnu.org>
* regex_internal.h (SIZE_MAX): Provide a default definition.
2005-10-14 Ulrich Drepper <drepper@redhat.com>
* regcomp.c: Adjust for changed secondary hash function.
2005-09-30 Ulrich Drepper <drepper@redhat.com>
* regex.h: Pretty printing.
Clean up namespace a bit.
2005-09-30 Jakub Jelinek <jakub@redhat.com>
* regexec.c (update_cur_sifted_state, check_arrival,
check_arrival_add_next_nodes): Avoid using uninitialized variable.
2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
Ulrich Drepper <drepper@redhat.com>
[BZ #1302]
* regex_internal.h (bitset_t): Renamed from bitset. All uses changed.
(bitset_word_t): Renamed from bitset_word. All uses changed.
2005-09-22 Ulrich Drepper <drepper@redhat.com>
[BZ #281]
* regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
* regcomp.c: Remove unnecessary uses of
unsigned RE_TRANSLATE_TYPE.
* regex_internal.h: Likewise.
* regex_internal.c: Likewise.
* regexec.c: Likewise.
Based on a patch by Stepan Kasal <kasal@ucw.cz>.
2005-09-07 Ulrich Drepper <drepper@redhat.com>
* regexec.c (find_recover_state): Remove unnecessary
initialization.
(transit_state_bkref): Make DFA a const pointer.
(get_subexp): Likewise.
(check_arrival): Likewise.
(update_cur_sifted_state): Likewise.
(re_search_internal): Likewise.
(prune_impossible_nodes): Likewise.
(acquire_init_state_context): Likewise.
(proceed_next_node): Likewise.
(set_regs): Likewise.
(free_fail_stack_return): Likewise.