]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
13 years ago* dll_init.cc (reserve_upto): Remove.
Christopher Faylor [Mon, 30 May 2011 16:09:29 +0000 (16:09 +0000)]
* dll_init.cc (reserve_upto): Remove.
(release_upto): Ditto.
(dll_list::reserve_space): New function to reserve space needed by DLL_LOAD
dlls early in the fork process.
(dll_list::load_after_fork): Rewrite to use recursion to track reservations it
makes while trying to make dlls land where they belong.
(dll_list::load_after_fork_impl): New function used by load_after_fork.
(dll_list::alloc): Initialize image base field.
* dll_init.h (dll_list::prefered_base): New field.
(dll_list::reserve_space): Declare new function.
(dll_list::load_after_fork): Declare new function.
* fork.cc (frok::child): call dll_list::reserve_space early, so we can retry if
it fails.

13 years ago* fhandler_termios.cc (fhandler_termios::bg_check): Do not return EIO when a
Christopher Faylor [Mon, 30 May 2011 06:58:00 +0000 (06:58 +0000)]
* fhandler_termios.cc (fhandler_termios::bg_check): Do not return EIO when a
process group has no leader as this is allowed and does not imply an orphaned
process group.  Add a test for orphaned process groups.
(tty_min::is_orphaned_process_group): Define new function.
* tty.h (tty_min::is_orphaned_process_group): Define new function.

13 years ago* dll_init.cc (dll_list::find_by_modname): New function to search the dll list
Christopher Faylor [Mon, 30 May 2011 06:52:12 +0000 (06:52 +0000)]
* dll_init.cc (dll_list::find_by_modname): New function to search the dll list
for a module name only (no path).
(dll_list::alloc): Initialize newly-added members of struct dll.
(dll_list::append): New function to factor out the append operation
(used by dll_list::topsort).
(dll_list::populate_deps): New function to identify dll dependencies.
(dll_list::topsort): New function to sort the dll list topologically by
dependencies.
(dll_list::topsort_visit): New helper function for the above.
* dll_init.h (dll::ndeps): New class member.
(dll::deps): Ditto.
(dll::modname): Ditto.
(dll_list::find_by_modname): New function related to topsort.
(dll_list::populate_all_deps): Ditto.
(dll_list::populate_deps): Ditto.
(dll_list::topsort): Ditto.
(dll_list::topsort_visit): Ditto.
(dll_list::append): Ditto.
(pefile): New struct allowing simple introspection of dll images.
* fork.cc (fork): Topologically sort the dll list before forking
* child_info.h (CURR_CHILD_INFO_MAGIC): Refresh.
(child_info::refresh_cygheap): New function.
* spawn.cc (spawn_guts): Call refresh_cygheap before creating a new process to
ensure that cygheap_max is up-to-date.
* fork.cc (frok::parent): Ditto.

13 years ago* cygheap.cc (cygheap_dummy): Rename from cygheap_at_start.
Christopher Faylor [Mon, 30 May 2011 06:24:53 +0000 (06:24 +0000)]
* cygheap.cc (cygheap_dummy): Rename from cygheap_at_start.
(cygheap): Accommodate name change to cygheap_dummy.
(cygheap_init): Ditto.
(cygheap_fixup_in_child): Simplify slightly.
* fork.cc (fork): Add an advisory comment.

13 years ago* fhandler.cc (fhandler_overlapped::wait_overlapped): Make sure that I/O is
Christopher Faylor [Sun, 29 May 2011 15:30:27 +0000 (15:30 +0000)]
* fhandler.cc (fhandler_overlapped::wait_overlapped): Make sure that I/O is
cancelled on signal.

13 years ago* ps.cc (ttynam): Accommodate new console numbering.
Christopher Faylor [Sun, 29 May 2011 15:20:10 +0000 (15:20 +0000)]
* ps.cc (ttynam): Accommodate new console numbering.
(main): Ditto.

13 years ago* dll_init.cc (dll_list::alloc): Initialize dll::image_size.
Christopher Faylor [Sat, 28 May 2011 20:55:34 +0000 (20:55 +0000)]
* dll_init.cc (dll_list::alloc): Initialize dll::image_size.
(reserve_at): Don't reserve space needed by the target dll if the latter
overlaps the free region to be blocked.
(dll_list::load_after_fork): Use new version of reserve_at.
* dll_init.h (dll::image_size): New member.
(pefile): New struct.

13 years agoRevert previous checkins as they introduced a bug when running zsh.
Christopher Faylor [Sat, 28 May 2011 20:41:51 +0000 (20:41 +0000)]
Revert previous checkins as they introduced a bug when running zsh.

13 years ago* dll_init.cc (reserve_upto): Remove.
Christopher Faylor [Sat, 28 May 2011 20:27:56 +0000 (20:27 +0000)]
* dll_init.cc (reserve_upto): Remove.
(release_upto): Ditto.
(dll_list::reserve_space): New function to reserve space needed by DLL_LOAD
dlls early in the fork process.
(dll_list::load_after_fork): Rewrite to use recursion for tracking reservations
made while trying to make dlls land where they belong.
(dll_list::load_after_fork_impl): Ditto.
(dll_list::alloc): Initialize image base field.
* dll_init.h (struct dll_list): declare new functions.
(dll::image_size): New member.

13 years ago* dll_init.cc (dll_list::find_by_modname): New function to search the dll list
Christopher Faylor [Sat, 28 May 2011 20:17:09 +0000 (20:17 +0000)]
* dll_init.cc (dll_list::find_by_modname): New function to search the dll list
for a module name only (no path).
(dll_list::alloc): Initialize newly-added members of struct dll.
(dll_list::append): New function to factor out the append operation
(used by dll_list::topsort).
(dll_list::populate_deps): New function to identify dll dependencies.
(dll_list::topsort): New function to sort the dll list topologically by
dependencies.
(dll_list::topsort_visit): New helper function for the above.
* dll_init.h (dll::ndeps): New class member.
(dll::deps): Ditto.
(dll::modname): Ditto.
(dll_list::find_by_modname): New function related to topsort.
(dll_list::populate_all_deps): Ditto.
(dll_list::populate_deps): Ditto.
(dll_list::topsort): Ditto.
(dll_list::topsort_visit): Ditto.
(dll_list::append): Ditto.
(pefile): New struct allowing simple introspection of dll images.
* fork.cc (fork): Topologically sort the dll list before forking.

13 years ago* dll_init.c (dll_list::load_after_fork): Don't clear in_forkee here.
Christopher Faylor [Sat, 28 May 2011 20:09:04 +0000 (20:09 +0000)]
* dll_init.c (dll_list::load_after_fork): Don't clear in_forkee here.
* fork.cc (frok::errmsg): Rename from 'error'.
(frok::error): New function.  Handle conditional printing of error messages.
(frok::parent): Record hchild handle for use by error function.  Use
throughout.  Use error function rather than setting error pointer directly.
(fork): Clear is_forkee here.  Accommodate rename of 'error' to 'errmsg'.
* sigproc.cc (child_info::proc_retry): Detect EXITCODE_FORK_FAILED.

