2014-04-04 Arnold D. Robbins * time.c: Include unconditionally to get declaration of nanosleep on Linux. Avoids a warning. Thanks to Michal Jaegermann. 2014-03-31 Arnold D. Robbins * configure.ac: Remove -Wextra to avoid killing compilations on older versions of gcc. Thanks to Antonio Diaz Diaz for the report. 2014-03-28 Arnold D. Robbins * configure.ac: Add AC_HEADER_TIME and AC_HEADER_DIRENT, and rearrange order of macros some. May help on older systems. 2014-03-27 Arnold D. Robbins * readfile.c: Add an input parser that works off of PROCINFO["readfile"]. * readfile.3am: Document same. 2014-03-23 Arnold D. Robbins * gawkfts.c (MAXPATHLEN): Add a default definition. Thanks to Antonio Diaz Dian and Nelson H.F. Beebe. * readdir.c (PATH_MAX): Add a default definition. Thanks to Nelson H.F. Beebe. 2014-03-08 Andrew J. Schorr * filefuncs.c (read_symlink, do_fts): Replace free with gawk_free. * inplace.c (at_exit, do_inplace_end): Ditto. * readdir.c (dir_close): Ditto. * readfile.c (do_readfile): Ditto. * revtwoway.c (close_two_proc_data): Ditto. * rwarray.c (read_elem): Replace realloc with gawk_realloc. (read_value): Replace malloc and free with gawk_malloc and gawk_free. * testext.c (try_modify_environ): Replace free with gawk_free. 2014-02-12 John E. Malmberg * time.c: Better hack for nanosleep bug based on feedback from HP. 2013-12-29 John E. Malmberg * filefuncs.c: Fix compile on VMS. * time.c: Fix compile on VMS. 2013-12-29 Arnold D. Robbins * gawkfts.c: Wrap include of in HAVE_SYS_PARAM_H, as I should have done to start with. For VMS. 2013-12-29 John E. Malmberg * gawkdirfd.h: Adjust include for VMS. * filefuncs.c: Make it compile on VMS. * fnmatch.c: Make it compile on VMS. 2013-12-21 Mike Frysinger * configure.ac: Remove MirBSD and OS/390 hack to create do-nothing Makefile. Should be handled by configure in the parent directory. 2013-12-21 Arnold D. Robbins * configure, aclocal.m4: Updated to automake 1.13.4 and libtool 2.4.2.418. 2013-11-28 Arnold D. Robbins * Makefile.am (uninstall-so, uninstall-recursive): Remove the .so files. Keeps make distcheck happy. 2013-11-17 Dmitry V. Levin * Makefile.am (dist_man_MANS): Add inplace.3am. 2013-10-23 Michael Haubenwallner Fix portability for AIX. * inplace.c (_XOPEN_SOURCE): Define when not defined yet. (_XOPEN_SOURCE_EXTENDED): Ditto. Needs to define a number. 2013-08-22 Arnold D. Robbins Clean up some warnings from -Wextra. * gawkfts.c (fts_set): Add cast to void for sp. * inplace.c (at_exit): Add cast to void for data and exit_status. * readdir.c (ftype): Add cast to void for dirname. (dir_get_record): Assign NULL to *rt_start. * revtwoway.c (rev2way_get_record): Add cast to void for errcode. (rev2way_fwrite): Add cast to void for fp. (rev2way_take_control_of): Add cast to void for name. * testext.c (test_array_param, test_scalar, test_scalar_reserved, test_indirect_vars): Add cast to void for nargs. 2013-08-20 Arnold D. Robbins * gawkdirfd.h: Include ../nonposix.h to get FAKE_FD_VALUE. 2013-08-06 Arnold D. Robbins * filefuncs.c: Change _WIN32 to __MINGW32__ globally, per Eli Zaretskii. 2013-08-02 Arnold D. Robbins * filefuncs.c (do_fts): Add a version for _WIN32 that prints a "not supported" fatal message. This is slightly better than the "fts not found" which is otherwise produced. 2013-07-24 Arnold D. Robbins * gawkdirfd.h (FAKE_FD_VALUE): Move definition up in the file to give clean compile on MinGW. 2013-06-10 Arnold D. Robbins * configure.ac (AC_HEADER_MAJOR): New macro added. Add check for limits.h header. * filefuncs.c: Add the right stuff to get the major/minor macros. * readdir.c: Add include of limits.h appropriately wrapped. Thanks to ICHII Takashi for the reports and pointers. 2013-06-01 Eli Zaretskii * filefuncs.c [_WIN32]: Define WIN32_LEAN_AND_MEAN before including windows.h. * readdir.c [__MINGW32__]: Define WIN32_LEAN_AND_MEAN before including windows.h. * filefuncs.c [HAVE_GETSYSTEMTIMEASFILETIME]: Define WIN32_LEAN_AND_MEAN before including windows.h. 2013-05-29 Arnold D. Robbins * configure.ac: Add header check. * filefuncs.c: Include if there. (device_blocksize): New function. (fill_stat_array): Call it. 2013-05-27 Arnold D. Robbins * configure.ac (AC_STRUCT_ST_BLKSIZE): Replaced with call to AC_CHECK_MEMBERS. * filefuncs.c (fill_stat_array): Change test from ifdef HAVE_ST_BLKSIZE to HAVE_STRUCT_STAT_ST_BLKSIZE. 2013-05-20 Arnold D. Robbins * gawkdirfd.h [FAKE_FD_VALUE]: Copied here from ../gawkapi.h. 2013-05-16 Andrew J. Schorr * Makefile.am (install-data-hook): Remove .la files installed by Automake. Leaves less clutter, if not (yet) less noise. 2013-05-16 Arnold D. Robbins * filefuncs.c (fill_stat_array): For _WIN32 use a blocksize of 4096 for the "blksize" element, per Eli Zaretskii. * configure.ac [AC_STRUCT_ST_BLKSIZE]: Add call that was missing. ARGH!!!! 2013-05-14 Eli Zaretskii * rwarray.c [__MINGW32__]: Include winsock2.h instead of arpa/inet.h. * readdir.c [__MINGW32__]: Include windows.h. Include gawkapi.h before gawkdirfd.h, since the former defines FAKE_FD_VALUE needed by the latter. (ftype): Accept an additional argument, the directory that is being read. Callers changed. [!DT_BLK]: Produce the file's type by calling 'stat' on it, if the dirent structure doesn't provide that. (get_inode): New function, to produce inode values on MS-Windows. (dir_get_record): Use it. * inplace.c (chown, link) [__MINGW32__]: Redirect to existing library functions. (mkstemp) [__MINGW32__]: New function, for MinGW, which doesn't have it in its library. (do_inplace_end) [__MINGW32__]: Remove the old file before renaming the new, since 'rename' on Windows cannot overwrite existing files. * gawkdirfd.h (ENOTSUP): Define to ENOSYS if not already defined. (DIR_TO_FD): If not defined yet, define to FAKE_FD_VALUE. * filefuncs.c (get_inode) [_WIN32]: New function, produces the file index used on Windows as its inode. (fill_stat_array) [_WIN32]: Use it. 2013-05-09 Arnold D. Robbins * 4.1.0: Release tar ball made. 2013-04-18 Arnold D. Robbins * configure.ac: Update copyright. For z/OS: If uname output is OS/390, just blast the Makefile, same as for MirBSD. 2013-04-17 Corinna Vinschen * Makefile.am (MY_LIBS): Use $(LTLIBINTL) since we use libtool, not LIBINTL. 2013-04-16 Arnold D. Robbins * filefuncs.c, fnmatch.c, fork.c, ordchr.c, readdir.c, readfile.c, revoutput.c, revtwoway.c, rwarray.c, rwarray0.c, stack.c, stack.h, testext.c, time.c: Update copyright year. Update to automake 1.13.1: * configure, Makefile.in, aclocal.m4: Regenerated. 2013-03-24 Arnold D. Robbins * gawkdirfd.h: Improve test for doing own dirfd function. Needed for IRIX. 2013-03-20 Arnold D. Robbins * configure.ac: Add AC_OUTPUT_COMMANDS that drops in a do-nothing Makefile for MirBSD, since the extensions can't be built on MirBSD. * configure: Regenerated. * Makefile.am (check-for-shared-lib-support): Update comment some. * gawkfts.c (MAX): Provide for systems that don't (Solaris). 2013-03-04 Arnold D. Robbins * filefuncs.c (fill_stat_array): Adjust computation for block count for WIN32 systems after consultation with Eli Zaretskii. 2013-02-26 Arnold D. Robbins * Makefile.am (check-recursive, all-recursive): Make dependant upon check-for-shared-lib-support. (check-for-shared-lib-support): New target. If gawk doesn't have the API built-in, don't try to build. 2013-02-11 Arnold D. Robbins * fnmatch.c: Pull in versions of C routine from missing_d if the native system doesn't provide them. 2013-02-11 Eli Zaretskii * filefuncs.c (S_ISLNK, lstat, readlink, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, major, minor): Define if needed. (fill_stat_array, init_filefuncs, func_table): Fix for Win 32. * time.c: Port to Win 32. 2013-01-27 Arnold D. Robbins * gawkdirfd.h: New file. * Makeile.am (filefuncs_la_SOURCES, readdir_la_SOURCES): Use it. * gawkfts.c, readdir.c: Include gawkdirfd.h. * configure.ac (AC_USE_SYSTEM_EXTENSIONS): Added. (GAWK_FUNC_DIRFD, GAWK_PREREQ_DIRFD): New calls. (.developing): Fix check. * alocal.m4: Updated. * configure: Regenerated. * gawkdirfd.h: Fixed for Mac OS X also. 2013-01-25 Arnold D. Robbins * gawkfts.c: Make include of be unconditional. 2013-01-22 Arnold D. Robbins Improve portability. We hope. * gawkfts.c (S_ISREG): Define macro if not defined. (_BSD_SOURCE): Define for use with c99 compiler driver. * inplace.c (S_ISREG): Define macro if not defined. (_XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED): Define for use with c99 compiler driver. * filefuncs.c (_BSD_SOURCE): Define for use with c99 compiler driver. * readfile.c (_BSD_SOURCE): Define for use with c99 compiler driver. * revtwoway.c (_BSD_SOURCE): Define for use with c99 compiler driver. 2013-01-18 Arnold D. Robbins * readfile.c (do_readfile): Free `text' if read fails. Thanks to cppcheck. * inplace.c (do_inplace_begin): Check chown return value in an if to shut up compiler warning. 2013-01-15 Arnold D. Robbins * inplace.3am: New file. * filefuncs.3am, fnmatch.3am, fork.3am, ordchr.3am, readdir.3am, readfile.3am, revoutput.3am, revtwoway.3am, rwarray.3am, time.3am: Update copyright dates, add reference to inplace(3am). * inplace.c (do_inplace_begin): Remove unused variable `p'. 2013-01-10 Andrew J. Schorr * inplace.c (do_inplace_begin): No need to get the 2nd suffix argument, since it is not currently used in this function. 2013-01-08 Andrew J. Schorr * inplace.c: New extension to implement in-place editing. * Makefile.am: Add inplace extension. 2012-12-25 Arnold D. Robbins * filefuncs.3am, fnmatch.3am: Predefined variables are no longer constants. * filefuncs.c (init_filefuncs): Use sym_update() instead of sym_constant(). * fnmatch.c (init_fnmatch): Ditto. * testext.c (init_testext): Ditto. 2012-12-24 Arnold D. Robbins * 4.0.2: Release tar ball made. 2012-12-19 Arnold D. Robbins * testext.c (test_indirect_vars): New test and awk code. 2012-12-02 Arnold D. Robbins * Makefile.am (EXTRA_DIST): Add README.fts. 2012-11-30 Arnold D. Robbins * filefuncs.c readdir.c, revoutput.c, revtwoway.c, rwarray.c, rwarray0.c, testext.c: Use awk_true and awk_false instead of 1 and 0. 2012-11-26 Arnold D. Robbins * bindarr.c, fileop.c, sparr.c: Make them compile. * steps: Reinstated and updated. * testsparr.awk: Add call to extension(). 2011-05-03 John Haque * fileop.c, record.awk, testrecord.sh: New files. * steps: Updated. 2011-05-02 John Haque * bindarr.c, dbarray.awk, testdbarray.awk: New files. * steps: Updated. 2011-04-24 John Haque * spec_array.c, spec_array.h, sparr.c, testsparr.awk: New files. * steps: Updated. 2012-11-21 Arnold D. Robbins * filefuncs.c (do_stat): Optional third argument indicates to use stat(2) instead of lstat(2). * filefuncs.3am: Document same. 2012-11-19 Arnold D. Robbins * readdir.c: Simplify code to always print file type and not use stat(). * readdir.3am: Document same. 2012-11-16 Arnold D. Robbins * testext.c: In awk code, use printf(...) instead of the form without parentheses everywhere. This makes Nelson happy. 2012-11-14 Andrew J. Schorr Bug fix for filesystems without d_type in directory entry. * readdir.c (open_directory_t): Add more fields for path. (ftype): Take open_directory_t argument. Build the full path for lstat. Adjust calls. (dir_close): Free the storage. (dir_take_control_of): Allocate storage for the path. 2012-11-06 Arnold D. Robbins * configure.ac: Add check for $srcdir/.developing as in the main directory's configure.ac. 2012-11-04 Arnold D. Robbins * rwarray.3am: Minor edits. 2012-10-28 Arnold D. Robbins * Makefile.am (dist_man_MANS): Update the list. 2012-10-26 Arnold D. Robbins * revtwoway.3am: Clean up example. * revtwoway.c: Minor cleanup (add translation calls). 2012-10-24 Arnold D. Robbins * revtwoway.3am: New file. 2012-10-21 Arnold D. Robbins * filefuncs.c (do_stat): Always clear the array. 2012-10-14 Arnold D. Robbins * readdir.c, revoutput.c, revtwoway.c: Adjust for name change of IOBUF_PUBLIC to awk_input_buf_t. Additional sanitizing in revoutput.c to use `revoutput' everywhere instead of `revout'. * revoutput.3am: New file. * filefuncs.3am, fnmatch.3am, fork.3am, ordchr.3am, readdir.3am, readfile.3am, rwarray.3am, time.3am: Add ref to revoutput(3am). 2012-10-11 Arnold D. Robbins * textext.c (try_modify_environ): Save array cookie in a separate variable so it isn't clobbered. Thanks to Andrew Schorr, by way of valgrind, for finding the bug. 2012-09-14 Arnold D. Robbins * testext.c (try_modify_environ): New function and test. (var_test): Modified ARGC test, added additional. (test_scalar_reserved): New function and test. (try_modify_environ): Don't print count of ENVIRON elements. 2012-09-13 Dave Pitts * gawkfts.c: Add defines and ifdefs for z/OS. * gawkfts.h: Add defines and ifdefs for z/OS. Fix // comments. * readdir.c (dir_get_record): Adjust sprintf format for z/OS. * rwarray.c: Add defines and ifdefs for z/OS. Fix // comments. 2012-09-11 Arnold D. Robbins * readdir.c (do_readdir_do_ftype): Set ERRNO for bad arguments. * readdir.3a: Document same, minor fixes. 2012-09-07 Akim Demaille * extension/gawkfts.h (__THROW): Define if it is not. Copied from getopt.h. * extension/gawkfts.c (fts_alloc): Since FTSENT.fts_statp is defined as a struct stat*, use that type for casts instead of the undefined __fts_stat_t type. 2012-09-07 Arnold D. Robbins * readdir.c, readdir.3am: Change argument to readdir_do_ftype() to be a string. Update the doc accordingly. * gawkfts.h: Add explanatory comment before defines of API names towards the end. Thanks to Eli Zaretskii for the suggestion. 2012-08-28 Andrew J. Schorr * readdir.c: Have three states, 0, 1, 2 for never, fallback, and always. * readdir.3am: Adjust appropriately. 2012-08-29 Arnold D. Robbins Make fts work everywhere by using our own source. * README.fts, gawkfts.c, gawkfts.h, fts.3: New files. * Makefile.am (filefuncs_la_SOURCES, EXTRA_DIST): Adjust. * configure.ac: Remove check for fts.h and fts_XXX functions. * filefuncs.c: Remove various ifdefs, change includes around. 2012-08-28 Andrew J. Schorr * Makefile.am: Rename man_MANS to dist_man_MANS to include the man pages in the distribution tarball. 2012-08-26 Arnold D. Robbins * configure.ac (AC_SYS_LARGEFILE): Added. Needed for consistency with gawk, to get the same size struct stat everywhere. * filefuncs.c, fnmatch.c, fork.c, ordchr.c, readdir.c, readfile.c, revoutput.c, revtwoway.c, rwarray.c, rwarray0.c, testext.c, time.c: Move include of config.h to top (or add it!) 2012-08-24 Arnold D. Robbins * filefuncs.c, fnmatch.c, fork.c, ordchr.c, readdir.c, readfile.c, revoutput.c, revtwoway.c, rwarray.c, rwarray0.c, testext.c, time.c: Add ext_version string. 2012-08-23 Arnold D. Robbins * revoutwoway.c: New testing extension for two way processor. * Makefile.am: Build revtwoway extension. * readdir.c: Fix to fall back to stat if d_type is 'u' and do_ftype is one. * readdir.3am: Revise doc that some GNU/Linux filesystems don't support d_type. 2012-08-22 Arnold D. Robbins * revoutput.c: New testing extension for output wrapper. * Makefile.am: Build revoutput extension. 2012-08-08 Arnold D. Robbins Add fts() to filefuncs. * filefuncs.3am: Update doc. * filefuncs.c: Lots of new code. * configure.ac: Add checks for appropriate headers and functions. * stack.h, stack.c: New files. * Makefile.am: Update list of files. * readdir.c (dir_can_take_file): Use members in iobuf. * rwarray.c (do_writea): Initialize fp to NULL. * filefuncs.3am, fnmatch.3am, fork.3am, ordchr.3am, readdir.3am, readfile.3am, rwarray.3am, time.3am: Updated. 2012-08-03 Andrew J. Schorr * readdir.c (dir_get_record): Fix for systems where ino_t is 64 bit even on 32 bit systems (cygwin). 2012-08-01 Arnold D. Robbins * Makefile.am (man_MANS): Add man page files so that they get installed. * rwarray.3am: New file. * fnmatch.3am, fork.3am, time.3am: Revised. 2012-07-31 Arnold D. Robbins * rwarray0.c: Renamed from rwarray.c. * rwarray.c: New file using stdio instead of system calls, works on cygwin. 2012-07-30 Arnold D. Robbins * ABOUT-NLS: New file. * Makefile.am, configure.ac: Revised for gettext. * fork.3am, readdir.3am, time.3am: New files. * filefuncs.3am, fnmatch.3am, ordchr.3am, readfile.3am: Revised. 2012-07-29 Andrew J. Schorr * readdir.c (dir_get_record): Adjust to new interface for RT. 2012-07-29 Arnold D. Robbins * readdir.c (dir_take_control_of): Print error message and set ERRNO if failure. Adjust count of max digits. 2012-07-27 Andrew J. Schorr * Makefile.am (*_la_LIBADD): Need to link with $(LIBINTL) for gettext to work on platforms where it is not included in libc. 2012-07-27 Andrew J. Schorr * readdir.c (dir_get_record): Need to set errno to 0 before calling readdir, since readdir sets errno only on failure, not on EOF. 2012-07-27 Andrew J. Schorr * readdir.c (dir_get_record): If readdir fails, set errcode. Otherwise, don't bother to set errcode. 2012-07-27 Arnold D. Robbins * readdir.c (dir_take_control_of): Fix typo for case where we don't have fopendir (e.g., Mac OS X 10.5). 2012-07-26 Arnold D. Robbins * configure.ac: Extremely crude hack to get the value of ENABLE_NLS so that gettext will work in extensions. * readdir.c (dir_get_record): Call set_RT. (dir_can_take_file): Make parameter const. * testext.c (valrep2str): Add AWK_VALUE_COOKIE. * readdir.c: Add readdir_do_ftype function for systems without dirent->d_type. Clean up buffer handling. 2012-07-26 Andrew J. Schorr * readdir.c (dir_get_record): No need to set *errcode to 0. (dir_take_control_of): Remove some paranoia -- no need to test for NULL iobuf, and no need to check dir_can_take_file again. 2012-07-25 Arnold D. Robbins * readdir.c: New file. * Makefile.am (readdir): New extension. * time.c: Fix all calls to update_ERRNO_string. * filefuncs.c, fnmatch.c, fork.c, ordchr.c, readfile.c, rwarray.c, time.c: Translate strings. 2012-07-20 Arnold D. Robbins * filefuncs.3am, fnmatch.3am, ordchr.3am, readfile.3am: new files. 2012-07-16 Arnold D. Robbins * fnmatch.c: Simplify flag table. 2012-07-15 Arnold D. Robbins * testext.c (test_scalar): New function and new tests. (init_testext): Add a new variable. 2012-07-13 Arnold D. Robbins * filefuncs.c (fill_stat_array): New function to do the work for stat. (do_stat): Call it. 2012-07-12 Arnold D. Robbins * fnmatch.c: New file. * Makefile.am: Build fnmatch extension. * configure.ac: Look for fnmatch.h and fnmatch function. * fnmatch.c (init_fnmatch): Use sym_constant for FNM_NOMATCH. * testext.c (dl_load): Use sym_constant for answer_num. * testext.c (init_testext): Move extra code to here. (init_func): Change to point to init_testext. (dl_load): Deleted. (dl_load_func): Use the macro. 2012-07-11 Arnold D. Robbins * filefuncs.c (array_set, do_stat): Use make_const_string. * fork.c (array_set_numeric): Ditto. * ordchr.c (do_chr): Ditto. * readfile.c (do_readfile): Use make_null_string, make_malloced_string. * rwarray.c (read_elem): Ditto. * testext.c (valrep2str): Add case for AWK_SCALAR. (test_array_elem): Duplicate strings coming from gawk before passing them back in. All files: Add null 'init_func' file pointer for dl_load_func to work. 2012-07-09 Arnold D. Robbins * filefuncs.c (do_readfile): Return "" and set ERRNO on error instead of returning -1. Per suggestion from Andrew Schorr. 2012-07-08 Arnold D. Robbins * filefuncs.c (array_set): Adjust for change in set_array_element API. * fork.c (array_set_numeric): Ditto. * rwarray.c (read_array): Use set_array_element_by_elem. (read_value): Add a cast to silence a compiler warning. * testext.c (test_array_elem): Adjust for change in set_array_element API. (fill_in_array): Ditto. Change parameter name to new_array. 2012-06-29 Arnold D. Robbins * ordchr.c (do_ord, do_chr): Improve argument checking and lint messages. 2012-06-25 Arnold D. Robbins * Makefile.am (EXTRA_DIST): Remove *.awk. * rwarray.awk: Moved to test directory. 2012-06-24 Arnold D. Robbins * Makefile.am: Enable rwarray extension. * rwarray.c: Redone to use new API. * rwarray.awk: Revamped for new version. 2012-06-21 Arnold D. Robbins * testext.c (test_array_elem): Add a subarray. (test_array_flatten): Removed: Tests done elsewhere. 2012-06-20 Arnold D. Robbins * testext.c (fill_in_array): New function. (create_new_array): Most code moved into fill_in_array. (test_array_param): New function. 2012-06-19 Arnold D. Robbins * testext.c (dump_array_and_delete): Renamed from dump_array. Get second parameter which is index to delete. Update awk test. 2012-06-18 Arnold D. Robbins * filefuncs.c (do_chdir): Change element use to match change types. * fork.c (array_set_numeric): Ditto. * testext.c (valrep2str): New function. (test_array_elem): Add AWK_UNDEFINED for `wanted'. Use valrep2str. Adjust use of element index. (dump_array): Renamed from `dump_procinfo' and implemented. (func_table): Updated. 2012-06-17 Arnold D. Robbins * filefuncs.c (do_chdir, do_stat): Add assert(result != NULL). * fork.c (do_fork, do_waitpid, do_wait): Ditto. * ordchr.c (do_ord, do_chr): Ditto. * readfile.c (do_readfile): Ditto. * time.c (do_gettimeofday, do_sleep): Ditto. * testext.c (All functions): Ditto. Clean up initial testing and use make_number to make default return value up front. (create_new_array, test_array_flatten): New functions. (test_array_elem): Implemented. (at_exit1): Don't printa actual pointer value: not portable. (dl_load): Load up an array also. 2012-06-14 Andrew J. Schorr * time.c (RETURN): Remove obsolete define. (do_sleep): Change update_ERRNO_str argument to request translation. 2012-06-12 Arnold D. Robbins Revise API: * filefuncs.c (do_chdir): Replace get_curfunc_param with get_argument. (format_mode): Use unsigned masks. (do_stat): Replace get_curfunc_param with get_argument. * fork.c (do_fork): Rearrange arg order in call to sym_lookup (do_waitpid): Replace get_curfunc_param with get_argument. * ordchr.c (do_ord, do_chr): Replace get_curfunc_param with get_argument. * readfile.c (do_readfile): Replace get_curfunc_param with get_argument. * time.c (do_sleep): Replace get_curfunc_param with get_argument. Replace set_ERRNO with update_ERRNO_str for no way to sleep case. Work on testext.c: * Makefile.am: Add stuff to make testext. Remove doit and steps from EXTRA_DIST. * testext.c: Fill in many of the test routines. Still more to do. Fix up test scripts for each routine. * time.c (do_sleep): Fix use of get_argument to be boolean. 2012-06-10 Andrew J. Schorr * Makefile.am: Add time extension. * configure.ac: To support time extension, check for some headers and functions that are needed. * time.c: New file implementing sleep and gettimeofday. 2012-06-10 Andrew J. Schorr * Makefile.am: Remove comment referring to deleted test extensions arrayparm, dl (zaxxon) and testarg. 2012-06-10 Andrew J. Schorr * arrayparm.c, dl.c, doit, foo.awk, steps, testarg.awk, testarg.c, testarrayparm.awk, testff.awk, testfork.awk, testordchr.awk: Remove unused (obsolete) files. 2012-06-06 Arnold D. Robbins * filefuncs.c (do_stat): Make `type' const char *. * testext.c: Functions renamed, some of them filled in. Corresponding awk code for each test added inline. 2012-05-30 Arnold D. Robbins * testext.c: New file. Outline of tests for extension API. 2012-05-29 Arnold D. Robbins * filefuncs.c: Further cleanup and condensation of code into tables. * fork.c, ordchr.c, readfile.c: Update copyright, general cleanup. 2012-05-25 Arnold D. Robbins * filefuncs.c (array_set_numeric): Don't return a value from a void function. 2012-05-24 Andrew J. Schorr * Makefile.am (AM_CPPFLAGS): Use $(srcdir) to work properly when built outside the source directory. * configure.ac (INSTALL): Set location manually since autoconf was not specifying the proper path for install-sh. * filefuncs2.c, ordchr2.c, readfile2.c: Deleted. * filefuncs.c: Install filefuncs2.c and patch for recent API changes. * ordchr.c: Install ordchr2.c and patch for recent API changes. * readfile.c: Install readfile2.c and patch for recent API changes. * fork.c: Port to new API. 2012-05-21 Andrew J. Schorr * configure.ac: New file to run configure with libtool support in this subdirectory. * Makefile.am: Some changes related to running automake in this directory. * AUTHORS, COPYING, INSTALL, NEWS, README: Added files to make automake happy. * aclocal.m4, configure, configh.in: Added autoconf files. * build-aux, m4: New subdirectories for autoconf stuff. 2012-05-15 Arnold D. Robbins * filefuncs2.c: New file implementing chdir and stat using the new interface. Everything else is temporarily broken. 2012-05-13 Andrew J. Schorr * filefuncs.c (array_set): Add a comment discussing the use of unref on the value returned by assoc_lookup. 2012-05-13 Andrew J. Schorr * xreadlink.[ch]: Remove unused files. 2012-05-11 Arnold D. Robbins Sweeping change: Use `bool', `true', and `false' everywhere. 2012-04-11 Andrew J. Schorr * filefuncs.c (array_set): New function to set an array element. (do_set): Use new array_set function to reduce code duplication and to make sure the memory management is handled properly. 2012-04-07 Andrew J. Schorr * filefuncs.c: Remove unnecessary #include . (read_symlink): New function to read symbolic links more robustly. (do_stat): Use read_symlink instead of readlink. * fork.c (do_wait): new function. (dlload): Call make_builtin to add "wait" function. 2012-04-02 Andrew J. Schorr * fork.c (do_fork): Test whether PROCINFO_node exists before updating the pid values. And do so properly using make_number. * readfile.c (do_readfile): Function should be static. 2012-04-01 Andrew J. Schorr * filefuncs.c (do_chdir, do_stat): Replace update_ERRNO() with update_ERRNO_int(errno). * fork.c (do_fork, do_waitpid): Ditto. * readfile.c (do_readfile): Ditto. * rwarray.c (do_writea, do_reada): Ditto. 2012-03-25 Andrew J. Schorr * Makefile.am: Major cleanup. Use libtool options -module and -avoid-version to create the modules properly without my local hack to override the default behavior. 2012-03-25 Andrew J. Schorr * .gitignore: New file to ignore files created by libtool (including binaries and associated metadata). 2012-03-21 Andrew J. Schorr * Makefile.am (INCLUDES): Remove -I$(top_srcdir)/intl. 2012-03-20 Andrew J. Schorr * Makefile.am: New file to build and install shared libraries. * arrayparm.c (do_mkarray): Get it to compile by removing 2nd arg to assoc_clear. * filefuncs.c (do_stat): Ditto. 2011-08-31 John Haque * arrayparm.c, filefuncs.c, fork.c, ordchr.c, readfile.c, rwarray.c, testarg.c: Updated. 2012-03-28 Arnold D. Robbins * 4.0.1: Release tar ball made. 2011-06-23 Arnold D. Robbins * ChangeLog.0: Rotated ChangeLog into this file. * ChangeLog: Created anew for gawk 4.0.0 and on. * 4.0.0: Release tar ball made.