aboutsummaryrefslogtreecommitdiffstats
path: root/extension/filefuncs.c
Commit message (Collapse)AuthorAgeFilesLines
* Add stat blocksize of 4096 for Windows.Arnold D. Robbins2013-05-161-0/+2
|
* Fix building, installing, and testing extensions on MS-Windows.Eli Zaretskii2013-05-141-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test/Makefile.in (mpfr-tests, shlib-tests): Add a blank character between ' and /FOO/ in Gawk command lines, for the benefit of testing under MSYS Bash. test/filefuncs.awk (BEGIN): Call 'stat' on gawkapi.o, not on gawk, which does not exist on systems that produce gawk.exe. README_D/README.pc: Update the pc build and test instructions. pc/Makefile.tst (AWK): Set AWKLIBPATH so extensions could be found. (LS): New variable. (check): Add back shlib-tests and shlib-msg-end. (readdir): Add a warning regarding inode reporting by ls.exe. (fts, fork, fork2): Add message about expected failure on MinGW. pc/Makefile (install): Install the extensions. (install-strip): Likewise. pc/Makefile.ext: New file. io.c (devopen) [__EMX__ || __MINGW32__]: Produce EISDIR on MinGW when an attempt to open() a directory fails. (two_way_open) [__EMX__ || __MINGW32__]: When trying to open() a directory fails with EISDIR, assign FAKE_FD_VALUE to the file descriptor and attributes of a directory to its mode bits. This is needed to support the readdir extension. gawkapi.h (FAKE_FD_VALUE): New macro, used in io.h and in extension/gawkdirfd.h. extension/rwarray.c [__MINGW32__]: Include winsock2.h instead of arpa/inet.h. extension/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. extension/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. extension/gawkdirfd.h (ENOTSUP): Define to ENOSYS if not already defined. (DIR_TO_FD): If not defined yet, define to FAKE_FD_VALUE. extension/filefuncs.c (get_inode) [_WIN32]: New function, produces the file index used on Windows as its inode. (fill_stat_array) [_WIN32]: Use it.
* Update copyrights in all relevant source files.Arnold D. Robbins2013-04-161-1/+1
|
* Minor bugfix in filefuncs.c for Win 32.Arnold D. Robbins2013-03-041-1/+1
|
* Fixes to extensions for Win 32.Arnold D. Robbins2013-02-111-0/+31
|
* More portability.Arnold D. Robbins2013-01-221-0/+2
|
* Remove sym_constant() API and tests.Arnold D. Robbins2012-12-251-2/+2
|
* Add awk_true and awk_false to API.Arnold D. Robbins2012-11-301-4/+4
|
* Add 3rd argument to stat() extension.Arnold D. Robbins2012-11-211-4/+10
|
* API doc additions and related other edits.Arnold D. Robbins2012-10-261-4/+4
|
* Bug fix in do_stat().Arnold D. Robbins2012-10-211-0/+3
|
* More wonderful portability stuff in the extensions.Arnold D. Robbins2012-08-291-19/+2
|
* Use config.h properly. Add AC_SYS_LARGEFILE.Arnold D. Robbins2012-08-261-1/+4
|
* Add facility to get vesion info from extensions.Arnold D. Robbins2012-08-241-0/+1
|
* Add fts() extension, support, doc, and test.Arnold D. Robbins2012-08-081-34/+395
|
* Add translation to the extensions.Arnold D. Robbins2012-07-251-3/+7
|
* Refactoring filefuncs.c before fts changes.Arnold D. Robbins2012-07-131-28/+38
|
* Add ability to call an initialization routine.Arnold D. Robbins2012-07-111-0/+1
|
* API clean up and require strings to be malloced.Arnold D. Robbins2012-07-111-5/+5
|
* API: Update set_array_element(). Adjust extensions.Arnold D. Robbins2012-07-091-7/+4
|
* Get most of array flattening done.Arnold D. Robbins2012-06-181-1/+1
|
* Still more API and testext.c work.Arnold D. Robbins2012-06-171-0/+5
|
* Further cleanups and improvements in API.Arnold D. Robbins2012-06-121-7/+7
|
* Minor fixes for printf compile warnings.Arnold D. Robbins2012-06-061-1/+1
|
* Further API work.Arnold D. Robbins2012-05-291-100/+87
|
* Additional changes / some cleanups.Arnold D. Robbins2012-05-251-1/+1
|
* First working version of new API mechanism (probably has memory leaks).Andrew J. Schorr2012-05-241-103/+118
|
* Add comment to extension/filefuncs.c discussing unref on value from ↵Andrew J. Schorr2012-05-131-0/+7
| | | | assoc_lookup.
* Move to use of bool type, true, false, everywhere.Arnold D. Robbins2012-05-111-3/+3
|
* Set array elements properly in stat() extension.Andrew J. Schorr2012-04-111-74/+36
|
* Extension enhancements and tests.Andrew J. Schorr2012-04-071-13/+60
|
* Update ERRNO API.Andrew J. Schorr2012-04-011-2/+2
|
* - Add new environment variable AWKLIBPATH to use when searching for sharedAndrew J. Schorr2012-03-201-1/+1
| | | | | | | | libraries. - Instead of hardcoding the default ".so" suffix for shared libraries, use autoconf to get the right value for this platform. - Build and install some of the bundled shared library extensions so that they will now be available using the default AWKLIBPATH.
* Speed/memory performance improvements.john haque2011-10-121-22/+22
|
* Lots of documentation updates.Arnold D. Robbins2011-03-311-1/+1
|
* Filefuncs bug fix. Finish doc index.Arnold D. Robbins2011-01-131-7/+10
|
* Lots more doc updates.Arnold D. Robbins2011-01-021-7/+4
|
* Add check for plugin license, make close on exec POSIX compatibile.Arnold D. Robbins2010-11-241-0/+2
|
* Bring latest byte code gawk into git. Hurray!Arnold D. Robbins2010-11-181-46/+48
|
* Move to gawk-3.1.6.Arnold D. Robbins2010-07-161-1/+1
|
* Move to gawk 3.1.5.Arnold D. Robbins2010-07-161-9/+11
|
* Move to gawk-3.1.4.Arnold D. Robbins2010-07-161-23/+14
|
* Move to gawk-3.1.3.Arnold D. Robbins2010-07-161-0/+2
|
* Move to gawk-3.1.0.Arnold D. Robbins2010-07-161-0/+339