]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years ago * fhandler_process.cc (dos_drive_mappings::dos_drive_mappings): Fully
Corinna Vinschen [Mon, 12 Dec 2011 17:27:18 +0000 (17:27 +0000)]
* fhandler_process.cc (dos_drive_mappings::dos_drive_mappings): Fully
resolve symbolic links returned by QueryDosDeviceW.  Explain why.

12 years ago * mount.cc (fs_info::update): Set has_buggy_reopen for Netapps as well.
Corinna Vinschen [Mon, 12 Dec 2011 11:03:01 +0000 (11:03 +0000)]
* mount.cc (fs_info::update): Set has_buggy_reopen for Netapps as well.

12 years ago * libc/time/strftime.c (get_era_info): Fix off-by-one error in month
Corinna Vinschen [Mon, 12 Dec 2011 10:48:29 +0000 (10:48 +0000)]
* libc/time/strftime.c (get_era_info): Fix off-by-one error in month
calculation.

12 years ago * dcrt0.cc (wow64_respawn): New static variable.
Corinna Vinschen [Mon, 12 Dec 2011 10:16:53 +0000 (10:16 +0000)]
* dcrt0.cc (wow64_respawn): New static variable.
(wow64_started_from_native64): New function to check if a WOW64
process got started from a native 64 bit process.
(respawn_wow64_process): New function to respawn process.
(dll_crt0_0): When started from a native parent, check if parent
is a 64 bit process.  If so, return early.
(_dll_crt0): Respawn WOW64 process here if required.
* init.cc (respawn_wow64_process): Remove.
(dll_entry): Rename wow64_test_stack_marker to test_stack_marker.
Drop WOW64 test here.

12 years ago* pipe.cc (fhandler_pipe::create): Use debug_printf to print debugging info
Christopher Faylor [Mon, 12 Dec 2011 01:22:29 +0000 (01:22 +0000)]
* pipe.cc (fhandler_pipe::create): Use debug_printf to print debugging info
since this isn't a "syscall".
(pipe_worker): New function created from _pipe().
(_pipe): Use pipe_worker to create a pipe.  Use standard syscall strace
reporting on exit.
(pipe): Ditto.
(pipe2): Ditto.

12 years ago* select.cc (select_stuff::wait): Very minor formatting fix.
Christopher Faylor [Sun, 11 Dec 2011 01:25:20 +0000 (01:25 +0000)]
* select.cc (select_stuff::wait): Very minor formatting fix.
(peek_windows): Report on HWND handle used in queries.
* select.h: Update copyright.
* sigproc.h (cygwait): Eliminate multi-argument variety since more general
implementation may cause odd problems in select.  Also force to always be
inline.

12 years agoCorrect defective configure checkin
Keith Marshall [Sat, 10 Dec 2011 21:43:09 +0000 (21:43 +0000)]
Correct defective configure checkin

12 years agofix another typo in ChangeLog
Christopher Faylor [Sat, 10 Dec 2011 18:34:00 +0000 (18:34 +0000)]
fix another typo in ChangeLog

12 years ago* sigproc.h (cygwait): Delete duplicate va_start and add matching va_end.
Christopher Faylor [Sat, 10 Dec 2011 18:12:28 +0000 (18:12 +0000)]
* sigproc.h (cygwait): Delete duplicate va_start and add matching va_end.

12 years agoAdd ChangeLog entry for previous change and revert erroneously checked in
Christopher Faylor [Sat, 10 Dec 2011 18:10:22 +0000 (18:10 +0000)]
Add ChangeLog entry for previous change and revert erroneously checked in
changes to dcrt0.cc and init.cc

12 years agoClarify entry
Christopher Faylor [Sat, 10 Dec 2011 17:40:20 +0000 (17:40 +0000)]
Clarify entry

12 years agoBuild system clean-up (phase 1)
Keith Marshall [Sat, 10 Dec 2011 17:24:25 +0000 (17:24 +0000)]
Build system clean-up (phase 1)

12 years ago* exceptions.cc (ctrl_c_handler): YA in a series or reversions. Put back
Christopher Faylor [Sat, 10 Dec 2011 01:33:56 +0000 (01:33 +0000)]
* exceptions.cc (ctrl_c_handler): YA in a series or reversions.  Put back
_my_tls.remove along with a comment.
(sigpacket::process): Remove code which now causes a gdb deadlock.
* sigproc.cc (_cygtls::signal_exit): Signal debugger with signal number
earlier.

12 years ago* dllfixdbg: Work around annoying gdb warning about missing .gnu_debuglink.
Christopher Faylor [Fri, 9 Dec 2011 17:46:12 +0000 (17:46 +0000)]
* dllfixdbg: Work around annoying gdb warning about missing .gnu_debuglink.

12 years agoRename cygWFMO to cygwait throughout and use the magic of polymorphism to "wait
Christopher Faylor [Fri, 9 Dec 2011 16:02:56 +0000 (16:02 +0000)]
Rename cygWFMO to cygwait throughout and use the magic of polymorphism to "wait
for stuff".
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use simplified arg
form of cygwait.
* fhandler_console.cc (fhandler_console::read): Ditto.
* fhandler_audio.cc (fhandler_dev_dsp::Audio_out::waitforspac): Ditto.
(fhandler_dev_dsp::Audio_in::waitfordata): Ditto.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
(fhandler_serial::raw_write): Ditto.
* select.cc (cygwin_select): Ditto.
* sigproc.h (cygwait): Rename from cygWFMO.  Define two argument and single
argument forms of this function.
* fhandler_tty.cc (fhandler_pty_slave::open): Use method to query if tty is
open.
(fhandler_pty_slave::read): Send SIGHUP when master is detected as closed.
(fhandler_pty_common::close): Close input_available_event in callers since
master may need to signal it first.
(fhandler_pty_master::close): Lie and set input_available_event when closing,
then close input_available_event.
(fhandler_pty_slave::close): Close input_available_event explicitly here.
* tty.h (tty::is_master_closed): Declare new method.

12 years agoRevert erroneous checkin
Christopher Faylor [Fri, 9 Dec 2011 06:57:21 +0000 (06:57 +0000)]
Revert erroneous checkin

12 years ago* sigproc.cc (signal_exit): Revert reversion of 2011-12-04 change since,
Christopher Faylor [Fri, 9 Dec 2011 06:49:10 +0000 (06:49 +0000)]
* sigproc.cc (signal_exit): Revert reversion of 2011-12-04 change since,
otherwise, you see hangs when the signal pipe is closed.

