libc/winsup/cygwin
Christopher Faylor b0e82b74fb * Makefile.in: Add cygheap.o.
* child_info.h: Add specific exec class.
* cygheap.h: New file.  Contains declarations for cygwin heap.
* cygheap.cc: New file.  Implements cygwin heap functions.
* dcrt0.cc (quoted): Simplify due to new method for passing arguments between
cygwin programs.
(alloc_stack_hard_way): Attempt to handle overlapped stack.
(dll_crt0_1): Move child_info processing here.  Accomodate new method for
passing arguments between cygwin programs.  Initialize cygwin heap.  Establish
__argc and __argv variables.
(_dll_crt0): Move most of child_info processing to dll_crt0_1.
(cygwin_dll_init): Remove duplication.
* dtable.cc (dtable::extend): Allocate dtable using cygwin heap.
(dtable::build_fhandler): Ditto for fhandler type being constructed.
(dtable::dup_worker): Free new fhandler from cygwin heap on error.
(dtable::select_*): Don't assume that this == fdtab.
(dtable::linearize_fd_array): Delete.
(dtable::delinearize_fd_array): Delete.
(dtable::fixup_after_exec): New file.
(dtable::vfork_child_dup): Use cygwin heap.
(dtable::vfork_parent_restore): Ditto.
* dtable.h: Remove obsolete methods.  Add new method.
* environ.cc (posify): Eliminate already_posix parameter and logic.
(envsize): New function.
(_addenv): Use envsize.
(environ_init): Accept an argument pointing to an existing environment list.
If supplied, allocate space for this in the the program's heap.
* fhandler.cc (fhandler_base::operator =): Move here from fhandler.h.  Use
cygwin heap to allocate filenames.
(fhandler_base::set_name): Allocate/free names from cygwin heap.
(fhandler_base::linearize): Delete.
(fhandler_base::de_linearize): Delete.
(fhandler_base::operator delete): Free from cygwin heap.
(fhandler_base::~fhandler_base): Ditto.
* fhandler.h: Accomodate elimination of *linearize and other changes above.
* fhandler_console.cc (fhandler_console::fixup_after_exec): Rename from
de_linearize.
* heap.h: New file.
* fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Use cygwin heap for
name.  fhandler_tty::fixup_after_exec): Rename from de_linearize.
* fork.cc (fork): Call cygheap_fixup_in_child.
* heap.cc: Use declarations in heap.h.
* malloc.cc: Sprinkle assertions throughout to catch attempts to free/realloc
something from the cygwin heap.
* path.cc: Throughout, eliminate use of per-thread cache for cwd.  Use cwd_*
functions rather than cwd_* variables to access cwd_win32 and cwd_posix.
(cwd_win32): New function.
(cwd_posix): New function.
(cwd_hash): New function.
(cwd_fixup_after_exec): New function.
* path.h: Accomodate path.cc changes.
* pinfo.cc (pinfo_init): Accept a pointer to an environment table.  Pass this
to environ_init.  Eliminate old 'title' tests.
* pinfo.h: Accomodate above change in argument.
* spawn.cc (struct av): New method for building argv list.
(av::unshift): New method.
(spawn_guts): Allocate everything that the child process needs in the cygwin
heap and pass a pointer to this to the child.  Build argv list using new
method.  Eliminate delinearize stuff.
* thread.h: Eliminate _cwd_win32 and _cwd_posix buffers.
* winsup.h: Eliminate obsolete functions.  Add envsize() declaration.
2000-09-03 04:16:35 +00:00
..
config/i386 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
include * dcrt0.cc (dll_crt0_1): Move set_os_type. 2000-08-26 01:36:20 +00:00
lib * include/cygwin/cygwin_dll.h: Update for modern compilers. 2000-07-29 04:19:24 +00:00
regexp add winsup.h 2000-08-02 20:13:18 +00:00
CYGWIN_LICENSE import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
ChangeLog-1995 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1996 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1997 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1998 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1999 Update. 2000-02-21 03:18:37 +00:00
Makefile.in * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
ROADMAP hinfo -> dtable 2000-08-18 19:51:02 +00:00
acconfig.h * acconfig.h: Add support for NEWVFORK. 2000-07-16 17:38:41 +00:00
ansi.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
assert.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
autoload.h * exceptions.cc: Remove unneeded include. 2000-06-01 05:57:54 +00:00
binmode.c Minor formatting change. 2000-07-28 23:21:04 +00:00
child_info.h * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
config.h.in * acconfig.h: Add support for NEWVFORK. 2000-07-16 17:38:41 +00:00
configure * acconfig.h: Add support for NEWVFORK. 2000-07-16 17:38:41 +00:00
configure.in * acconfig.h: Add support for NEWVFORK. 2000-07-16 17:38:41 +00:00
cygerrno.h * cygerrno.h: New file. Use this throughout whenever errno manipulation is 2000-08-22 03:58:47 +00:00
cygheap.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
cygheap.h * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
cygrun.c import winsup-2000-02-17 snapshot 2000-02-17 19:38:31 +00:00
cygwin.din * include/cygwin/version.h: Bump DLL minor version number to 5 due to all of 2000-07-29 16:24:59 +00:00
dcrt0.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
debug.cc * debug.h: Allow some debug defines for use in header files. 2000-08-24 16:33:03 +00:00
debug.h Fix final round of gcc warnings relating to unused parameters. 2000-02-24 06:45:32 +00:00
delqueue.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
dir.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
dlfcn.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
dll_init.cc * cygerrno.h: New file. Use this throughout whenever errno manipulation is 2000-08-22 03:58:47 +00:00
dll_init.h * hinfo.cc (hinfo::linearize_fd_array): Make max_used_fd an int so that we can 2000-07-15 02:48:11 +00:00
dll_init.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
dtable.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
dtable.h * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
dtable.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
environ.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
errno.cc * errno.cc (set_errno_from_win_error): Actually use arguments to strace_printf. 2000-08-31 20:07:53 +00:00
exceptions.cc * signal.cc (_raise): New function. 2000-08-29 02:06:49 +00:00
exec.cc * exec.cc (_execve): Change definition according to declaration in 2000-08-25 19:52:04 +00:00
external.cc * dcrt0.cc (dll_crt0_1): Move set_os_type. 2000-08-26 01:36:20 +00:00
external.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
fcntl.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
fhandler.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
fhandler.h * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
fhandler_console.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
fhandler_floppy.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
fhandler_random.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
fhandler_raw.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
fhandler_serial.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
fhandler_tape.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
fhandler_termios.cc * sigproc.cc (proc_info): Rename proc_exists which takes a pid to "pid_exists". 2000-09-01 20:54:22 +00:00
fhandler_tty.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
fhandler_windows.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
fhandler_zero.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
fork.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
gcrt0.c import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
glob.c * winsup.h: take out protections of environ, errno, allow C use 2000-08-02 16:28:18 +00:00
gmon.c import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
gmon.h import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
grp.cc * grp.cc (getgroups): fail with EINVAL if array is not large 2000-08-29 18:59:26 +00:00
heap.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
heap.h * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
init.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
ioctl.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
localtime.c * winsup.h: take out protections of environ, errno, allow C use 2000-08-02 16:28:18 +00:00
malloc_wrapper.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
mcount.c * sigproc.cc (sig_send): Eliminate sync_sig_send synchronization since it 2000-03-07 18:32:40 +00:00
misc-std.sgml clean up SGML for latest version of jade/docbook 2000-04-19 00:55:19 +00:00
mkvers.sh * mkvers.sh: Properly trap exit removal of temp file. Remove debugging 2000-08-12 05:48:51 +00:00
mmap.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
net.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
ntea.cc * include/cygwin/version.h: Bump DLL minor version number to 5 due to all of 2000-07-29 16:24:59 +00:00
passwd.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
path.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
path.h * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
path.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
perthread.h * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
pinfo.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
pinfo.h * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
pipe.cc * environ.cc (parse_thing): nobinmode should force O_TEXT. 2000-08-24 17:54:43 +00:00
poll.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
posix.sgml clean up SGML for latest version of jade/docbook 2000-04-19 00:55:19 +00:00
profil.c import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
profil.h import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
pthread.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
registry.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
resource.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
scandir.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
security.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
select.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
select.h import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
shared.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
shared.h * sigproc.cc (proc_info): Rename proc_exists which takes a pid to "pid_exists". 2000-09-01 20:54:22 +00:00
shared.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
signal.cc * signal.cc (_raise): New function. 2000-08-29 02:06:49 +00:00
sigproc.cc * sigproc.cc (mychild): New function. 2000-09-02 01:19:58 +00:00
sigproc.h * sigproc.cc (proc_info): Rename proc_exists which takes a pid to "pid_exists". 2000-09-01 20:54:22 +00:00
smallprint.c * strace.cc (strace::prntf): Make second argument the function name, rather 2000-08-02 19:26:01 +00:00
spawn.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
strace.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
strsep.cc import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
sync.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
sync.h * path.cc (mount_info::cygdrive_posix_path): Don't add trailing slash if 2000-05-17 05:49:51 +00:00
syscalls.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
sysconf.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
syslog.cc * select.cc (cygwin_select): Correct logic for "always_ready" fds or when there 2000-08-24 21:19:14 +00:00
termios.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
test.c import winsup-2000-02-17 snapshot 2000-02-17 19:38:31 +00:00
textmode.c Minor formatting change. 2000-07-28 23:21:04 +00:00
thread.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
thread.h * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
times.cc * times.cc (gettimeofday): use GetSystemTimeAsFileTime to avoid a 2000-08-30 22:37:24 +00:00
tty.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
tz_posixrules.h import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
uinfo.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
uname.cc * winsup.h: take out protections of environ, errno, allow C use 2000-08-02 16:28:18 +00:00
wait.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
window.cc * cygerrno.h: New file. Use this throughout whenever errno manipulation is 2000-08-22 03:58:47 +00:00
winsup.h * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
winver.rc Update copyright info. 2000-07-19 17:42:16 +00:00