13 years ago* fhandler.cc (handler_base_overlapped::wait_overlapped): Rework to attempt to
Christopher Faylor [Sat, 28 May 2011 18:49:13 +0000 (18:49 +0000)]
* fhandler.cc (handler_base_overlapped::wait_overlapped): Rework to attempt to
properly set errno and bytes read for non-blocking case.  Change to just rely
on res to indicate error conditions.

13 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Don't set io_pending
Christopher Faylor [Sat, 28 May 2011 18:22:59 +0000 (18:22 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Don't set io_pending
unless ReadFile has returned an error.  (this is a partial fix, accidentally
checked in)

13 years ago* autoload.cc: Call _api_fatal in asm.
Christopher Faylor [Sat, 28 May 2011 18:17:09 +0000 (18:17 +0000)]
* autoload.cc: Call _api_fatal in asm.
* child_info.h: Redefine CURR_CHILD_INFO_MAGIC.
(child_info_fork::abort): Rename from handle_failure.  Change arguments.
* cygtls.h (_local_storage::ttybuf): New field.
* dcrt0.cc (vapi_fatal): Split api_fatal.  Add "in forked process" to message
when appropriate.
(api_fatal): Use vapi_fatal.
* devices.h: Make multiple inclusion safe.
(fh_devices): Add FH_CONS* stuff.  Reorder slightly.
(device): Eliminate anonymous union.  Add more ways to access minor/major.
(device::setunit): Accommodate no-longer-anonymous union.
(device::is_fs): Ditto.
(device::is_fs_special): Ditto.
(device::major): New function.
(device::minor): Ditto.
(device::is_device): New function.
(device::not_device): Ditto.
(device::operator int): New operator.
(device::operator fh_devices): Ditto.
(device::operator bool): Ditto.
(device::operator DWORD): Ditto.
(device::operator =): Ditto.
(isproc_dev): New function.
(isprocsys_dev): Ditto.
(iscons_dev): Ditto.
(istty_slave_dev): Ditto.
* devices.in: Add new "/dev/cons*" strings.  Accommodate no-longer-anonymous
union throughout.
(BRACK): Use more precise method for initialization.
* devices.cc: Regenerate.
* dtable.cc (dtable::stdio_init): Use get_cttyp instead of get_tty.
(dtable::find_archetype): Use new DWORD operator in device to test archetypes.
(dtable::init_std_file_from_handle): Use different method to initialize 'dev'.
Adapt to different ctty handling and accommodate /dev/cons*.
(fh_alloc): Accommodate no-longer-anonymous union.  Adapt to new /dev/cons*.
(build_fh_pc): Make debugging output more useful.
* exceptions.cc (ctrl_c_handler): Use get_cttyp instead of get_tty.
* external.cc (fillout_pinfo): Accommodate new cons* stuff.
* fhandler.cc (fhandler_base::read): Eliminate is_slow() test.
* fhandler.h (fhandler_base::*): Adapt to changes in device.h.
(fhandler_*::is_slow): Delete.
( fhandler_proc::get_proc_fhandler): Return fh_devices type.
* fhandler_console.cc (open_shared_console): New function.
(console_unit): New class.
(console_unit::console_unit): New constructor.
(enum_windows): New function.  Declare as friend to console_unit.
(fhandler_console::set_unit): New function.
(fhandler_console::get_tty_stuff): Call set_unit to set the unit number and
determine if initialization is needed.  Eliminate flags parameter.
(tty_list::get_cttyp): Rename (sorta) from get_tty.  Return pointer to correct
tty_min.
(fhandler_console::open): Adapt to elimination of argument to get_tty_stuff.
(fhandler_console::output_tcsetattr): Properly detect error condition.
(fhandler_console::fixup_after_fork_exec): Adapt to get_tty_stuff() setting tc
automatically.
* fhandler_proc.cc: Use FH_BAD rather than 0 throughout where using fh_devices
enum.
(fhandler_proc::get_proc_fhandler): Return fh_devices.  Adapt to devices.h
changes.
* fhandler_process.cc: Adapt to devices.h changes.  Use FH_BAD rather than 0
throughout where using fh_devices enum.
* fhandler_procnet.cc: Ditto.
* fhandler_procsys.cc: Ditto.
* fhandler_procsysvipc.cc: Ditto.
* fhandler_tape.cc (fhandler_dev_tape::fhandler_dev_tape): Ditto.
* fhandler_termios.cc (handler_termios::bg_check): Use tc->ttyname() rather
than assuming that we can construct a tty.
* fhandler_tty.cc (fhandler_tty_master::fhandler_tty_master): Just return
get_minor() of dev.
(fhandler_pty_master::process_slave_output): Add slightly more debugging info.
(fhandler_tty_slave::fhandler_tty_slave): Change name from ntty to unit.
(fhandler_pty_master::open): Ditto.
(fhandler_tty_slave::ioctl): Adapt to change which causes ctty to represent a
complete device.
(fhandler_tty_master::init_console): Add debugging for failure path.
(fhandler_pty_master::setup): Use get_unit() to retrieve unit number rather
than relying on raw ntty.
(fhandler_pty_master::setup): Ditto.
* fhandler_virtual.h (virt_tab_t): Redefine fhandler as fh_devices.
* fork.cc: Remove obsolete vfork stuff.
(frok::child): Don't assume that a ctty == 0 is valid.
* mount.cc (mount_info::conv_to_win32_path): Adapt to device struct changes.
(mount_info::conv_to_win32_path): Ditto.
* path.cc (path_conv::check): Retrive major/minor numbers via a method rather
than accessing them directly from device.  Rely on dev operators to
set/retrieve device information as required by device struct change.
* path.h (isproc_dev): Move to devices.h.
(isprocsys_dev): Ditto.
(isvirtual_dev): Ditto.
(path_conv:{isdevice,isfifo,isspecial,iscygdrive,issocket,get_devn,get_unitn}):
Use device methods to access/manipulate devices.
* pinfo.cc (pinfo::exit): Don't assume that ctty == 0 is valid.  Use iscons_dev
to determine if a device is a console.
(_pinfo::_ctty): Use device::parse to generate tty/cons name.
(_pinfo::set_ctty): Don't assume that ctty == 0 is valid.  Remove redundant
info from debugging.
* shared.cc (offsets): Remove console offset.
* shared_info.h (shared_locations): Ditto.
* syscalls.cc (umask): Use device methods to manipulate device information.
(ctermid): Use device::parse to generate term device name.
* tlsoffsets.h: Regenerate.
* tty.cc (ttyslot): Return minor number of ctty since ctty now represents a
full device.
(tty::create_master): Set ctty to a complete device.
(tty_list::attach): Rework to detect new /dev/cons* stuff.
(tty_list::terminate): Adapt to changes to ctty.
(tty_list::init): Adapt to change to setntty - pass in device major number.
(tty::exists): Use get_unit() to retrive tty unit number.
(tty::open_mutex): Ditto.
(tty::open_inuse): Ditto.
(tty::create_inuse): Ditto.
(tty::get_event): Ditto.
(tty_min::ttyname): Define new function.
* tty.h (tty_min::ntty): Redefine as fh_devices.
(tty::exists): Use get_unit() to retrive tty unit number.
(tty::open_mutex): Ditto.
(tty::open_inuse): Ditto.
(tty::create_inuse): Ditto.
(tty::get_event): Ditto.
(tty_min::ttyname): Declare new function.
(tty::getntty): Declare as const.
(tty_list::operator []): Assure that only minor part of argument is used.
* dll_init.cc (dll_list::alloc): Detect mismatch of data segments early issuing
an explicit error message if necessary.
* heap.cc (heap_init): Adapt to changes from fork->handle_failure to
fork->abort.
* pinfo.h (EXITCODE_FORK_FAILED): New enum.  (from Ryan Johnson)
* sigproc.cc (child_info_fork::abort): Rename from handle_failure.  Change
arguments to allow passing in a printf-like message.
* winsup.h (api_fatal): Delete macro definition.
(api_fatal): Redefine from __api_fatal.
(vapi_fatal): Declare new function.
* include/sys/strace.h (strace_vprintf): Define new macro.
* ntdll.h (_SYSTEM_INFORMATION_CLASS): Add SystemHandleInformation.

13 years ago * v8500/sbrk.c (_sbrk): Tidy code.
Nick Clifton [Fri, 27 May 2011 10:46:48 +0000 (10:46 +0000)]
* v8500/sbrk.c (_sbrk): Tidy code.
Base start of heap on the "heap_start" symbol.

* libc/sys/sysnecv850/sbrk.c (_sbrk): Tidy code.
Base start of heap on the "heap_start" symbol.

13 years ago * shared.cc (offsets): Reorder so that console_state is lowest in
Corinna Vinschen [Fri, 27 May 2011 06:11:05 +0000 (06:11 +0000)]
* shared.cc (offsets): Reorder so that console_state is lowest in
memory.  Explain why.
(open_shared): Accommodate reordering of offsets array.
* shared_info.h (shared_locations): Reorder SH_SHARED_CONSOLE after
SH_MYSELF.

13 years ago * mount.h (MAX_MOUNTS): Raise to 64.
Corinna Vinschen [Thu, 26 May 2011 19:30:00 +0000 (19:30 +0000)]
* mount.h (MAX_MOUNTS): Raise to 64.

13 years agofix changelog typo
Eric Blake [Wed, 25 May 2011 21:32:26 +0000 (21:32 +0000)]
fix changelog typo

13 years ago* libc/string/strerror.c (_strerror_r): Report "Success" for 0.
Eric Blake [Wed, 25 May 2011 21:05:11 +0000 (21:05 +0000)]
* libc/string/strerror.c (_strerror_r): Report "Success" for 0.

13 years ago* new-features.sgml (ov-new1.7.10): Document strerror changes.
Eric Blake [Wed, 25 May 2011 19:08:46 +0000 (19:08 +0000)]
* new-features.sgml (ov-new1.7.10): Document strerror changes.

13 years agoperror: fix POSIX compliance and work with recent newlib change
Eric Blake [Wed, 25 May 2011 18:47:32 +0000 (18:47 +0000)]
perror: fix POSIX compliance and work with recent newlib change

* cygtls.h (strerror_r_buf): New buffer.
* errno.cc (strerror): Move guts...
(_strerror_r): ...to new function demanded by newlib.
(strerror_r): Don't clobber strerror buffer.
(_user_strerror): Drop unused declaration.
* tlsoffsets.h: Regenerate.

13 years agostrerror: allow user hook to comply with POSIX rules
Eric Blake [Wed, 25 May 2011 18:41:10 +0000 (18:41 +0000)]
strerror: allow user hook to comply with POSIX rules

* libc/string/strerror.c (strerror): Split body into...
(_strerror_r): ...new reentrant function.
* libc/string/u_strerr.c (_user_strerror): Update signature.
* libc/include/stdio.h (_strerror_r): New prototype.
* libc/posix/collate.c (__collate_err): Adjust callers.
* libc/stdio/perror.c (_perror_r): Likewise.
* libc/string/strerror_r.c (strerror_r): Likewise.
* libc/string/xpg_strerror_r.c (__xpg_strerror_r): Likewise.

13 years ago * init.cc (dll_entry): Reinstantiate wow64_test_stack_marker and
Corinna Vinschen [Wed, 25 May 2011 11:33:29 +0000 (11:33 +0000)]
* init.cc (dll_entry): Reinstantiate wow64_test_stack_marker and
previous stack tests.

13 years ago * legal.sgml: Drop an old paragraph. Reactivate copyright note for
Corinna Vinschen [Wed, 25 May 2011 06:29:22 +0000 (06:29 +0000)]
* legal.sgml: Drop an old paragraph.  Reactivate copyright note for
documentation.

13 years ago * posix.sgml (std-notes): Add missing <para>.
Corinna Vinschen [Wed, 25 May 2011 06:10:24 +0000 (06:10 +0000)]
* posix.sgml (std-notes): Add missing <para>.

13 years ago2011-05-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 24 May 2011 22:43:29 +0000 (22:43 +0000)]
2011-05-24  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/stdlib.h (strtod): Declare as extern to resolve compilation issues.

        Thanks to cgf for the report.

13 years ago2011-05-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Tue, 24 May 2011 16:13:30 +0000 (16:13 +0000)]
2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

    * config/tc-s390.c (md_gather_operands): Fix check for floating
    register pair operands.

