Christopher Faylor
f9fb1149d5
Revert 2005-05-30 close_all_files changes.
...
* spawn.cc (spawn_guts): When execing, close all files after the child has
synced with us.
2005-06-02 02:36:50 +00:00
Christopher Faylor
5ac6edefaf
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Make sure that disk open
...
is called in case we're passed in a non-existent device.
2005-06-02 01:50:23 +00:00
Christopher Faylor
31d0f220ad
* include/machine/stdlib.h: New file.
2005-06-01 18:24:31 +00:00
Christopher Faylor
19adafdc21
* thread.h (List_remove): Revert most of 2005-05-30 change.
2005-06-01 14:55:45 +00:00
Christopher Faylor
8d05cca34b
* cygwin.sc: Don't output .reloc or .rsrc sections. Clean up stuff around
...
.cygheap and use a workaround to get things working with newer
(broken?) binutils.
2005-06-01 04:42:44 +00:00
Christopher Faylor
5d4a672193
* cygheap.cc (cygheap_end): Remove bogus section attribute.
...
* cygwin.sc: Make __cygheap_mid absolute. Remove unused _cygheap_foo.
2005-06-01 04:00:40 +00:00
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
Richard Henderson
302cb8165e
* alpha.h (LITUSE_ALPHA_JSRDIRECT): New.
2005-05-31 22:52:31 +00:00
Christopher Faylor
9885498829
* thread.h (List_remove): Make node parameter const. Use simple comparison and
...
assignment rather than InterlockedCompareExchangePointer since access is
already synchronized.
2005-05-30 18:37:41 +00:00
Christopher Faylor
ac5e21b028
* dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error.
2005-05-30 18:20:28 +00:00
Corinna Vinschen
26797de314
* cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PC
...
Editions. Change .NET to 2003 throughout. Recognize 2003 Web Server
and Datacenter Server. Report when running in terminal server session.
2005-05-30 15:49:31 +00:00
DJ Delorie
b66f95cc73
merge from gcc
2005-05-30 01:12:16 +00:00
Christopher Faylor
44055eca0b
* cygmagic: Remove debugging cruft missed on 2005-05-21.
2005-05-30 00:54:01 +00:00
Richard Henderson
560c28560c
* alpha.h (DT_ALPHA_PLTRO): New.
2005-05-29 23:18:26 +00:00
Corinna Vinschen
7897d3fd88
* path.cc (path_conv::check): Move component to function scope. Set
...
PATH_RO only on *real* FH_NETDRIVEs or on non-FH_NETDRIVE virtual
paths. Allow non-retrievable shares to be handled as files.
2005-05-29 11:04:02 +00:00
Corinna Vinschen
f330e7b8e8
* include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Always define.
2005-05-29 10:05:56 +00:00
Christopher Faylor
65a7ca7b7b
* thread.h (pthread_key::set): Inline.
...
(pthread_key::get): Ditto.
* thread.cc (pthread::set): Delete.
(pthread::get): Ditto.
2005-05-29 02:42:36 +00:00
Christopher Faylor
37b01058e7
* cygwin.din: Remove signal front end from pthread_[gs]etspecific.
2005-05-29 02:26:29 +00:00
Christopher Faylor
5c0a13d486
* fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.
2005-05-29 00:05:49 +00:00
Christopher Faylor
03bb8acaa7
* times.cc (time_ms::usecs): Coerce comparison to signed or whole test is a
...
no-op.
2005-05-28 21:31:17 +00:00
Joshua Daniel Franklin
73162dcdd0
* how-using.texinfo : Update the mkdir -p section
2005-05-28 20:35:58 +00:00
DJ Delorie
50cc47a3a5
merge from gcc
2005-05-28 19:49:21 +00:00
Christopher Faylor
e1e5d196d2
white space
2005-05-27 18:42:03 +00:00
Christopher Faylor
1bbf1ac6a5
* cygheap.h: Reference _cygheap_start via .cygheap section.
...
* environ.cc: Fix force_into_environment typo throughout.
(spenvs): Export CYGWIN_DEBUG if DEBUGGING.
2005-05-27 18:26:19 +00:00
Christopher Faylor
cba3b11fc5
* cygcheck.cc (load_cygwin): Make half-hearted attempt to work with older DLLs.
...
* strace.cc (load_cygwin): Ditto.
2005-05-27 15:45:53 +00:00
Christopher Faylor
720c77ee72
* include/cygwin/version.h: Bump DLL minor number to 18.
2005-05-26 18:19:26 +00:00
Richard Henderson
dce76d2b39
include/
...
* demangle.h (DEMANGLE_COMPONENT_HIDDEN_ALIAS): New.
libiberty/
* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
(d_make_comp, d_print_comp): Likewise.
(d_special_name): Generate one.
* testsuite/demangle-expected: Add a hidden alias test.
2005-05-25 23:32:35 +00:00
Christopher Faylor
09731f7fbc
forced checkin
2005-05-25 18:30:18 +00:00
Paolo Bonzini
04639fa64c
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
...
* Makefile.tpl (stage[+id+]-start): Iterate over target module as well.
(Dependencies): Consider target modules for bootstrap dependencies.
Make target bootstrap modules depend on each stage's gcc.
* Makefile.in: Regenerate.
2005-05-25 14:23:03 +00:00
Corinna Vinschen
181c20f1ac
* ChangeLog: Remove accidentally checked in entry.
2005-05-25 08:41:28 +00:00
Christopher Faylor
125b724dd8
* fhandler.h (fhandler_base::mkdir): New virtual method.
...
(fhandler_base::rmdir): Ditto.
(fhandler_disk_file:mkdir): New method.
(fhandler_disk_file:rmdir): Ditto.
* dir.cc (mkdir): Implement with fhandlers.
(rmdir): Ditto.
* fhandler.cc (fhandler_base::mkdir): New virtual method.
(fhandler_base::rmdir): Ditto.
(fhandler_disk_file::mkdir): New method.
(fhandler_disk_file::rmdir): Ditto.
fhandler_random.cc: white space.
2005-05-25 04:32:59 +00:00
Christopher Faylor
2a41ee9e0c
* include/cygwin/version.h: Bump API minor number to 129.
2005-05-25 03:46:10 +00:00
Christopher Faylor
5c288d4342
Add top comment
2005-05-25 03:43:58 +00:00
Christopher Faylor
cb3f5f0862
* cygwin.din: Export mkdtemp.
...
* mktemp.cc: New file.
* Makefile.in (DLL_OFILES): Add mktemp.o
2005-05-25 03:40:07 +00:00
DJ Delorie
53726a558d
merge from gcc
2005-05-24 21:00:54 +00:00
John David Anglin
bffa834f8e
* hppa.h (FLAG_STRICT): Correct comment.
...
(pa_opcodes): Update load and store entries to allow both PA 1.X and
PA 2.0 mneumonics when equivalent. Entries with cache control
completers now require PA 1.1. Adjust whitespace.
2005-05-23 16:26:43 +00:00
Corinna Vinschen
e0242a025a
* include/stdint.h (INTMAX_C, UINTMAX_C): Fix definition.
2005-05-23 13:13:00 +00:00
Corinna Vinschen
827cff7fe2
* cygcheck.cc (dump_sysinfo_services): Add new function that uses
...
new cygrunsrv options to dump service info.
(dump_sysinfo): Call dump_sysinfo_services if running under NT.
Change 'Cygnus' to 'Cygwin' in output.
2005-05-23 09:54:44 +00:00
Christopher Faylor
f82ca06eda
* spawn.cc (find_exec): Accept a PATH-like string in place of an environment
...
variable.
* dlfcn.cc (get_full_path_of_dll): Search /usr/bin (for windows compatibility)
and /usr/lib (for UNIX compatibility) when looking for shared libraries.
* environ.cc (conv_envvars): Put back LD_LIBRARY_PATH since it is used by
get_full_path_of_dll().
* errno.cc (errmap): Map MOD_NOT_FOUND to ENOENT.
* cygmagic: Remove debugging cruft.
2005-05-22 03:54:29 +00:00
Christopher Faylor
f609f58d32
* cygcheck.cc (load_cygwin): Remove debugging statement.
2005-05-20 16:50:39 +00:00
Christopher Faylor
ceb7fa1c4a
* cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not set.
...
(nuke): Fix off by one error in allocation of environment variable.
(load_cygwin): Always set PATH even if cygwin environment is empty.
2005-05-20 16:38:42 +00:00
Corinna Vinschen
fece73ae83
* arm/elf-redboot.ld, iq2000/sim.ld, m68hc11/sim-valid-m68hc11.ld,
...
* m68hc11/sim-valid-m68hc12.ld, mcore/elf-cmb.ld, mips/cfe.ld,
* mips/ddb-kseg0.ld, mips/ddb.ld, mips/dve.ld, mips/idt.ld,
* mips/idt32.ld, mips/idt64.ld, mips/jmr3904app-java.ld,
* mips/jmr3904app.ld, mips/jmr3904dram-java.ld, mips/jmr3904dram.ld,
* mips/nullmon.ld, mips/pmon.ld, mn10200/eval.ld, mn10200/sim.ld,
* mn10300/asb2303.ld, mn10300/asb2305.ld, mn10300/eval.ld,
* mn10300/sim.ld, rs6000/ads.ld, rs6000/mbx.ld, rs6000/yellowknife.ld,
* sh/sh1lcevb.ld, sh/sh2lcevb.ld, sh/sh3bb.ld, sh/sh3lcevb.ld,
* sparc/elfsim.ld, sparc/ex930.ld, sparc/ex931.ld, sparc/ex934.ld,
* sparc/sparc86x.ld, xstormy16/eva_app.ld, xstormy16/eva_stub.ld,
* xstormy16/sim_high.ld, xstormy16/sim_rom.ld: Add .debug_ranges
section.
2005-05-20 15:45:45 +00:00
Paolo Bonzini
10b2590966
2005-05-20 Paolo Bonzini <bonzini@gnu.org>
...
* Makefile.def (configure-gcc): Depend on binutils having been built.
(all-gcc): No need to do it here.
* Makefile.in: Regenerate.
2005-05-20 07:16:11 +00:00
Zack Weinberg
93c827a547
* bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.in
...
* gas/Makefile.am: Have 'all' depend on 'info'.
* ld/Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
* bfd/Makefile.in, binutils/Makefile.in, gas/Makefile.in
* ld/Makefile.in: Regenerate.
2005-05-19 23:49:46 +00:00
Danny Smith
45e3403e7b
* crt1.c (_gnu_exception_handler): Handle illegal instruction
...
OS exception as a signal if user has defined a SIGILL handler.
2005-05-19 22:44:13 +00:00
Corinna Vinschen
89e5f7f81e
* include/cygwin/in.h: Add comment.
2005-05-19 21:22:37 +00:00
Corinna Vinschen
58065cb805
* include/cygwin/in.h: Define IPPROTO_xxx values as macros to
...
accomodate SUSv3.
2005-05-19 21:18:17 +00:00
Christopher Faylor
8c509c0a11
fix comment
2005-05-19 20:37:51 +00:00
Christopher Faylor
d63279febe
fix comment
2005-05-19 20:34:42 +00:00
Paul Brook
57bcaf2d91
2005-05-19 Paul Brook <paul@codesourcery.com>
...
* configure.in: Rewrite misleading error message when requested
language cannot be built.
* configure: Regenerate.
2005-05-19 20:25:24 +00:00