libc/winsup/cygwin
Christopher Faylor ce95c6407e * child_info.h (child_info::cygheap_h): Delete.
(child_info::dwProcessId): New field.
* cygheap.cc (init_cheap): Delete.
(dup_now): Ditto.
(cygheap_setup_for_child): Ditto.
(cygheap_setup_for_child_cleanup): Ditto.
(cygheap_fixup_in_child): Simplify.  Use new "child_copy" function to copy heap
from parent.
(_csbrk): Don't attempt allocation if within cygheap section.  Fix so that more
than one allocation will succeed.
(cygheap_init): Reset possibly-nonzero region to zero.
* cygheap.h (cygheap_setup_for_child): Delete declaration.
(cygheap_setup_for_child_cleanup): Ditto.
(cygheap_start): Define as an array.
* cygwin.sc: Modernize.  Remove unneeded sections.  Define cygheap here.
* dcrt0.cc (do_exit): Reflect argument change to close_all_files.
* dtable.cc (dtable::vfork_parent_restore): Ditto.
* dtable.h: Ditto.
* fhandler.h: Ditto.
* fork.cc (fork_copy): Call ReadProcessMemory if there is no thread
(indicating that we're execing).
(fork_child): Don't mess with hParent.
(fork_parent): Remove hParent stuff.  It happens earlier now.  Remove call to
cygheap_setup_for_child* stuff.
(fork): Put child_info_stuff in grouped structure.  Issue error if parent
handle is not set.
(child_copy): New function.
* sigproc.cc (child_info::child_info): Put cygheap settings here.  Set parent
handle.
(child_info::~child_info): Close parent handle if it exists.
* spawn.cc (spawn_guts): Reorganize so that ciresrv is allocated at only the
last minute so that cygheap changes are reflected.  Delete cygheap_setup*
calls.
* syscalls.cc (close_all_files): Add an argument to flag when the fd entry
should be released.
* winsup.h (close_all_files): Add an argument to close_all_files declaration.
Declare child_copy.
2005-06-01 03:46:56 +00:00
..
config/i386 * gendef (stabilize_sig_stack): New function. 2004-02-18 20:48:38 +00:00
include * include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Always define. 2005-05-29 10:05:56 +00:00
lib * lib/libcmain.c (main): Properly deal with quoted first argument. 2004-12-09 21:28:32 +00:00
libc * Makefile.in: Create libutil.a from bsdlib.o exports. 2004-09-10 08:30:51 +00:00
regex white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
regexp
CYGWIN_LICENSE
ChangeLog * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
ChangeLog-1995 white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ChangeLog-1996 white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ChangeLog-1997 white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003 fix typo 2004-01-20 03:11:39 +00:00
ChangeLog-2004 * ChangeLog: Split and create ChangeLog-2004. 2005-01-11 12:48:34 +00:00
Makefile.in * cygwin.din: Export mkdtemp. 2005-05-25 03:40:07 +00:00
ROADMAP
acconfig.h * exceptions.cc (set_signal_mask): Redefine to not pass by address. Report 2003-12-23 16:26:31 +00:00
ansi.sgml minor cleanup 2004-12-05 02:30:20 +00:00
assert.cc
autoload.cc * autoload.cc (WNetGetResourceParentA): Import. 2005-05-13 20:20:02 +00:00
automode.c
binmode.c
child_info.h * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
config.h.in white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
configure * configure.in: Remove NEWVFORK default. 2004-01-23 23:05:33 +00:00
configure.in * configure.in: Remove NEWVFORK default. 2004-01-23 23:05:33 +00:00
cpuid.h * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
crt0.c * crt0.o (mainCRTStartup): 16 byte align stack for main function. 2004-05-04 14:46:25 +00:00
ctype.cc * include/ctype.h: New file. 2005-03-23 17:11:24 +00:00
cxx.cc * child_info.h (fork_info): Use different method to alias variable. 2005-03-19 21:45:15 +00:00
cygerrno.h * cygerrno.h (__set_errno): Remove useless parentheses. 2005-05-04 11:05:11 +00:00
cygheap.cc * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
cygheap.h * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
cygmagic * cygmagic: Remove debugging cruft missed on 2005-05-21. 2005-05-30 00:54:01 +00:00
cygmalloc.h * sync.h (muto::operator int): New operator. 2005-04-05 04:31:00 +00:00
cygserver.h * cygserver.h (CYGWIN_SERVER_VERSION_API): Bump. 2004-06-03 19:52:12 +00:00
cygserver_ipc.h * debug.h (console_printf): Define for non-debugging condition. 2004-02-09 04:04:24 +00:00
cygserver_msg.h * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
cygserver_sem.h * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
cygserver_shm.h * cygserver.h (client_request::request_code_t): Add 2003-11-19 18:50:23 +00:00
cygthread.cc * cygtls.h (_local_storage::unknown_thread_name): New buffer. 2005-05-18 23:30:02 +00:00
cygthread.h * wininfo.h (wininfo::timer_active): Delete. 2005-03-27 01:57:38 +00:00
cygtls.cc * cygtls.cc (_cygtls::remove): Eliminate compiler warning. 2005-05-13 03:21:39 +00:00
cygtls.h * cygtls.h (_local_storage::unknown_thread_name): New buffer. 2005-05-18 23:30:02 +00:00
cygwin-shilka * cygwin-shilka: Remove '#line directives' or suffer debugging oddities. Use 2003-09-27 05:35:02 +00:00
cygwin.din * cygwin.din: Remove signal front end from pthread_[gs]etspecific. 2005-05-29 02:26:29 +00:00
cygwin.sc * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
cygwin_version.h
dcrt0.cc * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
debug.cc * cygerrno.h (__set_errno): Define as inline function here. 2005-05-04 11:00:22 +00:00
debug.h * debug.h (console_printf): Define for non-debugging condition. 2004-02-09 04:04:24 +00:00
delqueue.cc 2003-11-11 Robert Collins <rbtcollins@hotmail.com> 2003-11-14 23:40:06 +00:00
devices.cc * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o. 2005-05-10 20:56:07 +00:00
devices.h * fhandler.h (fhandler_cygdrive::seekdir): Delete declaration. 2005-05-19 05:43:55 +00:00
devices.in * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o. 2005-05-10 20:56:07 +00:00
dir.cc * fhandler.h (fhandler_base::mkdir): New virtual method. 2005-05-25 04:32:59 +00:00
dlfcn.cc * dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error. 2005-05-30 18:20:28 +00:00
dll_init.cc * dcrt0.cc (do_global_dtors): Run DLL dtors. 2005-04-14 17:34:03 +00:00
dll_init.h * dcrt0.cc (do_global_dtors): Run DLL dtors. 2005-04-14 17:34:03 +00:00
dll_init.sgml 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2004-02-22 23:21:20 +00:00
dlmalloc.c remove keyword stuff 2004-05-12 16:21:18 +00:00
dlmalloc.h * include/cygwin/version.h: Bump DLL minor number to 8. 2004-01-20 19:36:35 +00:00
dtable.cc * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
dtable.h * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
dtable.sgml 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2004-02-22 23:21:20 +00:00
environ.cc * cygheap.h: Reference _cygheap_start via .cygheap section. 2005-05-27 18:26:19 +00:00
environ.h * environ.h (win_env::immediate): Declare new field. 2005-03-30 15:54:28 +00:00
errno.cc * spawn.cc (find_exec): Accept a PATH-like string in place of an environment 2005-05-22 03:54:29 +00:00
exceptions.cc * cygtls.h (_local_storage::unknown_thread_name): New buffer. 2005-05-18 23:30:02 +00:00
exec.cc Reorganize header file inclusion throughout so that cygerrno.h comes first. 2005-01-12 22:40:46 +00:00
external.cc * external.cc: Move pids declaration to file scope and use less enthusiastic 2005-05-19 01:25:20 +00:00
external.sgml 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2004-02-22 23:21:20 +00:00
fcntl.cc Reorganize header file inclusion throughout so that cygerrno.h comes first. 2005-01-12 22:40:46 +00:00
fhandler.cc * fhandler.h (fhandler_base::mkdir): New virtual method. 2005-05-25 04:32:59 +00:00
fhandler.h * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
fhandler_clipboard.cc * wininfo.h (wininfo::timer_active): Delete. 2005-03-27 01:57:38 +00:00
fhandler_console.cc * cygtls.cc (_cygtls::remove): Clear exitsock after close. 2005-05-11 03:33:38 +00:00
fhandler_disk_file.cc * fhandler.h (fhandler_base::mkdir): New virtual method. 2005-05-25 04:32:59 +00:00
fhandler_dsp.cc * exceptions.cc: (ctrl_c_handler): Do nothing while a Cygwin subprocess is 2004-09-12 03:47:57 +00:00
fhandler_fifo.cc * external.cc: Move pids declaration to file scope and use less enthusiastic 2005-05-19 01:25:20 +00:00
fhandler_floppy.cc Reorganize header file inclusion throughout so that cygerrno.h comes first. 2005-01-12 22:40:46 +00:00
fhandler_mailslot.cc * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o. 2005-05-10 20:56:07 +00:00
fhandler_mem.cc * cygerrno.h (__seterrno_from_nt_status): Define. Always set Win32 2005-04-13 16:41:33 +00:00
fhandler_netdrive.cc * fhandler_netdrive.cc (fhandler_netdrive::telldir): Remove since it's 2005-05-18 10:32:37 +00:00
fhandler_nodevice.cc * fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already 2004-03-27 18:01:04 +00:00
fhandler_proc.cc * external.cc: Move pids declaration to file scope and use less enthusiastic 2005-05-19 01:25:20 +00:00
fhandler_process.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
fhandler_random.cc * fhandler.h (fhandler_base::mkdir): New virtual method. 2005-05-25 04:32:59 +00:00
fhandler_raw.cc * wininfo.h (wininfo::timer_active): Delete. 2005-03-27 01:57:38 +00:00
fhandler_registry.cc * dir.cc: Rename opendir_* to dirent_* throughout. 2005-03-16 21:20:56 +00:00
fhandler_serial.cc * wininfo.h (wininfo::timer_active): Delete. 2005-03-27 01:57:38 +00:00
fhandler_socket.cc * fhandler_socket.cc (get_inet_addr): Add missing __seterrno call. 2005-05-03 14:07:19 +00:00
fhandler_tape.cc * shared_info.h (cygwin_shared_address): Bump to a higher value to avoid 2005-04-28 23:59:44 +00:00
fhandler_termios.cc * wininfo.h (wininfo::timer_active): Delete. 2005-03-27 01:57:38 +00:00
fhandler_tty.cc * fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison. 2005-05-29 00:05:49 +00:00
fhandler_virtual.cc * dir.cc: Rename opendir_* to dirent_* throughout. 2005-03-16 21:20:56 +00:00
fhandler_windows.cc * wininfo.h (wininfo::timer_active): Delete. 2005-03-27 01:57:38 +00:00
fhandler_zero.cc * devices.h: Switch FH_ZERO and FH_PORT as on Linux. Add FH_FULL. 2005-02-23 12:30:31 +00:00
flock.cc * fcntl.cc (fcntl_worker): Remove static storage class. 2003-12-03 09:55:42 +00:00
fork.cc * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
gcrt0.c
gendef * cygtls.h (waitq): Declare structure here. 2004-03-12 03:09:28 +00:00
gendevices white space 2005-02-13 18:17:29 +00:00
gentls_offsets * gentls_offsets: Add '-m32' flag to native compiler call to satisfy 2005-03-31 15:53:57 +00:00
glob.c
gmon.c
gmon.h
grp.cc * grp.cc (initgroups32): Return the correct value. 2005-04-18 16:03:08 +00:00
heap.cc * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
heap.h
hires.h * mmap.cc (mmap64): Avoid compiler warning. 2005-05-18 17:23:17 +00:00
hookapi.cc * dcrt0.cc (do_global_dtors): Run DLL dtors. 2005-04-14 17:34:03 +00:00
how-autoload-works.txt white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
how-cygheap-works.txt
how-fhandlers-work.txt
how-signals-work.txt minor cleanup 2004-03-14 05:35:19 +00:00
how-spawn-works.txt
how-to-debug-cygwin.txt fix breakpoint example 2005-05-06 21:09:35 +00:00
how-vfork-works.txt minor cleanup 2004-12-05 02:30:20 +00:00
init.cc * include/sys/cygwin.h (enum cygwin_getinfo_types): Add CW_DEBUG_SELF. 2005-05-17 01:21:06 +00:00
ioctl.cc Eliminate use of sigframe and sigthread throughout. 2003-11-28 20:55:59 +00:00
ipc.cc * exceptions.cc (ctrl_c_handler): Send SIGHUP when events occur only if there 2003-07-26 04:53:59 +00:00
localtime.cc * localtime.cc: Implement setting __tzrule's offset member using 2005-02-23 22:17:28 +00:00
lsearch.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
malloc.cc * Makefile.in (MALLOC_OFILES): Always fill in with correct malloc object. 2003-08-31 18:26:58 +00:00
malloc_wrapper.cc * sync.h (muto::operator int): New operator. 2005-04-05 04:31:00 +00:00
mcount.c
misc-std.sgml
miscfuncs.cc copyright 2005-02-20 04:25:33 +00:00
mktemp.cc Add top comment 2005-05-25 03:43:58 +00:00
mkvers.sh update copyright 2004-02-04 22:40:50 +00:00
mmap.cc * mmap.cc (mmap64): Make granularity an automatic variable. 2005-05-19 08:43:17 +00:00
msg.cc * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
mtinfo.h * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
net.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
netdb.cc 2003-11-11 Robert Collins <rbtcollins@hotmail.com> 2003-11-14 23:40:06 +00:00
newsym white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ntdll.h white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ntea.cc * mmap.cc (mmap64): Avoid compiler warning. 2005-05-18 17:23:17 +00:00
passwd.cc * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
path.cc * path.cc (path_conv::check): Move component to function scope. Set 2005-05-29 11:04:02 +00:00
path.h Remove PC_FULL from path_conv usage throughout. 2005-05-13 15:46:07 +00:00
path.sgml * path.sgml: Encode programming example with CDATA. 2004-12-31 01:13:28 +00:00
perprocess.h
pinfo.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
pinfo.h * external.cc: Move pids declaration to file scope and use less enthusiastic 2005-05-19 01:25:20 +00:00
pipe.cc * fhandler.cc (fhandler_base::read): Remove unused signal state tweaks. 2005-04-22 13:58:09 +00:00
poll.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
posix.sgml
profil.c
profil.h
pseudo-reloc.cc
pthread.cc Unify usage of CYG_MAX_PATH throughout. Change buffers from 2005-04-03 08:45:21 +00:00
pwdgrp.h * sync.h (muto::initforce): Delete flawed implementation. 2005-04-05 06:04:57 +00:00
registry.cc * cygheap.cc (cygheap_init): Accomodate set_process_privilege change. 2005-04-03 13:06:43 +00:00
registry.h 2004-12-03 Pierre Humblet <pierre.humblet@ieee.org> 2004-12-03 02:00:37 +00:00
resource.cc * cygheap.cc (creturn): Set appropriate errno when out of memory. 2003-07-09 01:33:06 +00:00
rmsym * rmsym: Don't use ranlib. 2003-07-07 05:32:24 +00:00
scandir.cc * fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set 2005-03-01 11:51:29 +00:00
sched.cc * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
sec_acl.cc Remove PC_FULL from path_conv usage throughout. 2005-05-13 15:46:07 +00:00
sec_helper.cc * cygheap.cc (cygheap_init): Accomodate set_process_privilege change. 2005-04-03 13:06:43 +00:00
security.cc * security.cc (alloc_sd): Remove DELETE bit from user's ACE if 2005-04-19 10:10:13 +00:00
security.h white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
select.cc * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o. 2005-05-10 20:56:07 +00:00
select.h * debug.h (console_printf): Define for non-debugging condition. 2004-02-09 04:04:24 +00:00
sem.cc * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
shared.cc * shared.cc (user_shared_initialize): Rework locking so that nothing is checked 2005-05-04 01:20:05 +00:00
shared.sgml Update Makefile to use xmlto 2004-12-27 19:03:56 +00:00
shared_info.h * shared_info.h (cygwin_shared_address): Bump to a higher value to avoid 2005-04-28 23:59:44 +00:00
shm.cc * shm.cc: Whitespace fixes. 2004-07-20 16:08:49 +00:00
signal.cc * times.cc (hires_ms::usecs): Compare the difference. 2005-03-27 23:33:30 +00:00
sigproc.cc * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
sigproc.h * debug.cc (delete_handle): Report on handle value in debugging output. 2005-02-26 20:50:25 +00:00
smallprint.c * child_info.h (fork_info): Use different method to alias variable. 2005-03-19 21:45:15 +00:00
spawn.cc * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
speclib * speclib: Use correct EOF marker. Ensure that directory is actually deleted 2003-11-28 20:51:11 +00:00
stackdump.sgml Update Makefile to use xmlto 2004-12-27 19:03:56 +00:00
strace.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
string.h
strsep.cc
strsig.cc * Makefile.in (DLL_OFILES): Add strsig.o. 2004-02-03 21:59:27 +00:00
sync.cc * wininfo.h (wininfo::timer_active): Delete. 2005-03-27 01:57:38 +00:00
sync.h * sync.h (muto::initforce): Delete flawed implementation. 2005-04-05 06:04:57 +00:00
syscalls.cc * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
sysconf.cc * cygerrno.h (__seterrno_from_nt_status): Define. Always set Win32 2005-04-13 16:41:33 +00:00
syslog.cc * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o. 2005-05-10 20:56:07 +00:00
termios.cc Rename _threadinfo to _cygtls, throughout. 2004-02-12 03:01:58 +00:00
textmode.c
textreadmode.c * Makefile.in (EXTRALIBS): Add libtextreadmode.a. 2004-04-06 14:22:43 +00:00
thread.cc * thread.h (pthread_key::set): Inline. 2005-05-29 02:42:36 +00:00
thread.h * thread.h (List_remove): Make node parameter const. Use simple comparison and 2005-05-30 18:37:41 +00:00
timer.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
times.cc * times.cc (time_ms::usecs): Coerce comparison to signed or whole test is a 2005-05-28 21:31:17 +00:00
tlsoffsets.h * cygtls.h (_local_storage::unknown_thread_name): New buffer. 2005-05-18 23:30:02 +00:00
tty.cc * tty.cc (tty_list::terminate): Guard releasing the tty with tty_mutex. 2004-12-14 17:19:22 +00:00
tty.h Change the name "title_mutex" to "tty_mutex" throughout. 2004-05-17 15:27:56 +00:00
tz_posixrules.h
uinfo.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
uname.cc * exceptions.cc: (ctrl_c_handler): Do nothing while a Cygwin subprocess is 2004-09-12 03:47:57 +00:00
wait.cc * child_info.h (child_info_spawn::hexec_proc): Eliminate. 2004-11-26 04:15:10 +00:00
winbase.h * winbase.h (ilockincr): Add more neverending changes from the inexplicable 2004-06-04 23:55:44 +00:00
wincap.cc Revert previous patch. 2005-04-11 21:54:54 +00:00
wincap.h Revert previous patch. 2005-04-11 21:54:54 +00:00
window.cc * sync.h (muto::operator int): New operator. 2005-04-05 04:31:00 +00:00
wininfo.h * sync.h (muto::operator int): New operator. 2005-04-05 04:31:00 +00:00
winsup.h * child_info.h (child_info::cygheap_h): Delete. 2005-06-01 03:46:56 +00:00
winver.rc