aboutsummaryrefslogtreecommitdiffstats
path: root/extension/readdir.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix building, installing, and testing extensions on MS-Windows.Eli Zaretskii2013-05-141-10/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|
* More portability work: dirfd in extensions.Arnold D. Robbins2013-01-271-0/+2
|
* Add awk_true and awk_false to API.Arnold D. Robbins2012-11-301-4/+4
|
* Simplify readdir extension.Arnold D. Robbins2012-11-191-104/+9
|
* Bug fix in readdir extension.Arnold D. Robbins2012-11-141-10/+16
|
* API cleanups and doc additions.Arnold D. Robbins2012-10-141-6/+6
|
* z/OS changes from Dave Pitts and Arnold.Arnold D. Robbins2012-09-131-0/+6
|
* Make readdir set ERRNO more.Arnold D. Robbins2012-09-111-1/+6
|
* Revise readdir_do_ftype() argument.Arnold D. Robbins2012-09-071-12/+21
|
* Improve readdir extension.Arnold D. Robbins2012-08-311-5/+27
|
* Use config.h properly. Add AC_SYS_LARGEFILE.Arnold D. Robbins2012-08-261-3/+4
|
* Add facility to get vesion info from extensions.Arnold D. Robbins2012-08-241-0/+1
|
* Add output and two-way processors to API. Update Mac config stuff.Arnold D. Robbins2012-08-241-11/+13
|
* Move struct stat into IOBUF_PUBLIC.Arnold D. Robbins2012-08-081-5/+1
|
* Fix readdir.c for cygwin.Arnold D. Robbins2012-08-031-7/+5
|
* Update input_parser interface for RT.Arnold D. Robbins2012-07-291-3/+3
|
* Improvements in readdir.c.Arnold D. Robbins2012-07-291-2/+7
|
* Fix last: must initialize errno to 0 before calling readdir.Andrew J. Schorr2012-07-271-0/+4
|
* The readdir extension should set the error code if readdir fails.Andrew J. Schorr2012-07-271-4/+4
|
* Fix bug in API set_RT, bug in readdir.c.Arnold D. Robbins2012-07-271-1/+1
|
* Robustify extension/readdir.c.Arnold D. Robbins2012-07-261-31/+108
|
* Add set_RT to API and to readdir extension.Arnold D. Robbins2012-07-261-4/+8
|
* Document the parser interface and remove some excessive readdir paranoia.Andrew J. Schorr2012-07-261-19/+12
|
* Start refactoring iop handling. Add readdir extension.Arnold D. Robbins2012-07-251-0/+220