newlib-cygwin/winsup/cygwin
Christopher Faylor 0301bfd0ac * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag
functionality.
* cygheap.cc (init_cheap): Move cygheap_max calculation to _csbrk.
(_csbrk): Reorganize to not assume first allocation is <= 1 page.
(cygheap_setup_for_child): Mark protected handle as inheritable.
* cygheap.h (cygheap_debug): New struct.
(init_cygheap): Add new structure when debugging.
* dcrt0.cc (dll_crt0_1): Remove call to debug_init.  Close ppid_handle here, if
appropriate.  Don't protect subproc_ready, since it is already protected in the
parent.  Call memory_init prior to ProtectHandle to ensure that cygheap is set
up.  Call debug_fixup_after_fork_exec when appropriate.
(_dll_crt0): Don't close ppid_handle here.
* debug.cc: Use cygheap debug structure rather than static elements throughout.
(add_handle): Don't issue a warning if attempt to protect handle in exactly the
same way from exactly the same place.  Add pid info to warning output.  Accept
additional argument controlling whether handle is to be inherited.  Add pid to
stored information.
(debug_fixup_after_fork_exec): Renamed from debug_fixup_after_fork.  Reorganize
to avoid erroneously skipping handles.
(mark_closed): Add pid info to warning output.
(setclexec): Rename from setclexec_pid.
* fhandler.cc (fhandler_base::get_default_fmode): Minor reorg.
(fhandler_base::fstat): Add debugging output.
(fhandler_base::set_inheritance): Call setclexec rather than setclexec_pid.
(fhandler_base::fork_fixup): Ditto.
* fhandler_console.cc (get_tty_stuff): Mark protected handle as inheritable.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
* tty.cc (tty::make_pipes): Ditto.
(tty::common_init): Ditto.
* fork.cc (fork_parent): Ditto.
(fork_child): Close protected handles with correct name.  Remove
debug_fixup_after_fork call.
* fhandler_socket.cc (fhandler_socket::create_secret_event): Mark protected
handle as inheritable/non-inheritable, as appropriate.
* shared.cc (memory_init): Mark protected handle as inheritable.  Call
debug_init here.
* sigproc.cc (wait_sig): Close protected handle with correct name.
* spawn.cc (spawn_guts): Rename spr to subproc_ready and mark it as
inheritable.
* exceptions.cc (debugger_command): Try to run dumper.exe, if found.
* syscalls.cc (fstat64): Don't follow symlinks for path_conv lookup since path
is already resolved.
2002-07-13 20:00:27 +00:00
..
config/i386 Update copyrights. 2001-09-11 20:01:02 +00:00
include 2002-06-25 Thomas Pfaff <tpfaff@gmx.net> 2002-07-04 14:17:30 +00:00
lib * lib/_cygwin_S_IEXEC.cc: Remove obsolete file. 2002-06-24 02:08:41 +00:00
libc * Makefile.in: Add fnmatch.o to DLL_OFILES. 2002-01-17 10:39:37 +00:00
regex * hires.h (hires::usecs): Rename from utime. Accept an argument. 2002-02-15 17:06:40 +00:00
regexp Remove obsolete include. 2001-12-20 03:03:59 +00:00
CYGWIN_LICENSE Red Hatize 2001-10-12 01:51:21 +00:00
ChangeLog * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
ChangeLog-1995
ChangeLog-1996
ChangeLog-1997
ChangeLog-1998 fix spelling errors 2001-10-28 23:05:49 +00:00
ChangeLog-1999 fix spelling errors 2001-10-28 23:05:49 +00:00
ChangeLog-2000 fix spelling errors 2001-10-28 23:05:49 +00:00
ChangeLog-2001 restore missing entry 2002-01-01 16:49:52 +00:00
Makefile.in * Makefile.in (cygrun.exe): Move -lgcc where it will do some good. 2002-06-22 02:56:56 +00:00
ROADMAP
acconfig.h
ansi.sgml
assert.cc * pinfo.cc (codepage_init): Move function. 2001-01-08 04:02:02 +00:00
autoload.cc * autoload.cc (WSAEventSelect): Define new autoload function. 2002-07-03 09:20:24 +00:00
automode.c * autoload.c (cygwin_premain0): Add missing parameter. 2001-03-06 12:05:45 +00:00
binmode.c * autoload.c (cygwin_premain0): Add missing parameter. 2001-03-06 12:05:45 +00:00
child_info.h * child_info.h (child_proc_info): Declare as base class. 2002-06-15 21:59:32 +00:00
config.h.in * dlmalloc.c: New file. Port of Doug Lea's malloc 2001-04-24 15:25:31 +00:00
configure * Makefile.in (VPATH): Add regex directory. 2001-12-20 02:55:11 +00:00
configure.in * Makefile.in (VPATH): Add regex directory. 2001-12-20 02:55:11 +00:00
cygerrno.h * debug.cc (set_errno): Return value of errno that was set, just like the 2001-10-22 21:09:41 +00:00
cygheap.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
cygheap.h * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
cygmagic * cygmagic: Suppress error output when figuring out if sum takes an option. 2002-01-22 03:48:16 +00:00
cygrun.c Update copyrights. 2001-09-11 20:01:02 +00:00
cygserver.cc * cygserver.cc: Include stdlib.h for exit declaration. 2002-03-15 21:52:05 +00:00
cygserver_client.cc whitespace cleanup, update copyright 2002-03-13 02:34:05 +00:00
cygserver_process.cc * autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro. 2002-05-28 01:55:40 +00:00
cygserver_shm.cc Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
cygserver_shm.h whitespace cleanup, update copyright 2002-03-13 02:34:05 +00:00
cygserver_transport.cc 2002-06-10 Robert Collins <rbtcollins@hotmail.com> 2002-06-09 23:02:00 +00:00
cygserver_transport_pipes.cc whitespace cleanup, update copyright 2002-03-13 02:34:05 +00:00
cygserver_transport_sockets.cc whitespace cleanup, update copyright 2002-03-13 02:34:05 +00:00
cygwin.din * cygwin.in: Change erroneous entries. 2002-07-12 21:32:31 +00:00
cygwin.sc * cygwin.sc: Add recent changes from ld sources. 2002-06-23 18:55:23 +00:00
cygwin_ipc.h Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
cygwin_shm.h Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
cygwin_version.h Update copyrights. 2001-09-11 20:01:02 +00:00
dcrt0.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
debug.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
debug.h * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
delqueue.cc * Makefile.in: Build wincap.o. 2001-09-12 17:46:37 +00:00
dir.cc * dir.cc (rmdir): Streamline. Detect attempts to remove directories from 2002-06-05 16:01:55 +00:00
dlfcn.cc * cygheap.h (cygheap_fdmanip::cygheap_fdmanip): Clear fh. 2001-10-31 00:55:32 +00:00
dll_init.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
dll_init.h revert patch 2002-04-19 14:42:20 +00:00
dll_init.sgml
dlmalloc.c * cygheap.cc (cfree): Remove malloc debugging probe. 2001-10-03 03:49:26 +00:00
dlmalloc.h * dlmalloc.c: New file. Port of Doug Lea's malloc 2001-04-24 15:25:31 +00:00
dtable.cc * dtable.cc (cygwin_attach_handle_to_fd): Default to implicit bin mode if none 2002-07-03 18:02:54 +00:00
dtable.h * dtable.cc (dtable::build_fhandler_from_name): Just pass posix path along to 2002-05-24 05:44:10 +00:00
dtable.sgml
environ.cc * environ.cc (parse_options): Use setenv to potentially replace CYGWIN value on 2002-07-01 02:11:30 +00:00
environ.h * cygheap.h (cygheap_user): Reorg to accommodate environment caching. 2002-06-29 02:36:08 +00:00
errno.cc * syscalls.c (seteuid32): Do not return an error when the token cannot be 2002-07-01 23:42:05 +00:00
exceptions.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
exec.cc * Makefile.in: Ensure that -MD gets added to CFLAGS regardless of CFLAGS 2002-06-11 02:08:00 +00:00
external.cc * uinfo.cc (cygheap_user::ontherange): Use env_name for NetUserGetInfo. 2002-06-21 05:01:17 +00:00
external.sgml
fcntl.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
fhandler.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
fhandler.h * fhandler.h (fhandler_socket::is_unconnected): Constify. 2002-07-06 11:16:07 +00:00
fhandler_clipboard.cc * fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode. 2002-07-01 19:03:26 +00:00
fhandler_console.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
fhandler_disk_file.cc * fhandler_disk_file.cc (fhandler_disk_file::open): Don't 2002-07-11 14:05:17 +00:00
fhandler_dsp.cc * cygheap.cc (init_cheap): Rearrange error message. 2002-07-03 03:20:50 +00:00
fhandler_floppy.cc Remove fcntl.h includes throughout. 2002-06-05 01:42:28 +00:00
fhandler_mem.cc Remove fcntl.h includes throughout. 2002-06-05 01:42:28 +00:00
fhandler_proc.cc * autoload.cc (GetSecurityInfo): Define new autoload function. 2002-07-02 01:36:15 +00:00
fhandler_process.cc * autoload.cc (GetSecurityInfo): Define new autoload function. 2002-07-02 01:36:15 +00:00
fhandler_random.cc * fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode. 2002-07-01 19:03:26 +00:00
fhandler_raw.cc * fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode. 2002-07-01 19:03:26 +00:00
fhandler_registry.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
fhandler_serial.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
fhandler_socket.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
fhandler_tape.cc Remove fcntl.h includes throughout. 2002-06-05 01:42:28 +00:00
fhandler_termios.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
fhandler_tty.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
fhandler_virtual.cc * autoload.cc (GetSecurityInfo): Define new autoload function. 2002-07-02 01:36:15 +00:00
fhandler_windows.cc * fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode. 2002-07-01 19:03:26 +00:00
fhandler_zero.cc * fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode. 2002-07-01 19:03:26 +00:00
fork.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
gcrt0.c Update copyrights. 2001-09-11 20:01:02 +00:00
glob.c * fhandler.cc (fhandler_base::fstat): Initialise tv_nsec member of 2002-06-06 15:35:09 +00:00
gmon.c 2002-05-25 Robert Collins <rbtcollins@hotmail.com> 2002-05-24 14:24:33 +00:00
gmon.h
grp.cc Use hMainProc where appropriate, throughout. 2002-06-19 15:27:27 +00:00
heap.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
heap.h * heap.h (inheap): Check for NULL. 2001-10-05 04:36:14 +00:00
hires.h * autoload.cc (timeGetDevCaps): Define new autoload function. 2002-06-07 03:44:33 +00:00
how-cygheap-works.txt fix spelling errors 2001-10-28 23:05:49 +00:00
how-fhandlers-work.txt . 2002-05-04 04:30:57 +00:00
how-signals-work.txt typo, words. 2001-09-22 01:29:07 +00:00
how-spawn-works.txt new how-to. 2002-02-11 02:25:42 +00:00
how-to-debug-cygwin.txt add more words 2002-01-30 02:44:21 +00:00
how-vfork-works.txt * fhandler.h (fhandler_pipe::hit_eof): New method. 2001-09-24 21:50:44 +00:00
init.cc Throughout, rename PROC_FORK1 to PROC_FORK. 2001-10-10 02:32:12 +00:00
ioctl.cc Add copyright stuff 2002-01-13 20:03:03 +00:00
ipc.cc Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
localtime.cc * localtime.cc (tzsetwall): Use wildabbr if generated timezone name 2002-05-07 13:18:44 +00:00
malloc_wrapper.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
mcount.c
misc-std.sgml
miscfuncs.cc * autoload (noload): Avoid clobbering bx register. 2002-06-26 05:29:41 +00:00
mkvers.sh Add copyright stuff 2002-01-13 20:03:03 +00:00
mmap.cc * mmap.cc (list::match): Check using pagesize aligned size. 2002-06-27 13:01:35 +00:00
net.cc * fhandler.h (fhandler_socket::is_unconnected): Constify. 2002-07-06 11:16:07 +00:00
newsym * Makefile.in (VPATH): Add regex directory. 2001-12-20 02:55:11 +00:00
ntdll.h * ntdll.h (_SYSTEM_PROCESSOR_TIMES): Force eight byte alignment. 2002-07-05 21:58:49 +00:00
ntea.cc Update copyrights. 2001-09-11 20:01:02 +00:00
passwd.cc Use hMainProc where appropriate, throughout. 2002-06-19 15:27:27 +00:00
path.cc * ntdll.h (_SYSTEM_PROCESSOR_TIMES): Force eight byte alignment. 2002-07-05 21:58:49 +00:00
path.h * winsup.h: Minor cleanup. 2002-06-26 04:21:01 +00:00
path.sgml revert. 2001-06-01 01:45:53 +00:00
perprocess.h * dlopen.c (dlopen): Return NULL when name is NULL (suggested by 2001-03-05 06:28:25 +00:00
perthread.h * debug.cc (makethread): Eliminate unneeded function call. 2001-11-30 06:19:58 +00:00
pinfo.cc Use hMainProc where appropriate, throughout. 2002-06-19 15:27:27 +00:00
pinfo.h * Makefile.in: Ensure that -MD gets added to CFLAGS regardless of CFLAGS 2002-06-11 02:08:00 +00:00
pipe.cc * cygheap.cc (init_cheap): Rearrange error message. 2002-07-03 03:20:50 +00:00
poll.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
posix.sgml
profil.c Update copyrights. 2001-09-11 20:01:02 +00:00
profil.h Update copyrights. 2001-09-11 20:01:02 +00:00
pthread.cc 2002-06-25 Thomas Pfaff <tpfaff@gmx.net> 2002-07-04 14:17:30 +00:00
pwdgrp.h * pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning. 2002-06-26 14:59:22 +00:00
registry.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
registry.h Update copyrights. 2001-09-11 20:01:02 +00:00
resource.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
rmsym * Makefile.in (VPATH): Add regex directory. 2001-12-20 02:55:11 +00:00
scandir.cc * lib/getopt.c: Use __progname==__argv[0] when not compiling for cygwin. 2001-09-19 15:54:12 +00:00
sched.cc Remove unneeded sigproc.h includes throughout. 2002-06-02 06:07:01 +00:00
sec_acl.cc * security.h (DONT_INHERIT): Eliminate definition. 2002-07-02 08:11:15 +00:00
sec_helper.cc * cygheap.cc (init_cheap): Rearrange error message. 2002-07-03 03:20:50 +00:00
security.cc * security.cc (get_logon_server): Interpret a zero length 2002-07-02 09:02:53 +00:00
security.h * security.h (DONT_INHERIT): Eliminate definition. 2002-07-02 08:11:15 +00:00
select.cc * fhandler.h (fhandler_socket::is_unconnected): Constify. 2002-07-06 11:16:07 +00:00
select.h Update copyrights. 2001-09-11 20:01:02 +00:00
shared.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
shared.sgml
shared_info.h * path.cc: Change MOUNT_AUTO to MOUNT_CYGDRIVE throughout. 2002-06-09 00:48:38 +00:00
shm.cc Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
shortcut.c * winsup.h: Reorganize to avoid use of experimental stuff. 2001-11-28 02:36:32 +00:00
shortcut.h fix typo 2002-06-13 17:28:50 +00:00
signal.cc Remove unneeded sync.h, where appropriate, throughout. Remove unneeded heap.h, 2002-05-25 02:22:50 +00:00
sigproc.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
sigproc.h Remove unneeded sigproc.h includes throughout. 2002-06-02 06:07:01 +00:00
smallprint.c * winver.rc: Add more words to copyright. 2002-06-13 17:28:11 +00:00
spawn.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
speclib * speclib: Ensure that temporary def file is removed. 2002-01-24 21:39:09 +00:00
stackdump.sgml new description for old api. 2002-04-04 05:28:49 +00:00
strace.cc Use hMainProc where appropriate, throughout. 2002-06-19 15:27:27 +00:00
string.h * string.h (cygwin_strchr): Make 'static inline' so that things will still work 2001-05-06 16:00:23 +00:00
strsep.cc
sync.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
sync.h * winver.rc: Add more words to copyright. 2002-06-13 17:28:11 +00:00
syscalls.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
sysconf.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
syslog.cc * fhandler.cc (fhandler_base::fork_fixup): Don't protect handle. 2001-10-15 23:39:33 +00:00
termios.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
textmode.c * autoload.c (cygwin_premain0): Add missing parameter. 2001-03-06 12:05:45 +00:00
thread.cc 2002-06-25 Thomas Pfaff <tpfaff@gmx.net> 2002-07-04 14:17:30 +00:00
thread.h 2002-06-25 Thomas Pfaff <tpfaff@gmx.net> 2002-07-04 14:17:30 +00:00
threaded_queue.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
threaded_queue.h * winver.rc: Add more words to copyright. 2002-06-13 17:28:11 +00:00
times.cc * fhandler_socket.cc (fhandler_socket::fstat): Don't assume that socket is 2002-06-08 01:24:58 +00:00
tty.cc * debug.h (handle_list): Move here from debug.cc. Add "inherit" flag 2002-07-13 20:00:27 +00:00
tty.h Update copyright. 2002-03-05 18:03:32 +00:00
tz_posixrules.h Move appropriate variables to NO_COPY segment, throughout. 2001-09-06 05:17:22 +00:00
uinfo.cc * debug.cc (threads): Avoid initialization. 2002-07-01 16:37:46 +00:00
uname.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
wait.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
winbase.h * cygwin.sc: Add recent changes from ld sources. 2002-06-23 18:55:23 +00:00
wincap.cc * dcrt0.cc (dll_crt0_1): Initialize wincap and check for sanity before running 2002-06-10 17:08:09 +00:00
wincap.h * winver.rc: Add more words to copyright. 2002-06-13 17:28:11 +00:00
window.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
winsup.h * cygheap.cc (cfree_and_set): New function. 2002-06-27 20:44:27 +00:00
winver.rc * winver.rc: Add more words to copyright. 2002-06-13 17:28:11 +00:00
wsock_event.h * dtable.cc (dtable::dup2): Revert previous patch. 2002-02-09 10:40:48 +00:00