Debian Codegraph @

extension/ChangeLog.1

raw
1 2019-03-17 Arnold D. Robbins <[email protected]>
2
3 * readdir.c: Change to use stat when dir info is 'u'. Bump version.
4 * readdir_test.c: Ditto.
5 * readdir.3am: Document same.
6
7 2019-02-15 Arnold D. Robbins <[email protected]>
8
9 * inplace.c (do_inplace_end): Fix error message to use inplace::end.
10 Thanks to Jean-Philippe Guerard
11 <[email protected]> for the report.
12
13 2018-12-18 Arnold D. Robbins <[email protected]>
14
15 * Makefile.am (distclean-local): Remove .deps directory.
16
17 2018-09-16 Arnold D. Robbins <[email protected]>
18
19 * Makefile.in, aclocal.m4, configure: Regenerated, using
20 Automake 1.16.1.
21
22 2018-04-08 Arnold D. Robbins <[email protected]>
23
24 * .gitignore: Ignore libtool itself.
25
26 2018-03-13 Arnold D. Robbins <[email protected]>
27
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.
34
35 2018-03-07 gettextize <[email protected]>
36
37 * Makefile.am (SUBDIRS): Add po.
38 * configure.ac (AC_CONFIG_FILES): Add po/Makefile.in.
39 * ABOUT-NLS: Updated.
40
41 2018-02-25 Arnold D. Robbins <[email protected]>
42
43 * 4.2.1: Release tar ball made.
44
45 2018-02-23 Arnold D. Robbins <[email protected]>
46
47 * configure.ac: Restore checking for PPC Macintosh before
48 checking for MPFR. See README_d/README.macosx for info.
49
50 2018-02-21 Arnold D. Robbins <[email protected]>
51
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.
55
56 2018-02-17 Michal Jaegermann <[email protected]>.
57
58 * filefuncs.3am, filefuncs.c, fnmatch.3am, revoutput.3am,
59 revtwoway.3am: Spelling and typo fixes.
60
61 2018-02-14 Arnold D. Robbins <[email protected]>
62
63 * configure.ac: Add stuff for finding gettext. Helps in
64 finding MPFR on some systems.
65
66 2018-02-11 Andrew J. Schorr <[email protected]>
67
68 * intdiv.c (do_intdiv): Print a warning about loss of precision if
69 MPFR arguments are received when not compiled with MPFR support.
70
71 2018-02-11 Arnold D. Robbins <[email protected]>
72
73 * filefuncs.3am: Fix some typos.
74
75 2018-02-08 Andrew J. Schorr <[email protected]>
76
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.
82
83 2018-02-02 Arnold D. Robbins <[email protected]>
84
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.
89
90 2018-02-02 Arnold D. Robbins <[email protected]>
91
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.
96
97 2018-01-11 Arnold D. Robbins <[email protected]>
98
99 * compile, config.guess, config.rpath, config.sub,
100 depcomp: Updated from GNULIB.
101
102 2018-01-11 Arnold D. Robbins <[email protected]>
103
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 <[email protected]> for the report.
109
110 2017-12-29 Arnold D. Robbins <[email protected]>
111
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 <[email protected]>.
116
117 2017-12-28 Arnold D. Robbins <[email protected]>
118
119 More configuration fixes, mainly for Fedora. Thanks to
120 Michal Jaegermann <[email protected]> for the reports
121 and for validating.
122
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.
128 * fnmatch.c: Ditto.
129
130 2017-12-26 Arnold D. Robbins <[email protected]>
131
132 * gawkfts.c (fts_safe_changedir): Add check for path not null
133 before trying to open it. Thanks to Michal Jaegermann
134 <[email protected]> for the report.
135
136 2017-12-24 Michal Jaegermann <[email protected]>
137
138 * intdiv.c: Fix compilation for MPFR 2.4.1.
139
140 2017-12-20 Arnold D. Robbins <[email protected]>
141
142 * configure.ac: Add support for the --enable-versioned-dir option
143 in the main configure program.
144
145 2017-12-19 Arnold D. Robbins <[email protected]>
146
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.
151
152 2017-10-28 Arnold D. Robbins <[email protected]>
153
154 * rwarray.c (do_writea): Fix description in comment.
155 (write_array): Free the flattened array if writing an element fails.
156
157 2017-10-19 Arnold D. Robbins <[email protected]>
158
159 * 4.2.0: Release tar ball made.
160
161 2017-09-19 Arnold D. Robbins <[email protected]>
162
163 * rwarray.c: Increase the version.
164
165 2017-09-17 Arnold D. Robbins <[email protected]>
166
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.
170
171 2017-09-13 Arnold D. Robbins <[email protected]>
172
173 * rwarray.c: Update copyright year.
174
175 2017-09-12 Arnold D. Robbins <[email protected]>
176
177 * rwarray.c: Add support for writing/reading undefined values.
178
179 2017-08-30 Arnold D. Robbins <[email protected]>
180
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 <[email protected]> for the report.
184
185 2017-08-21 Arnold D. Robbins <[email protected]>
186
187 * Makefile.am (ntdiv_la_LIBADD): Add -lm for Solaris systems,
188 per report from Nelson H.F. Beebe.
189
190 2017-08-21 Daniel Richard G. <[email protected]>
191
192 * configure: Regenerated after update to m4/arch.m4.
193
194 2017-08-19 Eli Zaretskii <[email protected]>
195
196 * testext.c (test_get_file): Don't remove outfile from the Gawk
197 script, as that fails on MS-Windows.
198
199 2017-08-14 Arnold D. Robbins <[email protected]>
200
201 * configure.ac: Bump associated gawk version.
202
203 2017-08-11 Andrew J. Schorr <[email protected]>
204
205 * intdiv.c: No need to include <gmp.h> explicitly, since <mpfr.h>
206 does this for us.
207
208 2017-08-10 Andrew J. Schorr <[email protected]>
209
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.
213
214 2017-08-04 Arnold D. Robbins <[email protected]>
215
216 * Makefile.am: Update copyright year.
217
218 2017-07-20 Arnold D. Robbins <[email protected]>
219
220 * inplace.c: Move functions into "inplace" namespace and simplify
221 the names. Update all error messages accordingly.
222
223 2017-07-13 Arnold D. Robbins <[email protected]>
224
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.
229
230 2017-06-27 Arnold D. Robbins <[email protected]>
231
232 * Makfile.am (intdiv_la_LIBADD): Add LIBMPFR for Cygwin.
233 Thanks to Eli Zaretskii for the tip that this is necessary.
234
235 2017-06-22 Andrew J. Schorr <[email protected]>
236
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.
240
241 2017-06-22 Andrew J. Schorr <[email protected]>
242
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.
246
247 2017-06-21 Andrew J. Schorr <[email protected]>
248
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.
254
255 2017-04-16 Arnold D. Robbins <[email protected]>
256
257 * intdiv.c (func_table): Function is now named intdiv.
258
259 2017-04-14 Andrew J. Schorr <[email protected]>
260
261 * intdiv.c (do_intdiv): On division by zero, return -1 and issue a
262 warning instead of throwing a fatal error.
263
264 2017-04-13 Andrew J. Schorr <[email protected]>
265
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.
268
269 2017-04-13 Arnold D. Robbins <[email protected]>
270
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.
274
275 2017-04-03 Arnold D. Robbins <[email protected]>
276
277 * inplace.c (inplace_end): Correct the function name in the
278 wrong argument count error message. Thanks to Dan Neilsen
279 for the report.
280
281 2017-03-27 Arnold D. Robbins <[email protected]>
282
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.
286
287 2017-03-23 Arnold D. Robbins <[email protected]>
288
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.
293
294 2017-03-21 Andrew J. Schorr <[email protected]>
295
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
303 with initial values.
304
305 2017-03-09 Andrew J. Schorr <[email protected]>
306
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.
311
312 2017-03-07 Andrew J. Schorr <[email protected]>
313
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.
323
324 2017-03-06 Andrew J. Schorr <[email protected]>
325
326 * readdir_test.c: Test extension using new get_record field_width
327 parsing feature.
328 * Makefile.am (noinst_LTLIBRARIES): Add readdir_test.la.
329 (readdir_test_la_*): Configure building of new extension library.
330
331 2017-01-21 Eli Zaretskii <[email protected]>
332
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
339 numeric value.
340
341 2017-01-06 Andrew J. Schorr <[email protected]>
342
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.
350
351 2016-12-22 Arnold D. Robbins <[email protected]>
352
353 * testext.c (valrep2str): Update for new API types.
354
355 2016-12-16 Arnold D. Robbins <[email protected]>
356
357 * filefuncs.c: Update func_table again.
358
359 2016-12-14 Arnold D. Robbins <[email protected]>
360
361 * filefuncs.c: Update do_xxx to match new API. Update func_table.
362 * fnmatch.c: Ditto.
363 * fork.c: Ditto.
364 * inplace.c: Ditto.
365 * ordchr.c: Ditto.
366 * readdir.c: Ditto.
367 * readfile.c: Ditto.
368 * revoutput.c: Ditto.
369 * revtwoway.c: Ditto.
370 * rwarray.c: Ditto.
371 * rwarray0.c: Ditto.
372 * testext.c: Ditto.
373 * time.c: Ditto.
374
375 2016-12-12 Arnold D. Robbins <[email protected]>
376
377 * filefuncs.c (func_table): Adjust ordering of min and max
378 for stat.
379
380 2016-12-06 Arnold D. Robbins <[email protected]>
381
382 Add minimum required and maximum expected number of arguments
383 to the API.
384
385 * filefuncs.c: Update with max expected value. Remove lint
386 checks since that's now done by gawk.
387 * fnmatch.c: Ditto.
388 * fork.c: Ditto.
389 * inplace.c: Ditto.
390 * ordchr.c: Ditto.
391 * readdir.c: Ditto.
392 * readfile.c: Ditto.
393 * rwarray.c: Ditto.
394 * rwarray0.c: Ditto.
395 * testext.c: Ditto.
396 * time.c: Ditto.
397
398 2016-12-05 Andrew J. Schorr <[email protected]>
399
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.
404
405 2016-11-30 Arnold D. Robbins <[email protected]>
406
407 * rwarray.c: Restore read comparion of major and minor versions
408 to use !=.
409
410 2016-11-29 Arnold D. Robbins <[email protected]>
411
412 * rwarray.c: Adjust to read and write regexes also.
413
414 2016-10-23 Arnold D. Robbins <[email protected]>
415
416 * General: Remove trailing whitespace from all relevant files.
417
418 2016-08-25 Arnold D. Robbins <[email protected]>
419
420 * 4.1.4: Release tar ball made.
421
422 2016-07-01 Arnold D. Robbins <[email protected]>
423
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.
430
431 2016-05-26 Andrew J. Schorr <[email protected]>
432
433 * filefuncs.c (func_table): Update "stat" to indicate that the
434 max # of expected args is 3, not 2.
435
436 2016-01-27 Arnold D. Robbins <[email protected]>
437
438 * filefuncs.c (do_statvfs): Define out f_fsid on AIX.
439
440 2016-01-20 Arnold D. Robbins <[email protected]>
441
442 * filefuncs.c: Add statvfs function. Undocumented for now.
443 * configure.ac: Add appropriate stuff to check for statvfs.
444 * configure, configh.in: Regenerated.
445
446 2015-12-16 Arnold D. Robbins <[email protected]>
447
448 * Makefile.am (EXTRA_DIST): Add ext_custom.h so that it will be
449 included in the distribution tarballs.
450
451 2015-12-16 Arnold D. Robbins <[email protected]>
452
453 Make change of 2015-10-26 actually work.
454
455 * ext_custom.h: New file. Move _DEFAULT_SOURCE dance to here.
456 * configure.ac: Add call to AH_BOTTOM.
457 * configure: Regenerate.
458
459 2015-11-15 Ville Skytta <[email protected]>
460
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.
464
465 2015-10-26 Arnold D. Robbins <[email protected]>
466
467 * config.h.in: Turn on _DEFAULT_SOURCE for very recent
468 GLIBC. Thanks to Michal Jaegermann <[email protected]>
469 for the report.
470
471 2015-08-28 Daniel Richard G. <[email protected]>
472
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.
480
481 2015-08-02 Arnold D. Robbins <[email protected]>
482
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.
486
487 2015-06-17 Andrew J. Schorr <[email protected]>
488
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
491 a signal.
492
493 2015-06-17 Andrew J. Schorr <[email protected]>
494
495 * inplace.3am: Document new inplace variable to control whether
496 inplace editing is active.
497
498 2015-05-19 Arnold D. Robbins <[email protected]>
499
500 * 4.1.3: Release tar ball made.
501
502 2015-04-29 Arnold D. Robbins <[email protected]>
503
504 * 4.1.2: Release tar ball made.
505
506 2015-04-16 Arnold D. Robbins <[email protected]>
507
508 * configure.ac: Updated by autoupdate.
509
510 2015-04-08 Arnold D. Robbins <[email protected]>
511
512 * Makefile.am, filefuncs.c, inplace.3am, inplace.c:
513 Update copyright years.
514
515 2015-03-27 Arnold D. Robbins <[email protected]>
516
517 * testext.c: Move test for deferred variables here.
518
519 2015-03-18 Arnold D. Robbins <[email protected]>
520
521 * configure: Updated to libtool 2.4.6.
522
523 2015-03-18 Arnold D. Robbins <[email protected]>
524
525 * inplace.3am (SYNOPSIS): Updated to not show the contents
526 of the extension.
527 (BUGS): Removed.
528
529 2015-03-17 Arnold D. Robbins <[email protected]>
530
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.
534
535 2015-02-26 Arnold D. Robbins <[email protected]>
536
537 * Makefile.am (EXTRA_DIST): Add rwarray0.c to the list.
538
539 2015-02-11 Arnold D. Robbins <[email protected]>
540
541 * filefuncs.c: Punctuation fix.
542
543 2015-01-24 Arnold D. Robbins <[email protected]>
544
545 Infrastructure updates.
546
547 Automake 1.15. Libtool 2.4.5.
548
549 * configure.ac: Remove gettext macros.
550
551 2015-01-07 Arnold D. Robbins <[email protected]>
552
553 * testext.c (var_test): Adjust for PROCINFO now being there.
554
555 2015-01-06 Andrew J. Schorr <[email protected]>
556
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.
561
562 2015-01-05 Andrew J. Schorr <[email protected]>
563
564 * testext.c (test_get_file): Fix error message.
565 (do_get_file): Implement new function providing low-level access
566 to the get_file API.
567 (func_table): Add "get_file" -> do_get_file.
568 (init_testext): If TESTEXT_QUIET has been set to a numeric value,
569 return quietly.
570
571 2015-01-02 Andrew J. Schorr <[email protected]>
572
573 * testext.c (test_get_file): The get_file hook no longer takes a
574 typelen argument.
575
576 2015-01-02 Andrew J. Schorr <[email protected]>
577
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.
585
586 2014-12-14 Andrew J. Schorr <[email protected]>
587
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.
593
594 2014-12-14 Andrew J. Schorr <[email protected]>
595
596 * readfile.c (read_file_to_buffer): Do not waste a byte at the end of
597 a string.
598 * rwarray.c (read_value): Ditto.
599 * rwarray0.c (read_value): Ditto.
600
601 2014-11-23 Arnold D. Robbins <[email protected]>
602
603 * inplace.c (do_inplace_begin): Jump through hoops to silence
604 GCC warnings about return value of chown.
605
606 2014-11-09 Andrew J. Schorr <[email protected]>
607
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.
615
616 2014-11-06 Andrew J. Schorr <[email protected]>
617
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.
627
628 2014-11-05 Andrew J. Schorr <[email protected]>
629
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.
634
635 2014-10-12 Arnold D. Robbins <[email protected]>
636
637 * Makefile.am (uninstall-so): Remove *.lib too, per suggestion
638 from Andreas Buening.
639
640 2014-10-12 KO Myung-Hun <[email protected]>
641
642 Fixes for OS/2:
643
644 * Makefile.am (uninstall-so): Remove *.dll and *.a, also.
645
646 2014-10-08 Arnold D. Robbins <[email protected]>
647
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.
650
651 2014-09-29 Arnold D. Robbins <[email protected]>
652
653 * filefuncs.c: Minor edits to sync with documentation.
654 * testext.c: Add test to get PROCINFO, expected to fail.
655
656 2014-08-12 Arnold D. Robbins <[email protected]>
657
658 * Makefile.am (RM): Define for makes that don't have it,
659 such as on OpenBSD. Thanks to Jeremie Courreges-Anglas
660 <[email protected]> for the report.
661
662 2014-06-13 Paul Gortmaker <[email protected]>
663
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.
669
670 2014-04-11 Arnold D. Robbins <[email protected]>
671
672 * Makefile.am (install-data-hook): Use $(DESTDIR) when removing
673 the .la files. Thanks to Lars Wendler <[email protected]>
674 for the report and fix.
675
676 2014-04-08 Arnold D. Robbins <[email protected]>
677
678 * 4.1.1: Release tar ball made.
679
680 2014-04-08 Arnold D. Robbins <[email protected]>
681
682 * configure.ac: Bump version before release.
683
684 2014-04-04 Arnold D. Robbins <[email protected]>
685
686 * time.c: Include <time.h> unconditionally to get declaration
687 of nanosleep on Linux. Avoids a warning. Thanks to Michal
688 Jaegermann.
689
690 2014-03-31 Arnold D. Robbins <[email protected]>
691
692 * configure.ac: Remove -Wextra to avoid killing compilations
693 on older versions of gcc. Thanks to Antonio Diaz Diaz for
694 the report.
695
696 2014-03-28 Arnold D. Robbins <[email protected]>
697
698 * configure.ac: Add AC_HEADER_TIME and AC_HEADER_DIRENT, and
699 rearrange order of macros some. May help on older systems.
700
701 2014-03-27 Arnold D. Robbins <[email protected]>
702
703 * readfile.c: Add an input parser that works off of
704 PROCINFO["readfile"].
705 * readfile.3am: Document same.
706
707 2014-03-23 Arnold D. Robbins <[email protected]>
708
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
712 Nelson H.F. Beebe.
713
714 2014-03-08 Andrew J. Schorr <[email protected]>
715
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.
724
725 2014-02-12 John E. Malmberg <[email protected]>
726
727 * time.c: Better hack for nanosleep bug based on feedback from HP.
728
729 2013-12-29 John E. Malmberg <[email protected]>
730
731 * filefuncs.c: Fix compile on VMS.
732 * time.c: Fix compile on VMS.
733
734 2013-12-29 Arnold D. Robbins <[email protected]>
735
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.
738
739 2013-12-29 John E. Malmberg <[email protected]>
740
741 * gawkdirfd.h: Adjust include for VMS.
742 * filefuncs.c: Make it compile on VMS.
743 * fnmatch.c: Make it compile on VMS.
744
745 2013-12-21 Mike Frysinger <[email protected]>
746
747 * configure.ac: Remove MirBSD and OS/390 hack to create
748 do-nothing Makefile. Should be handled by configure in the
749 parent directory.
750
751 2013-12-21 Arnold D. Robbins <[email protected]>
752
753 * configure, aclocal.m4: Updated to automake 1.13.4 and
754 libtool 2.4.2.418.
755
756 2013-11-28 Arnold D. Robbins <[email protected]>
757
758 * Makefile.am (uninstall-so, uninstall-recursive): Remove the
759 .so files. Keeps make distcheck happy.
760
761 2013-11-17 Dmitry V. Levin <[email protected]>
762
763 * Makefile.am (dist_man_MANS): Add inplace.3am.
764
765 2013-10-23 Michael Haubenwallner <[email protected]>
766
767 Fix portability for AIX.
768
769 * inplace.c (_XOPEN_SOURCE): Define when not defined yet.
770 (_XOPEN_SOURCE_EXTENDED): Ditto. Needs to define a number.
771
772 2013-08-22 Arnold D. Robbins <[email protected]>
773
774 Clean up some warnings from -Wextra.
775
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.
785
786 2013-08-20 Arnold D. Robbins <[email protected]>
787
788 * gawkdirfd.h: Include ../nonposix.h to get FAKE_FD_VALUE.
789
790 2013-08-06 Arnold D. Robbins <[email protected]>
791
792 * filefuncs.c: Change _WIN32 to __MINGW32__ globally, per
793 Eli Zaretskii.
794
795 2013-08-02 Arnold D. Robbins <[email protected]>
796
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.
800
801 2013-07-24 Arnold D. Robbins <[email protected]>
802
803 * gawkdirfd.h (FAKE_FD_VALUE): Move definition up in the file to give
804 clean compile on MinGW.
805
806 2013-07-07 Andrew J. Schorr <[email protected]>
807
808 * configure.ac (AC_CHECK_FUNCS): Check for fcntl.
809 * select.c (set_non_blocking): Check that fcntl and O_NONBLOCK are
810 available.
811
812 2013-07-07 Andrew J. Schorr <[email protected]>
813
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.
817
818 2013-07-05 Andrew J. Schorr <[email protected]>
819
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 "".
827
828 2013-07-05 Andrew J. Schorr <[email protected]>
829
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
832 "" argument.
833
834 2013-07-05 Andrew J. Schorr <[email protected]>
835
836 * select.c (do_signal): If sigaction is unavailable, fall back to
837 signal and hope that it does the right thing.
838
839 2013-07-05 Andrew J. Schorr <[email protected]>
840
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
848 easily avoided.
849
850 2013-07-02 Andrew J. Schorr <[email protected]>
851
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.
855
856 2013-07-02 Andrew J. Schorr <[email protected]>
857
858 * select.c (do_select): Do not treat a numeric command value as a
859 file descriptor unless the command type is empty.
860
861 2013-07-02 Andrew J. Schorr <[email protected]>
862
863 * Makefile.am (EXTRA_DIST): Add errlist.h and siglist.h.
864
865 2013-07-02 Andrew J. Schorr <[email protected]>
866
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
869 integer fd argument.
870
871 2013-07-01 Andrew J. Schorr <[email protected]>
872
873 * select.c (do_set_non_blocking): Implement new set_non_blocking
874 function.
875 (func_table): Add set_non_blocking.
876
877 2013-07-01 Andrew J. Schorr <[email protected]>
878
879 * errlist.h: New file containing a list of all the errno values I could
880 find.
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
885 extension.
886 * select.c (ext_version): Fix version string.
887 * siglist.h: Update to newest glibc version.
888
889 2013-07-01 Andrew J. Schorr <[email protected]>
890
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.
898
899 2013-06-30 Andrew J. Schorr <[email protected]>
900
901 * Makefile.am (pkgextension_LTLIBRARIES): Add select.la.
902 (select_la_SOURCES, select_la_LDFLAGS, select_la_LIBADD): Build new
903 select extension.
904 * configure.ac (AC_CHECK_HEADERS): Add signal.h.
905 (AC_CHECK_FUNCS): Add sigaction.
906 * select.c: Implement the new select extension.
907
908 2013-06-10 Arnold D. Robbins <[email protected]>
909
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.
914
915 Thanks to ICHII Takashi <[email protected]> for the reports
916 and pointers.
917
918 2013-06-01 Eli Zaretskii <[email protected]>
919
920 * filefuncs.c [_WIN32]: Define WIN32_LEAN_AND_MEAN before
921 including windows.h.
922
923 * readdir.c [__MINGW32__]: Define WIN32_LEAN_AND_MEAN before
924 including windows.h.
925
926 * filefuncs.c [HAVE_GETSYSTEMTIMEASFILETIME]: Define
927 WIN32_LEAN_AND_MEAN before including windows.h.
928
929 2013-05-29 Arnold D. Robbins <[email protected]>
930
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.
935
936 2013-05-27 Arnold D. Robbins <[email protected]>
937
938 * configure.ac (AC_STRUCT_ST_BLKSIZE): Replaced with call to
939 AC_CHECK_MEMBERS.
940 * filefuncs.c (fill_stat_array): Change test from ifdef
941 HAVE_ST_BLKSIZE to HAVE_STRUCT_STAT_ST_BLKSIZE.
942
943 2013-05-20 Arnold D. Robbins <[email protected]>
944
945 * gawkdirfd.h [FAKE_FD_VALUE]: Copied here from ../gawkapi.h.
946
947 2013-05-16 Andrew J. Schorr <[email protected]>
948
949 * Makefile.am (install-data-hook): Remove .la files installed by
950 Automake. Leaves less clutter, if not (yet) less noise.
951
952 2013-05-16 Arnold D. Robbins <[email protected]>
953
954 * filefuncs.c (fill_stat_array): For _WIN32 use a blocksize of
955 4096 for the "blksize" element, per Eli Zaretskii.
956
957 * configure.ac [AC_STRUCT_ST_BLKSIZE]: Add call that was missing.
958 ARGH!!!!
959
960 2013-05-14 Eli Zaretskii <[email protected]>
961
962 * rwarray.c [__MINGW32__]: Include winsock2.h instead of
963 arpa/inet.h.
964
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.
974
975 * inplace.c (chown, link) [__MINGW32__]: Redirect to existing
976 library functions.
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
981 existing files.
982
983 * gawkdirfd.h (ENOTSUP): Define to ENOSYS if not already defined.
984 (DIR_TO_FD): If not defined yet, define to FAKE_FD_VALUE.
985
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.
989
990 2013-05-09 Arnold D. Robbins <[email protected]>
991
992 * 4.1.0: Release tar ball made.
993
994 2013-04-18 Arnold D. Robbins <[email protected]>
995
996 * configure.ac: Update copyright.
997 For z/OS: If uname output is OS/390, just blast the Makefile,
998 same as for MirBSD.
999
1000 2013-04-17 Corinna Vinschen <[email protected]>
1001
1002 * Makefile.am (MY_LIBS): Use $(LTLIBINTL) since we use libtool,
1003 not LIBINTL.
1004
1005 2013-04-16 Arnold D. Robbins <[email protected]>
1006
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.
1010
1011 Update to automake 1.13.1:
1012
1013 * configure, Makefile.in, aclocal.m4: Regenerated.
1014
1015 2013-03-24 Arnold D. Robbins <[email protected]>
1016
1017 * gawkdirfd.h: Improve test for doing own dirfd function. Needed
1018 for IRIX.
1019
1020 2013-03-20 Arnold D. Robbins <[email protected]>
1021
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).
1027
1028 2013-03-04 Arnold D. Robbins <[email protected]>
1029
1030 * filefuncs.c (fill_stat_array): Adjust computation for block
1031 count for WIN32 systems after consultation with Eli Zaretskii.
1032
1033 2013-02-26 Arnold D. Robbins <[email protected]>
1034
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.
1039
1040 2013-02-11 Arnold D. Robbins <[email protected]>
1041
1042 * fnmatch.c: Pull in versions of C routine from missing_d
1043 if the native system doesn't provide them.
1044
1045 2013-02-11 Eli Zaretskii <[email protected]>
1046
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):
1049 Define if needed.
1050 (fill_stat_array, init_filefuncs, func_table): Fix for Win 32.
1051 * time.c: Port to Win 32.
1052
1053 2013-01-27 Arnold D. Robbins <[email protected]>
1054
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.
1064
1065 2013-01-25 Arnold D. Robbins <[email protected]>
1066
1067 * gawkfts.c: Make include of <limits.h> be unconditional.
1068
1069 2013-01-22 Arnold D. Robbins <[email protected]>
1070
1071 Improve portability. We hope.
1072
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
1077 compiler driver.
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.
1081
1082 2013-01-18 Arnold D. Robbins <[email protected]>
1083
1084 * readfile.c (do_readfile): Free `text' if read fails. Thanks to
1085 cppcheck.
1086 * inplace.c (do_inplace_begin): Check chown return value in an if
1087 to shut up compiler warning.
1088
1089 2013-01-15 Arnold D. Robbins <[email protected]>
1090
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).
1095
1096 * inplace.c (do_inplace_begin): Remove unused variable `p'.
1097
1098 2013-01-10 Andrew J. Schorr <[email protected]>
1099
1100 * inplace.c (do_inplace_begin): No need to get the 2nd suffix argument,
1101 since it is not currently used in this function.
1102
1103 2013-01-08 Andrew J. Schorr <[email protected]>
1104
1105 * inplace.c: New extension to implement in-place editing.
1106 * Makefile.am: Add inplace extension.
1107
1108 2012-12-25 Arnold D. Robbins <[email protected]>
1109
1110 * filefuncs.3am, fnmatch.3am: Predefined variables are no
1111 longer constants.
1112 * filefuncs.c (init_filefuncs): Use sym_update() instead of
1113 sym_constant().
1114 * fnmatch.c (init_fnmatch): Ditto.
1115 * testext.c (init_testext): Ditto.
1116
1117 2012-12-24 Arnold D. Robbins <[email protected]>
1118
1119 * 4.0.2: Release tar ball made.
1120
1121 2012-12-19 Arnold D. Robbins <[email protected]>
1122
1123 * testext.c (test_indirect_vars): New test and awk code.
1124
1125 2012-12-02 Arnold D. Robbins <[email protected]>
1126
1127 * Makefile.am (EXTRA_DIST): Add README.fts.
1128
1129 2012-11-30 Arnold D. Robbins <[email protected]>
1130
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.
1133
1134 2012-11-26 Arnold D. Robbins <[email protected]>
1135
1136 * bindarr.c, fileop.c, sparr.c: Make them compile.
1137 * steps: Reinstated and updated.
1138 * testsparr.awk: Add call to extension().
1139
1140 2011-05-03 John Haque <[email protected]>
1141
1142 * fileop.c, record.awk, testrecord.sh: New files.
1143 * steps: Updated.
1144
1145 2011-05-02 John Haque <[email protected]>
1146
1147 * bindarr.c, dbarray.awk, testdbarray.awk: New files.
1148 * steps: Updated.
1149
1150 2011-04-24 John Haque <[email protected]>
1151
1152 * spec_array.c, spec_array.h, sparr.c, testsparr.awk: New files.
1153 * steps: Updated.
1154
1155 2012-11-21 Arnold D. Robbins <[email protected]>
1156
1157 * filefuncs.c (do_stat): Optional third argument indicates to
1158 use stat(2) instead of lstat(2).
1159 * filefuncs.3am: Document same.
1160
1161 2012-11-19 Arnold D. Robbins <[email protected]>
1162
1163 * readdir.c: Simplify code to always print file type and not
1164 use stat().
1165 * readdir.3am: Document same.
1166
1167 2012-11-16 Arnold D. Robbins <[email protected]>
1168
1169 * testext.c: In awk code, use printf(...) instead of the form
1170 without parentheses everywhere. This makes Nelson happy.
1171
1172 2012-11-14 Andrew J. Schorr <[email protected]>
1173
1174 Bug fix for filesystems without d_type in directory entry.
1175
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.
1181
1182 2012-11-06 Arnold D. Robbins <[email protected]>
1183
1184 * configure.ac: Add check for $srcdir/.developing as in
1185 the main directory's configure.ac.
1186
1187 2012-11-04 Arnold D. Robbins <[email protected]>
1188
1189 * rwarray.3am: Minor edits.
1190
1191 2012-10-28 Arnold D. Robbins <[email protected]>
1192
1193 * Makefile.am (dist_man_MANS): Update the list.
1194
1195 2012-10-26 Arnold D. Robbins <[email protected]>
1196
1197 * revtwoway.3am: Clean up example.
1198 * revtwoway.c: Minor cleanup (add translation calls).
1199
1200 2012-10-24 Arnold D. Robbins <[email protected]>
1201
1202 * revtwoway.3am: New file.
1203
1204 2012-10-21 Arnold D. Robbins <[email protected]>
1205
1206 * filefuncs.c (do_stat): Always clear the array.
1207
1208 2012-10-14 Arnold D. Robbins <[email protected]>
1209
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).
1216
1217 2012-10-11 Arnold D. Robbins <[email protected]>
1218
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.
1222
1223 2012-09-14 Arnold D. Robbins <[email protected]>
1224
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.
1229
1230 2012-09-13 Dave Pitts <[email protected]>
1231
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.
1236
1237 2012-09-11 Arnold D. Robbins <[email protected]>
1238
1239 * readdir.c (do_readdir_do_ftype): Set ERRNO for bad arguments.
1240 * readdir.3a: Document same, minor fixes.
1241
1242 2012-09-07 Akim Demaille <[email protected]>
1243
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.
1249
1250 2012-09-07 Arnold D. Robbins <[email protected]>
1251
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.
1256
1257 2012-08-28 Andrew J. Schorr <[email protected]>
1258
1259 * readdir.c: Have three states, 0, 1, 2 for never, fallback, and
1260 always.
1261 * readdir.3am: Adjust appropriately.
1262
1263 2012-08-29 Arnold D. Robbins <[email protected]>
1264
1265 Make fts work everywhere by using our own source.
1266
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.
1271
1272 2012-08-28 Andrew J. Schorr <[email protected]>
1273
1274 * Makefile.am: Rename man_MANS to dist_man_MANS to include the man
1275 pages in the distribution tarball.
1276
1277 2012-08-26 Arnold D. Robbins <[email protected]>
1278
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!)
1284
1285 2012-08-24 Arnold D. Robbins <[email protected]>
1286
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.
1290
1291 2012-08-23 Arnold D. Robbins <[email protected]>
1292
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
1296 do_ftype is one.
1297 * readdir.3am: Revise doc that some GNU/Linux filesystems
1298 don't support d_type.
1299
1300 2012-08-22 Arnold D. Robbins <[email protected]>
1301
1302 * revoutput.c: New testing extension for output wrapper.
1303 * Makefile.am: Build revoutput extension.
1304
1305 2012-08-08 Arnold D. Robbins <[email protected]>
1306
1307 Add fts() to filefuncs.
1308
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.
1314
1315 * readdir.c (dir_can_take_file): Use members in iobuf.
1316 * rwarray.c (do_writea): Initialize fp to NULL.
1317
1318 * filefuncs.3am, fnmatch.3am, fork.3am, ordchr.3am, readdir.3am,
1319 readfile.3am, rwarray.3am, time.3am: Updated.
1320
1321 2012-08-03 Andrew J. Schorr <[email protected]>
1322
1323 * readdir.c (dir_get_record): Fix for systems where ino_t is
1324 64 bit even on 32 bit systems (cygwin).
1325
1326 2012-08-01 Arnold D. Robbins <[email protected]>
1327
1328 * Makefile.am (man_MANS): Add man page files so that they
1329 get installed.
1330 * rwarray.3am: New file.
1331 * fnmatch.3am, fork.3am, time.3am: Revised.
1332
1333 2012-07-31 Arnold D. Robbins <[email protected]>
1334
1335 * rwarray0.c: Renamed from rwarray.c.
1336 * rwarray.c: New file using stdio instead of system calls,
1337 works on cygwin.
1338
1339 2012-07-30 Arnold D. Robbins <[email protected]>
1340
1341 * ABOUT-NLS: New file.
1342 * Makefile.am, configure.ac: Revised for gettext.
1343
1344 * fork.3am, readdir.3am, time.3am: New files.
1345 * filefuncs.3am, fnmatch.3am, ordchr.3am, readfile.3am: Revised.
1346
1347 2012-07-29 Andrew J. Schorr <[email protected]>
1348
1349 * readdir.c (dir_get_record): Adjust to new interface for RT.
1350
1351 2012-07-29 Arnold D. Robbins <[email protected]>
1352
1353 * readdir.c (dir_take_control_of): Print error message and
1354 set ERRNO if failure. Adjust count of max digits.
1355
1356 2012-07-27 Andrew J. Schorr <[email protected]>
1357
1358 * Makefile.am (*_la_LIBADD): Need to link with $(LIBINTL) for
1359 gettext to work on platforms where it is not included in libc.
1360
1361 2012-07-27 Andrew J. Schorr <[email protected]>
1362
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.
1365
1366 2012-07-27 Andrew J. Schorr <[email protected]>
1367
1368 * readdir.c (dir_get_record): If readdir fails, set errcode. Otherwise,
1369 don't bother to set errcode.
1370
1371 2012-07-27 Arnold D. Robbins <[email protected]>
1372
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).
1375
1376 2012-07-26 Arnold D. Robbins <[email protected]>
1377
1378 * configure.ac: Extremely crude hack to get the value of
1379 ENABLE_NLS so that gettext will work in extensions.
1380
1381 * readdir.c (dir_get_record): Call set_RT.
1382 (dir_can_take_file): Make parameter const.
1383
1384 * testext.c (valrep2str): Add AWK_VALUE_COOKIE.
1385
1386 * readdir.c: Add readdir_do_ftype function for systems without
1387 dirent->d_type. Clean up buffer handling.
1388
1389 2012-07-26 Andrew J. Schorr <[email protected]>
1390
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.
1394
1395 2012-07-25 Arnold D. Robbins <[email protected]>
1396
1397 * readdir.c: New file.
1398 * Makefile.am (readdir): New extension.
1399
1400 * time.c: Fix all calls to update_ERRNO_string.
1401
1402 * filefuncs.c, fnmatch.c, fork.c, ordchr.c, readfile.c, rwarray.c,
1403 time.c: Translate strings.
1404
1405 2012-07-20 Arnold D. Robbins <[email protected]>
1406
1407 * filefuncs.3am, fnmatch.3am, ordchr.3am, readfile.3am:
1408 new files.
1409
1410 2012-07-16 Arnold D. Robbins <[email protected]>
1411
1412 * fnmatch.c: Simplify flag table.
1413
1414 2012-07-15 Arnold D. Robbins <[email protected]>
1415
1416 * testext.c (test_scalar): New function and new tests.
1417 (init_testext): Add a new variable.
1418
1419 2012-07-13 Arnold D. Robbins <[email protected]>
1420
1421 * filefuncs.c (fill_stat_array): New function to do the work
1422 for stat.
1423 (do_stat): Call it.
1424
1425 2012-07-12 Arnold D. Robbins <[email protected]>
1426
1427 * fnmatch.c: New file.
1428 * Makefile.am: Build fnmatch extension.
1429 * configure.ac: Look for fnmatch.h and fnmatch function.
1430
1431 * fnmatch.c (init_fnmatch): Use sym_constant for FNM_NOMATCH.
1432 * testext.c (dl_load): Use sym_constant for answer_num.
1433
1434 * testext.c (init_testext): Move extra code to here.
1435 (init_func): Change to point to init_testext.
1436 (dl_load): Deleted.
1437 (dl_load_func): Use the macro.
1438
1439 2012-07-11 Arnold D. Robbins <[email protected]>
1440
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
1448 them back in.
1449
1450 All files: Add null 'init_func' file pointer for dl_load_func
1451 to work.
1452
1453 2012-07-09 Arnold D. Robbins <[email protected]>
1454
1455 * filefuncs.c (do_readfile): Return "" and set ERRNO on error
1456 instead of returning -1. Per suggestion from Andrew Schorr.
1457
1458 2012-07-08 Arnold D. Robbins <[email protected]>
1459
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
1465 API.
1466 (fill_in_array): Ditto. Change parameter name to new_array.
1467
1468 2012-06-29 Arnold D. Robbins <[email protected]>
1469
1470 * ordchr.c (do_ord, do_chr): Improve argument checking and
1471 lint messages.
1472
1473 2012-06-25 Arnold D. Robbins <[email protected]>
1474
1475 * Makefile.am (EXTRA_DIST): Remove *.awk.
1476 * rwarray.awk: Moved to test directory.
1477
1478 2012-06-24 Arnold D. Robbins <[email protected]>
1479
1480 * Makefile.am: Enable rwarray extension.
1481 * rwarray.c: Redone to use new API.
1482 * rwarray.awk: Revamped for new version.
1483
1484 2012-06-21 Arnold D. Robbins <[email protected]>
1485
1486 * testext.c (test_array_elem): Add a subarray.
1487 (test_array_flatten): Removed: Tests done elsewhere.
1488
1489 2012-06-20 Arnold D. Robbins <[email protected]>
1490
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.
1494
1495 2012-06-19 Arnold D. Robbins <[email protected]>
1496
1497 * testext.c (dump_array_and_delete): Renamed from dump_array.
1498 Get second parameter which is index to delete. Update awk test.
1499
1500 2012-06-18 Arnold D. Robbins <[email protected]>
1501
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.
1509
1510 2012-06-17 Arnold D. Robbins <[email protected]>
1511
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.
1523
1524 2012-06-14 Andrew J. Schorr <[email protected]>
1525
1526 * time.c (RETURN): Remove obsolete define.
1527 (do_sleep): Change update_ERRNO_str argument to request translation.
1528
1529 2012-06-12 Arnold D. Robbins <[email protected]>
1530
1531 Revise API:
1532
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.
1542
1543 Work on testext.c:
1544
1545 * Makefile.am: Add stuff to make testext. Remove doit and steps
1546 from EXTRA_DIST.
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.
1550
1551 2012-06-10 Andrew J. Schorr <[email protected]>
1552
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.
1557
1558 2012-06-10 Andrew J. Schorr <[email protected]>
1559
1560 * Makefile.am: Remove comment referring to deleted test extensions
1561 arrayparm, dl (zaxxon) and testarg.
1562
1563 2012-06-10 Andrew J. Schorr <[email protected]>
1564
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.
1568
1569 2012-06-06 Arnold D. Robbins <[email protected]>
1570
1571 * filefuncs.c (do_stat): Make `type' const char *.
1572
1573 * testext.c: Functions renamed, some of them filled in. Corresponding
1574 awk code for each test added inline.
1575
1576 2012-05-30 Arnold D. Robbins <[email protected]>
1577
1578 * testext.c: New file. Outline of tests for extension API.
1579
1580 2012-05-29 Arnold D. Robbins <[email protected]>
1581
1582 * filefuncs.c: Further cleanup and condensation of code into tables.
1583 * fork.c, ordchr.c, readfile.c: Update copyright, general cleanup.
1584
1585 2012-05-25 Arnold D. Robbins <[email protected]>
1586
1587 * filefuncs.c (array_set_numeric): Don't return a value from
1588 a void function.
1589
1590 2012-05-24 Andrew J. Schorr <[email protected]>
1591
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.
1601
1602 2012-05-21 Andrew J. Schorr <[email protected]>
1603
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
1607 directory.
1608 * AUTHORS, COPYING, INSTALL, NEWS, README: Added files to make automake
1609 happy.
1610 * aclocal.m4, configure, configh.in: Added autoconf files.
1611 * build-aux, m4: New subdirectories for autoconf stuff.
1612
1613 2012-05-15 Arnold D. Robbins <[email protected]>
1614
1615 * filefuncs2.c: New file implementing chdir and stat using the
1616 new interface.
1617
1618 Everything else is temporarily broken.
1619
1620 2012-05-13 Andrew J. Schorr <[email protected]>
1621
1622 * filefuncs.c (array_set): Add a comment discussing the use of unref
1623 on the value returned by assoc_lookup.
1624
1625 2012-05-13 Andrew J. Schorr <[email protected]>
1626
1627 * xreadlink.[ch]: Remove unused files.
1628
1629 2012-05-11 Arnold D. Robbins <[email protected]>
1630
1631 Sweeping change: Use `bool', `true', and `false' everywhere.
1632
1633 2012-04-11 Andrew J. Schorr <[email protected]>
1634
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.
1638
1639 2012-04-07 Andrew J. Schorr <[email protected]>
1640
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.
1646
1647 2012-04-02 Andrew J. Schorr <[email protected]>
1648
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.
1652
1653 2012-04-01 Andrew J. Schorr <[email protected]>
1654
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.
1660
1661 2012-03-25 Andrew J. Schorr <[email protected]>
1662
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.
1666
1667 2012-03-25 Andrew J. Schorr <[email protected]>
1668
1669 * .gitignore: New file to ignore files created by libtool (including
1670 binaries and associated metadata).
1671
1672 2012-03-21 Andrew J. Schorr <[email protected]>
1673
1674 * Makefile.am (INCLUDES): Remove -I$(top_srcdir)/intl.
1675
1676 2012-03-20 Andrew J. Schorr <[email protected]>
1677
1678 * Makefile.am: New file to build and install shared libraries.
1679 * arrayparm.c (do_mkarray): Get it to compile by removing 2nd arg
1680 to assoc_clear.
1681 * filefuncs.c (do_stat): Ditto.
1682
1683 2011-08-31 John Haque <[email protected]>
1684
1685 * arrayparm.c, filefuncs.c, fork.c, ordchr.c, readfile.c,
1686 rwarray.c, testarg.c: Updated.
1687
1688 2012-03-28 Arnold D. Robbins <[email protected]>
1689
1690 * 4.0.1: Release tar ball made.
1691
1692 2011-06-23 Arnold D. Robbins <[email protected]>
1693
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.