newlib-cygwin/winsup/cygwin/include/sys
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
..
acl.h
cdefs.h
copying.dj
cygwin.h * sigproc.cc (mychild): Reimplement as list scan. 2004-12-05 19:41:26 +00:00
dirent.h * dir.cc (readdir): Reinstate setting of old ino field for legacy applications. 2003-09-09 00:21:16 +00:00
file.h * Makefile.in: (DLL_OFILES): Add flock.o. 2003-11-29 23:00:51 +00:00
ioctl.h
ipc.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
lock.h * cygwin.din: Add symbols flockfile, ftrylockfile, funlockfile, 2004-05-17 16:06:02 +00:00
mman.h * include/sys/mman.h (MAP_FAILED): Define as void *. 2003-10-09 11:40:16 +00:00
mount.h * mkvers.sh: Avoid "-dontuse" tags. 2003-05-29 03:50:15 +00:00
msg.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
mtio.h
param.h * include/limits.h: Revert unsanctioned changes below. 2003-11-15 17:04:10 +00:00
poll.h
procfs.h
queue.h Eliminate use of sigframe and sigthread throughout. 2003-11-28 20:55:59 +00:00
resource.h
select.h
sem.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
shm.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
smallprint.h
socket.h * fhandler.h (fhandler_socket::recvfrom): Fix prototype. 2002-08-26 09:57:27 +00:00
soundcard.h
statfs.h * include/sys/statfs.h: New header file. 2002-07-03 20:31:39 +00:00
stdio.h * cygwin.din: Add symbols flockfile, ftrylockfile, funlockfile, 2004-05-17 16:06:02 +00:00
strace.h * include/sys/strace.h (paranoid_printf): Define as not being part of "all" 2003-01-26 05:38:38 +00:00
syslog.h * cygwin.din: Add vsyslog. 2003-06-06 08:11:19 +00:00
sysmacros.h * syscalls.cc (stat64_to_stat32): Transform st_dev correctly. 2002-06-03 17:44:09 +00:00
sysproto.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
termio.h
termios.h * fhandler_serial.cc (fhandler_serial::ioctl): Implement TIOCSBRK and TIOCCBRK. 2004-03-09 02:51:26 +00:00
ttychars.h
uio.h * miscfuncs.cc (check_iovec_for_read): Don't check buffer when zero length 2002-08-30 15:47:10 +00:00
un.h
utime.h * Makefile.in (CYGWIN_START): Define as crt0.o. Add to TARGET_LIBS. 2003-05-12 11:06:27 +00:00
utmp.h * Makefile.in (DLL_OFILES): Add bsdlib.o. 2003-09-10 15:51:59 +00:00
utsname.h
vfs.h remove erroneous part of comment 2002-03-12 03:36:01 +00:00
wait.h * child_info.h (child_info_spawn::hexec_proc): Eliminate. 2004-11-26 04:15:10 +00:00