aboutsummaryrefslogtreecommitdiffstats
path: root/posix/gawkmisc.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert w32_maybe_set_errno to os_maybe_set_errno.Arnold D. Robbins2021-12-011-0/+5
|
* Update copyright year in a bunch of files.Arnold D. Robbins2021-10-271-1/+1
|
* Improve use of types throughout.Arnold D. Robbins2021-01-081-6/+6
|
* Restore text mode default processing for MSYS.Arnold D. Robbins2018-03-051-0/+20
|
* Update posix/gawkmisc.c - remove cygwin code.Arnold D. Robbins2017-02-201-19/+0
|
* Remove trailing whitespace everywhere. Fix Unicode into ASCII.Arnold D. Robbins2016-10-231-3/+3
|
* Minor cleanups for init_socket function.Arnold D. Robbins2013-06-031-2/+0
|
* Support |& on MS-Windows, both for sockets and for pipes.Eli Zaretskii2013-06-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Replace obsolete AC_STRUCT_ST_BLKSIZE macro.Arnold D. Robbins2013-05-271-1/+1
|
* API cleanups and doc additions.Arnold D. Robbins2012-10-141-1/+1
|
* Move struct stat into IOBUF_PUBLIC.Arnold D. Robbins2012-08-081-5/+3
|
* Finish work on iop management. New readdir test.Arnold D. Robbins2012-07-291-1/+6
|
* Add os_isreadable function for future use.Arnold D. Robbins2012-07-261-0/+25
|
* Move to use of bool type, true, false, everywhere.Arnold D. Robbins2012-05-111-4/+4
|
* - Add new environment variable AWKLIBPATH to use when searching for sharedAndrew J. Schorr2012-03-201-0/+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.
* Minor bug fixes, incl build system for pc, vms.Arnold D. Robbins2011-06-201-0/+1
|
* Compile fixes for Cygwin.Arnold D. Robbins2011-05-021-2/+2
|
* Change ISATTY macro to os_isatty function.Arnold D. Robbins2011-04-011-0/+8
|
* Update copyrights.Arnold D. Robbins2011-02-271-1/+2
|
* PC fixes for portability and dependencies.Arnold D. Robbins2011-02-131-2/+6
|
* Fix ctype calls on Cygwin.Arnold D. Robbins2011-02-011-2/+2
|
* Cygwin fixes from Corinna.Arnold D. Robbins2011-01-241-38/+25
|
* Add check for plugin license, make close on exec POSIX compatibile.Arnold D. Robbins2010-11-241-2/+21
|
* Bring latest byte code gawk into git. Hurray!Arnold D. Robbins2010-11-181-0/+8
|
* Move to 3.1.8.Arnold D. Robbins2010-07-161-2/+2
|
* Move to gawk-3.1.6.Arnold D. Robbins2010-07-161-1/+11
|
* Move to gawk 3.1.5.Arnold D. Robbins2010-07-161-1/+1
|
* Move to gawk-3.1.4.Arnold D. Robbins2010-07-161-3/+3
|
* Move to gawk-3.1.3.Arnold D. Robbins2010-07-161-0/+17
|
* Move to gawk-3.1.2.Arnold D. Robbins2010-07-161-8/+58
|
* Move to gawk-3.1.1.Arnold D. Robbins2010-07-161-8/+8
|
* Move to gawk-3.1.0.Arnold D. Robbins2010-07-161-1/+64
|
* Move to gawk-3.0.3.Arnold D. Robbins2010-07-161-24/+17
|
* Move to gawk-3.0.1.Arnold D. Robbins2010-07-161-1/+1
|
* Move to gawk-3.0.0.Arnold D. Robbins2010-07-161-0/+115