diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-09-12 17:46:37 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-09-12 17:46:37 +0000 |
commit | ba94682838272afc87b73833c02aaf6cea40815e (patch) | |
tree | 33443e904759c4bb192f674b2e8c30c59641f138 /winsup/cygwin/cygheap.cc | |
parent | c88bb51c3ca08f1cf79dd0215ff5f46817267ddb (diff) | |
download | newlib-ba94682838272afc87b73833c02aaf6cea40815e.zip newlib-ba94682838272afc87b73833c02aaf6cea40815e.tar.gz newlib-ba94682838272afc87b73833c02aaf6cea40815e.tar.bz2 |
* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index c6ea684..42127ee 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -96,7 +96,7 @@ cygheap_fixup_in_child (child_info *ci, bool execed) { cygheap = ci->cygheap; cygheap_max = ci->cygheap_max; - void *addr = iswinnt ? cygheap : NULL; + void *addr = !wincap.map_view_of_file_ex_sucks () ? cygheap : NULL; void *newaddr; newaddr = MapViewOfFileEx (ci->cygheap_h, MVMAP_OPTIONS, 0, 0, 0, addr); |