12 years ago* select.cc (cygwin_select): Fifth time is the charm.
Christopher Faylor [Fri, 9 Dec 2011 03:19:41 +0000 (03:19 +0000)]
* select.cc (cygwin_select): Fifth time is the charm.

12 years agobfd:
Andrew Pinski [Thu, 8 Dec 2011 20:47:27 +0000 (20:47 +0000)]
bfd:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

* archures.c (bfd_mach_mips_octeon2): New macro
* bfd-in2.h: Regenerate.
* cpu-mips.c (I_mipsocteon2): New enum value.
(arch_info_struct): Add bfd_mach_mips_octeon2.
* elfxx-mips.c (_bfd_elf_mips_mach): Support E_MIPS_MACH_OCTEON2.
(mips_set_isa_flags): Add bfd_mach_mips_octeon2.
(mips_mach_extensions): Add bfd_mach_mips_octeon2.

gas:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

        * tc-mips.c (CPU_IS_OCTEON): Add Octeon2.
        (mips_cpu_info_table): Add Octeon2.
        * doc/c-mips.texi: Document octeon2 as an acceptable value for -march=.

gas/testsuite:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

        * gas/mips/mips.exp: Add Octeon2 for an architecture.
        Run octeon2 test.
        * gas/mips/octeon2.d: New file.
        * gas/mips/octeon2.s: New file.

include/opcode:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

        * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEON2.
        (INSN_OCTEON2): New macro.
        (CPU_OCTEON2): New macro.
        (OPCODE_IS_MEMBER): Add Octeon2.

opcodes:
2011-12-08  Andrew Pinski  <apinski@cavium.com>
            Adam Nemet  <anemet@caviumnetworks.com>

* mips-dis.c (mips_arch_choices): Add Octeon2.
For "octeon+", just include OcteonP for the insn.
* mips-opc.c (IOCT): Include Octeon2.
(IOCTP): Include Octeon2.
(IOCT2): New macro.
(mips_builtin_opcodes): Add "laa", "laad", "lac", "lacd", "lad",
"ladd", "lai", "laid", "las", "lasd", "law", "lawd".
Move "lbux", "ldx", "lhx", "lwx", and "lwux" up to where the standard
loads are, and add IOCT2 to them.
Add "lbx" and "lhux".
Add "qmac.00", "qmac.01", "qmac.02", "qmac.03", "qmacs.00",
"qmacs.01", "qmacs.01", "qmacs.02" and "qmacs.03".
Add "zcb" and "zcbt".

12 years ago* select.cc (cygwin_select): Make sure that 0 is returned when sel.wait times
Christopher Faylor [Thu, 8 Dec 2011 20:24:33 +0000 (20:24 +0000)]
* select.cc (cygwin_select): Make sure that 0 is returned when sel.wait times
out.

12 years ago* include/sys/wait.h: Add in all c++ functions.
Christopher Faylor [Thu, 8 Dec 2011 18:24:24 +0000 (18:24 +0000)]
* include/sys/wait.h: Add in all c++ functions.

12 years ago* select.cc (select_stuff::wait): Temporarily disallow APCS.
Christopher Faylor [Thu, 8 Dec 2011 07:03:14 +0000 (07:03 +0000)]
* select.cc (select_stuff::wait): Temporarily disallow APCS.

12 years ago* include/sys/wait.h: Ensure that C++ functions are only used when using C++.
Christopher Faylor [Thu, 8 Dec 2011 06:58:10 +0000 (06:58 +0000)]
* include/sys/wait.h: Ensure that C++ functions are only used when using C++.

12 years ago* select.cc (cygwin_select): Make sure that poll is called when appropriate.
Christopher Faylor [Thu, 8 Dec 2011 06:49:56 +0000 (06:49 +0000)]
* select.cc (cygwin_select): Make sure that poll is called when appropriate.

12 years ago* dll_init.cc (dll_dllcrt0): Don't try to initialize dll data if we're
Christopher Faylor [Thu, 8 Dec 2011 06:17:49 +0000 (06:17 +0000)]
* dll_init.cc (dll_dllcrt0): Don't try to initialize dll data if we're
dynamically loaded since fork() doesn't work in that scenario anyway.
(dll_dllcrt0_1): Don't accommodate dynamically loaded dlls.
* exceptions.cc (ctrl_c_handler): Don't lock the process; there's too much risk
of deadlock.
* sigproc.cc (_cygtls::remove_wq): Don't try to remove anything from the waitq
if there is obviously nothing there.
* strace.cc (strace::activate): Allow stracing dynamically loaded cygwin1.dll.

12 years ago* fhandler_termios.cc (tty_min::kill_pgrp): Don't send __SIGSETPGRP since
Christopher Faylor [Thu, 8 Dec 2011 04:09:22 +0000 (04:09 +0000)]
* fhandler_termios.cc (tty_min::kill_pgrp): Don't send __SIGSETPGRP since
presumably we are already initialized.

12 years ago* select.cc (cygwin_select): Add common introducer and leaver debug output.
Christopher Faylor [Wed, 7 Dec 2011 23:14:47 +0000 (23:14 +0000)]
* select.cc (cygwin_select): Add common introducer and leaver debug output.
(select_stuff::poll): Remove unneeded debugging.

12 years ago* exceptions.cc (ctrl_c_handler): Remove _my_tls.remove since it can cause
Christopher Faylor [Wed, 7 Dec 2011 13:54:54 +0000 (13:54 +0000)]
* exceptions.cc (ctrl_c_handler): Remove _my_tls.remove since it can cause
deadlocks during exec and will eventually be handled anyway.

12 years ago * spawn.cc (child_info_spawn::worker): Add CREATE_BREAKAWAY_FROM_JOB
Corinna Vinschen [Wed, 7 Dec 2011 10:48:17 +0000 (10:48 +0000)]
* spawn.cc (child_info_spawn::worker): Add CREATE_BREAKAWAY_FROM_JOB
to all spawned processes.  Explain why.

12 years ago* fhandler_fifo.cc (fhandler_fifo::wait): Fix stupid typo and actually wait for
Christopher Faylor [Wed, 7 Dec 2011 03:07:25 +0000 (03:07 +0000)]
* fhandler_fifo.cc (fhandler_fifo::wait): Fix stupid typo and actually wait for
the handle.

12 years agoinclude/elf/ChangeLog:
Ulrich Weigand [Tue, 6 Dec 2011 14:09:12 +0000 (14:09 +0000)]
include/elf/ChangeLog:

