<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gawk.git/test/filefuncs.awk, branch feature/stringfix</title>
<subtitle>git.savannah.gnu.org: git/gawk.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gawk.git/'/>
<entry>
<title>Generalize how filefuncs test works.</title>
<updated>2014-09-18T18:46:00+00:00</updated>
<author>
<name>Arnold D. Robbins</name>
<email>arnold@skeeve.com</email>
</author>
<published>2014-09-18T18:46:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gawk.git/commit/?id=ba56be212f9dee0088322e1560f31b3f4693633d'/>
<id>ba56be212f9dee0088322e1560f31b3f4693633d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix building, installing, and testing extensions on MS-Windows.</title>
<updated>2013-05-14T13:26:29+00:00</updated>
<author>
<name>Eli Zaretskii</name>
<email>eliz@gnu.org</email>
</author>
<published>2013-05-14T13:26:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gawk.git/commit/?id=242f84cd211a13c4056d228aaa9bc1f57aa21763'/>
<id>242f84cd211a13c4056d228aaa9bc1f57aa21763</id>
<content type='text'>
 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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Extension enhancements and tests.</title>
<updated>2012-04-07T20:30:50+00:00</updated>
<author>
<name>Andrew J. Schorr</name>
<email>aschorr@telemetry-investments.com</email>
</author>
<published>2012-04-07T20:30:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gawk.git/commit/?id=bc9ed3fd239984429613095e6cfc142092f036c4'/>
<id>bc9ed3fd239984429613095e6cfc142092f036c4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
