annotate src/=sol2-2.h @ 15145:86a1f426871e

Include config.h after CRT headers. Include fcntl.h. (child_process, MAX_CHILDREN, CHILD_ACTIVE): Moved to nt.h. (DebugPrint): New macro. (new_child): Create input event structures for child processes. (delete_child): New function. (reader_thread): Return nonzero upon failure. Use _sys_read_ahead. (create_child): Add child_process and parent PID arguments. Don't create input event or thread structures here. Fixup Win95 negative process IDs. (register_child): Don't set consumed event; instead, set thread status so that select will release it. (remove_child): Renamed to reap_process. Only free resources of synchronous children. (win32_wait): Renamed to sys_wait. Sanity check to make sure handle to subprocess exists. Don't reclaim thread resources here. (win32_spawnve): Renamed to sys_spawnve. Check for proper wait mode first thing. Convert command name to DOS format. Quote whitespace and quotes in arguments to subprocess. Use alloca instead of malloc. If max subprocesses, return EAGAIN in hopes of another completing. (sys_select): Add support for socket input. Remove dead code. Check input from children fairly. (sys_select) [HAVE_TIMEVAL]: Remove conditional check and code. (win32_kill_process): Renamed to sys_kill. Use OpenProcess to terminate process. (prepate_standard_handles, reset_standard_handles): Moved here from nt.c.
author Geoff Voelker <voelker@cs.washington.edu>
date Fri, 03 May 1996 18:35:50 +0000
parents 85b1ac7f1caa
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4330
85b1ac7f1caa File removed.
Richard M. Stallman <rms@gnu.org>
parents: 4312
diff changeset
1 /* casper@fwi.uva.nl says this file is not needed
85b1ac7f1caa File removed.
Richard M. Stallman <rms@gnu.org>
parents: 4312
diff changeset
2 and sol2.h should work. */
85b1ac7f1caa File removed.
Richard M. Stallman <rms@gnu.org>
parents: 4312
diff changeset
3
4312
4faf8d99ef4a entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 4311
diff changeset
4 #include "sol2.h"
4311
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
4312
4faf8d99ef4a entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 4311
diff changeset
6 /* Take care of libucb.a as well as X Windows. */
4311
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 #undef LD_SWITCH_SYSTEM
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 #ifndef __GNUC__
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 #define LD_SWITCH_SYSTEM -R/usr/openwin/lib:/usr/ucblib
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 #else /* GCC */
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 #define LD_SWITCH_SYSTEM -Xlinker -R/usr/openwin/lib:/usr/ucblib
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 #endif /* GCC */
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13
4312
4faf8d99ef4a entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 4311
diff changeset
14 /* Link with libucb.a. */
4311
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 #ifdef LIB_STANDARD
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 #undef LIB_STANDARD
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 #define LIB_STANDARD -lc -L/usr/ucblib -lucb
aa8690059ff5 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 #endif