1
2019-03-17 Arnold D. Robbins <arnold@skeeve.com>
3
* readdir.c: Change to use stat when dir info is 'u'. Bump version.
4
* readdir_test.c: Ditto.
5
* readdir.3am: Document same.
7
2019-02-15 Arnold D. Robbins <arnold@skeeve.com>
9
* inplace.c (do_inplace_end): Fix error message to use inplace::end.
10
Thanks to Jean-Philippe Guerard
11
<jean-philippe.guerard@xn--tigreray-i1a.org> for the report.
13
2018-12-18 Arnold D. Robbins <arnold@skeeve.com>
15
* Makefile.am (distclean-local): Remove .deps directory.
17
2018-09-16 Arnold D. Robbins <arnold@skeeve.com>
19
* Makefile.in, aclocal.m4, configure: Regenerated, using
22
2018-04-08 Arnold D. Robbins <arnold@skeeve.com>
24
* .gitignore: Ignore libtool itself.
26
2018-03-13 Arnold D. Robbins <arnold@skeeve.com>
28
* filefuncs.3am, filefuncs.c, fnmatch.3am, fnmatch.c,
29
fork.3am, fork.c, inplace.3am, inplace.c, intdiv.c,
30
ordchr.3am, ordchr.c, readdir.3am, readdir.c, readdir_test.c,
31
readfile.3am, readfile.c, revoutput.3am, revoutput.c,
32
revtwoway.3am, revtwoway.c, rwarray.3am, rwarray.c,
33
rwarray0.c, testext.c, time.3am, time.c: Update copyright year.
35
2018-03-07 gettextize <bug-gnu-gettext@gnu.org>
37
* Makefile.am (SUBDIRS): Add po.
38
* configure.ac (AC_CONFIG_FILES): Add po/Makefile.in.
41
2018-02-25 Arnold D. Robbins <arnold@skeeve.com>
43
* 4.2.1: Release tar ball made.
45
2018-02-23 Arnold D. Robbins <arnold@skeeve.com>
47
* configure.ac: Restore checking for PPC Macintosh before
48
checking for MPFR. See README_d/README.macosx for info.
50
2018-02-21 Arnold D. Robbins <arnold@skeeve.com>
52
* configure.ac: Remove checking for PPC Macintosh before
53
checking for MPFR. Installing a newer compiler on that
54
system allows things to work.
56
2018-02-17 Michal Jaegermann <michal.jnn@gmail.com>.
58
* filefuncs.3am, filefuncs.c, fnmatch.3am, revoutput.3am,
59
revtwoway.3am: Spelling and typo fixes.
61
2018-02-14 Arnold D. Robbins <arnold@skeeve.com>
63
* configure.ac: Add stuff for finding gettext. Helps in
64
finding MPFR on some systems.
66
2018-02-11 Andrew J. Schorr <aschorr@telemetry-investments.com>
68
* intdiv.c (do_intdiv): Print a warning about loss of precision if
69
MPFR arguments are received when not compiled with MPFR support.
71
2018-02-11 Arnold D. Robbins <arnold@skeeve.com>
73
* filefuncs.3am: Fix some typos.
75
2018-02-08 Andrew J. Schorr <aschorr@telemetry-investments.com>
77
* configure.ac (pkgextensiondir): This must be set to
78
'${libdir}/gawk'${EXTENSIONDIR} to match gawk's value.
79
The previous value of '${pkglibdir}'${EXTENSIONDIR} was incorrect,
80
because it was putting the extensions in the gawk-extensions
81
libdir subdirectory, instead of the gawk subdirectory.
83
2018-02-02 Arnold D. Robbins <arnold@skeeve.com>
85
* filefuncs.3am, fnmatch.3am, fork.3am, inplace.3am,
86
ordchr.3am, readdir.3am, readfile.3am, revoutput.3am,
87
revtwoway.3am, rwarray.3am, time.3am: Add vim modeline at the
88
bottom to set the file type for syntax coloring.
90
2018-02-02 Arnold D. Robbins <arnold@skeeve.com>
92
* filefuncs.c (FTS_SKIP): New constant.
93
(process): Additional arg skipset. When true (based on if
94
FTS_SKIP was passed) and at level 0, use fts_set to set
95
FTS_SKIP on the directory.
97
2018-01-11 Arnold D. Robbins <arnold@skeeve.com>
99
* compile, config.guess, config.rpath, config.sub,
100
depcomp: Updated from GNULIB.
102
2018-01-11 Arnold D. Robbins <arnold@skeeve.com>
104
* filefuncs.c, fnmatch.c, fork.c, inplace.c, intdiv.c, ordchr.c,
105
readdir.c, readdir_test.c, readfile.c, revoutput.c, revtwoway.c,
106
rwarray.c, rwarray0.c, testext.c, time.c: Remove incorrect '*'
107
on declarations of ext_id in sample extension code. Thanks to
108
Panos Papadopoulos <panos1962@gmail.com> for the report.
110
2017-12-29 Arnold D. Robbins <arnold@skeeve.com>
112
* configure.ac (fmod): Put AC_SEARCH_LIBS before the call
113
to AC_CHECK_FUNCS and put fmod back into that list. Finally
114
causes config.h to have the correct check for HAVE_FMOD.
115
Thanks again to Michal Jaegermann <michal.jnn@gmail.com>.
117
2017-12-28 Arnold D. Robbins <arnold@skeeve.com>
119
More configuration fixes, mainly for Fedora. Thanks to
120
Michal Jaegermann <michal.jnn@gmail.com> for the reports
123
* configure.ac (AC_HEADER_MAJOR): Comment out, no longer works.
124
(sys/sysmacros.h, sys/mkdev.h): Check for header existence.
125
(fmod): Check with AC_SEARCH_LIBs instead of AC_CHECK_FUNCS.
126
* filefuncs.c: Rework header inclusion checks and order so
127
that we get the `major' macro without warnings on Fedora.
130
2017-12-26 Arnold D. Robbins <arnold@skeeve.com>
132
* gawkfts.c (fts_safe_changedir): Add check for path not null
133
before trying to open it. Thanks to Michal Jaegermann
134
<michal.jnn@gmail.com> for the report.
136
2017-12-24 Michal Jaegermann <michal.jnn@gmail.com>
138
* intdiv.c: Fix compilation for MPFR 2.4.1.
140
2017-12-20 Arnold D. Robbins <arnold@skeeve.com>
142
* configure.ac: Add support for the --enable-versioned-dir option
143
in the main configure program.
145
2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
147
* configure.ac: Add --disable-mpfr to be in sync with main
148
configure.ac and revise checking for MPFR appropriately.
149
* ext_custom.h: Use bug reporting address instead of my
150
personal address for reports of changes to this file.
152
2017-10-28 Arnold D. Robbins <arnold@skeeve.com>
154
* rwarray.c (do_writea): Fix description in comment.
155
(write_array): Free the flattened array if writing an element fails.
157
2017-10-19 Arnold D. Robbins <arnold@skeeve.com>
159
* 4.2.0: Release tar ball made.
161
2017-09-19 Arnold D. Robbins <arnold@skeeve.com>
163
* rwarray.c: Increase the version.
165
2017-09-17 Arnold D. Robbins <arnold@skeeve.com>
167
* filefuncs.c: Move include of <sys/stat.h> to after include
168
of <sys/sysmacros.h> to (try to) avoid a Fedora compilation
169
warning. Update copyright year.
171
2017-09-13 Arnold D. Robbins <arnold@skeeve.com>
173
* rwarray.c: Update copyright year.
175
2017-09-12 Arnold D. Robbins <arnold@skeeve.com>
177
* rwarray.c: Add support for writing/reading undefined values.
179
2017-08-30 Arnold D. Robbins <arnold@skeeve.com>
181
* fnmatch.c: Use the right autoconf goop to get the major
182
and minor macros out of <sys/sysmacros.h>. Thanks to
183
David Kaspar <dkaspar@redhat.com> for the report.
185
2017-08-21 Arnold D. Robbins <arnold@skeeve.com>
187
* Makefile.am (ntdiv_la_LIBADD): Add -lm for Solaris systems,
188
per report from Nelson H.F. Beebe.
190
2017-08-21 Daniel Richard G. <skunk@iSKUNK.ORG>
192
* configure: Regenerated after update to m4/arch.m4.
194
2017-08-19 Eli Zaretskii <eliz@gnu.org>
196
* testext.c (test_get_file): Don't remove outfile from the Gawk
197
script, as that fails on MS-Windows.
199
2017-08-14 Arnold D. Robbins <arnold@skeeve.com>
201
* configure.ac: Bump associated gawk version.
203
2017-08-11 Andrew J. Schorr <aschorr@telemetry-investments.com>
205
* intdiv.c: No need to include <gmp.h> explicitly, since <mpfr.h>
208
2017-08-10 Andrew J. Schorr <aschorr@telemetry-investments.com>
210
* intdiv.c (init_intdiv): Remove function, since dl_load_func now
211
calls check_mpfr_version automatically.
212
(init_func): Initialize to NULL instead of init_intdiv.
214
2017-08-04 Arnold D. Robbins <arnold@skeeve.com>
216
* Makefile.am: Update copyright year.
218
2017-07-20 Arnold D. Robbins <arnold@skeeve.com>
220
* inplace.c: Move functions into "inplace" namespace and simplify
221
the names. Update all error messages accordingly.
223
2017-07-13 Arnold D. Robbins <arnold@skeeve.com>
225
* testext.c (init_test_ext): Add installation of a variable and a
226
function in a namespace, and test using them.
227
(do_test_function): New function.
228
(ns_test_func): New function entry for it.
230
2017-06-27 Arnold D. Robbins <arnold@skeeve.com>
232
* Makfile.am (intdiv_la_LIBADD): Add LIBMPFR for Cygwin.
233
Thanks to Eli Zaretskii for the tip that this is necessary.
235
2017-06-22 Andrew J. Schorr <aschorr@telemetry-investments.com>
237
* rwarray.c (read_value): Use malloc instead of calloc, since
238
we immediately overwrite the buffer with data from the file.
239
* rwarray0.c (read_value): Ditto.
241
2017-06-22 Andrew J. Schorr <aschorr@telemetry-investments.com>
243
* readfile.c (read_file_to_buffer): Use emalloc instead of ezalloc,
244
since there's no need to initialize the memory to zero before
245
overwriting it with the file's contents.
247
2017-06-21 Andrew J. Schorr <aschorr@telemetry-investments.com>
249
* filefuncs.c (do_fts): Replace emalloc+memset with ezalloc.
250
* readfile.c (read_file_to_buffer): Ditto.
251
* rwarray.c (read_value): Replace gawk_malloc+memset with gawk_calloc.
252
* gawkfts.c (fts_open): Replace malloc+memset with calloc.
253
* rwarray0.c (read_value): Ditto.
255
2017-04-16 Arnold D. Robbins <arnold@skeeve.com>
257
* intdiv.c (func_table): Function is now named intdiv.
259
2017-04-14 Andrew J. Schorr <aschorr@telemetry-investments.com>
261
* intdiv.c (do_intdiv): On division by zero, return -1 and issue a
262
warning instead of throwing a fatal error.
264
2017-04-13 Andrew J. Schorr <aschorr@telemetry-investments.com>
266
* intdiv.c (do_intdiv): On a division by zero fatal error, there's
267
no need to clear the numerator and denominator and add a fake return.
269
2017-04-13 Arnold D. Robbins <arnold@skeeve.com>
271
* configure.ac: Alphabetize function list in AC_CHECK_FUNCS.
272
* intdiv.c: Add descriptive comments to some functions.
273
(do_intdiv): Make division by zero fatal in MPFR case.
275
2017-04-03 Arnold D. Robbins <arnold@skeeve.com>
277
* inplace.c (inplace_end): Correct the function name in the
278
wrong argument count error message. Thanks to Dan Neilsen
281
2017-03-27 Arnold D. Robbins <arnold@skeeve.com>
283
* readdir.c: Minor edits.
284
* readdir_test.c: Same minor edits, update copyright year,
285
bump version of extension in case this ever becomes the real one.
287
2017-03-23 Arnold D. Robbins <arnold@skeeve.com>
289
* readdir.c (dir_get_record): Add additional parameter to make types
290
match and remove compiler warning.
291
* readfile.c (readfile_get_record): Ditto.
292
* revtwoway.c (rev2way_get_record): Ditto.
294
2017-03-21 Andrew J. Schorr <aschorr@telemetry-investments.com>
296
* readdir_test.c (open_directory_t): Replace field_width array
297
with new awk_fieldwidth_info_t structure. Wrap it in a union so
298
we can allocate the proper size.
299
(dir_get_record): Update field_width type from
300
'const awk_input_field_info_t **' to 'const awk_fieldwidth_info_t **'.
301
Update new fieldwidth parsing info appropriately.
302
(dir_take_control_of): Populate new fieldwidth parsing structure
305
2017-03-09 Andrew J. Schorr <aschorr@telemetry-investments.com>
307
* readdir_test.c (open_directory_t): Update field_width type from an
308
array of integers to an array of awk_input_field_info_t.
309
(dir_get_record): Ditto.
310
(dir_take_control_of): Ditto.
312
2017-03-07 Andrew J. Schorr <aschorr@telemetry-investments.com>
314
* Makefile.am (pkgextension_LTLIBRARIES): Remove testext.la, since it
315
does not make sense to install this library.
316
(noinst_LTLIBRARIES): New variable containing list of libraries to
317
build for testing purposes only. These libraries will not be installed.
318
Initially, it contains only testext.la.
319
(testext_la_LDFLAGS): Add "-rpath /foo" to convince automake/libtool
320
to build a shared version of this library. Since it is not being
321
installed, automake cannot use the final destination directory to
322
determine -rpath by itself. The value doesn't matter.
324
2017-03-06 Andrew J. Schorr <aschorr@telemetry-investments.com>
326
* readdir_test.c: Test extension using new get_record field_width
328
* Makefile.am (noinst_LTLIBRARIES): Add readdir_test.la.
329
(readdir_test_la_*): Configure building of new extension library.
331
2017-01-21 Eli Zaretskii <eliz@gnu.org>
333
* testext.c (getuid) [__MINGW32__]: New function, mirrors what
334
pc/getid.c does in Gawk.
335
* rwarray.c [__MINGW32__]: Include stdint.h, otherwise using
336
uint32_t causes compilation errors.
337
* inplace.c (_XOPEN_SOURCE): Define to 1, not to nothing. MinGW
338
system headers assume that if this is defined, it must have a
341
2017-01-06 Andrew J. Schorr <aschorr@telemetry-investments.com>
343
* intdiv.c: New extension to demonstrate how to implement intdiv
344
using the new extended-precision math API.
345
* Makefile.am (pkgextension_LTLIBRARIES): Add intdiv.la.
346
(intdiv_la_SOURCES, intdiv_la_LDFLAGS, intdiv_la_LIBADD): Add support
347
for new intdiv library.
348
* configure.ac (AC_CHECK_FUNCS): Check for fmod needed by intdiv.
349
(GNUPG_CHECK_MPFR): Add check for MPFR support.
351
2016-12-22 Arnold D. Robbins <arnold@skeeve.com>
353
* testext.c (valrep2str): Update for new API types.
355
2016-12-16 Arnold D. Robbins <arnold@skeeve.com>
357
* filefuncs.c: Update func_table again.
359
2016-12-14 Arnold D. Robbins <arnold@skeeve.com>
361
* filefuncs.c: Update do_xxx to match new API. Update func_table.
368
* revoutput.c: Ditto.
369
* revtwoway.c: Ditto.
375
2016-12-12 Arnold D. Robbins <arnold@skeeve.com>
377
* filefuncs.c (func_table): Adjust ordering of min and max
380
2016-12-06 Arnold D. Robbins <arnold@skeeve.com>
382
Add minimum required and maximum expected number of arguments
385
* filefuncs.c: Update with max expected value. Remove lint
386
checks since that's now done by gawk.
398
2016-12-05 Andrew J. Schorr <aschorr@telemetry-investments.com>
400
* rwarray.c: Adjust to read and write strnum values.
401
(write_value): When writing a string value, code should use htonl.
402
There are now 3 string types: string, strnum, and regex.
403
(read_value): Support 3 string types: string, strnum, and regex.
405
2016-11-30 Arnold D. Robbins <arnold@skeeve.com>
407
* rwarray.c: Restore read comparion of major and minor versions
410
2016-11-29 Arnold D. Robbins <arnold@skeeve.com>
412
* rwarray.c: Adjust to read and write regexes also.
414
2016-10-23 Arnold D. Robbins <arnold@skeeve.com>
416
* General: Remove trailing whitespace from all relevant files.
418
2016-08-25 Arnold D. Robbins <arnold@skeeve.com>
420
* 4.1.4: Release tar ball made.
422
2016-07-01 Arnold D. Robbins <arnold@skeeve.com>
424
* inplace.c (do_inplace_begin): Flush stdout at the start to
425
try to avoid flushing problems on some obscure BSD systems.
426
* revtwoway.c (gawk_getdtablesize): Renamed from getdtablesize.
427
(getdtablesize): New macro. Avoids problems on FreeBSD 10
428
where configure didn't work correctly. Thanks to Nelson Beebe.
429
Update copyright year.
431
2016-05-26 Andrew J. Schorr <aschorr@telemetry-investments.com>
433
* filefuncs.c (func_table): Update "stat" to indicate that the
434
max # of expected args is 3, not 2.
436
2016-01-27 Arnold D. Robbins <arnold@skeeve.com>
438
* filefuncs.c (do_statvfs): Define out f_fsid on AIX.
440
2016-01-20 Arnold D. Robbins <arnold@skeeve.com>
442
* filefuncs.c: Add statvfs function. Undocumented for now.
443
* configure.ac: Add appropriate stuff to check for statvfs.
444
* configure, configh.in: Regenerated.
446
2015-12-16 Arnold D. Robbins <arnold@skeeve.com>
448
* Makefile.am (EXTRA_DIST): Add ext_custom.h so that it will be
449
included in the distribution tarballs.
451
2015-12-16 Arnold D. Robbins <arnold@skeeve.com>
453
Make change of 2015-10-26 actually work.
455
* ext_custom.h: New file. Move _DEFAULT_SOURCE dance to here.
456
* configure.ac: Add call to AH_BOTTOM.
457
* configure: Regenerate.
459
2015-11-15 Ville Skytta <ville.skytta@iki.fi>
461
* fnmatch.3am, fork.3am, inplace.3am, ordchr.3am, readdir.3am,
462
readfile.3am, revoutput.3am, revtwoway.3am, rwarray.3am,
463
time.3am: Fix troff markup to avoid warnings.
465
2015-10-26 Arnold D. Robbins <arnold@skeeve.com>
467
* config.h.in: Turn on _DEFAULT_SOURCE for very recent
468
GLIBC. Thanks to Michal Jaegermann <michal.jnn@gmail.com>
471
2015-08-28 Daniel Richard G. <skunk@iSKUNK.ORG>
473
* rwarray.c: Removed z/OS-specific code that is no longer needed due
474
to improvements in Gawk's general Autotools support.
475
* Makefile.am, configure.ac: Make use of the AC_ZOS_USS macro so
476
that this sub-project can support that platform as well.
477
* gawkfts.h, readdir.c: Use a proper platform cpp symbol to guard
478
z/OS-specific code, and eliminate the z/OS-specific use of "long"
479
inode numbers as "long long" works perfectly well there.
481
2015-08-02 Arnold D. Robbins <arnold@skeeve.com>
483
* revoutput.c (init_revoutput): Don't install REVOUT if it's
484
there already. Makes the extension usable with -v.
485
* revoutput.3am: Add a BUGS section.
487
2015-06-17 Andrew J. Schorr <aschorr@telemetry-investments.com>
489
* inplace.3am (BUGS): Document that ACLs are not preserved, and
490
a temporary file may be left behind if the program is killed by
493
2015-06-17 Andrew J. Schorr <aschorr@telemetry-investments.com>
495
* inplace.3am: Document new inplace variable to control whether
496
inplace editing is active.
498
2015-05-19 Arnold D. Robbins <arnold@skeeve.com>
500
* 4.1.3: Release tar ball made.
502
2015-04-29 Arnold D. Robbins <arnold@skeeve.com>
504
* 4.1.2: Release tar ball made.
506
2015-04-16 Arnold D. Robbins <arnold@skeeve.com>
508
* configure.ac: Updated by autoupdate.
510
2015-04-08 Arnold D. Robbins <arnold@skeeve.com>
512
* Makefile.am, filefuncs.c, inplace.3am, inplace.c:
513
Update copyright years.
515
2015-03-27 Arnold D. Robbins <arnold@skeeve.com>
517
* testext.c: Move test for deferred variables here.
519
2015-03-18 Arnold D. Robbins <arnold@skeeve.com>
521
* configure: Updated to libtool 2.4.6.
523
2015-03-18 Arnold D. Robbins <arnold@skeeve.com>
525
* inplace.3am (SYNOPSIS): Updated to not show the contents
529
2015-03-17 Arnold D. Robbins <arnold@skeeve.com>
531
* inplace.c (do_inplace_begin): Jump through more hoops to satisfy
532
a newer version of clang.
533
* inplace.3am (BUGS): Add new section and documentation.
535
2015-02-26 Arnold D. Robbins <arnold@skeeve.com>
537
* Makefile.am (EXTRA_DIST): Add rwarray0.c to the list.
539
2015-02-11 Arnold D. Robbins <arnold@skeeve.com>
541
* filefuncs.c: Punctuation fix.
543
2015-01-24 Arnold D. Robbins <arnold@skeeve.com>
545
Infrastructure updates.
547
Automake 1.15. Libtool 2.4.5.
549
* configure.ac: Remove gettext macros.
551
2015-01-07 Arnold D. Robbins <arnold@skeeve.com>
553
* testext.c (var_test): Adjust for PROCINFO now being there.
555
2015-01-06 Andrew J. Schorr <aschorr@telemetry-investments.com>
557
* testext.c (test_deferred): New function to help with testing
558
of deferred variable instantiation.
559
(do_get_file): Remove unused variable array.
560
(func_table): Add test_deferred.
562
2015-01-05 Andrew J. Schorr <aschorr@telemetry-investments.com>
564
* testext.c (test_get_file): Fix error message.
565
(do_get_file): Implement new function providing low-level access
567
(func_table): Add "get_file" -> do_get_file.
568
(init_testext): If TESTEXT_QUIET has been set to a numeric value,
571
2015-01-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
573
* testext.c (test_get_file): The get_file hook no longer takes a
576
2015-01-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
578
Remove the select extension, since it will be part of gawkextlib.
579
* select.c, siglist.h: Deleted.
580
* Makefile.am (pkgextension_LTLIBRARIES): Remove select.la.
581
(select_la_SOURCES, select_la_LDFLAGS, select_la_LIBADD): Remove.
582
(EXTRA_DIST): Remove siglist.h.
583
* configure.ac (AC_CHECK_HEADERS): Remove signal.h.
584
(AC_CHECK_FUNCS): Remove fcntl, kill, sigaction, and sigprocmask.
586
2014-12-14 Andrew J. Schorr <aschorr@telemetry-investments.com>
588
Remove the errno extension, since it is now part of gawkextlib.
589
* errno.c, errlist.h: Deleted.
590
* Makefile.am (pkgextension_LTLIBRARIES): Remove errno.la.
591
(errno_la_SOURCES, errno_la_LDFLAGS, errno_la_LIBADD): Remove.
592
(EXTRA_DIST): Remove errlist.h.
594
2014-12-14 Andrew J. Schorr <aschorr@telemetry-investments.com>
596
* readfile.c (read_file_to_buffer): Do not waste a byte at the end of
598
* rwarray.c (read_value): Ditto.
599
* rwarray0.c (read_value): Ditto.
601
2014-11-23 Arnold D. Robbins <arnold@skeeve.com>
603
* inplace.c (do_inplace_begin): Jump through hoops to silence
604
GCC warnings about return value of chown.
606
2014-11-09 Andrew J. Schorr <aschorr@telemetry-investments.com>
608
* select.c (do_input_fd): New function to return the input file
609
descriptor associated with a file/command.
610
(do_output_fd): New function to return the output file descriptor
611
associated with a file/command.
612
(func_table): Add new functions "input_fd" and "output_fd".
613
* testext.c (test_get_file): Do not use __func__, since it is a C99
614
feature, and gawk does not assume C99.
616
2014-11-06 Andrew J. Schorr <aschorr@telemetry-investments.com>
618
* errno.c (do_errno2name, do_name2errno): Remove unused variable 'str'.
619
* select.c (do_signal): Remove unused variable 'override'.
620
(grabfd): New helper function to map a gawk file to the appropriate
621
fd for use in the arguments to selectd.
622
(do_select): get_file has 3 new arguments and returns info about both
623
the input and output buf.
624
(do_set_non_blocking): Support changes to get_file API.
625
* testext.c (test_get_file): New test function to check that extension
626
file creation via the get_file API is working.
628
2014-11-05 Andrew J. Schorr <aschorr@telemetry-investments.com>
630
* select.c (set_retry): New function to set PROCINFO[<name>, "RETRY"].
631
(do_set_non_blocking): If called with a file name as opposed to a file
632
descriptor, call the set_retry function to configure PROCINFO to tell
633
io.c to retry I/O for temporary failures.
635
2014-10-12 Arnold D. Robbins <arnold@skeeve.com>
637
* Makefile.am (uninstall-so): Remove *.lib too, per suggestion
638
from Andreas Buening.
640
2014-10-12 KO Myung-Hun <komh78@gmail.com>
644
* Makefile.am (uninstall-so): Remove *.dll and *.a, also.
646
2014-10-08 Arnold D. Robbins <arnold@skeeve.com>
648
* inplace.c (do_inplace_begin): Use a cast to void in front
649
of the second call to chown to avoid compiler warnings from clang.
651
2014-09-29 Arnold D. Robbins <arnold@skeeve.com>
653
* filefuncs.c: Minor edits to sync with documentation.
654
* testext.c: Add test to get PROCINFO, expected to fail.
656
2014-08-12 Arnold D. Robbins <arnold@skeeve.com>
658
* Makefile.am (RM): Define for makes that don't have it,
659
such as on OpenBSD. Thanks to Jeremie Courreges-Anglas
660
<jca@wxcvbn.org> for the report.
662
2014-06-13 Paul Gortmaker <paul.gortmaker@windriver.com>
664
* Makefile.am (uninstall-so): Came across below bug while cross
665
compiling, and changed both install-data-hook and uninstall-so
666
to use $(DESTDIR) on v4.1.1 before seeing most of the fix in
667
gawk-4.1.1-3-g976f73ab0356; here we ensure uninstall-so also
668
uses the $(DESTDIR) prefix on its use of pkgextensiondir.
670
2014-04-11 Arnold D. Robbins <arnold@skeeve.com>
672
* Makefile.am (install-data-hook): Use $(DESTDIR) when removing
673
the .la files. Thanks to Lars Wendler <polynomial-c@gentoo.org>
674
for the report and fix.
676
2014-04-08 Arnold D. Robbins <arnold@skeeve.com>
678
* 4.1.1: Release tar ball made.
680
2014-04-08 Arnold D. Robbins <arnold@skeeve.com>
682
* configure.ac: Bump version before release.
684
2014-04-04 Arnold D. Robbins <arnold@skeeve.com>
686
* time.c: Include <time.h> unconditionally to get declaration
687
of nanosleep on Linux. Avoids a warning. Thanks to Michal
690
2014-03-31 Arnold D. Robbins <arnold@skeeve.com>
692
* configure.ac: Remove -Wextra to avoid killing compilations
693
on older versions of gcc. Thanks to Antonio Diaz Diaz for
696
2014-03-28 Arnold D. Robbins <arnold@skeeve.com>
698
* configure.ac: Add AC_HEADER_TIME and AC_HEADER_DIRENT, and
699
rearrange order of macros some. May help on older systems.
701
2014-03-27 Arnold D. Robbins <arnold@skeeve.com>
703
* readfile.c: Add an input parser that works off of
704
PROCINFO["readfile"].
705
* readfile.3am: Document same.
707
2014-03-23 Arnold D. Robbins <arnold@skeeve.com>
709
* gawkfts.c (MAXPATHLEN): Add a default definition. Thanks to
710
Antonio Diaz Dian and Nelson H.F. Beebe.
711
* readdir.c (PATH_MAX): Add a default definition. Thanks to
714
2014-03-08 Andrew J. Schorr <aschorr@telemetry-investments.com>
716
* filefuncs.c (read_symlink, do_fts): Replace free with gawk_free.
717
* inplace.c (at_exit, do_inplace_end): Ditto.
718
* readdir.c (dir_close): Ditto.
719
* readfile.c (do_readfile): Ditto.
720
* revtwoway.c (close_two_proc_data): Ditto.
721
* rwarray.c (read_elem): Replace realloc with gawk_realloc.
722
(read_value): Replace malloc and free with gawk_malloc and gawk_free.
723
* testext.c (try_modify_environ): Replace free with gawk_free.
725
2014-02-12 John E. Malmberg <wb8tyw@qsl.net>
727
* time.c: Better hack for nanosleep bug based on feedback from HP.
729
2013-12-29 John E. Malmberg <wb8tyw@qsl.net>
731
* filefuncs.c: Fix compile on VMS.
732
* time.c: Fix compile on VMS.
734
2013-12-29 Arnold D. Robbins <arnold@skeeve.com>
736
* gawkfts.c: Wrap include of <sys/param.h> in HAVE_SYS_PARAM_H,
737
as I should have done to start with. For VMS.
739
2013-12-29 John E. Malmberg <wb8tyw@qsl.net>
741
* gawkdirfd.h: Adjust include for VMS.
742
* filefuncs.c: Make it compile on VMS.
743
* fnmatch.c: Make it compile on VMS.
745
2013-12-21 Mike Frysinger <vapier@gentoo.org>
747
* configure.ac: Remove MirBSD and OS/390 hack to create
748
do-nothing Makefile. Should be handled by configure in the
751
2013-12-21 Arnold D. Robbins <arnold@skeeve.com>
753
* configure, aclocal.m4: Updated to automake 1.13.4 and
756
2013-11-28 Arnold D. Robbins <arnold@skeeve.com>
758
* Makefile.am (uninstall-so, uninstall-recursive): Remove the
759
.so files. Keeps make distcheck happy.
761
2013-11-17 Dmitry V. Levin <ldv@altlinux.org>
763
* Makefile.am (dist_man_MANS): Add inplace.3am.
765
2013-10-23 Michael Haubenwallner <michael.haubenwallner@salomon.at>
767
Fix portability for AIX.
769
* inplace.c (_XOPEN_SOURCE): Define when not defined yet.
770
(_XOPEN_SOURCE_EXTENDED): Ditto. Needs to define a number.
772
2013-08-22 Arnold D. Robbins <arnold@skeeve.com>
774
Clean up some warnings from -Wextra.
776
* gawkfts.c (fts_set): Add cast to void for sp.
777
* inplace.c (at_exit): Add cast to void for data and exit_status.
778
* readdir.c (ftype): Add cast to void for dirname.
779
(dir_get_record): Assign NULL to *rt_start.
780
* revtwoway.c (rev2way_get_record): Add cast to void for errcode.
781
(rev2way_fwrite): Add cast to void for fp.
782
(rev2way_take_control_of): Add cast to void for name.
783
* testext.c (test_array_param, test_scalar, test_scalar_reserved,
784
test_indirect_vars): Add cast to void for nargs.
786
2013-08-20 Arnold D. Robbins <arnold@skeeve.com>
788
* gawkdirfd.h: Include ../nonposix.h to get FAKE_FD_VALUE.
790
2013-08-06 Arnold D. Robbins <arnold@skeeve.com>
792
* filefuncs.c: Change _WIN32 to __MINGW32__ globally, per
795
2013-08-02 Arnold D. Robbins <arnold@skeeve.com>
797
* filefuncs.c (do_fts): Add a version for _WIN32 that prints a
798
"not supported" fatal message. This is slightly better than the
799
"fts not found" which is otherwise produced.
801
2013-07-24 Arnold D. Robbins <arnold@skeeve.com>
803
* gawkdirfd.h (FAKE_FD_VALUE): Move definition up in the file to give
804
clean compile on MinGW.
806
2013-07-07 Andrew J. Schorr <aschorr@telemetry-investments.com>
808
* configure.ac (AC_CHECK_FUNCS): Check for fcntl.
809
* select.c (set_non_blocking): Check that fcntl and O_NONBLOCK are
812
2013-07-07 Andrew J. Schorr <aschorr@telemetry-investments.com>
814
* select.c (signal_handler): On platforms lacking sigaction, reset
815
the signal handler each time a signal is trapped to protect in case
816
the system resets it to default.
818
2013-07-05 Andrew J. Schorr <aschorr@telemetry-investments.com>
820
* select.c (signal_result): New function to set result string from
821
signal function and detect when we need to roll back.
822
(do_signal): Now takes an optional 3rd override argument. Instead
823
of returning -1 or 0, we now return information about the previously
824
installed signal handler: default, ignore, trap, or unknown. An
825
empty string is returned on error. If it is an unknown handler,
826
and override is not non-zero, we roll back the handler and return "".
828
2013-07-05 Andrew J. Schorr <aschorr@telemetry-investments.com>
830
* select.c (set_non_blocking): Do not attempt F_SETFL if F_GETFL fails.
831
(do_set_non_blocking): Add support for case when called with a single
834
2013-07-05 Andrew J. Schorr <aschorr@telemetry-investments.com>
836
* select.c (do_signal): If sigaction is unavailable, fall back to
837
signal and hope that it does the right thing.
839
2013-07-05 Andrew J. Schorr <aschorr@telemetry-investments.com>
841
* configure.ac (AC_CHECK_FUNCS): Add kill and sigprocmask.
842
* select.c (get_signal_number): Change error messages since now may
843
be called by "kill" as well as "select_signal".
844
(do_signal): Add a lint warning if there are more than 2 args.
845
(do_kill): Add new function to send a signal.
846
(do_select): Support platforms where sigprocmask is not available.
847
There will be a race condition on such platforms, but that is not
850
2013-07-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
852
* select.c (do_select): Now that the API flatten_array call has been
853
patched to ensure that the index values are strings, we can remove
854
the code to check for the AWK_NUMBER case.
856
2013-07-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
858
* select.c (do_select): Do not treat a numeric command value as a
859
file descriptor unless the command type is empty.
861
2013-07-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
863
* Makefile.am (EXTRA_DIST): Add errlist.h and siglist.h.
865
2013-07-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
867
* select.c (set_non_blocking): New helper function to call fcntl.
868
(do_set_non_blocking): Add support for the case where there's a single
871
2013-07-01 Andrew J. Schorr <aschorr@telemetry-investments.com>
873
* select.c (do_set_non_blocking): Implement new set_non_blocking
875
(func_table): Add set_non_blocking.
877
2013-07-01 Andrew J. Schorr <aschorr@telemetry-investments.com>
879
* errlist.h: New file containing a list of all the errno values I could
881
* errno.c: Implement a new errno extension providing strerror,
882
errno2name, and name2errno.
883
* Makefile.am (pkgextension_LTLIBRARIES): Add errno.la.
884
(errno_la_SOURCES, errno_la_LDFLAGS, errno_la_LIBADD): Build new errno
886
* select.c (ext_version): Fix version string.
887
* siglist.h: Update to newest glibc version.
889
2013-07-01 Andrew J. Schorr <aschorr@telemetry-investments.com>
891
* siglist.h: New file copied from glibc to provide a mapping between
892
signal number and name.
893
* select.c: Add a new "select_signal" function and provide support
894
for trapping signals.
895
(do_select): Add support for a 5th argument to contain an array
896
of returned signals. Improve the argument processing, and add
897
better warning messages.
899
2013-06-30 Andrew J. Schorr <aschorr@telemetry-investments.com>
901
* Makefile.am (pkgextension_LTLIBRARIES): Add select.la.
902
(select_la_SOURCES, select_la_LDFLAGS, select_la_LIBADD): Build new
904
* configure.ac (AC_CHECK_HEADERS): Add signal.h.
905
(AC_CHECK_FUNCS): Add sigaction.
906
* select.c: Implement the new select extension.
908
2013-06-10 Arnold D. Robbins <arnold@skeeve.com>
910
* configure.ac (AC_HEADER_MAJOR): New macro added.
911
Add check for limits.h header.
912
* filefuncs.c: Add the right stuff to get the major/minor macros.
913
* readdir.c: Add include of limits.h appropriately wrapped.
915
Thanks to ICHII Takashi <ichii386@schweetheart.jp> for the reports
918
2013-06-01 Eli Zaretskii <eliz@gnu.org>
920
* filefuncs.c [_WIN32]: Define WIN32_LEAN_AND_MEAN before
923
* readdir.c [__MINGW32__]: Define WIN32_LEAN_AND_MEAN before
926
* filefuncs.c [HAVE_GETSYSTEMTIMEASFILETIME]: Define
927
WIN32_LEAN_AND_MEAN before including windows.h.
929
2013-05-29 Arnold D. Robbins <arnold@skeeve.com>
931
* configure.ac: Add <sys/param.h> header check.
932
* filefuncs.c: Include <sys/param.h> if there.
933
(device_blocksize): New function.
934
(fill_stat_array): Call it.
936
2013-05-27 Arnold D. Robbins <arnold@skeeve.com>
938
* configure.ac (AC_STRUCT_ST_BLKSIZE): Replaced with call to
940
* filefuncs.c (fill_stat_array): Change test from ifdef
941
HAVE_ST_BLKSIZE to HAVE_STRUCT_STAT_ST_BLKSIZE.
943
2013-05-20 Arnold D. Robbins <arnold@skeeve.com>
945
* gawkdirfd.h [FAKE_FD_VALUE]: Copied here from ../gawkapi.h.
947
2013-05-16 Andrew J. Schorr <aschorr@telemetry-investments.com>
949
* Makefile.am (install-data-hook): Remove .la files installed by
950
Automake. Leaves less clutter, if not (yet) less noise.
952
2013-05-16 Arnold D. Robbins <arnold@skeeve.com>
954
* filefuncs.c (fill_stat_array): For _WIN32 use a blocksize of
955
4096 for the "blksize" element, per Eli Zaretskii.
957
* configure.ac [AC_STRUCT_ST_BLKSIZE]: Add call that was missing.
960
2013-05-14 Eli Zaretskii <eliz@gnu.org>
962
* rwarray.c [__MINGW32__]: Include winsock2.h instead of
965
* readdir.c [__MINGW32__]: Include windows.h.
966
Include gawkapi.h before gawkdirfd.h, since the former defines
967
FAKE_FD_VALUE needed by the latter.
968
(ftype): Accept an additional argument, the directory that is
969
being read. Callers changed.
970
[!DT_BLK]: Produce the file's type by calling 'stat' on it, if the
971
dirent structure doesn't provide that.
972
(get_inode): New function, to produce inode values on MS-Windows.
973
(dir_get_record): Use it.
975
* inplace.c (chown, link) [__MINGW32__]: Redirect to existing
977
(mkstemp) [__MINGW32__]: New function, for MinGW, which doesn't
978
have it in its library.
979
(do_inplace_end) [__MINGW32__]: Remove the old file before
980
renaming the new, since 'rename' on Windows cannot overwrite
983
* gawkdirfd.h (ENOTSUP): Define to ENOSYS if not already defined.
984
(DIR_TO_FD): If not defined yet, define to FAKE_FD_VALUE.
986
* filefuncs.c (get_inode) [_WIN32]: New function, produces the
987
file index used on Windows as its inode.
988
(fill_stat_array) [_WIN32]: Use it.
990
2013-05-09 Arnold D. Robbins <arnold@skeeve.com>
992
* 4.1.0: Release tar ball made.
994
2013-04-18 Arnold D. Robbins <arnold@skeeve.com>
996
* configure.ac: Update copyright.
997
For z/OS: If uname output is OS/390, just blast the Makefile,
1000
2013-04-17 Corinna Vinschen <vinschen@redhat.com>
1002
* Makefile.am (MY_LIBS): Use $(LTLIBINTL) since we use libtool,
1005
2013-04-16 Arnold D. Robbins <arnold@skeeve.com>
1007
* filefuncs.c, fnmatch.c, fork.c, ordchr.c, readdir.c, readfile.c,
1008
revoutput.c, revtwoway.c, rwarray.c, rwarray0.c, stack.c, stack.h,
1009
testext.c, time.c: Update copyright year.
1011
Update to automake 1.13.1:
1013
* configure, Makefile.in, aclocal.m4: Regenerated.
1015
2013-03-24 Arnold D. Robbins <arnold@skeeve.com>
1017
* gawkdirfd.h: Improve test for doing own dirfd function. Needed
1020
2013-03-20 Arnold D. Robbins <arnold@skeeve.com>
1022
* configure.ac: Add AC_OUTPUT_COMMANDS that drops in a do-nothing
1023
Makefile for MirBSD, since the extensions can't be built on MirBSD.
1024
* configure: Regenerated.
1025
* Makefile.am (check-for-shared-lib-support): Update comment some.
1026
* gawkfts.c (MAX): Provide for systems that don't (Solaris).
1028
2013-03-04 Arnold D. Robbins <arnold@skeeve.com>
1030
* filefuncs.c (fill_stat_array): Adjust computation for block
1031
count for WIN32 systems after consultation with Eli Zaretskii.
1033
2013-02-26 Arnold D. Robbins <arnold@skeeve.com>
1035
* Makefile.am (check-recursive, all-recursive): Make dependant upon
1036
check-for-shared-lib-support.
1037
(check-for-shared-lib-support): New target. If gawk doesn't have the
1038
API built-in, don't try to build.
1040
2013-02-11 Arnold D. Robbins <arnold@skeeve.com>
1042
* fnmatch.c: Pull in versions of C routine from missing_d
1043
if the native system doesn't provide them.
1045
2013-02-11 Eli Zaretskii <eliz@gnu.org>
1047
* filefuncs.c (S_ISLNK, lstat, readlink, S_IRGRP, S_IWGRP, S_IXGRP,
1048
S_IROTH, S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, major, minor):
1050
(fill_stat_array, init_filefuncs, func_table): Fix for Win 32.
1051
* time.c: Port to Win 32.
1053
2013-01-27 Arnold D. Robbins <arnold@skeeve.com>
1055
* gawkdirfd.h: New file.
1056
* Makeile.am (filefuncs_la_SOURCES, readdir_la_SOURCES): Use it.
1057
* gawkfts.c, readdir.c: Include gawkdirfd.h.
1058
* configure.ac (AC_USE_SYSTEM_EXTENSIONS): Added.
1059
(GAWK_FUNC_DIRFD, GAWK_PREREQ_DIRFD): New calls.
1060
(.developing): Fix check.
1061
* alocal.m4: Updated.
1062
* configure: Regenerated.
1063
* gawkdirfd.h: Fixed for Mac OS X also.
1065
2013-01-25 Arnold D. Robbins <arnold@skeeve.com>
1067
* gawkfts.c: Make include of <limits.h> be unconditional.
1069
2013-01-22 Arnold D. Robbins <arnold@skeeve.com>
1071
Improve portability. We hope.
1073
* gawkfts.c (S_ISREG): Define macro if not defined.
1074
(_BSD_SOURCE): Define for use with c99 compiler driver.
1075
* inplace.c (S_ISREG): Define macro if not defined.
1076
(_XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED): Define for use with c99
1078
* filefuncs.c (_BSD_SOURCE): Define for use with c99 compiler driver.
1079
* readfile.c (_BSD_SOURCE): Define for use with c99 compiler driver.
1080
* revtwoway.c (_BSD_SOURCE): Define for use with c99 compiler driver.
1082
2013-01-18 Arnold D. Robbins <arnold@skeeve.com>
1084
* readfile.c (do_readfile): Free `text' if read fails. Thanks to
1086
* inplace.c (do_inplace_begin): Check chown return value in an if
1087
to shut up compiler warning.
1089
2013-01-15 Arnold D. Robbins <arnold@skeeve.com>
1091
* inplace.3am: New file.
1092
* filefuncs.3am, fnmatch.3am, fork.3am, ordchr.3am, readdir.3am,
1093
readfile.3am, revoutput.3am, revtwoway.3am, rwarray.3am,
1094
time.3am: Update copyright dates, add reference to inplace(3am).
1096
* inplace.c (do_inplace_begin): Remove unused variable `p'.
1098
2013-01-10 Andrew J. Schorr <aschorr@telemetry-investments.com>
1100
* inplace.c (do_inplace_begin): No need to get the 2nd suffix argument,
1101
since it is not currently used in this function.
1103
2013-01-08 Andrew J. Schorr <aschorr@telemetry-investments.com>
1105
* inplace.c: New extension to implement in-place editing.
1106
* Makefile.am: Add inplace extension.
1108
2012-12-25 Arnold D. Robbins <arnold@skeeve.com>
1110
* filefuncs.3am, fnmatch.3am: Predefined variables are no
1112
* filefuncs.c (init_filefuncs): Use sym_update() instead of
1114
* fnmatch.c (init_fnmatch): Ditto.
1115
* testext.c (init_testext): Ditto.
1117
2012-12-24 Arnold D. Robbins <arnold@skeeve.com>
1119
* 4.0.2: Release tar ball made.
1121
2012-12-19 Arnold D. Robbins <arnold@skeeve.com>
1123
* testext.c (test_indirect_vars): New test and awk code.
1125
2012-12-02 Arnold D. Robbins <arnold@skeeve.com>
1127
* Makefile.am (EXTRA_DIST): Add README.fts.
1129
2012-11-30 Arnold D. Robbins <arnold@skeeve.com>
1131
* filefuncs.c readdir.c, revoutput.c, revtwoway.c, rwarray.c,
1132
rwarray0.c, testext.c: Use awk_true and awk_false instead of 1 and 0.
1134
2012-11-26 Arnold D. Robbins <arnold@skeeve.com>
1136
* bindarr.c, fileop.c, sparr.c: Make them compile.
1137
* steps: Reinstated and updated.
1138
* testsparr.awk: Add call to extension().
1140
2011-05-03 John Haque <j.eh@mchsi.com>
1142
* fileop.c, record.awk, testrecord.sh: New files.
1145
2011-05-02 John Haque <j.eh@mchsi.com>
1147
* bindarr.c, dbarray.awk, testdbarray.awk: New files.
1150
2011-04-24 John Haque <j.eh@mchsi.com>
1152
* spec_array.c, spec_array.h, sparr.c, testsparr.awk: New files.
1155
2012-11-21 Arnold D. Robbins <arnold@skeeve.com>
1157
* filefuncs.c (do_stat): Optional third argument indicates to
1158
use stat(2) instead of lstat(2).
1159
* filefuncs.3am: Document same.
1161
2012-11-19 Arnold D. Robbins <arnold@skeeve.com>
1163
* readdir.c: Simplify code to always print file type and not
1165
* readdir.3am: Document same.
1167
2012-11-16 Arnold D. Robbins <arnold@skeeve.com>
1169
* testext.c: In awk code, use printf(...) instead of the form
1170
without parentheses everywhere. This makes Nelson happy.
1172
2012-11-14 Andrew J. Schorr <aschorr@telemetry-investments.com>
1174
Bug fix for filesystems without d_type in directory entry.
1176
* readdir.c (open_directory_t): Add more fields for path.
1177
(ftype): Take open_directory_t argument. Build the full path
1178
for lstat. Adjust calls.
1179
(dir_close): Free the storage.
1180
(dir_take_control_of): Allocate storage for the path.
1182
2012-11-06 Arnold D. Robbins <arnold@skeeve.com>
1184
* configure.ac: Add check for $srcdir/.developing as in
1185
the main directory's configure.ac.
1187
2012-11-04 Arnold D. Robbins <arnold@skeeve.com>
1189
* rwarray.3am: Minor edits.
1191
2012-10-28 Arnold D. Robbins <arnold@skeeve.com>
1193
* Makefile.am (dist_man_MANS): Update the list.
1195
2012-10-26 Arnold D. Robbins <arnold@skeeve.com>
1197
* revtwoway.3am: Clean up example.
1198
* revtwoway.c: Minor cleanup (add translation calls).
1200
2012-10-24 Arnold D. Robbins <arnold@skeeve.com>
1202
* revtwoway.3am: New file.
1204
2012-10-21 Arnold D. Robbins <arnold@skeeve.com>
1206
* filefuncs.c (do_stat): Always clear the array.
1208
2012-10-14 Arnold D. Robbins <arnold@skeeve.com>
1210
* readdir.c, revoutput.c, revtwoway.c: Adjust for name change
1211
of IOBUF_PUBLIC to awk_input_buf_t. Additional sanitizing in
1212
revoutput.c to use `revoutput' everywhere instead of `revout'.
1213
* revoutput.3am: New file.
1214
* filefuncs.3am, fnmatch.3am, fork.3am, ordchr.3am, readdir.3am,
1215
readfile.3am, rwarray.3am, time.3am: Add ref to revoutput(3am).
1217
2012-10-11 Arnold D. Robbins <arnold@skeeve.com>
1219
* textext.c (try_modify_environ): Save array cookie in a separate
1220
variable so it isn't clobbered. Thanks to Andrew Schorr, by way
1221
of valgrind, for finding the bug.
1223
2012-09-14 Arnold D. Robbins <arnold@skeeve.com>
1225
* testext.c (try_modify_environ): New function and test.
1226
(var_test): Modified ARGC test, added additional.
1227
(test_scalar_reserved): New function and test.
1228
(try_modify_environ): Don't print count of ENVIRON elements.
1230
2012-09-13 Dave Pitts <dpitts@cozx.com>
1232
* gawkfts.c: Add defines and ifdefs for z/OS.
1233
* gawkfts.h: Add defines and ifdefs for z/OS. Fix // comments.
1234
* readdir.c (dir_get_record): Adjust sprintf format for z/OS.
1235
* rwarray.c: Add defines and ifdefs for z/OS. Fix // comments.
1237
2012-09-11 Arnold D. Robbins <arnold@skeeve.com>
1239
* readdir.c (do_readdir_do_ftype): Set ERRNO for bad arguments.
1240
* readdir.3a: Document same, minor fixes.
1242
2012-09-07 Akim Demaille <akim@lrde.epita.fr>
1244
* extension/gawkfts.h (__THROW): Define if it is not.
1245
Copied from getopt.h.
1246
* extension/gawkfts.c (fts_alloc): Since FTSENT.fts_statp is
1247
defined as a struct stat*, use that type for casts instead of
1248
the undefined __fts_stat_t type.
1250
2012-09-07 Arnold D. Robbins <arnold@skeeve.com>
1252
* readdir.c, readdir.3am: Change argument to readdir_do_ftype()
1253
to be a string. Update the doc accordingly.
1254
* gawkfts.h: Add explanatory comment before defines of API
1255
names towards the end. Thanks to Eli Zaretskii for the suggestion.
1257
2012-08-28 Andrew J. Schorr <aschorr@telemetry-investments.com>
1259
* readdir.c: Have three states, 0, 1, 2 for never, fallback, and
1261
* readdir.3am: Adjust appropriately.
1263
2012-08-29 Arnold D. Robbins <arnold@skeeve.com>
1265
Make fts work everywhere by using our own source.
1267
* README.fts, gawkfts.c, gawkfts.h, fts.3: New files.
1268
* Makefile.am (filefuncs_la_SOURCES, EXTRA_DIST): Adjust.
1269
* configure.ac: Remove check for fts.h and fts_XXX functions.
1270
* filefuncs.c: Remove various ifdefs, change includes around.
1272
2012-08-28 Andrew J. Schorr <aschorr@telemetry-investments.com>
1274
* Makefile.am: Rename man_MANS to dist_man_MANS to include the man
1275
pages in the distribution tarball.
1277
2012-08-26 Arnold D. Robbins <arnold@skeeve.com>
1279
* configure.ac (AC_SYS_LARGEFILE): Added. Needed for consistency
1280
with gawk, to get the same size struct stat everywhere.
1281
* filefuncs.c, fnmatch.c, fork.c, ordchr.c, readdir.c, readfile.c,
1282
revoutput.c, revtwoway.c, rwarray.c, rwarray0.c, testext.c,
1283
time.c: Move include of config.h to top (or add it!)
1285
2012-08-24 Arnold D. Robbins <arnold@skeeve.com>
1287
* filefuncs.c, fnmatch.c, fork.c, ordchr.c, readdir.c, readfile.c,
1288
revoutput.c, revtwoway.c, rwarray.c, rwarray0.c, testext.c,
1289
time.c: Add ext_version string.
1291
2012-08-23 Arnold D. Robbins <arnold@skeeve.com>
1293
* revoutwoway.c: New testing extension for two way processor.
1294
* Makefile.am: Build revtwoway extension.
1295
* readdir.c: Fix to fall back to stat if d_type is 'u' and
1297
* readdir.3am: Revise doc that some GNU/Linux filesystems
1298
don't support d_type.
1300
2012-08-22 Arnold D. Robbins <arnold@skeeve.com>
1302
* revoutput.c: New testing extension for output wrapper.
1303
* Makefile.am: Build revoutput extension.
1305
2012-08-08 Arnold D. Robbins <arnold@skeeve.com>
1307
Add fts() to filefuncs.
1309
* filefuncs.3am: Update doc.
1310
* filefuncs.c: Lots of new code.
1311
* configure.ac: Add checks for appropriate headers and functions.
1312
* stack.h, stack.c: New files.
1313
* Makefile.am: Update list of files.
1315
* readdir.c (dir_can_take_file): Use members in iobuf.
1316
* rwarray.c (do_writea): Initialize fp to NULL.
1318
* filefuncs.3am, fnmatch.3am, fork.3am, ordchr.3am, readdir.3am,
1319
readfile.3am, rwarray.3am, time.3am: Updated.
1321
2012-08-03 Andrew J. Schorr <aschorr@telemetry-investments.com>
1323
* readdir.c (dir_get_record): Fix for systems where ino_t is
1324
64 bit even on 32 bit systems (cygwin).
1326
2012-08-01 Arnold D. Robbins <arnold@skeeve.com>
1328
* Makefile.am (man_MANS): Add man page files so that they
1330
* rwarray.3am: New file.
1331
* fnmatch.3am, fork.3am, time.3am: Revised.
1333
2012-07-31 Arnold D. Robbins <arnold@skeeve.com>
1335
* rwarray0.c: Renamed from rwarray.c.
1336
* rwarray.c: New file using stdio instead of system calls,
1339
2012-07-30 Arnold D. Robbins <arnold@skeeve.com>
1341
* ABOUT-NLS: New file.
1342
* Makefile.am, configure.ac: Revised for gettext.
1344
* fork.3am, readdir.3am, time.3am: New files.
1345
* filefuncs.3am, fnmatch.3am, ordchr.3am, readfile.3am: Revised.
1347
2012-07-29 Andrew J. Schorr <aschorr@telemetry-investments.com>
1349
* readdir.c (dir_get_record): Adjust to new interface for RT.
1351
2012-07-29 Arnold D. Robbins <arnold@skeeve.com>
1353
* readdir.c (dir_take_control_of): Print error message and
1354
set ERRNO if failure. Adjust count of max digits.
1356
2012-07-27 Andrew J. Schorr <aschorr@telemetry-investments.com>
1358
* Makefile.am (*_la_LIBADD): Need to link with $(LIBINTL) for
1359
gettext to work on platforms where it is not included in libc.
1361
2012-07-27 Andrew J. Schorr <aschorr@telemetry-investments.com>
1363
* readdir.c (dir_get_record): Need to set errno to 0 before calling
1364
readdir, since readdir sets errno only on failure, not on EOF.
1366
2012-07-27 Andrew J. Schorr <aschorr@telemetry-investments.com>
1368
* readdir.c (dir_get_record): If readdir fails, set errcode. Otherwise,
1369
don't bother to set errcode.
1371
2012-07-27 Arnold D. Robbins <arnold@skeeve.com>
1373
* readdir.c (dir_take_control_of): Fix typo for case where
1374
we don't have fopendir (e.g., Mac OS X 10.5).
1376
2012-07-26 Arnold D. Robbins <arnold@skeeve.com>
1378
* configure.ac: Extremely crude hack to get the value of
1379
ENABLE_NLS so that gettext will work in extensions.
1381
* readdir.c (dir_get_record): Call set_RT.
1382
(dir_can_take_file): Make parameter const.
1384
* testext.c (valrep2str): Add AWK_VALUE_COOKIE.
1386
* readdir.c: Add readdir_do_ftype function for systems without
1387
dirent->d_type. Clean up buffer handling.
1389
2012-07-26 Andrew J. Schorr <aschorr@telemetry-investments.com>
1391
* readdir.c (dir_get_record): No need to set *errcode to 0.
1392
(dir_take_control_of): Remove some paranoia -- no need to test for
1393
NULL iobuf, and no need to check dir_can_take_file again.
1395
2012-07-25 Arnold D. Robbins <arnold@skeeve.com>
1397
* readdir.c: New file.
1398
* Makefile.am (readdir): New extension.
1400
* time.c: Fix all calls to update_ERRNO_string.
1402
* filefuncs.c, fnmatch.c, fork.c, ordchr.c, readfile.c, rwarray.c,
1403
time.c: Translate strings.
1405
2012-07-20 Arnold D. Robbins <arnold@skeeve.com>
1407
* filefuncs.3am, fnmatch.3am, ordchr.3am, readfile.3am:
1410
2012-07-16 Arnold D. Robbins <arnold@skeeve.com>
1412
* fnmatch.c: Simplify flag table.
1414
2012-07-15 Arnold D. Robbins <arnold@skeeve.com>
1416
* testext.c (test_scalar): New function and new tests.
1417
(init_testext): Add a new variable.
1419
2012-07-13 Arnold D. Robbins <arnold@skeeve.com>
1421
* filefuncs.c (fill_stat_array): New function to do the work
1425
2012-07-12 Arnold D. Robbins <arnold@skeeve.com>
1427
* fnmatch.c: New file.
1428
* Makefile.am: Build fnmatch extension.
1429
* configure.ac: Look for fnmatch.h and fnmatch function.
1431
* fnmatch.c (init_fnmatch): Use sym_constant for FNM_NOMATCH.
1432
* testext.c (dl_load): Use sym_constant for answer_num.
1434
* testext.c (init_testext): Move extra code to here.
1435
(init_func): Change to point to init_testext.
1437
(dl_load_func): Use the macro.
1439
2012-07-11 Arnold D. Robbins <arnold@skeeve.com>
1441
* filefuncs.c (array_set, do_stat): Use make_const_string.
1442
* fork.c (array_set_numeric): Ditto.
1443
* ordchr.c (do_chr): Ditto.
1444
* readfile.c (do_readfile): Use make_null_string, make_malloced_string.
1445
* rwarray.c (read_elem): Ditto.
1446
* testext.c (valrep2str): Add case for AWK_SCALAR.
1447
(test_array_elem): Duplicate strings coming from gawk before passing
1450
All files: Add null 'init_func' file pointer for dl_load_func
1453
2012-07-09 Arnold D. Robbins <arnold@skeeve.com>
1455
* filefuncs.c (do_readfile): Return "" and set ERRNO on error
1456
instead of returning -1. Per suggestion from Andrew Schorr.
1458
2012-07-08 Arnold D. Robbins <arnold@skeeve.com>
1460
* filefuncs.c (array_set): Adjust for change in set_array_element API.
1461
* fork.c (array_set_numeric): Ditto.
1462
* rwarray.c (read_array): Use set_array_element_by_elem.
1463
(read_value): Add a cast to silence a compiler warning.
1464
* testext.c (test_array_elem): Adjust for change in set_array_element
1466
(fill_in_array): Ditto. Change parameter name to new_array.
1468
2012-06-29 Arnold D. Robbins <arnold@skeeve.com>
1470
* ordchr.c (do_ord, do_chr): Improve argument checking and
1473
2012-06-25 Arnold D. Robbins <arnold@skeeve.com>
1475
* Makefile.am (EXTRA_DIST): Remove *.awk.
1476
* rwarray.awk: Moved to test directory.
1478
2012-06-24 Arnold D. Robbins <arnold@skeeve.com>
1480
* Makefile.am: Enable rwarray extension.
1481
* rwarray.c: Redone to use new API.
1482
* rwarray.awk: Revamped for new version.
1484
2012-06-21 Arnold D. Robbins <arnold@skeeve.com>
1486
* testext.c (test_array_elem): Add a subarray.
1487
(test_array_flatten): Removed: Tests done elsewhere.
1489
2012-06-20 Arnold D. Robbins <arnold@skeeve.com>
1491
* testext.c (fill_in_array): New function.
1492
(create_new_array): Most code moved into fill_in_array.
1493
(test_array_param): New function.
1495
2012-06-19 Arnold D. Robbins <arnold@skeeve.com>
1497
* testext.c (dump_array_and_delete): Renamed from dump_array.
1498
Get second parameter which is index to delete. Update awk test.
1500
2012-06-18 Arnold D. Robbins <arnold@skeeve.com>
1502
* filefuncs.c (do_chdir): Change element use to match change types.
1503
* fork.c (array_set_numeric): Ditto.
1504
* testext.c (valrep2str): New function.
1505
(test_array_elem): Add AWK_UNDEFINED for `wanted'. Use valrep2str.
1506
Adjust use of element index.
1507
(dump_array): Renamed from `dump_procinfo' and implemented.
1508
(func_table): Updated.
1510
2012-06-17 Arnold D. Robbins <arnold@skeeve.com>
1512
* filefuncs.c (do_chdir, do_stat): Add assert(result != NULL).
1513
* fork.c (do_fork, do_waitpid, do_wait): Ditto.
1514
* ordchr.c (do_ord, do_chr): Ditto.
1515
* readfile.c (do_readfile): Ditto.
1516
* time.c (do_gettimeofday, do_sleep): Ditto.
1517
* testext.c (All functions): Ditto. Clean up initial testing and use
1518
make_number to make default return value up front.
1519
(create_new_array, test_array_flatten): New functions.
1520
(test_array_elem): Implemented.
1521
(at_exit1): Don't printa actual pointer value: not portable.
1522
(dl_load): Load up an array also.
1524
2012-06-14 Andrew J. Schorr <aschorr@telemetry-investments.com>
1526
* time.c (RETURN): Remove obsolete define.
1527
(do_sleep): Change update_ERRNO_str argument to request translation.
1529
2012-06-12 Arnold D. Robbins <arnold@skeeve.com>
1533
* filefuncs.c (do_chdir): Replace get_curfunc_param with get_argument.
1534
(format_mode): Use unsigned masks.
1535
(do_stat): Replace get_curfunc_param with get_argument.
1536
* fork.c (do_fork): Rearrange arg order in call to sym_lookup
1537
(do_waitpid): Replace get_curfunc_param with get_argument.
1538
* ordchr.c (do_ord, do_chr): Replace get_curfunc_param with get_argument.
1539
* readfile.c (do_readfile): Replace get_curfunc_param with get_argument.
1540
* time.c (do_sleep): Replace get_curfunc_param with get_argument.
1541
Replace set_ERRNO with update_ERRNO_str for no way to sleep case.
1545
* Makefile.am: Add stuff to make testext. Remove doit and steps
1547
* testext.c: Fill in many of the test routines. Still more to do.
1548
Fix up test scripts for each routine.
1549
* time.c (do_sleep): Fix use of get_argument to be boolean.
1551
2012-06-10 Andrew J. Schorr <aschorr@telemetry-investments.com>
1553
* Makefile.am: Add time extension.
1554
* configure.ac: To support time extension, check for some headers
1555
and functions that are needed.
1556
* time.c: New file implementing sleep and gettimeofday.
1558
2012-06-10 Andrew J. Schorr <aschorr@telemetry-investments.com>
1560
* Makefile.am: Remove comment referring to deleted test extensions
1561
arrayparm, dl (zaxxon) and testarg.
1563
2012-06-10 Andrew J. Schorr <aschorr@telemetry-investments.com>
1565
* arrayparm.c, dl.c, doit, foo.awk, steps, testarg.awk, testarg.c,
1566
testarrayparm.awk, testff.awk, testfork.awk, testordchr.awk: Remove
1567
unused (obsolete) files.
1569
2012-06-06 Arnold D. Robbins <arnold@skeeve.com>
1571
* filefuncs.c (do_stat): Make `type' const char *.
1573
* testext.c: Functions renamed, some of them filled in. Corresponding
1574
awk code for each test added inline.
1576
2012-05-30 Arnold D. Robbins <arnold@skeeve.com>
1578
* testext.c: New file. Outline of tests for extension API.
1580
2012-05-29 Arnold D. Robbins <arnold@skeeve.com>
1582
* filefuncs.c: Further cleanup and condensation of code into tables.
1583
* fork.c, ordchr.c, readfile.c: Update copyright, general cleanup.
1585
2012-05-25 Arnold D. Robbins <arnold@skeeve.com>
1587
* filefuncs.c (array_set_numeric): Don't return a value from
1590
2012-05-24 Andrew J. Schorr <aschorr@telemetry-investments.com>
1592
* Makefile.am (AM_CPPFLAGS): Use $(srcdir) to work properly when
1593
built outside the source directory.
1594
* configure.ac (INSTALL): Set location manually since autoconf was
1595
not specifying the proper path for install-sh.
1596
* filefuncs2.c, ordchr2.c, readfile2.c: Deleted.
1597
* filefuncs.c: Install filefuncs2.c and patch for recent API changes.
1598
* ordchr.c: Install ordchr2.c and patch for recent API changes.
1599
* readfile.c: Install readfile2.c and patch for recent API changes.
1600
* fork.c: Port to new API.
1602
2012-05-21 Andrew J. Schorr <aschorr@telemetry-investments.com>
1604
* configure.ac: New file to run configure with libtool support
1605
in this subdirectory.
1606
* Makefile.am: Some changes related to running automake in this
1608
* AUTHORS, COPYING, INSTALL, NEWS, README: Added files to make automake
1610
* aclocal.m4, configure, configh.in: Added autoconf files.
1611
* build-aux, m4: New subdirectories for autoconf stuff.
1613
2012-05-15 Arnold D. Robbins <arnold@skeeve.com>
1615
* filefuncs2.c: New file implementing chdir and stat using the
1618
Everything else is temporarily broken.
1620
2012-05-13 Andrew J. Schorr <aschorr@telemetry-investments.com>
1622
* filefuncs.c (array_set): Add a comment discussing the use of unref
1623
on the value returned by assoc_lookup.
1625
2012-05-13 Andrew J. Schorr <aschorr@telemetry-investments.com>
1627
* xreadlink.[ch]: Remove unused files.
1629
2012-05-11 Arnold D. Robbins <arnold@skeeve.com>
1631
Sweeping change: Use `bool', `true', and `false' everywhere.
1633
2012-04-11 Andrew J. Schorr <aschorr@telemetry-investments.com>
1635
* filefuncs.c (array_set): New function to set an array element.
1636
(do_set): Use new array_set function to reduce code duplication and
1637
to make sure the memory management is handled properly.
1639
2012-04-07 Andrew J. Schorr <aschorr@telemetry-investments.com>
1641
* filefuncs.c: Remove unnecessary #include <sys/sysmacros.h>.
1642
(read_symlink): New function to read symbolic links more robustly.
1643
(do_stat): Use read_symlink instead of readlink.
1644
* fork.c (do_wait): new function.
1645
(dlload): Call make_builtin to add "wait" function.
1647
2012-04-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
1649
* fork.c (do_fork): Test whether PROCINFO_node exists before updating
1650
the pid values. And do so properly using make_number.
1651
* readfile.c (do_readfile): Function should be static.
1653
2012-04-01 Andrew J. Schorr <aschorr@telemetry-investments.com>
1655
* filefuncs.c (do_chdir, do_stat): Replace update_ERRNO() with
1656
update_ERRNO_int(errno).
1657
* fork.c (do_fork, do_waitpid): Ditto.
1658
* readfile.c (do_readfile): Ditto.
1659
* rwarray.c (do_writea, do_reada): Ditto.
1661
2012-03-25 Andrew J. Schorr <aschorr@telemetry-investments.com>
1663
* Makefile.am: Major cleanup. Use libtool options -module and
1664
-avoid-version to create the modules properly without my local hack
1665
to override the default behavior.
1667
2012-03-25 Andrew J. Schorr <aschorr@telemetry-investments.com>
1669
* .gitignore: New file to ignore files created by libtool (including
1670
binaries and associated metadata).
1672
2012-03-21 Andrew J. Schorr <aschorr@telemetry-investments.com>
1674
* Makefile.am (INCLUDES): Remove -I$(top_srcdir)/intl.
1676
2012-03-20 Andrew J. Schorr <aschorr@telemetry-investments.com>
1678
* Makefile.am: New file to build and install shared libraries.
1679
* arrayparm.c (do_mkarray): Get it to compile by removing 2nd arg
1681
* filefuncs.c (do_stat): Ditto.
1683
2011-08-31 John Haque <j.eh@mchsi.com>
1685
* arrayparm.c, filefuncs.c, fork.c, ordchr.c, readfile.c,
1686
rwarray.c, testarg.c: Updated.
1688
2012-03-28 Arnold D. Robbins <arnold@skeeve.com>
1690
* 4.0.1: Release tar ball made.
1692
2011-06-23 Arnold D. Robbins <arnold@skeeve.com>
1694
* ChangeLog.0: Rotated ChangeLog into this file.
1695
* ChangeLog: Created anew for gawk 4.0.0 and on.
1696
* 4.0.0: Release tar ball made.