newlib/winsup/cygwin
Christopher Faylor 59297e0464 * cygheap.h (init_cygheap::manage_console_count): Declare new function.
(init_cygheap::console_count): Renamed from open_fhs.  Make private.
* cygheap.cc (init_cygheap::manage_console_count): Define new function.
* dtable.cc (dtable::fixup_after_exec): Always call fixup_after_exec on
elements of fd even when they are about to be closed.
* fhandler.h (report_tty_counts): Remove open_fhs from debugging output.
* fhandler_console.cc (fhandler_console::open): Use manage_console_count rather
than manipulating count directly.
(fhandler_console::close): Ditto.
(fhandler_console::fixup_after_fork): Ditto.
(fhandler_console::fixup_after_exec): Ditto.  Don't close handles if
close_on_exec.
* fhandler_tty.cc (fhandler_tty_slave::open): Use manage_console_count() rather
than manipulating count directly.  Reflect change in arguments to
report_tty_counts().
(fhandler_tty_slave::close): Ditto for both.
(fhandler_tty_slave::dup): Ditto for both.
(fhandler_tty_slave::ioctl): Use myctty() rather than raw ctty #.
(fhandler_tty_slave::fixup_after_fork): Reflect change in arguments to
report_tty_counts().
(fhandler_tty_master::init_console): Use manage_console_count() rather than
manipulating count directly.
* fhandler_clipboard.cc (fhandler_dev_clipboard::fixup_after_exec): Don't
perform any operations if close_on_exec.
* fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_exec): Ditto.
* fhandler_raw.cc (fhandler_dev_raw::fixup_after_exec): Ditto.
* fhandler_serial.cc (fhandler_serial::fixup_after_exec): Ditto.
* pinfo.h (_pinfo::_ctty): Declare new function.
(myctty): Declare new macro.
(__ctty): Declare new macro.
* pinfo.cc (_pinfo::_ctty): Define new function.
(_pinfo::set_ctty): Use manage_console_count() rather than manipulating count
directly.
* signal.cc (kill_pgrp): Use myctty() and __ctty() macros rather than raw ctty
#.
* syscalls.cc (setsid): Ditto.  Use manage_console_count() rather than
manipulating count directly.
2005-11-14 04:28:45 +00:00
..
config/i386
include * cygheap.h (init_cygheap::_gtod): Remove. 2005-11-11 16:42:15 +00:00
lib
libc * memmem.cc: New file. 2005-11-08 22:08:39 +00:00
regex white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
regexp
acconfig.h
ansi.sgml
assert.cc
autoload.cc * autoload.cc: Revert loading rcmd, rexec, rresvport and inet_network 2005-10-19 19:55:31 +00:00
automode.c
binmode.c
ChangeLog * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +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
ChangeLog-2004
child_info.h * child_info.h (CHILD_INFO_MAGIC): Reset. 2005-10-29 15:05:55 +00:00
config.h.in white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
configure * dllfixdbg: New perl script. 2005-08-08 02:27:43 +00:00
configure.in * dllfixdbg: New perl script. 2005-08-08 02:27:43 +00:00
cpuid.h
crt0.c * crt0.cc: Remove PPC considerations. 2005-09-29 14:28:22 +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 (geterrno_from_win_error): Change declaration to default to using 2005-08-20 06:19:55 +00:00
cygheap.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
cygheap.h * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
cygmagic * cygmagic: Remove debugging cruft missed on 2005-05-21. 2005-05-30 00:54:01 +00:00
cygmalloc.h * cygmalloc.h (MSPACES): Define. This dropped through the cracks after the 2005-07-28 17:03:34 +00:00
cygserver_ipc.h
cygserver_msg.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
cygserver_sem.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
cygserver_shm.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
cygserver.h
cygthread.cc Change process_lock to lock_process throughout. Change all calls to new 2005-10-17 23:27:00 +00:00
cygthread.h Change process_lock to lock_process throughout. Change all calls to new 2005-10-17 23:27:00 +00:00
cygtls.cc * cygheap.h (cygheap_fdenum::cygheap_fdenum): Record locked state or suffer 2005-10-23 23:47:45 +00:00
cygtls.h * cygtls.h (struct _cygtls::thread_handle): Remove/revert. 2005-09-23 15:18:22 +00:00
CYGWIN_LICENSE
cygwin_version.h
cygwin-shilka
cygwin.din * cygheap.h (init_cygheap::_gtod): Remove. 2005-11-11 16:42:15 +00:00
cygwin.sc * cygwin.sc: Use simpler method to align .cygheap. 2005-08-08 13:53:05 +00:00
dcrt0.cc * dcrt0.cc (dll_crt0_0): Initialize security data first so that it can be used 2005-11-06 14:02:33 +00:00
debug.cc * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
debug.h Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
delqueue.cc
devices.cc * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
devices.h * cygheap.h (cygheap_types): Add HEAP_COMMUNE. 2005-08-24 04:38:39 +00:00
devices.in * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
dir.cc * dir.cc (rmdir): Eliminate nonsensical code. 2005-10-21 14:08:19 +00:00
dlfcn.cc white space 2005-08-12 02:39:13 +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
dllfixdbg * cygwin.sc: Use simpler method to align .cygheap. 2005-08-08 13:53:05 +00:00
dlmalloc.c
dlmalloc.h
dtable.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
dtable.h * cygheap.h (cygheap_fdenum::cygheap_fdenum): Record locked state or suffer 2005-10-23 23:47:45 +00:00
dtable.sgml
environ.cc * environ.cc (spenvs): Make "SYSTEMDRIVE" an "always export". 2005-11-08 16:32:09 +00:00
environ.h * environ.h (win_env::immediate): Declare new field. 2005-03-30 15:54:28 +00:00
errno.cc * errno.cc (errmap): Map ERROR_SEEK and ERROR_SECTOR_NOT_FOUND. 2005-09-26 15:27:15 +00:00
exceptions.cc * include/sys/cygwin.h: Define CYGWIN_SIGNAL_STRING. 2005-11-01 05:55:30 +00:00
exec.cc
external.cc white space 2005-08-12 02:39:13 +00:00
external.sgml
fcntl.cc
fhandler_clipboard.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_console.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_disk_file.cc * fhandler_disk_file.cc (fhandler_base::utimes_fs): Use existing handle if 2005-10-19 16:50:43 +00:00
fhandler_dsp.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_fifo.cc Change name from commune_recv to commune_process throughout. Change name from 2005-09-28 22:56:47 +00:00
fhandler_floppy.cc * fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Use 2005-09-30 10:54:45 +00:00
fhandler_mailslot.cc white space 2005-08-12 02:39:13 +00:00
fhandler_mem.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_netdrive.cc Change process_lock to lock_process throughout. Change all calls to new 2005-10-17 23:27:00 +00:00
fhandler_nodevice.cc
fhandler_proc.cc * dcrt0.cc (get_exit_lock): Use myself.lock rather than exit_lock. 2005-10-02 00:13:41 +00:00
fhandler_process.cc * cygheap.h (cygheap_types): Add HEAP_COMMUNE. 2005-08-24 04:38:39 +00:00
fhandler_random.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_raw.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_registry.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
fhandler_serial.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_socket.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_tape.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_termios.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_tty.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_virtual.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_windows.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
fhandler_zero.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
fhandler.cc * fhandler_base.cc (fhandler_base::readv): Free buf, not a pointer into the 2005-11-08 23:25:55 +00:00
fhandler.h * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
flock.cc
fork.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
gcrt0.c
gendef * fork.cc (frok::child): Change order of cleanup prior to return. 2005-10-29 15:19:34 +00:00
gendevices
gentls_offsets Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
glob.c * glob.c: (glob0): New local variable limit. Use in calls to glob1 2005-06-18 19:04:25 +00:00
gmon.c
gmon.h
grp.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
heap.cc * heap.cc (heap_init): Revert 2005-09-11 patch as it seems to inexplicably 2005-09-14 18:30:21 +00:00
heap.h
hires.h * cygheap.h (init_cygheap::_gtod): Remove. 2005-11-11 16:42:15 +00:00
hookapi.cc * hookapi.cc (hook_or_detect_cygwin): Correct inverted test for whether to 2005-09-28 20:20:57 +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-cygtls-works.txt * dcrt0.cc (cygwin_dll_init): Now initializes main_environ and cygtls. Comment 2005-06-04 02:11:50 +00:00
how-fhandlers-work.txt
how-signals-work.txt
how-spawn-works.txt
how-to-debug-cygwin.txt fix breakpoint example 2005-05-06 21:09:35 +00:00
how-vfork-works.txt
init.cc * dcrt0.cc (getstack): New function. 2005-09-28 15:18:49 +00:00
ioctl.cc
ipc.cc
localtime.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
lsearch.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
Makefile.in * memmem.cc: New file. 2005-11-08 22:08:39 +00:00
malloc_wrapper.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
malloc.cc * cygmalloc.h (MSPACES): Define. This dropped through the cracks after the 2005-07-28 17:03:34 +00:00
mcount.c
misc-std.sgml
miscfuncs.cc * winsup.h (create_pipe): Declare new function. 2005-08-19 14:56:48 +00:00
mktemp.cc Add top comment 2005-05-25 03:43:58 +00:00
mkvers.sh
mmap.cc * autoload.cc (NtLockVirtualMemory): Import. 2005-10-18 18:51:33 +00:00
msg.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
mtinfo.h * mtinfo.h (mtinfo_drive::error): Fix argument bug in debug_printf call. 2005-08-22 16:12:01 +00:00
net.cc * fhandler_socket.cc (fhandler_socket::connect): Don't restrict 2005-10-22 16:02:15 +00:00
netdb.cc
newsym white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ntdll.h * autoload.cc (NtLockVirtualMemory): Import. 2005-10-18 18:51:33 +00:00
ntea.cc * mmap.cc (mmap64): Avoid compiler warning. 2005-05-18 17:23:17 +00:00
passwd.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
path.cc * dir.cc (mkdir): Abandon use of PC_WRITABLE. 2005-10-12 20:38:38 +00:00
path.h * dir.cc (mkdir): Abandon use of PC_WRITABLE. 2005-10-12 20:38:38 +00:00
path.sgml
perprocess.h
pinfo.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
pinfo.h * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
pipe.cc * cygheap.h (cygheap_fdenum): Remove start_fd stuff. 2005-10-24 15:09:07 +00:00
poll.cc * fhandler_socket.cc (fhandler_socket::recvfrom): Just return 0 (EOF) 2005-11-13 16:24:40 +00:00
posix.sgml
profil.c
profil.h
pseudo-reloc.cc
pthread.cc * pthread.cc (mangle_sem_name): Use cygheap->shared_prefix instead 2005-09-27 20:34:19 +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
resource.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
rmsym
ROADMAP
scandir.cc * fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set 2005-03-01 11:51:29 +00:00
sched.cc Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
sec_acl.cc * pinfo.cc (pinfo::init): Define sa_buf as PSECURITY_ATTRIBUTES and 2005-06-07 19:31:42 +00:00
sec_helper.cc Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
security.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
security.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
select.cc Change process_lock to lock_process throughout. Change all calls to new 2005-10-17 23:27:00 +00:00
select.h
sem.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
shared_info.h * path.cc (normalize_posix_path): Keep two leading slashes 2005-08-26 15:11:06 +00:00
shared.cc * cygheap.cc (cygheap_init): Add GLOBAL_PRIV to hProcToken explicitely 2005-09-27 19:04:38 +00:00
shared.sgml
shm.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
signal.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
sigproc.cc * fork.cc (frok::child): Change order of cleanup prior to return. 2005-10-29 15:19:34 +00:00
sigproc.h * cygtls.h (struct _cygtls::thread_handle): Remove/revert. 2005-09-23 15:18:22 +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 * exceptions.cc (signal_exit): Eliminate setting of main thread priority since 2005-10-29 20:33:59 +00:00
speclib
stackdump.sgml
strace.cc * strace.cc (strace::vsprntf): Avoid printing a zero pid. 2005-09-27 18:54:32 +00:00
string.h
strsep.cc
strsig.cc
sync.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
sync.h * cygheap.h (cygheap_fdenum::cygheap_fdenum): Record locked state or suffer 2005-10-23 23:47:45 +00:00
syscalls.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
sysconf.cc * autoload.cc (NtLockVirtualMemory): Import. 2005-10-18 18:51:33 +00:00
syslog.cc * syslog.cc (setlogmask): Don't mask the mask. 2005-11-10 10:34:49 +00:00
termios.cc * fhandler_serial.cc (fhandler_serial::tcgetattr): Just zero c_cflag here 2005-09-09 03:00:34 +00:00
textmode.c
textreadmode.c
thread.cc * thread.h: Revert patch from 2005-09-05. 2005-09-06 19:22:54 +00:00
thread.h * thread.h: Revert patch from 2005-09-05. 2005-09-06 19:22:54 +00:00
timer.cc * cygheap.h (init_cygheap::_gtod): Remove. 2005-11-11 16:42:15 +00:00
times.cc * cygheap.h (init_cygheap::_gtod): Remove. 2005-11-11 16:42:15 +00:00
tlsoffsets.h * tlsoffsets.h: Regenerate. 2005-09-23 19:24:03 +00:00
tty.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
tty.h
tz_posixrules.h
uinfo.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
uname.cc * uname.cc (uname): Disable use of GetNativeSystemInfo. 2005-10-03 09:24:42 +00:00
wait.cc Change pthread::cancelable_wait to just cancelable_wait, throughout. 2005-06-09 05:11:51 +00:00
winbase.h * pinfo.cc (pinfo::init): Define sa_buf as PSECURITY_ATTRIBUTES and 2005-06-07 19:31:42 +00:00
wincap.cc * autoload.cc (NtLockVirtualMemory): Import. 2005-10-18 18:51:33 +00:00
wincap.h * autoload.cc (NtLockVirtualMemory): Import. 2005-10-18 18:51:33 +00:00
window.cc Change process_lock to lock_process throughout. Change all calls to new 2005-10-17 23:27:00 +00:00
wininfo.h * sync.h (muto::operator int): New operator. 2005-04-05 04:31:00 +00:00
winsup.h * autoload.cc: Never load wsock32.dll. Load all wsock32 function 2005-10-17 21:22:18 +00:00
winver.rc