* common.h (NT_S390_LAST_BREAK): Define.
(NT_S390_SYSTEM_CALL): Likewise.

bfd/ChangeLog:

* elf-bfd.h (elfcore_write_s390_last_break): Add prototype.
(elfcore_write_s390_system_call): Likewise.
* elf.c (elfcore_write_s390_last_break): New function.
(elfcore_write_s390_system_call): Likewise.
(elfcore_write_register_note): Call them.
(elfcore_grok_s390_last_break): New function.
(elfcore_grok_s390_system_call): Likewise.
(elfcore_grok_note): Call them.

12 years ago * libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.
Corinna Vinschen [Tue, 6 Dec 2011 10:45:05 +0000 (10:45 +0000)]
* libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.
* libc/iconv/Makefile.in: Regenerate.

12 years ago* sigproc.cc (close_my_readsig): New function.
Christopher Faylor [Mon, 5 Dec 2011 15:59:06 +0000 (15:59 +0000)]
* sigproc.cc (close_my_readsig): New function.
(_cygtls::signal_exit): Close my_readsig via close_my_readsig(), avoiding
communication with the signal pipe.
(wait_sig): Close my_readsig via close_my_readsig().

12 years ago * mmap.cc (mlock): Replace LOCK_VM_IN_WSL with correct MAP_PROCESS.
Corinna Vinschen [Mon, 5 Dec 2011 15:46:26 +0000 (15:46 +0000)]
* mmap.cc (mlock): Replace LOCK_VM_IN_WSL with correct MAP_PROCESS.
(munlock): Ditto.
* ntdll.h: Rearrange to have all preprocessor definitions at the start
of the file.  Add comments to each definition block.
(MAP_PROCESS): Rename from LOCK_VM_IN_WSL.
(MAP_SYSTEM): Rename from LOCK_VM_IN_RAM.

12 years agocorrect name of function
Christopher Faylor [Sun, 4 Dec 2011 18:40:51 +0000 (18:40 +0000)]
correct name of function

12 years ago* sigproc.cc (cygWFMO): Don't assume that cancellable event is always
Christopher Faylor [Sun, 4 Dec 2011 18:32:00 +0000 (18:32 +0000)]
* sigproc.cc (cygWFMO): Don't assume that cancellable event is always
available.
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::waitforspace): Use cygWFMO
instead of WaitForMultipleObjects.
(fhandler_dev_dsp::Audio_in::waitfordata): Ditto.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
(fhandler_serial::raw_write): Ditto.
* fhandler_tty.cc (fhandler_pty_slave::read): Ditto.
* select.cc (cygwin_select): Ditto for degenerate case.

12 years ago* sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.
Christopher Faylor [Sun, 4 Dec 2011 18:15:36 +0000 (18:15 +0000)]
* sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.

12 years ago* exceptions.cc (exception::handle): Drop abbreviation for "exception" since I
Christopher Faylor [Sun, 4 Dec 2011 17:58:24 +0000 (17:58 +0000)]
* exceptions.cc (exception::handle): Drop abbreviation for "exception" since I
never remember what it stands for.
(sig_handle_tty_stop): Remove obsolete call to sig_handle_tty_stop.
(_cygtls::call_signal_handler): Rework to grab signal information from
_main_tls if none is set for _my_tls.  Try harder to keep thread locked.
(reset_signal_arrived): Delete.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use new cygWFMO call
to wait for an event + standard cygwin stuff.  Modify debug output to
acccomodate new function.
* fhandler_console.cc (fhandler_console::read): Replace WaitForMultipleObjects
with cygWFMO.
* fhandler_socket.cc (get_inet_addr): Add comment.
* gendef (_sigdelayed): Remove call to reset_signal_arrived.
* sigproc.cc (_cygtls::signal_exit): Don't close my_readsig here unless we're
in the signal thread.
(create_signal_arrived): Create signal_arrived as auto-reset so that only one
thread is woken when a signal arrives.
* sigproc.h (cygWFMO): New function.
(reset_signal_arrived): Delete declaration.

12 years ago* mmap.cc (mlock): Add standard syscall return value debugging output.
Christopher Faylor [Sat, 3 Dec 2011 23:55:21 +0000 (23:55 +0000)]
* mmap.cc (mlock): Add standard syscall return value debugging output.
(munlock): Ditto.
(posix_madvise): Ditto.
* signal.cc: Remove obsolete sigcatchers stuff throughout.
(sigaction_worker): Add function name parameter and use it to show standard
syscall return value debugging output.  Also add fault protection.
(sigaction): Accommodate extra argument to sigaction_worker.
(siginterrupt): Ditto.
* syscalls.cc (read): Remove obsolete sigcatchers stuff.
(readv): Ditto.

12 years agofix incorrectly named file in old ChangeLog entry
Christopher Faylor [Sat, 3 Dec 2011 23:49:03 +0000 (23:49 +0000)]
fix incorrectly named file in old ChangeLog entry