2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

    * opcode/s390.h: Replace S390_OPERAND_REG_EVEN with
    S390_OPERAND_REG_PAIR.

2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

    * s390-opc.c: Replace S390_OPERAND_REG_EVEN with
    S390_OPERAND_REG_PAIR.  Fix INSTR_RRF_0UFEF instruction type.
    * s390-opc.txt: Fix cxr instruction type.

2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

    * gas/s390/esa-g5.d: Fix fp register pair operands.
    * gas/s390/esa-g5.s: Likewise.
    * gas/s390/zarch-z196.d: Likewise.
    * gas/s390/zarch-z196.s: Likewise.
    * gas/s390/zarch-z9-109.d: Likewise.
    * gas/s390/zarch-z9-109.s: Likewise.
    * gas/s390/zarch-z9-ec.d: Likewise.
    * gas/s390/zarch-z9-ec.s: Likewise.

13 years ago * mount.cc (mount_info::conv_to_win32_path): Remove unused code.
Corinna Vinschen [Tue, 24 May 2011 15:09:08 +0000 (15:09 +0000)]
* mount.cc (mount_info::conv_to_win32_path): Remove unused code.
* mount.h (class mount_info): Remove sys_mount_table_counter member.
* shared_info.h (class shared_info): Ditto.
(CURR_SHARED_MAGIC): Update.

13 years ago2011-05-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Tue, 24 May 2011 13:33:56 +0000 (13:33 +0000)]
2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c (md_gather_operands): Emit an error for odd
numbered registers used as register pair operand.

2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* opcode/s390.h: Add S390_OPCODE_REG_EVEN flag.

2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-opc.c: Add new instruction types marking register pair
operands.
* s390-opc.txt: Match instructions having register pair operands
to the new instruction types.

2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/esa-g5.d: Fix register pair operands.
* gas/s390/esa-g5.s: Likewise.
* gas/s390/esa-z9-109.d: Likewise.
* gas/s390/esa-z9-109.s: Likewise.
* gas/s390/zarch-z196.d: Likewise.
* gas/s390/zarch-z196.s: Likewise.
* gas/s390/zarch-z9-109.d: Likewise.
* gas/s390/zarch-z9-109.s: Likewise.
* gas/s390/zarch-z900.d: Likewise.
* gas/s390/zarch-z900.s: Likewise.
* gas/s390/zarch-z990.d: Likewise.
* gas/s390/zarch-z990.s: Likewise.

