newlib-cygwin/winsup/cygwin/include
Christopher Faylor 54dd79bb44 * sigproc.cc (mychild): Reimplement as list scan.
(proc_subproc): Don't mess with pinfo if it's myself.
* child_info.h (child_info_types): Label enum for _PROC constants.
(child_info::child_info): New constructor.
(child_info::~child_info): New destructor.
(child_info::sync): Declare new function.
(child_info_fork::child_info_fork): New constructor.
(child_info_spawn::child_info_spawn): Remove old constructor.
(child_info_spawn::child_info_spawn): New constructor.
* dcrt0.cc (dll_crt0_0): Use correct sizeof when doing sanity check on passed
in child_info.  Signal readiness to parent when not forking (and not spawning).
* fork.cc (sync_with_child): Delete.
(resume_child): Remove extra argument.
(sync_with_parent): Use child_info method to sync with parent.
(fork_child): Don't close fork_info->subproc_ready since that is now handled by
the destructor.
(fork_parent): Remove subproc_ready stuff.  Use child_info sync method for
waiting..  Set start time here for child.  Rename "forked" to "child".
(fork): Check ch.subproc_ready for validity here.
* pinfo.h (_pinfo::exec_sendsig): Temp storage for exec stub which may be
staying around to handle non-cygwin captive process.
(_pinfo::exec_dwProcessId): Ditto.
(_pinfo::_lock): Renamed from lock.
(_pinfo::lock): New method.
(_pinfo::unlock): Ditto.
(_pinfo::initialize_lock): Ditto.
* pinfo.cc (set_myself): Use initialize_lock method to initialize myself lock.
Set "exec" fields in _pinfo to zero to indicate that we've started
successfully.  Set start time here when appropriate.
(_pinfo::commune_send): Use pinfo lock/unlock methods.
(proc_waiter): Remove special case for non-cywin processes.  Reinstitute
handling for PID_NOCLDSTOP.
* sigproc.cc (proc_subproc): Set proper EAGAIN errno when process table is
filled.
(sig_send): Use exec_* fields from _pinfo for sending signals if the the _pinfo
sendsig never materializes.
(child_info::child_info): New constructor, renamed from init_child_info.
Zeroes child_info structure and sets appropriate fields in structure based on
chtype.
(child_info::~child_info): New destructor.  Closes subproc_ready if it exists.
(child_info_fork::child_info_fork): New constructor.
(child_info_spawn::child_info_spawn): New constructor.
(child_info::ready): New function.  Signals parent when child is ready.
(child_info::sync): New function.  Wait for child to signal us or process to
die.
(remove_proc): Remove closing of hProcess since this should now be handled
shortly after process creation.
* spawn.cc (spawn_guts): Use child_info_spawn constructor rather than
init_child_info.  Save exec_sendsig and exec_dwProcessId in execing _pinfo.
Rely on child_info constructor to properly set parent_wr_proc_pipe in ciresrv.
Revert to previous determination on whether to start a process in suspended
mode.  Remove reparenting stuff.  Just keep a stub around if starting a
non-cygwin process.
2004-12-05 19:41:26 +00:00
..
arpa * include/cygwin/in.h (in_attr_t): Define new type. 2003-02-10 22:43:29 +00:00
asm
cygwin * include/cygwin/version.h: Bump DLL minor number to 13. 2004-11-11 16:26:13 +00:00
net
netinet * include/netinet/ip.h: Include netinet/in_systm.h and netinet/in.h 2003-04-25 08:32:30 +00:00
sys * sigproc.cc (mychild): Reimplement as list scan. 2004-12-05 19:41:26 +00:00
a.out.h
dlfcn.h * autoload.cc (EnumProcessModules): Add. 2004-09-14 08:29:12 +00:00
err.h * bsdlib.cc (_vwarnx): New function. 2003-11-06 21:31:24 +00:00
exceptions.h
fcntl.h
features.h * include/features.h: Include sys/cdefs.h, like linux. 2004-12-01 17:07:03 +00:00
fnmatch.h
getopt.h * Makefile.in (DLL_OFILES): Add getopt.o and iruserok.o. 2003-09-10 19:13:05 +00:00
glob.h * glob.c (stat32_to_STAT): New function. 2002-03-15 10:12:31 +00:00
icmp.h
inttypes.h * include/inttypes.h: New file. 2003-04-22 14:55:01 +00:00
io.h
lastlog.h
limits.h * cygwin.din: Add symbols flockfile, ftrylockfile, funlockfile, 2004-05-17 16:06:02 +00:00
mapi.h
memory.h
mntent.h
netdb.h revert erroneous checkin 2002-06-10 19:59:19 +00:00
paths.h * include/paths.h: Add some missing entries. 2003-09-25 03:46:20 +00:00
poll.h
pthread.h * include/pthread.h (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): 2004-03-04 21:04:14 +00:00
pty.h * Makefile.in (DLL_OFILES): Add bsdlib.o. 2003-09-10 15:51:59 +00:00
sched.h
semaphore.h * cygwin.din: Add sem_close, sem_getvalue, sem_open and sem_timedwait. 2003-10-27 11:48:29 +00:00
stdint.h * include/stdint.h: Prevent signed->unsigned conversion for 32 and 2003-10-29 08:43:10 +00:00
strings.h
sysexits.h
syslog.h
termio.h
tzfile.h * include/tzfile.h: Remove duplicate definition of TM_SUNDAY. 2003-12-01 10:39:17 +00:00