12 years ago * mmap.cc (mlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE. Drop
Corinna Vinschen [Sat, 3 Dec 2011 23:03:15 +0000 (23:03 +0000)]
* mmap.cc (mlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE.  Drop
outdated comment.  Call NtLockVirtualMemory with LOCK_VM_IN_WSL flag.
(munlock): Drop requesting SE_LOCK_MEMORY_PRIVILEGE.  Call
NtUnlockVirtualMemory with LOCK_VM_IN_WSL flag.

12 years agoThroughout, remove extra space after function name from debugging output.
Christopher Faylor [Sat, 3 Dec 2011 21:43:27 +0000 (21:43 +0000)]
Throughout, remove extra space after function name from debugging output.
Throughout, change syscalls to report on return values using new %R format
option.
* smallprint.cc (__small_vsprintf): Add parsing for %R to report on return
values and possible errno from syscalls.
* errno.cc (errmap): Add PRIVILEGE_NOT_HELD.
* fhandler_tty.cc (fhandler_pty_master::setup): When creating a thread use
shorter name to reduce debuggging output.
* select.cc (start_thread_pipe): Ditto.
(start_thread_serial): Ditto.
(start_thread_socket): Ditto.
(start_thread_mailslot): Ditto.
* sigproc.cc (talktome): Ditto.

12 years ago * fhandler.cc (fhandler_base::open): Fix comment a bit more.
Corinna Vinschen [Sat, 3 Dec 2011 20:35:36 +0000 (20:35 +0000)]
* fhandler.cc (fhandler_base::open): Fix comment a bit more.

12 years agosim: export cb_get_string for people to use
Michael Frysinger [Sat, 3 Dec 2011 18:39:43 +0000 (18:39 +0000)]
sim: export cb_get_string for people to use

The common sim code provides a useful "get_string" function which reads
a C string out of the target's memory space.  So rename and export it
for other people to use.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago * fhandler.cc (fhandler_base::open): Fix typos in comment.
Corinna Vinschen [Sat, 3 Dec 2011 14:21:30 +0000 (14:21 +0000)]
* fhandler.cc (fhandler_base::open): Fix typos in comment.

12 years ago * Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.
Corinna Vinschen [Fri, 2 Dec 2011 16:15:26 +0000 (16:15 +0000)]
* Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.
* cygpath.cc: Throughout, use cygwin_conv_path WIN_W rather than WIN_A
conversion.
(get_long_path_name_w32impl): Remove.
(get_long_name): Drop pre-Windows 2000 accommodations.  Just call
GetLongPathNameW here directly.
(get_special_folder): Convert first parameter to WCHAR buffer pointer.
Drop conversion of result from WCHAR * to char *.
(do_sysfolders): Accommodate change to get_special_folder and only
convert result to char * last.  Drop pre-Windows 2000 accommodations
and just call GetProfilesDirectoryW directly.  Replace call to
GetWindowsDirectoryW with call to GetSystemWindowsDirectoryW.
Just call GetShortPathNameW directly.
(do_pathconv): Simplify buffer handling.

12 years ago * path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.
Corinna Vinschen [Fri, 2 Dec 2011 16:06:10 +0000 (16:06 +0000)]
* path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.
Allow all types of CCP conversions.  Accommodate throughout.
(cygwin_conv_path): Use current ANSI or OEM codepage for WIN_A
conversions, depending on current file API codepage setting.
(cygwin_conv_path_list): Allow all CCP conversion types.
* include/sys/cygwin.h (CCP_CONVTYPE_MASK): Add to cygwin_conv_path_t
enum for convenience.

12 years ago * mkgroup.c: Drop support for NT4 domains.
Corinna Vinschen [Thu, 1 Dec 2011 13:06:13 +0000 (13:06 +0000)]
* mkgroup.c: Drop support for NT4 domains.
* mkpasswd.c: Ditto.
(psx_dir): Remove.
(current_user): Drop support for -m option.  Use $HOME as is since it's
a POSIX path anyway.
(enum_users): Drop support for -m option.
(usage): Mention -m option as ignored.
(main): Drop support for -m option.  Mark ignored options as deprecated.
* utils.sgml (mkpasswd): Remove description of -m option.

12 years ago2011-11-30 Ozkan Sezer <sezero@users.sourceforge.net>
Chris Sutcliffe [Thu, 1 Dec 2011 00:24:35 +0000 (00:24 +0000)]
2011-11-30  Ozkan Sezer  <sezero@users.sourceforge.net>

        * include/io.h (_wfindfirst, _wfindnext, _wfindfirst32, _wfindnext32,
        _wfindfirsti64, _wfindnexti64, _wfindfirst32i64, _wfindfirst64i32,
        _wfindnext32i64, _wfindnext64i32, _wfindnext64): Update to use intptr_t.

12 years ago2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
Chris Sutcliffe [Thu, 1 Dec 2011 00:13:52 +0000 (00:13 +0000)]
2011-11-30  Earnie Boyd  <earnie@users.sourceforge.net>

        * include/stdio.h (getc, putc, getchar, putchar, fopen64, ftello64): Add
        function definitions to fix warnings when building GCC.

12 years ago2011-11-30 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Chris Sutcliffe [Wed, 30 Nov 2011 23:49:46 +0000 (23:49 +0000)]
2011-11-30  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>

        * tlssup.c (__dyn_tls_init): Reapply patch from 3105314.

        Thank you to Earnie for creating the patch file.

12 years agoopcode/
Andrew Pinski [Tue, 29 Nov 2011 20:28:55 +0000 (20:28 +0000)]
opcode/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * mips-dis.c (mips_arch_choices): Add Octeon+.
        * mips-opc.c (IOCT): Include Octeon+.
        (IOCTP): New macro.
        (mips_builtin_opcodes): Add "saa" and "saad".
bfd/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * archures.c (bfd_mach_mips_octeonp): New macro.
        * bfd-in2.h: Regenerate.
        * bfd/cpu-mips.c (I_mipsocteonp): New enum value.
        (arch_info_struct): Add bfd_mach_mips_octeonp.
        * elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp.
        (mips_mach_extensions): Add bfd_mach_mips_octeonp.
include/opcodes/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEONP.
        (INSN_OCTEONP): New macro.
        (CPU_OCTEONP): New macro.
        (OPCODE_IS_MEMBER): Add Octeon+.
        (M_SAA_AB, M_SAAD_AB, M_SAA_OB, M_SAAD_OB): New enum values.
gas/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * config/tc-mips.c (CPU_IS_OCTEON): New macro function.
        (CPU_HAS_SEQ): Change to use CPU_IS_OCTEON.
        (NO_ISA_COP): Likewise.
        (macro) <ld_st>: Add support when off0 is true.
        Add support for M_SAA_AB, M_SAA_OB, M_SAAD_OB and M_SAAD_AB.
        (mips_cpu_info_table): Add octeon+.
        * doc/c-mips.texi: Document octeon+ as an acceptable value for -march=.
gas/testsuite/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * gas/mips/mips.exp: Add octeon+ for an architecture.
        Run octeon-saa-saad test.
        (run_dump_test_arch): For Octeon architectures, also try octeon@.
        * gas/mips/octeon-pref.d: Remove -march=octeon from command line.
        * gas/mips/octeon.d: Likewise.
        * gas/mips/octeon-saa-saad.d: New file.
        * gas/mips/octeon-saa-saad.s: New file

12 years ago* sigproc.cc (get_proc_lock): Remove extra NULL check. Return false on
Christopher Faylor [Tue, 29 Nov 2011 17:41:01 +0000 (17:41 +0000)]
* sigproc.cc (get_proc_lock): Remove extra NULL check.  Return false on
failure.

12 years ago* sync.cc: Fix comment.
Christopher Faylor [Tue, 29 Nov 2011 17:26:57 +0000 (17:26 +0000)]
* sync.cc: Fix comment.
* dll_init.cc (dll_list::reserve_space): Use %p rather than %lx to show
reserved space.

12 years ago* sigproc.cc (remove_proc): Don't terminate the currently executing thread.
Christopher Faylor [Tue, 29 Nov 2011 15:34:49 +0000 (15:34 +0000)]
* sigproc.cc (remove_proc): Don't terminate the currently executing thread.

12 years ago[libgloss]
DJ Delorie [Tue, 29 Nov 2011 06:33:49 +0000 (06:33 +0000)]
[libgloss]
* configure.in: Add rl78.
* configure: Regenerate.
* rl78: New directory

[newlib]
* configure.host: Add rl78.
* libc/include/machine/ieeefp.h: Add rl78 support.
* libc/include/machine/setjmp.h: Add rl78 support.
* libc/machine/configure.in: Add rl78.
* libc/machine/rl78: New directory.

12 years agofix older description
Christopher Faylor [Tue, 29 Nov 2011 05:38:12 +0000 (05:38 +0000)]
fix older description

12 years ago * locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
Corinna Vinschen [Mon, 28 Nov 2011 17:58:48 +0000 (17:58 +0000)]
* locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
path and convert that to POSIX.

12 years ago * external.cc (fillout_pinfo): Store program name as POSIX path in
Corinna Vinschen [Mon, 28 Nov 2011 17:53:18 +0000 (17:53 +0000)]
* external.cc (fillout_pinfo): Store program name as POSIX path in
ep.progname_long.

12 years ago * ps.cc: Remove all Win 9x considerations. Use psapi functions
Corinna Vinschen [Mon, 28 Nov 2011 17:49:56 +0000 (17:49 +0000)]
* ps.cc: Remove all Win 9x considerations.  Use psapi functions
directly.  Drop support for older Cygwin DLLs.  Just use progname_long
as is since it's already a POSIX path now.  Rename "tty" to "pty" as in
the Cygwin DLL.  Call setlocale to make sure wcstombs does the right
thing according to the current locale.
* Makefile.in (ps.exe): Link against psapi.dll.

12 years ago * pinfo.cc (pinfo::exit): Call TerminateProcess to avoid potential
Corinna Vinschen [Mon, 28 Nov 2011 16:00:07 +0000 (16:00 +0000)]
* pinfo.cc (pinfo::exit): Call TerminateProcess to avoid potential
busy loop in ntdll.dll when calling ExitProcess. Only call ExitProcess
as a fallback.

12 years ago* init.cc (dll_entry): Revert previous change since it caused inexplicable fork
Christopher Faylor [Sun, 27 Nov 2011 19:00:33 +0000 (19:00 +0000)]
* init.cc (dll_entry): Revert previous change since it caused inexplicable fork
problems.

12 years agoClean up DIRENT errno handling; make it more POSIX conformant.
Keith Marshall [Sat, 26 Nov 2011 22:12:51 +0000 (22:12 +0000)]
Clean up DIRENT errno handling; make it more POSIX conformant.

12 years ago* init.cc (remove): Don't bother calling through thread removal cleanup if we
Christopher Faylor [Sat, 26 Nov 2011 19:20:13 +0000 (19:20 +0000)]
* init.cc (remove): Don't bother calling through thread removal cleanup if we
are exiting.

12 years ago* exceptions.cc (stackdump): Make global.
Christopher Faylor [Sat, 26 Nov 2011 19:14:22 +0000 (19:14 +0000)]
* exceptions.cc (stackdump): Make global.
(signal_exit): Move to sigproc.cc.
* sigproc.cc (signal_exit): Move here.  Declare stackdump extern.  Set
my_sendsig to indicate that signals are no longer available.
(my_readsig): Make Static again.
(sig_send): Interpret ERROR_BROKEN_PIPE as ESRCH.  Remove special-case EACCESS
errno setting, just setting errno generally, even for "its_me" case.

12 years ago* exceptions.cc (sigpacket::process): Move signal_exit processing into...
Christopher Faylor [Sat, 26 Nov 2011 02:35:49 +0000 (02:35 +0000)]
* exceptions.cc (sigpacket::process): Move signal_exit processing into...
(_cygtls::signal_exit): ...here.  Close my_readsig and comment on why.
* pinfo.cc (pinfo::exit): Move sigproc_terminate earlier.  Set exiting flag in
lock_process.
* sigproc.cc (my_readsig): Make global.
* sync.cc (muto::exiting_thread): Delete.
(muto::acquire): Delete #if 0'ed code.
* sync.h (muto::exiting_thread): Delete.
(set_exiting_thread): Ditto.
(lock_process::lock_process): Don't worry about setting the exiting thread
since it had no meaning.

12 years ago* strace.cc (attach_process): Use NT_SUCCESS to figure out if
Christopher Faylor [Thu, 24 Nov 2011 21:54:41 +0000 (21:54 +0000)]
* strace.cc (attach_process): Use NT_SUCCESS to figure out if
NtSetInformationProcess succeeded.
(handle_output_debug_string): Put back DebugActiveProcess since it seems to
still be needed (on my system at least).  Detect new format
_STRACE_INTERFACE_ACTIVATE_ADDR which informs whether this is a forked process
or not.  Use that to decide if forkdebug should be handled.

12 years agomissed this in previous checkin
Christopher Faylor [Thu, 24 Nov 2011 21:38:17 +0000 (21:38 +0000)]
missed this in previous checkin

12 years ago* cygthread.h (cygthread::name): Default name to "main" if we are early in the
Christopher Faylor [Thu, 24 Nov 2011 21:36:53 +0000 (21:36 +0000)]
* cygthread.h (cygthread::name): Default name to "main" if we are early in the
process of setting up the DLL and no name is known.
* dcrt0.cc (initial_env): Remove CYGWIN_SLEEP stuff.
(get_cygwin_startup_info): Activate strace here as appropriate.
(dll_crt0_0): Move get_cygwin_startup_info as early as possible to avoid
missing strace output.
* fork.cc (frok::child): Move debugging statement to point where ppid will be
set.
* pinfo.cc (pinfo::thisproc): Remove obsolete call to strace.hello.  Tweak
debug output slightly.
* select.cc (select_stuff::wait): Allow APCS to be triggered while waiting
since we use them now.  Report when that happens.
* sigproc.cc (child_info::child_info): Use strace.active() rather than
strace.attached().
* spawn.cc (child_info_spawn::worker): Only write strace child pid when we know
it's a cygwin process.  Accommodate change to write_child argument list.
* strace.cc (strace::hello): Delete.  Move functionality...
(strace::activate): ...to here.
(mypid): Just use raw GetCurrentProcessId () if myself isn't set.
(strace::write_childpid): Don't wait for subproc_ready.  Remove arg which was
required for it.
* include/sys/strace.h (strace::hello): Delete.
(strace::write_childpid): Delete first argument.

12 years ago* child_info.h (CURR_CHILD_INFO_MAGIC): Reset for previous changes.
Christopher Faylor [Thu, 24 Nov 2011 02:17:55 +0000 (02:17 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset for previous changes.
* dcrt0.cc (get_cygwin_startup_info): Signal readiness when stracing since
strace::write_child relies on it.  Use strace.activate to notify strace
process, passing in arg indicating whether we're forked.
* sigproc.cc (wait_sig): Accommodate new strace::activate argument.
* spawn.cc (child_info_spawn::worker): Oops.  Previous suspended test was
actually correct.  Revert and document.
* strace.cc (strace::activate): Send additional flag indicating whether this is
an attempt to activate a forked process.
(strace::hello): Report on windows pid.
* include/sys/strace.h (strace::strace): Make a dummy.
(strace::activate): Modify declaration to accept an argument.
(strace::write_childpid): Set regparm.

12 years ago* pipe.cc (fhandler_pipe::create): Avoid derefencing a NULL pointer.
Christopher Faylor [Wed, 23 Nov 2011 21:58:43 +0000 (21:58 +0000)]
* pipe.cc (fhandler_pipe::create): Avoid derefencing a NULL pointer.
* child_info.h (child_info): Reorganize some elements so that the ones which
are initialized in a constructor are all together.
* sigproc.cc (child_info::child_info): Initialize values via the constructor
rather than as C statements and make sure that flags is set to zero initially.
* spawn.cc (child_info_spawn::worker): Use iscygwin() test for determining when
to send strace info since it is more foolproof than checking the suspend state.

12 years ago* fhandler.h (fhandler_pipe::create): Rename from the misnamed
Christopher Faylor [Wed, 23 Nov 2011 18:56:57 +0000 (18:56 +0000)]
* fhandler.h (fhandler_pipe::create): Rename from the misnamed
"create_selectable".  Change return to DWORD.
(fhandler_pty_common::pipesize): New constant.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Reflect create_selectable
name change.
* miscfuncs.cc (CreatePipeOverlapped): Ditto.
* pipe.cc (fhandler_pipe::create): Ditto.
(fhandler_pipe::create): Rename from the misnamed "create_selectable".  Return
DWORD.  Only set pipe size to default when it is passed in as zero.
* fhandler_tty.cc (fhandler_pty_master::setup): Ditto.  Use
fhandler_pty_common::pipesize rather than a raw constant.
* tty.cc (tty::not_allocated): Ditto.
* sigproc.cc (sigproc_init): Use create_selectable to create the signal pipe to
get a more appropriate message based pipe.

12 years ago* sigproc.cc (remove_proc): Don't do busy loop when exiting since it doesn't
Christopher Faylor [Mon, 21 Nov 2011 21:09:33 +0000 (21:09 +0000)]
* sigproc.cc (remove_proc): Don't do busy loop when exiting since it doesn't
matter.

12 years ago* sigproc.cc (remove_proc): Don't do busy loop when execing since thread could
Christopher Faylor [Mon, 21 Nov 2011 19:13:30 +0000 (19:13 +0000)]
* sigproc.cc (remove_proc): Don't do busy loop when execing since thread could
have been terminated prior to setting flag.
* signal.cc (sigwaitinfo): Zero event before closing to signal other threads
that it is no longer available.

12 years ago * faq-using.xml (faq.using.weirdchars): Rewrite.
Corinna Vinschen [Mon, 21 Nov 2011 09:16:23 +0000 (09:16 +0000)]
* faq-using.xml (faq.using.weirdchars): Rewrite.

12 years ago * shared.cc (get_shared_parent_dir): Use global shared_parent_dir
Corinna Vinschen [Fri, 18 Nov 2011 17:38:04 +0000 (17:38 +0000)]
* shared.cc (get_shared_parent_dir): Use global shared_parent_dir
instead of local dir variable and create handle not inheritable to
avoid accumulating stray handles in child processes.
(get_session_parent_dir): Ditto with session_parent_dir variable.

12 years ago * faq-using.xml (faq.using.converting-paths): Remove reference to
Corinna Vinschen [Fri, 18 Nov 2011 11:39:31 +0000 (11:39 +0000)]
* faq-using.xml (faq.using.converting-paths): Remove reference to
cygwin.bat.
(faq.using.emacs): Drop "CYGWIN=tty" setting.
* pathnames.sgml (pathnames-posixdevices): Align list of device names
with changes in 1.7.10.
* setup2.sgml (setup-env-ov): Drop text which assumes that Cygwin
processes are started in console window.  Align wording to lessened
relevance of $CYGWIN.  Don't use dropped CYGWIN setting in example.
(setup-locale-how): Put using console and Cygwin.bat file into
perspective.
(setup-locale-problems): Ditto.

12 years ago * shared.cc (shared_info::create): Open global shared data section
Corinna Vinschen [Thu, 17 Nov 2011 22:08:14 +0000 (22:08 +0000)]
* shared.cc (shared_info::create): Open global shared data section
non-inheritable to avoid accumulating stray handles in child processes.

12 years ago* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
Christopher Faylor [Wed, 16 Nov 2011 04:09:33 +0000 (04:09 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
(cygheap_exec_info::nchildren): Move from child_info_spawn.
(cygheap_exec_info::cchildren): Ditto.
(cygheap_exec_info::record_children): Declare new function.
(cygheap_exec_info::reattach_children): Ditto.
(cygheap_exec_info::alloc): Ditto.
(child_info_spawn::nchildren): Move to cygheap_exec_info.
(child_info_spawn::cchildren): Ditto.
* sigproc.cc (cygheap_exec_info::alloc): Define new function.
(child_info_spawn::cleanup): Accommodate move of children info to
cygheap_exec_info.
(cygheap_exec_info::record_children): Define new function.
(cygheap_exec_info::reattach_children): Ditto.
(child_info_spawn::record_children): Use cygheap_exec_info function to
accomplish this task.
(child_info_spawn::reattach_children): Ditto.
* spawn.cc (child_info_spawn::worker): Allocate moreinfo using
cygheap_exec_info::alloc.
* dcrt0.cc (child_info_fork::alloc_stack_hard_way): Use abort for the error to
avoid a retry.

12 years ago* pinfo.cc (_pinfo::dup_proc_pipe): Fatalize a warning when debugging.
Christopher Faylor [Mon, 14 Nov 2011 18:22:46 +0000 (18:22 +0000)]
* pinfo.cc (_pinfo::dup_proc_pipe): Fatalize a warning when debugging.

12 years ago* strace.cc (handle_output_debug_string): Disable code which attempted to add
Christopher Faylor [Mon, 14 Nov 2011 17:31:20 +0000 (17:31 +0000)]
* strace.cc (handle_output_debug_string): Disable code which attempted to add
stuff in between '****' blocks since they no longer are the first thing output
by an straced process.

12 years agoRemove erroneously checked-in debugging statements.
Christopher Faylor [Mon, 14 Nov 2011 01:45:42 +0000 (01:45 +0000)]
Remove erroneously checked-in debugging statements.
* cygheap.cc (cygheap_fixup_in_child): Here.
* debug.cc (delete_handle): Here.
* sigproc.cc (child_info_spawn::cleanup): Here.
* spawn.cc (child_info_spawn::worker): Here.

12 years agoupdate copyrights
Christopher Faylor [Mon, 14 Nov 2011 01:37:02 +0000 (01:37 +0000)]
update copyrights

12 years agoThroughout use "have_execed" macro rather than "hExeced" global handle.
Christopher Faylor [Mon, 14 Nov 2011 01:29:49 +0000 (01:29 +0000)]
Throughout use "have_execed" macro rather than "hExeced" global handle.
Throughout rename _PROC_* to _CH_*.
* child_info.h: Include "pinfo.h".
(child_info_types): Rename _PROC_* -> _CH_* to avoid confusion with similarly
named constants.
(_PROC_*): Delete unneeded aliases.
(PROC_*): Ditto.
(CURR_CHILD_INFO_MAGIC): Ditto.
(cchildren): Define using "pinfo_minimal".
(child_info::set_saw_ctrl_c): Move to
(child_info_spawn::set_saw_ctrl_c): Here.
(child_info_spawn::lock): New field.
(child_info_spawn::hExeced): Ditto.
(child_info_spawn::ev): Ditto.
(child_info_spawn::~child_info_spawn): Move to sigproc.cc.
(child_info_spawn::child_info_spawn): Ditto.
(child_info_spawn::cleanup): Declare new function.
(child_info_spawn::set_saw_ctrl_c): Move to this class.  Set flag only when
execed and return true when we have set the flag.
(child_info_spawn::child_info_spawn::signal_myself_exited): New function.
(child_info_spawn::wait_for_myself): Ditto.
(child_info_spawn::has_execed_cygwin): Ditto.
(child_info_spawn::has_execed): Ditto.  Replaces "hExeced" test.
(child_info_spawn::operator HANDLE&): New operator.
(child_info_spawn::worker): Define old "spawn_guts" as class member.
(ch_spawn): Declare.
(have_execed): Define.
(have_execed_cygwin): Ditto.
* cygheap.h: Update comment.
* dcrt0.cc (get_cygwin_startup_info): Use _CH_* enums.
(child_info_spawn::handle_spawn): Ditto.
(dll_crt0_0): Ditto.
(multiple_cygwin_problem): Ditto.
* exceptions.cc (chExeced): Delete obsolete declaration.
(ctrl_c_handler): Reference set_saw_ctrl_c via new ch_spawn global.
* globals.cc (hExeced): Delete.
* pinfo.cc (pinfo::thisproc): Refer to cygheap as ::cygheap for consistency in
handle naming when -DDEBUGGING.
(pinfo::init): Accommodate case where myself.h is known but h0 is passed in.
(pinfo::pinfo): New constructor for setting up a pinfo passed in by previous
exec'or.
(pinfo::proc_waiter): Don't handle subprocess if we're in the process of
exiting due to an exec of a cygwin process.  Don't close rd_proc_pipe here.
Close it when we actually are finished with the process.  Use new
ch_spawn.signal_myself_exited function to let exec stub know that subprocess
has exited.
(pinfo::wait): Clarify debugging output.
(pinfo::release): Use "close_h" to close all handles to avoid races.
(winpids::add): Assume that elements of the array do not need to be zeroed and
are properly initialized or suffer problems on pinfo::release.  Don't close
hProcess since release does that now.
* pinfo.h: Update comment.
(pinfo_minimal): Move some elements from pinfo here so that child_info_spawn
can use them.
(pinfo): Inherit from pinfo_minimal.
(pinfo::pinfo): Modify to accommodate new pinfo_minimal.
(pinfo::allow_remove): New function.
* sigproc.cc (proc_subproc): Use boolean values for true/false.  Implement
PROC_EXEC_CLEANUP.
(proc_terminate): Set ppid = 1 since the procs list will only be iterated when
the process has not execed.  Don't do any cleanup here since it is now handled
in pinfo::release.
(sigproc_init): Initialize sync_proc_subproc earlier.
(child_info::child_info): Assume that all important fields are properly
initialized and avoid memset().
(child_info_spawn::child_info_spawn): Specifically test for execing and then
set up appropriate fields in the struct.
(child_info_spawn::cleanup): Define new function.
(child_info_spawn::record_children): Specifically test for being execed here.
Fill in pinfo_minimal part of children array.
(child_info_spawn::reattach_children): Use constructor to duplicate information
for previous exec'or.  Add more debugging output.
(remove_proc): Force deletion of thread when exiting due to exec.  Rely on
pinfo::cleanup in release.
* sigproc.h (PROC_EXEC_CLEANUP): New enum.
(PROC_DETACHED_CHILD): Delete.
* spawn.cc (chExeced): Delete.
(child_info_spawn::worker): Rename from spawn_guts.  Use elements of
child_info_spawn throughout rather than ch.whatever.  Use ::cygheap to refer to
global rather than element of child_info.  Use wait_for_myself() rather than
waitpid().  Call child_info_spawn::cleanup on function return.
(spawnve): Reflect movement of spawn_guts functionality into
child_info_spawn::worker.
* syscalls.cc (popen): Ditto.
* winsup.h (spawn_guts): Delete declaration.

12 years ago2011-11-09 Roland McGrath <mcgrathr@google.com>
DJ Delorie [Wed, 9 Nov 2011 18:57:30 +0000 (18:57 +0000)]
2011-11-09  Roland McGrath  <mcgrathr@google.com>
* configure.ac: Add tool checks for READELF and READELF_FOR_TARGET.
* configure: Rebuild.
* Makefile.def (flags_to_pass): Add READELF_FOR_TARGET.
* Makefile.tpl (READELF, READELF_FOR_TARGET): New variables.
(HOST_EXPORTS): Add READELF, READELF_FOR_TARGET.
(BASE_FLAGS_TO_PASS): Add READELF_FOR_TARGET.
(BASE_TARGET_EXPORTS, EXTRA_HOST_FLAGS, EXTRA_TARGET_FLAGS):
Add READELF.
* Makefile.in: Rebuild.

12 years agoMerge libitm changes to configure.ac from gcc master.
Richard Henderson [Tue, 8 Nov 2011 18:23:33 +0000 (18:23 +0000)]
Merge libitm changes to configure.ac from gcc master.

12 years agomerge from gcc
DJ Delorie [Tue, 8 Nov 2011 16:01:51 +0000 (16:01 +0000)]
merge from gcc

12 years ago * libnosys/Makefile.in (install): Use INSTALL_DATA.
Corinna Vinschen [Tue, 8 Nov 2011 15:56:49 +0000 (15:56 +0000)]
* libnosys/Makefile.in (install): Use INSTALL_DATA.

12 years ago * libc/iconv/ccs/Makefile.am: Add missing backslash.
Corinna Vinschen [Tue, 8 Nov 2011 15:46:42 +0000 (15:46 +0000)]
* libc/iconv/ccs/Makefile.am: Add missing backslash.
* libc/iconv/ccs/Makefile.in: Regenerate.

12 years ago * new-features.sgml (ov-new1.7.10): Document ptsname_r.
Corinna Vinschen [Tue, 8 Nov 2011 09:25:25 +0000 (09:25 +0000)]
* new-features.sgml (ov-new1.7.10): Document ptsname_r.

12 years ago * posix.sgml (std-gnu): Add ptsname_r.
Corinna Vinschen [Tue, 8 Nov 2011 09:24:58 +0000 (09:24 +0000)]
* posix.sgml (std-gnu): Add ptsname_r.

12 years ago* fhandler.h (__ptsname): New macro.
Christopher Faylor [Tue, 8 Nov 2011 06:26:15 +0000 (06:26 +0000)]
* fhandler.h (__ptsname): New macro.
* dtable.cc (decode_tty): Use __ptsname to generate the slave pty name.
* fhandler_tty.cc (fhandler_pty_master::ptsname_r): Ditto.
* bsdlib.cc: Add needed includes for openpty() changes.
(openpty): Use __ptsname to generate the slave pty name.  Close slave fd when
aslave == NULL.

12 years ago* include/cygwin/stdlib.h: Update copyright.
Christopher Faylor [Tue, 8 Nov 2011 05:50:18 +0000 (05:50 +0000)]
* include/cygwin/stdlib.h: Update copyright.

12 years ago* cygwin.din (ptsname_r): Export.
Christopher Faylor [Mon, 7 Nov 2011 20:05:49 +0000 (20:05 +0000)]
* cygwin.din (ptsname_r): Export.
* fhandler.cc (fhandler_base::ptsname_r): Define.
* fhandler.h (fhandler_base::ptsname): Delete.
(fhandler_base::ptsname_r): Declare.
(fhandler_pty_master::ptsname_r): Declare.
* fhandler_tty.cc (fhandler_pty_master::ptsname): Delete.
(fhandler_pty_master::ptsname_r): New reentrant function derived from previous
ptsname.
* syscalls.cc (ptsname_r): Implement new function with functionality similar to
Linux.
(ptsname): Use ptsname_r () to fill out buf.
* include/cygwin/stdlib.h (ptsname_r): Declare.
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 255 to reflect
export of ptsname_r.
* pinfo.cc (pinfo::wait): Return bool rather than int.
* pinfo.h (info::wait): Ditto.
(pinfo::reattach): Define !defined(_SIGPROC_H) case for consistency.
* sigproc.cc (child_info_spawn::reattach_children): Use correct dwProcessId
rather than pid when duplicating handle.

12 years ago * fhandler.cc (CHUNK_SIZE): Drop NO_COPY.
Corinna Vinschen [Mon, 7 Nov 2011 10:06:45 +0000 (10:06 +0000)]
* fhandler.cc (CHUNK_SIZE): Drop NO_COPY.

12 years ago * syscalls.cc (check_dir_not_empty): Check surplus directory entries
Corinna Vinschen [Mon, 7 Nov 2011 10:03:30 +0000 (10:03 +0000)]
* syscalls.cc (check_dir_not_empty): Check surplus directory entries
by calling NtQueryAttributesFile.  Make STATUS_DIRECTORY_NOT_EMPTY
return value dependent on its status code.  Add long comment to explain.
(unlink_nt): Add comment to explain flaw in checking the sharing mode.
Set status to STATUS_SUCCESS instead of 0.  Add a retry loop to setting
the delete disposition and trying to move a directory to bin to
workaround rare cases of lingering, already deleted subdirectory
entries.  Add long comment to explain.
(rename): Set status to STATUS_SUCCESS instead of 0.

12 years ago* pinfo.cc (status_exit): Recognize STATUS_ILLEGAL_INSTRUCTION.
Christopher Faylor [Sat, 5 Nov 2011 18:47:39 +0000 (18:47 +0000)]
* pinfo.cc (status_exit): Recognize STATUS_ILLEGAL_INSTRUCTION.
(child_info::proc_retry): Ditto.

12 years ago * faq-using.xml (faq.using.fixing-fork-failures): Add new FAQ.
Jon TURNEY [Sat, 5 Nov 2011 18:42:55 +0000 (18:42 +0000)]
* faq-using.xml (faq.using.fixing-fork-failures): Add new FAQ.
* overview2.sgml (ov-hi-process-problems): Describe some difficulties
in implementing fork()

12 years ago* pinfo.cc (status_exit): Return complete error code. Handle
Christopher Faylor [Sat, 5 Nov 2011 18:29:51 +0000 (18:29 +0000)]
* pinfo.cc (status_exit): Return complete error code.  Handle
STATUS_ACCESS_VIOLATION correctly.
(pinfo::set_exit_code): Set self->exitcode directly from status_exit.

12 years ago* pinfo.h (pinfo::reattach): Only set destroy to false when proc_subproc
Christopher Faylor [Fri, 4 Nov 2011 17:07:21 +0000 (17:07 +0000)]
* pinfo.h (pinfo::reattach): Only set destroy to false when proc_subproc
succeeds.  Return true for success.
* sigproc.cc (child_info_spawn::reattach_children): Try harder to clean up on
error by detecting reattach failures too.

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