13 years ago * pinfo.h (struct _pinfo): Reduce size of progname array slightly.
Corinna Vinschen [Tue, 24 May 2011 10:03:34 +0000 (10:03 +0000)]
* pinfo.h (struct _pinfo): Reduce size of progname array slightly.
Explain why.

13 years ago* cygtls.h (strerror_buf): Resize to allow '-'.
Eric Blake [Mon, 23 May 2011 21:03:06 +0000 (21:03 +0000)]
* cygtls.h (strerror_buf): Resize to allow '-'.

13 years agostrerror: match recent glibc changes
Eric Blake [Mon, 23 May 2011 20:43:06 +0000 (20:43 +0000)]
strerror: match recent glibc changes

* errno.cc (strerror): Print unknown errno as int.
(__xpg_strerror_r): Likewise, and don't clobber strerror buffer.

13 years agoFix typo in ChangeLog of previous commit
Chris Sutcliffe [Mon, 23 May 2011 20:10:41 +0000 (20:10 +0000)]
Fix typo in ChangeLog of previous commit

13 years ago2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Mon, 23 May 2011 20:04:12 +0000 (20:04 +0000)]
2011-05-23  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/time.h (daytime, timezone, tzname): Rework guards to expose when
        compiles with __STRICT_ANSI__.

        Thanks to Felipe Contreras for the report.

13 years ago * fhandler_process.cc (thread_info::fill_if_match): Reformat.
Corinna Vinschen [Mon, 23 May 2011 08:53:25 +0000 (08:53 +0000)]
* fhandler_process.cc (thread_info::fill_if_match): Reformat.
(format_process_maps): Ditto.  Fetch pointer to procinfo structure
from mapped process.  Print info about global shared Cygwin regions.

13 years ago2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Mon, 23 May 2011 03:43:30 +0000 (03:43 +0000)]
2011-05-22  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/stdlib.h (strtod): Remove possible static declaration to resolve
        issue with gcc.

        Thanks to Tobias Burnus for the report.

13 years ago2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Mon, 23 May 2011 03:30:01 +0000 (03:30 +0000)]
2011-05-22  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
        by wrapping the functions in brackets.

        Thanks to Kai Tietz for the report.

13 years ago2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
Chris Sutcliffe [Mon, 23 May 2011 03:02:16 +0000 (03:02 +0000)]
2011-05-22  A.B., Khalid  <abkhd@users.sourceforge.net>

        * Makefile.in: Add support for msvcr100.dll.
        * msvcrt.def.in: Ditto.

13 years ago2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
Chris Sutcliffe [Mon, 23 May 2011 02:54:21 +0000 (02:54 +0000)]
2011-05-22  Antoine LECA  <antoinel@users.sourceforge.net>

        * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
        not always available, go the long way and use the explicit named union
        members, which are also declared in winnt.h.

13 years ago2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
Chris Sutcliffe [Mon, 23 May 2011 02:38:49 +0000 (02:38 +0000)]
2011-05-22  Antoine LECA  <antoinel@users.sourceforge.net>

        * mingwex/isblank.c:  Fix typo in declaration.

13 years ago2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
Chris Sutcliffe [Mon, 23 May 2011 01:01:18 +0000 (01:01 +0000)]
2011-05-22  Antoine LECA  <antoinel@users.sourceforge.net>

        * include/_mingw.h:  Define GCC system_header only if PCC is not defined.
        * include/stdlib.h:  Fix a long-standing typo which prevented correct use of
        the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
        is included before <ctype.h>.

13 years ago2011-05-22 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Mon, 23 May 2011 00:13:45 +0000 (00:13 +0000)]
2011-05-22  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/wingdi.h (GCP_RESULTSW):  Correct defintion.

        Thanks to Albrecht Schlosser for the report and the fix.

13 years ago2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Mon, 23 May 2011 00:03:22 +0000 (00:03 +0000)]
2011-05-22  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX.

        Thanks to Jim Bell for the report and Greg Chicares for the fix.

13 years ago * fhandler_process.cc (struct dos_drive_mappings): Use malloc/free
Corinna Vinschen [Sat, 21 May 2011 15:57:16 +0000 (15:57 +0000)]
* fhandler_process.cc (struct dos_drive_mappings): Use malloc/free
rather than cmalloc/cfree.  Check return value from malloc before
using it.
(struct heap_info): Ditto.
(struct thread_info): Ditto.  Rename from stack_info.  Rename members
and local variables accordingly.
(thread_info::thread_info): Store stack and TEB addresses.
(thread_info::fill_if_match): Print "teb" if a TEB address has been
found.  Special case for WOW64, explain why.
(format_process_maps): Fetch PEB address.  Print MEM_RESERVE regions
with equal signs to distinguish them from PAGE_NOACCESS regions.  Fix
printing of 'p' and 's' to differ between MEM_PRIVATE and MEM_MAPPED
pages, as on Linux.  Print 'g' instead of 'p for PAGE_GUARD pages.
Print PEB and SharedUserData area if recognized.

13 years ago * miscfuncs.cc (CygwinCreateThread): Fix condition for adding the
Corinna Vinschen [Fri, 20 May 2011 19:00:51 +0000 (19:00 +0000)]
* miscfuncs.cc (CygwinCreateThread): Fix condition for adding the
guardsize to the stacksize.  Fix accompanying comment.

13 years ago * miscfuncs.cc (CygwinCreateThread): Add accidentally missing comment.
Corinna Vinschen [Fri, 20 May 2011 18:15:12 +0000 (18:15 +0000)]
* miscfuncs.cc (CygwinCreateThread): Add accidentally missing comment.

13 years ago * fhandler_process.cc (struct heap_info): Change type of base and end
Corinna Vinschen [Fri, 20 May 2011 18:07:52 +0000 (18:07 +0000)]
* fhandler_process.cc (struct heap_info): Change type of base and end
members to char *.  Print "shared" rather than "share".
(struct stack_info): New class to fetch process stack information.
(format_process_maps): Initialize and check for stack information.

13 years ago * miscfuncs.cc (thread_wrapper): Remove statements added for debugging
Corinna Vinschen [Fri, 20 May 2011 07:39:20 +0000 (07:39 +0000)]
* miscfuncs.cc (thread_wrapper): Remove statements added for debugging
purposes.

