Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Some more cleanups. Ready to merge! | Arnold D. Robbins | 2015-03-27 | 1 | -1/+2 |
| | |||||
* | General cleanups prepatory to merging. | Arnold D. Robbins | 2015-03-24 | 1 | -5/+8 |
| | |||||
* | Merge branch 'master' into select | Arnold D. Robbins | 2015-03-20 | 1 | -35/+112 |
|\ | |||||
| * | Make nonfatal override GAWK_SOCK_RETRIES. Document it. | Arnold D. Robbins | 2015-03-08 | 1 | -16/+27 |
| | | |||||
| * | Improve testing for nonfatal socket connection attempts. | Andrew J. Schorr | 2015-02-28 | 1 | -2/+4 |
| | | |||||
| * | For non-fatal sockets, get a better error message. | Arnold D. Robbins | 2015-02-27 | 1 | -1/+7 |
| | | |||||
| * | Make socket open not immediately fatal. | Arnold D. Robbins | 2015-02-27 | 1 | -6/+12 |
| | | |||||
| * | Use "NONFATAL" for nonfatal I/O. | Arnold D. Robbins | 2015-02-08 | 1 | -6/+8 |
| | | |||||
| * | Reset non-fatal-io to 31 December, add fixes from Andrew Schorr. | Arnold D. Robbins | 2015-02-08 | 1 | -26/+14 |
| | | |||||
| * | Make nonfatal work with stdout & stderr. Update doc more. | Arnold D. Robbins | 2014-12-27 | 1 | -0/+19 |
| | | |||||
| * | Start at non-fatal output via PROCINFO. | Arnold D. Robbins | 2014-12-20 | 1 | -5/+47 |
| | | |||||
* | | Fix bug in io.c:wait_any where we may not have waited for the requested ↵ | Andrew J. Schorr | 2015-01-05 | 1 | -1/+6 |
| | | | | | | | | child process exit status. | ||||
* | | Merge branch 'master' into select | Andrew J. Schorr | 2014-12-14 | 1 | -4/+9 |
|\| | |||||
| * | Remove MBS_SUPPORT ifdefs. | Arnold D. Robbins | 2014-11-15 | 1 | -4/+1 |
| | | |||||
| * | OS/2 fixes. | Arnold D. Robbins | 2014-11-11 | 1 | -0/+8 |
| | | |||||
* | | Enhance get_file API to return info about input and output and to enable ↵ | Andrew J. Schorr | 2014-11-06 | 1 | -10/+24 |
| | | | | | | | | extensions to create already-opened files or sockets. | ||||
* | | If getline fails due to a retryable I/O error, return -2 without closing the ↵ | Andrew J. Schorr | 2014-11-05 | 1 | -2/+9 |
| | | | | | | | | file only if PROCINFO[<name>, "RETRY"] is configured. | ||||
* | | Merge remote-tracking branch 'origin/master' into select | Andrew J. Schorr | 2014-11-03 | 1 | -46/+16 |
|\| | |||||
| * | Sanitize handling of AWKPATH / AWKLIBPATH. | Arnold D. Robbins | 2014-10-15 | 1 | -45/+0 |
| | | |||||
| * | Rework handling of special files, and doc thereof. | Arnold D. Robbins | 2014-09-23 | 1 | -1/+16 |
| | | |||||
* | | Merge 'master' into select | Andrew J. Schorr | 2014-09-21 | 1 | -112/+144 |
|\| | |||||
| * | Improve inrec setting ERRNO, doc of API get_record for errors. | Arnold D. Robbins | 2014-08-03 | 1 | -5/+1 |
| | | |||||
| * | Bug fix for I/O errors in the middle of a file. | Arnold D. Robbins | 2014-07-24 | 1 | -3/+7 |
| | | |||||
| * | Compile fix in io.c for DJGPP. | Arnold D. Robbins | 2014-05-26 | 1 | -2/+6 |
| | | |||||
| * | Additional fix for TERMNEAREND. | Arnold D. Robbins | 2014-05-10 | 1 | -3/+14 |
| | | |||||
| * | Fix in read_a_record for short file with RS=regex. | Arnold D. Robbins | 2014-05-09 | 1 | -0/+3 |
| | | |||||
| * | In forked children, set SIGPIPE to SIG_DFL. | Arnold D. Robbins | 2014-04-25 | 1 | -0/+2 |
| | | |||||
| * | Improve socket name parsing to avoid false matches on names starting with /inet. | Andrew J. Schorr | 2014-04-20 | 1 | -103/+113 |
| | | |||||
* | | Merge branch 'master' into select | Andrew J. Schorr | 2014-04-13 | 1 | -13/+46 |
|\| | |||||
| * | Define closemaybesocket if it isn't otherwise. | Arnold D. Robbins | 2014-04-11 | 1 | -0/+6 |
| | | |||||
| * | Continue to straighten out enum usage. | Arnold D. Robbins | 2014-03-05 | 1 | -1/+1 |
| | | |||||
| * | Update some copyright years. | Arnold D. Robbins | 2014-01-10 | 1 | -1/+1 |
| | | |||||
| * | First round of VMS changes. | Arnold D. Robbins | 2013-12-12 | 1 | -5/+15 |
| | | |||||
| * | DJGPP fixes, including update pc/Makefile.tst. | Arnold D. Robbins | 2013-12-10 | 1 | -0/+4 |
| | | |||||
| * | VMS fixes in io.c. | Arnold D. Robbins | 2013-12-03 | 1 | -2/+8 |
| | | |||||
| * | Improve handling of writes to dead pipes. | Arnold D. Robbins | 2013-10-24 | 1 | -6/+12 |
| | | |||||
| * | Fixes based on problems from a static checker. | Arnold D. Robbins | 2013-09-08 | 1 | -1/+2 |
| | | |||||
* | | Merge branch 'master' into select | Arnold D. Robbins | 2013-08-14 | 1 | -9/+5 |
|\| | |||||
| * | Fix compiling on MinGW. | Arnold D. Robbins | 2013-07-24 | 1 | -4/+0 |
| | | |||||
| * | Make min be MIN. | Arnold D. Robbins | 2013-07-08 | 1 | -5/+5 |
| | | |||||
* | | In io.c:wait_any, use sigprocmask if available. | Andrew J. Schorr | 2013-07-07 | 1 | -1/+26 |
| | | |||||
* | | Revert incorrect patch to wait_any and instead use waitpid to avoid blocking. | Andrew J. Schorr | 2013-07-04 | 1 | -4/+16 |
| | | |||||
* | | Enhance getline to return -2 when an I/O operation should be retried. | Andrew J. Schorr | 2013-07-02 | 1 | -5/+36 |
| | | |||||
* | | Added first version of select extension and new API hooks needed by it. | Andrew J. Schorr | 2013-06-30 | 1 | -13/+21 |
|/ | |||||
* | Fix inconsistency in system vs pipes in non-socket Windows builds. | Eli Zaretskii | 2013-06-24 | 1 | -4/+4 |
| | | | | | | | io.c: Move #include "popen.h" out of the HAVE_SOCKETS condition, as this is needed for non-sockets builds as well. See http://lists.gnu.org/archive/html/bug-gawk/2013-06/msg00014.html for the details of the problem this caused. | ||||
* | Minor fix for io.c for VMS. | Arnold D. Robbins | 2013-06-15 | 1 | -0/+6 |
| | |||||
* | Improve fix for debugger on Windows. | Arnold D. Robbins | 2013-06-11 | 1 | -4/+11 |
| | |||||
* | Minor change in io.c:iop_finish. | Arnold D. Robbins | 2013-06-09 | 1 | -3/+3 |
| | |||||
* | Minor cleanups for init_socket function. | Arnold D. Robbins | 2013-06-03 | 1 | -2/+1 |
| | |||||
* | Support |& on MS-Windows, both for sockets and for pipes. | Eli Zaretskii | 2013-06-01 | 1 | -32/+145 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | io.c (SHUT_RD) [SD_RECEIVE]: Define to SD_RECEIVE. (SHUT_WR) [SD_SEND]: Define to SD_SEND. (SHUT_RDWR) [SD_BOTH]: Define to SD_BOTH. (FD_TO_SOCKET, closemaybesocket) [!FD_TO_SOCKET]: New macros. (SOCKET_TO_FD, SOCKET) [!SOCKET_TO_FD]: New macros. (PIPES_SIMULATED): Define only for DJGPP. (pipe) [__MINGW32__]: Define to call _pipe, unless PIPES_SIMULATED is defined. (init_io) [HAVE_SOCKETS]: Call init_sockets. (iop_close, socketopen): Call closemaybesocket instead of close. (redirect) [__MINGW32__]: Call wait_any with a non-zero argument. (devopen) [__EMX__ || __MINGW32__]: Don't call stat on network pseudo-filenames. (two_way_open) [HAVE_SOCKETS]: Switch input and output to binary mode if appropriate. (two_way_open) [!PIPES_SIMULATED]: Use the __EMX__ code for MinGW as well. [__MINGW32__] Call spawnl to invoke $ComSpec and pass it a suitably quoted command line. (two_way_open) [__MINGW32__]: Wait only for a specified process ID. If successful, update the exit status of the exited process. Don't use signals that are undefined on MinGW. (two_way_open) [!PIPES_SIMULATED]: Use the __EMX__ code for MinGW as well. (min): Define only if not already defined. (read_with_timeout) [__MINGW32__]: Allow reading from sockets with timeout. (gawk_fclose) [__MINGW32__]: Close the underlying socket as well. getopt.c: Include stdlib.h for MinGW as well. pc/popen.h (SIGKILL) [__MINGW32__]: Define. (kill, quote_cmd): New prototypes. pc/popen.c: Include popen.h and errno.h. (popen, pclose, system): Undefine macros. (WIN32_LEAN_AND_MEAN) [__MINGW32__]: Define and include windows.h. (kill, quote_cmd) [!PIPES_SIMULATED]: New functions. (os_popen): Make the function definition match its prototype exactly. pc/gawkmisc.pc [HAVE_SOCKETS]: Include socket.h and windows.h. (socket, setsockopt, bind, connect, listen, accept, recvfrom) (shutdown): Undefine macros. (os_close_on_exec) [__MINGW32__]: Non-trivial implementation. (init_sockets, socket_to_fd, w32_socket, w32_setsockopt) (w32_bind, w32_connect, w32_listen, w32_accept, valid_socket) (w32_closesocket, w32_recvfrom, w32_shutdown) [HAVE_SOCKETS]: New functions for MinGW, emulate Posix sockets specified by file descriptors. pc/config.h (HAVE_GETADDRINFO, HAVE_SOCKADDR_STORAGE) (HAVE_SOCKETS) [__MINGW32__]: Define. pc/config.sed (HAVE_GETADDRINFO, HAVE_SOCKADDR_STORAGE) (HAVE_SOCKETS) [__MINGW32__]: Define. pc/Makefile.tst (fmtspcl): Announce expected failure only if not built with MPFR. (inetecht, inetdayt): For MinGW, warn about time-outs. (beginfile1, clos1way, getlndir): Announce expected failure only with DJGPP. (exit): Describe the failure on MinGW. (readdir): Explain why test might fail with bad ls.exe. pc/Makefile (mingw32, mingw32-readline, mingw32-mpfr) (mingw32-readline-mpfr): Add -lws2_32 to the link flags. (gawkmisc$O): Depend on socket.h. (io$O): Depend on socket.h and in.h. (popen$O): New dependency. posix/gawkmisc.c (init_sockets): New dummy function. extension/filefuncs.c [_WIN32]: Define WIN32_LEAN_AND_MEAN before including windows.h. extension/readdir.c [__MINGW32__]: Define WIN32_LEAN_AND_MEAN before including windows.h. extension/filefuncs.c [HAVE_GETSYSTEMTIMEASFILETIME]: Define WIN32_LEAN_AND_MEAN before including windows.h. test/clos1way.awk: Don't use features of Posix shells, to allow this test to work on Windows. test/beginfile2.sh: Leave one blank between the left quote and the following slash. Use non-absolute name for a non-existent file. This is to avoid breakage on Windows due to MSYS transformation of Posix style /foo/bar absolute file names. test/beginfile2.ok: Adapt to changes in beginfile2.sh. |