summaryrefslogtreecommitdiff
path: root/libguile/posix-w32.c
Commit message (Expand)AuthorAgeFilesLines
* Untabify posix-w32.cEli Zaretskii2016-07-251-302/+302
* Improve process handling on MS-Windows...* libguile/posix-w32.c: Include gc.h and threads.h. (proc_record): New structure tag. <procs, proc_size>: New static variables. (find_proc, proc_handle, record_proc, delete_proc): New utility functions. (start_child): Return value is now pid_t, as it is on Posix platforms. Record the new process and returns its PID, instead of returning a handle. Fix the recursive call. (waitpid, kill, getpriority, setpriority, sched_getaffinity) (sched_setaffinity): Look up the PID in the recorded subprocesses before trying to open a process that is not our subprocess. Make sure any open handle is closed before returning, unless it's our subprocess. Eli Zaretskii2016-07-251-17/+216
* Update uname implementation in posix-w32...* libguile/posix-w32.c (uname): Update to modern processors (ia64 and x86_64) and OS versions (Vista to Windows 10). Delete trailing whitespace. Eli Zaretskii2016-07-251-8/+27
* Add POSIX shims for MinGW...* libguile/posix-w32.h: * libguile/posix-w32.c (kill, waitpid, getpriority, setpriority) (sched_getaffinity, sched_setaffinity): Add MinGW implementations. Also, provides macros that on Posix hosts are in sys/wait.h, like WIFEXITED and WTERMSIG. (start_child): Add implementation. Eli Zaretskii2016-07-251-1/+863
* Rename win32-uname.[ch] to posix-w32.[ch]...* libguile/posix-w32.c: * libguile/posix-w32.h: Rename from win32-uname.c and win32-uname.h. * libguile/posix.c: * libguile/Makefile.am (EXTRA_libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES) (noinst_HEADERS): Adapt. Andy Wingo2016-07-251-0/+146