13 years ago * child_info.h (CURR_CHILD_INFO_MAGIC): Update.
Corinna Vinschen [Fri, 20 May 2011 07:23:11 +0000 (07:23 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Update.
(class child_info_fork): Remove stacksize, add stackaddr and guardsize
members.
* dcrt0.cc (child_info_fork::alloc_stack_hard_way): Partial rewrite
to regenerate the stack exactly as in the parent.
(child_info_fork::alloc_stack): Set stackaddr to 0, rather than
stacksize.
(dll_crt0_1): Check for stackaddr before changing the stack addresses
in the TEB.
* fork.cc (frok::child): Check for stackaddr here.
(frok::parent): Set ch.stackaddr and ch.guardsize if not called from
the main thread.
* init.cc (dll_entry): Replace pointer to NT_TIB with pointer to TEB.
Fix incorrectly changed address test before removing _my_tls.
Set StackLimit to NULL on Windows 2000.  Explain why.
* miscfuncs.cc (struct thread_wrapper_arg): Store stackbase rather
than stacksize, store commitaddr, remove guardsize.  Store all pointers
as char * for easier address arithmetic.
(thread_wrapper): Rewrite to remove OS stack before calling thread
function.  Add lots of comments to explain what we do.
(CygwinCreateThread): Reserve our own stack in case we got no
application stack.  Add comments.
* ntdll.h (struct _TEB): Extend defintion up to DeallocationStack
member.
* thread.cc (pthread_attr::pthread_attr): Use "(size_t) -1"
rather then 0xffffffff.
* wincap.h (wincaps::has_stack_size_param_is_a_reservation): New
element.
* wincap.cc: Implement above element throughout.

13 years ago* thread.cc: Mark psiginfo and psignal as available in list of
Yaakov Selkowitz [Thu, 19 May 2011 23:44:55 +0000 (23:44 +0000)]
* thread.cc: Mark psiginfo and psignal as available in list of
optional cancellation points.

13 years ago* new-features.sgml (ov-new1.7.10): Document __fpurge.
Yaakov Selkowitz [Thu, 19 May 2011 07:24:23 +0000 (07:24 +0000)]
* new-features.sgml (ov-new1.7.10): Document __fpurge.

13 years ago* cygwin.din (__fpurge): Export.
Yaakov Selkowitz [Thu, 19 May 2011 07:23:29 +0000 (07:23 +0000)]
* cygwin.din (__fpurge): Export.
* posix.sgml (std-solaris): Add __fpurge.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years ago* libc/include/stdio_ext.h: New header.
Yaakov Selkowitz [Thu, 19 May 2011 07:21:42 +0000 (07:21 +0000)]
* libc/include/stdio_ext.h: New header.
* libc/stdio/fpurge.c [!__rtems__] (__fpurge): New function.

13 years ago * Makefile.am (install-data-local): Fix condition and rm call.
Corinna Vinschen [Thu, 19 May 2011 06:04:59 +0000 (06:04 +0000)]
* Makefile.am (install-data-local): Fix condition and rm call.
* Makefile.in: Regenerate.

13 years ago* posix.sgml (std-susv4): Remove chroot, futimes, hstrerror.
Yaakov Selkowitz [Wed, 18 May 2011 21:46:54 +0000 (21:46 +0000)]
* posix.sgml (std-susv4): Remove chroot, futimes, hstrerror.
(std-deprec): Add chroot.
(std-bsd): Add futimes, hstrerror.
(std-notimpl): Add clock_nanosleep, nexttoward, nexttowardf.
Remove initstate, which is implemented and listed in std-susv4.

13 years ago* new-features.sgml (ov-new1.7.10): Document error.h functions.
Yaakov Selkowitz [Wed, 18 May 2011 01:26:56 +0000 (01:26 +0000)]
* new-features.sgml (ov-new1.7.10): Document error.h functions.

13 years ago* cygwin.din (error): Export.
Yaakov Selkowitz [Wed, 18 May 2011 01:25:41 +0000 (01:25 +0000)]
* cygwin.din (error): Export.
(error_at_line): Export.
(error_message_count): Export.
(error_one_per_line): Export.
(error_print_progname): Export.
* errno.cc (error_message_count): Define.
(error_one_per_line): Define.
(error_print_progname): Define.
(_verror): New static function.
(error): New function.
(error_at_line): New function.
* posix.sgml (std-gnu): Add error, error_at_line.
* include/error.h: New header.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years ago* new-features.sgml (ov-new1.7.10): Document CPU-time clock support.
Yaakov Selkowitz [Tue, 17 May 2011 17:09:32 +0000 (17:09 +0000)]
* new-features.sgml (ov-new1.7.10): Document CPU-time clock support.
Move pthread stack management APIs to separate listitem.

13 years ago* cygwin.din (clock_getcpuclockid): Export.
Yaakov Selkowitz [Tue, 17 May 2011 17:08:10 +0000 (17:08 +0000)]
* cygwin.din (clock_getcpuclockid): Export.
(pthread_getcpuclockid): Export.
* hires.h (PID_TO_CLOCKID): New macro.
(CLOCKID_TO_PID): New macro.
(CLOCKID_IS_PROCESS): New macro.
(THREADID_TO_CLOCKID): New macro.
(CLOCKID_TO_THREADID): New macro.
(CLOCKID_IS_THREAD): New macro.
* ntdll.h (enum _THREAD_INFORMATION_CLASS): Add ThreadTimes.
* posix.sgml (std-notimpl): Add clock_getcpuclockid and
pthread_getcpuclockid from here...
(std-susv4): ... to here.
(std-notes): Remove limitations of clock_getres and clock_gettime.
Note limitation of timer_create to CLOCK_REALTIME.
* sysconf.cc (sca): Set _SC_CPUTIME to _POSIX_CPUTIME, and
_SC_THREAD_CPUTIME to _POSIX_THREAD_CPUTIME.
* thread.cc (pthread_getcpuclockid): New function.
* timer.cc (timer_create): Set errno to ENOTSUP for CPU-time clocks.
* times.cc (clock_gettime): Handle CLOCK_PROCESS_CPUTIME_ID and
CLOCK_THREAD_CPUTIME_ID.
(clock_getres): Ditto.
(clock_settime): Set errno to EPERM for CPU-time clocks.
(clock_getcpuclockid): New function.
* include/pthread.h (pthread_getcpuclockid): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years ago * miscfuncs.cc (thread_wrapper): Remove unused _cygtls record.
Corinna Vinschen [Tue, 17 May 2011 15:37:01 +0000 (15:37 +0000)]
* miscfuncs.cc (thread_wrapper): Remove unused _cygtls record.
* mmap.cc (is_mmapped_region): Avoid crash if no mmaps exist.

13 years ago PR ld/12760
Alan Modra [Tue, 17 May 2011 13:02:16 +0000 (13:02 +0000)]
PR ld/12760
include/
* bfdlink.h (struct bfd_link_callbacks <notice>): Add "flags" and
"string" param.
bfd/
* coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call.
* elflink.c (elf_link_add_object_symbols): Likewise.
* linker.c (_bfd_generic_link_add_one_symbol): Likewise.
ld/
* ldmain.c (notice): Add "flags" and "string" param.
* plugin.c (plugin_notice): Likewise.  Handle indirect, warning
and constructor syms.

13 years ago* libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename from
Yaakov Selkowitz [Mon, 16 May 2011 22:35:10 +0000 (22:35 +0000)]
* libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename from
CLOCK_PROCESS_CPUTIME.
(CLOCK_THREAD_CPUTIME_ID): Rename from CLOCK_THREAD_CPUTIME.
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_CPUTIME): Define.
(_POSIX_THREAD_CPUTIME): Define.

13 years ago * globals.cc (__getlogin_username): Remove.
Corinna Vinschen [Mon, 16 May 2011 17:58:21 +0000 (17:58 +0000)]
* globals.cc (__getlogin_username): Remove.
* uinfo.cc (getlogin_r): Fetch username from cygheap.
(getlogin): Add static buffer username and fetch username from
getlogin_r.

13 years ago * cygtls.h (struct _local_storage): Remove unused members rarg and
Corinna Vinschen [Mon, 16 May 2011 15:12:35 +0000 (15:12 +0000)]
* cygtls.h (struct _local_storage): Remove unused members rarg and
_localtime_buf.  Remove username in favor of a global buffer.  Reorder
slightly to keep the net.cc stuff together.
* globals.cc (__getlogin_username): New global char buffer.
* tlsoffsets.h: Regenerate.
* uinfo.cc (getlogin): Copy username into __getlogin_username.

13 years ago * libc/stdlib/strtod.c (_strtod_r): Fix nf/nd counts to not exceed
Corinna Vinschen [Mon, 16 May 2011 13:34:06 +0000 (13:34 +0000)]
* libc/stdlib/strtod.c (_strtod_r): Fix nf/nd counts to not exceed
DBL_DIG.

13 years ago * heap.cc (heap_init): Rewrite initial heap allocation to use addresses
Corinna Vinschen [Mon, 16 May 2011 10:27:14 +0000 (10:27 +0000)]
* heap.cc (heap_init): Rewrite initial heap allocation to use addresses
beyond 0x20000000.  Explain why and how.
* shared.cc (shared_info::heap_slop_size): Remove.
* shared_info.h (class shared_info): Remove heap_slop_inited and
heap_slop members.  Remove heap_slop_size declaration.
(CURR_SHARED_MAGIC): Update.
* wincap.cc: Throughout, drop heapslop.
* wincap.h (struct wincaps): Drop heapslop.

13 years ago * dcrt0.cc (child_info_fork::alloc_stack_hard_way): Check if the
Corinna Vinschen [Mon, 16 May 2011 09:55:18 +0000 (09:55 +0000)]
* dcrt0.cc (child_info_fork::alloc_stack_hard_way): Check if the
requested stack is application-provided within the user heap or an
mmapped region.  If so, just use it.  Add comment to explain why.
* miscfuncs.cc (thread_wrapper): If an application-provided stack
has been given, implement cygtls area at the stackbase.  Fix comment.
* mmap.cc (is_mmapped_region): New function.
* winsup.h (is_mmapped_region): Declare.

13 years agoinclude/
Alan Modra [Sun, 15 May 2011 23:44:06 +0000 (23:44 +0000)]
include/
* bfdlink.h (struct bfd_link_hash_entry): Remove u.undef.weak field.
bfd/
* linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.

13 years ago * miscfuncs.cc (thread_wrapper): Add comments to assembler code.
Corinna Vinschen [Sun, 15 May 2011 19:04:41 +0000 (19:04 +0000)]
* miscfuncs.cc (thread_wrapper): Add comments to assembler code.

13 years ago * new-features.sgml (ov-new1.7.10): Document pthread_attr_getguardsize,
Corinna Vinschen [Sun, 15 May 2011 18:51:49 +0000 (18:51 +0000)]
* new-features.sgml (ov-new1.7.10): Document pthread_attr_getguardsize,
pthread_attr_setstack, pthread_attr_setstackaddr and
pthread_attr_setguardsize.

13 years ago * libc/include/sys/features.h (_POSIX_THREAD_ATTR_STACKADDR): Define
Corinna Vinschen [Sun, 15 May 2011 18:50:52 +0000 (18:50 +0000)]
* libc/include/sys/features.h (_POSIX_THREAD_ATTR_STACKADDR): Define
to 200112L for Cygwin.

13 years ago * cygwin.din (pthread_attr_getguardsize): Export.
Corinna Vinschen [Sun, 15 May 2011 18:49:40 +0000 (18:49 +0000)]
* cygwin.din (pthread_attr_getguardsize): Export.
(pthread_attr_setguardsize): Export.
(pthread_attr_setstack): Export.
(pthread_attr_setstackaddr): Export.
* init.cc (dll_entry): Remove wow64_test_stack_marker.  Check for
unusual stack address by testing stack addresses from current TEB.
Check validity of _my_tls by testing if it's within the stack as
given in current TEB.
* miscfuncs.cc (struct thread_wrapper_arg): New structure used to
push all required information to thread_wrapper function.
(thread_wrapper): Wrapper function for actual thread function.
If an application stack has been given, change %ebp and %esp so that
the thread function runs on that stack.  If the thread has been created
by CygwinCreateThread, set up the POSIX guard pages if necessary.
(CygwinCreateThread): New function.
* miscfuncs.h (CygwinCreateThread): Declare.
* ntdll.h (struct _TEB): Define all members up to Peb.
* posix.sgml (std-susv4): Move pthread_attr_getguardsize,
pthread_attr_setguardsize and pthread_attr_setstack here.
(std-deprec): Add pthread_attr_setstackaddr.
* sysconf.cc (sca): Set _SC_THREAD_ATTR_STACKADDR to
_POSIX_THREAD_ATTR_STACKADDR.
* thread.cc (pthread::precreate): Copy pthread_attr stackaddr and
guardsize members.
(pthread::create): Call CygwinCreateThread.
(pthread_attr::pthread_attr): Initialize guardsize.
(pthread_attr_setstack): New function.
(pthread_attr_setstackaddr): New function.
(pthread_attr_setguardsize): New function.
(pthread_attr_getguardsize): New function.
(pthread_getattr_np): Copy attr.guardsize.
* thread.h (pthread_attr): Add member guardsize.
* include/pthread.h (pthread_attr_getguardsize): Declare.
(pthread_attr_setguardsize): Declare.
* include/cygwin/version.h: Bump API minor number.

13 years ago * include/winbase.h (STACK_SIZE_PARAM_IS_A_RESERVATION): Define.
Corinna Vinschen [Sun, 15 May 2011 16:40:48 +0000 (16:40 +0000)]
* include/winbase.h (STACK_SIZE_PARAM_IS_A_RESERVATION): Define.

13 years ago * fhandler_process.cc (struct heap_info::heap): Convert base to
Corinna Vinschen [Fri, 13 May 2011 06:50:20 +0000 (06:50 +0000)]
* fhandler_process.cc (struct heap_info::heap): Convert base to
uintptr_t.  Add heap_id, end, flags members.
(heap_info::heap_vm_chunks): Rename from heaps.
(heap_info::heap_info): Rearrange using RtlQueryProcessDebugInformation
to get information of heap virtual memory blocks.  Store heap id and
flags, as well as end address of each block.
(heap_info::fill_if_match): Check incoming base address against full
address range of heap chunks.  Convert flag values in extra heap
information.
(format_process_maps): Change order so that heap check is done before
MEM_MAPPED check since there are shareable heaps.
* ntdll.h (PDI_HEAP_BLOCKS): Define.
(HEAP_FLAG_NOSERIALIZE): Define.
(HEAP_FLAG_GROWABLE): Define.
(HEAP_FLAG_EXCEPTIONS): Define.
(HEAP_FLAG_NONDEFAULT): Define.
(HEAP_FLAG_SHAREABLE): Define.
(HEAP_FLAG_EXECUTABLE): Define.
(HEAP_FLAG_DEBUGGED): Define.
(struct _DEBUG_HEAP_ARRAY): Define.
(struct _DEBUG_HEAP_BLOCK): Define.

13 years ago Based on newlib patch to strptime by Peter Rosin <peda@lysator.liu.se>:
Corinna Vinschen [Thu, 12 May 2011 13:44:54 +0000 (13:44 +0000)]
Based on newlib patch to strptime by Peter Rosin <peda@lysator.liu.se>:
* libc/time/strptime.c (is_leap_year): New static function.
(first_day): Ditto.
(__strptime): Fill in tm_yday when all of tm_year, tm_mon and tm_mday
are updated. Fill in tm_mon, tm_mday and tm_wday when both of tm_year
and tm_yday are updated.

13 years ago * libc/time/strptime.c (strptime): Fill in tm_yday when all of tm_year,
Corinna Vinschen [Thu, 12 May 2011 13:41:22 +0000 (13:41 +0000)]
* libc/time/strptime.c (strptime): Fill in tm_yday when all of tm_year,
tm_mon and tm_mday are updated. Fill in tm_mon, tm_mday and tm_wday
when both of tm_year and tm_yday are updated.

13 years ago * libc/time/strptime.c (first_day): Actually return the wday
Corinna Vinschen [Thu, 12 May 2011 12:43:43 +0000 (12:43 +0000)]
* libc/time/strptime.c (first_day): Actually return the wday
of the first day of the year.

13 years ago* fhandler_proc.cc (format_proc_meminfo): Rewrite to use sysinfo().
Yaakov Selkowitz [Thu, 12 May 2011 11:13:02 +0000 (11:13 +0000)]
* fhandler_proc.cc (format_proc_meminfo): Rewrite to use sysinfo().
Support RAM and swap space larger than 4GB.
Remove output elements not found with modern Linux kernels.
(format_proc_swaps): Support paging files larger than 4GB.

13 years ago * autoload.cc: Remove useless comment.
Corinna Vinschen [Wed, 11 May 2011 13:33:17 +0000 (13:33 +0000)]
* autoload.cc: Remove useless comment.

13 years ago * autoload.cc (EnumProcessModules): Remove.
Corinna Vinschen [Wed, 11 May 2011 13:25:27 +0000 (13:25 +0000)]
* autoload.cc (EnumProcessModules): Remove.
* dlfcn.cc (dlopen): Make sure errno is set if an error occurs.
(dlsym): Rewrite using RtlQueryProcessDebugInformation instead of
EnumProcessModules.
* ntdll.h (struct _DEBUG_MODULE_ARRAY): Define.
(RtlCreateQueryDebugBuffer): Declare.
(RtlDestroyQueryDebugBuffer): Declare.
(RtlQueryProcessDebugInformation): Declare.

13 years ago * autoload.cc (GetModuleFileNameExW): Remove.
Corinna Vinschen [Wed, 11 May 2011 10:41:03 +0000 (10:41 +0000)]
* autoload.cc (GetModuleFileNameExW): Remove.
* autoload.cc (GetModuleInformation): Remove.

13 years ago * autoload.cc (QueryWorkingSet): Remove.
Corinna Vinschen [Wed, 11 May 2011 10:34:27 +0000 (10:34 +0000)]
* autoload.cc (QueryWorkingSet): Remove.

13 years ago * fhandler_process.cc (format_process_maps): Rework to report
Corinna Vinschen [Wed, 11 May 2011 10:31:22 +0000 (10:31 +0000)]
* fhandler_process.cc (format_process_maps): Rework to report
all mapped address space in a process (committed or reserved),
identifying the nature of the mapping (mapped file/image, heap,
shared memory) when possible.
(dos_drive_mappings): New helper classes.
(heap_info): Ditto.
* ntdll.h (struct _MEMORY_SECTION_NAME): Define.

13 years ago * autoload.cc (GetProcessMemoryInfo): Remove.
Corinna Vinschen [Wed, 11 May 2011 09:07:20 +0000 (09:07 +0000)]
* autoload.cc (GetProcessMemoryInfo): Remove.
* resource.cc (fill_rusage): Call NtQueryInformationProcess rather than
GetProcessMemoryInfo to drop a psapi dependency.

13 years ago * fhandler_socket.cc (get_inet_addr): Rearrange for better readability.
Corinna Vinschen [Wed, 11 May 2011 08:20:17 +0000 (08:20 +0000)]
* fhandler_socket.cc (get_inet_addr): Rearrange for better readability.
Make waiting loop interruptible and cancelable.  Check for SYSTEM DOS
flag before reading the file.  Change return value to return 0 on
success, SOCKET_ERROR on failure.
(fhandler_socket::bind): Only set R/O DOS flag on filesystems not
supporting ACLs.
(fhandler_socket::connect): Accommodate changed return values from
get_inet_addr.  Use SOCKET_ERROR instead of -1.
(fhandler_socket::sendto): Accommodate changed return values from
get_inet_addr.
* syslog.cc (connect_syslogd): Ditto.

13 years ago * security.cc (check_registry_access): Handle missing
Christian Franke [Tue, 10 May 2011 17:19:37 +0000 (17:19 +0000)]
* security.cc (check_registry_access): Handle missing
security descriptor of HKEY_PERFORMANCE_DATA.

13 years ago * lc_msg.h: Regenerate.
Corinna Vinschen [Tue, 10 May 2011 16:43:34 +0000 (16:43 +0000)]
* lc_msg.h: Regenerate.

13 years ago * libc/locale/lmessages.c (_C_messages_locale): Add missing comma.
Corinna Vinschen [Tue, 10 May 2011 16:37:14 +0000 (16:37 +0000)]
* libc/locale/lmessages.c (_C_messages_locale): Add missing comma.

13 years ago * fhandler_proc.cc (format_proc_uptime): Don't call GetSystemInfo.
Corinna Vinschen [Tue, 10 May 2011 15:39:02 +0000 (15:39 +0000)]
* fhandler_proc.cc (format_proc_uptime): Don't call GetSystemInfo.
Fetch CPU count from wincap.
(format_proc_stat): Ditto.
* globals.cc (system_info): Move to wincap.
* heap.cc (heap_init): Fetch page size from wincap.
* syscalls.cc (getpagesize): Fetch allocation granularity from wincap.
(getsystempagesize): Fetch page size from wincap.
* wincap.cc (wincap_2003): Default is_server to false.
(wincapc::init): Call GetSystemInfo here.  Always set is_server value.
* wincap.h (class wincapc): Add system_info as private member.
(wincapc::cpu_count): New public method.
(wincapc::page_size): Ditto.
(wincapc::allocation_granularity): Ditto.

13 years ago * cygwinenv.sgml: Move "forkchunk:xxx" to the removed options section.
Corinna Vinschen [Tue, 10 May 2011 10:23:57 +0000 (10:23 +0000)]
* cygwinenv.sgml: Move "forkchunk:xxx" to the removed options section.
Change text accordingly.

13 years ago * environ.cc (set_chunksize): Remove.
Corinna Vinschen [Tue, 10 May 2011 10:17:30 +0000 (10:17 +0000)]
* environ.cc (set_chunksize): Remove.
(parse_thing): Remove forkchunk entry.
* fork.cc (child_copy): Drop handling external chunksize setting.
* wincap.cc: Througout, drop chunksize.
(wincapc::set_chunksize): Remove.
* wincap.h (struct wincaps): Drop chunksize and declaration of
set_chunksize.

13 years ago * Makefile.in: Don't override CC.
Corinna Vinschen [Tue, 10 May 2011 10:06:51 +0000 (10:06 +0000)]
* Makefile.in: Don't override CC.
* cyglsa.c: Don't include wchar.h.  Declare wcscpy and wcslen instead.
* cyglsa64.dll: Rebuild.

13 years ago * setup2.sgml (setup-env-ov): Make sure everybody knows that the
Corinna Vinschen [Tue, 10 May 2011 08:56:04 +0000 (08:56 +0000)]
* setup2.sgml (setup-env-ov): Make sure everybody knows that the
CYGWIN settings are just an example.

13 years ago2011-05-08 Doug Kwan <dougkwan@google.com>
Doug Kwan [Mon, 9 May 2011 17:56:47 +0000 (17:56 +0000)]
2011-05-08  Doug Kwan  <dougkwan@google.com>

Merge from gcc:

2011-05-08  Doug Kwan  <dougkwan@google.com>

* configure.ac: Propagate LDFLAGS_FOR_TARGET.
* configure: Regenerated.
* Makefile.tpl (LDFLAGS_FOR_TARGET): Use LDFLAGS_FOR_TARGET
value from configure.
* Makefile.in: Regenerated.

13 years ago2011-05-09 Paul Brook <paul@codesourcery.com>
Paul Brook [Mon, 9 May 2011 13:17:58 +0000 (13:17 +0000)]
2011-05-09  Paul Brook  <paul@codesourcery.com>

bfd/
* elf32-tic6x.c (is_tic6x_elf_unwind_section_name,
elf32_tic6x_fake_sections): New functions.
(elf_backend_fake_sections): Define.

gas/
* config/tc-tic6x.c (streq): Define.
(tic6x_get_unwind): New.
(s_tic6x_cantunwind, s_tic6x_handlerdata, s_tic6x_endp,
s_tic6x_personalityindex, s_tic6x_personality): New functions.
(md_pseudo_table): Add "endp", "handlerdata", "personalityindex",
"personality" and "cantunwind".
(tic6x_regname_to_dw2regnum, tic6x_frame_initial_instructions,
tic6x_start_unwind_section, tic6x_unwind_frame_regs,
tic6x_pop_rts_offset_little, tic6x_pop_rts_offset_big,
tic6x_unwind_reg_from_dwarf, tic6x_flush_unwind_word,
tic6x_unwind_byte, tic6x_unwind_2byte, tic6x_unwind_uleb,
tic6x_cfi_startproc, output_exidx_entry, tic6x_output_unwinding,
tic6x_cfi_endproc): New.
* config/tc-tic6x.h (TIC6X_NUM_UNWIND_REGS): Define.
(tic6x_unwind_info): New.
(tic6x_segment_info_type): Add marked_pr_dependency, unwind and
text_unwind.
(TARGET_USE_CFIPOP, tc_regname_to_dw2regnum,
tc_cfi_frame_initial_instructions, DWARF2_DEFAULT_RETURN_COLUMN,
DWARF2_CIE_DATA_ALIGNMENT, tc_cfi_startproc, tc_cfi_endproc,
tc_cfi_section_name): Define.
* doc/c-tic6x.texi: Document new unwinding directives.
* dw2gencfi.c (tc_cfi_startproc, tc_cfi_endproc): Add default
definitions.
(cfi_insn_data, fde_entry, CFI_adjust_cfa_offset, CFI_return_column,
CFI_rel_offset, CFI_escape, CFI_signal_frame, CFI_val_encoded_addr):
Move to dw2gencfi.h.
(CFI_EMIT_target): Define.
(dot_cfi_sections): Check tc_cfi_section_name.
(dot_cfi_startproc): Use tc_cfi_startproc.
(dot_cfi_endproc): Use tc_cfi_endproc.
* dw2gencfi.h (cfi_insn_data, fde_entry, CFI_adjust_cfa_offset,
CFI_return_column, CFI_rel_offset, CFI_escape, CFI_signal_frame,
CFI_val_encoded_addr):  Move to here from dw2gencfi.c.

gas/testsuite:
* gas/tic6x/unwind-1.d: New test.
* gas/tic6x/unwind-1.s: New test.
* gas/tic6x/unwind-2.d: New test.
* gas/tic6x/unwind-2.s: New test.
* gas/tic6x/unwind-3.d: New test.
* gas/tic6x/unwind-3.s: New test.
* gas/tic6x/unwind-bad-1.d: New test.
* gas/tic6x/unwind-bad-1.s: New test.
* gas/tic6x/unwind-bad-1.l: New test.
* gas/tic6x/unwind-bad-2.d: New test.
* gas/tic6x/unwind-bad-2.s: New test.
* gas/tic6x/unwind-bad-2.l: New test.

include/
* elf/tic6x.h (ELF_STRING_C6000_unwind,
ELF_STRING_C6000_unwind_info, ELF_STRING_C6000_unwind_once,
ELF_STRING_C6000_unwind_info_once): Define.

13 years ago* new-features.sgml (ov-new1.7.10): Document clock_settime.
Yaakov Selkowitz [Mon, 9 May 2011 08:58:59 +0000 (08:58 +0000)]
* new-features.sgml (ov-new1.7.10): Document clock_settime.

13 years ago* times.cc (settimeofday): Add EFAULT handler.
Yaakov Selkowitz [Mon, 9 May 2011 08:57:46 +0000 (08:57 +0000)]
* times.cc (settimeofday): Add EFAULT handler.
Set errno to EINVAL if tv.tv_nsec is invalid, and to EPERM if
SetSystemTime fails.  Return -1 in case of failure, all for
compatibility with BSD and Linux.
(clock_settime): New function.
* cygwin.din (clock_settime): Export.
* posix.sgml (std-susv4): Add clock_settime.
Move clock_setres from here...
(std-deprec): ... to here.
(std-notes): Correct limitation of clock_setres to only CLOCK_REALTIME.
Add limitation of clock_settime to only CLOCK_REALTIME.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years ago * registry.cc (get_registry_hive_path): Change system_printf to
Corinna Vinschen [Sat, 7 May 2011 18:56:39 +0000 (18:56 +0000)]
* registry.cc (get_registry_hive_path): Change system_printf to
debug_printf.
(load_registry_hive): Ditto.

13 years ago* fhandler.h (fhandler_base::close_with_arch): Make non-virtual.
Christopher Faylor [Fri, 6 May 2011 20:22:45 +0000 (20:22 +0000)]
* fhandler.h (fhandler_base::close_with_arch): Make non-virtual.
(fhandler_base::open_fs): Move closer to it's close counterpart.

13 years ago* fhandler.cc (fhandler_base::dup): Avoid duping a handle when an fhandler has
Christopher Faylor [Fri, 6 May 2011 20:12:20 +0000 (20:12 +0000)]
* fhandler.cc (fhandler_base::dup): Avoid duping a handle when an fhandler has
an archetype.
* fhandler_console.cc (fhandler_console::invisible_console): Move to the top.
(fhandler_console::set_close_on_exec): Don't set close-on-exec on handle since
it's an archetype and you don't know how many things could be using it.

This page took 0.069421 seconds and 5 git commands to generate.