]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
13 years ago* fhandler.cc (fhandler_base_overlapped::raw_read): Rename from
Christopher Faylor [Thu, 5 May 2011 17:44:42 +0000 (17:44 +0000)]
* fhandler.cc (fhandler_base_overlapped::raw_read): Rename from
read_overlapped.
(fhandler_base_overlapped::raw_e): Rename from write_overlapped.
* fhandler.h (fhandler_*::raw_read): Add reparm decoration.
(fhandler_*::raw_write): Ditto.
(fhandler_base_overlapped::raw_read): Rename from read_overlapped.
(fhandler_base_overlapped::raw_write): Rename from write_overlapped.
(fhandler_pipe::raw_read): Delete.
(fhandler_pipe::raw_write): Ditto.
(fhandler_mailslot::raw_read): Ditto.
* fhandler_fifo.cc (fhandler_fifo::raw_read): Reflect read_overlapped ->
raw_read rename.
(fhandler_fifo::raw_write): Ditto.
* fhandler_mailslot.cc (fhandler_mailslot::raw_read): Delete.
(fhandler_mailslot::raw_write): Reflect read_overlapped -> raw_read rename.
* pipe.cc (fhandler_pipe::raw_read): Delete.
(fhandler_pipe::raw_write): Ditto.

13 years ago* fork.cc (fork): Clear PID_REAPED.
Christopher Faylor [Thu, 5 May 2011 15:03:54 +0000 (15:03 +0000)]
* fork.cc (fork): Clear PID_REAPED.
* pinfo.cc (pinfo_init): Ditto.
(pinfo::init): Check for PID_REAPED.
* sigproc.cc (stopped_or_terminated): Ditto.

13 years ago* pinfo.cc (_pinfo::exists): Check for PID_REAPED.
Christopher Faylor [Thu, 5 May 2011 14:46:14 +0000 (14:46 +0000)]
* pinfo.cc (_pinfo::exists): Check for PID_REAPED.

13 years ago Fix typo.
Corinna Vinschen [Thu, 5 May 2011 13:46:32 +0000 (13:46 +0000)]
Fix typo.

13 years ago * fhandler_disk_file.cc (fhandler_disk_file::pread): Correctly return
Corinna Vinschen [Thu, 5 May 2011 13:45:06 +0000 (13:45 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::pread): Correctly return
with errno set to EBADF if file open mode is incorrect.
(fhandler_disk_file::pwrite): Ditto.

13 years ago * configure.ac (alpha*-dec-osf*, i[[3456789]]86-*-rdos*,
Joseph Myers [Thu, 5 May 2011 12:39:33 +0000 (12:39 +0000)]
* configure.ac (alpha*-dec-osf*, i[[3456789]]86-*-rdos*,
sh*-*-pe|mips*-*-pe|arm-wince-pe, sparc-*-sunos4*, *-*-aix*,
*-*-beos*, *-*-chorusos, *-*-dragonfly*, *-*-freebsd*, *-*-linux*
| *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu, *-*-lynxos*,
*-*-mingw*, *-*-netbsd*, *-*-netware*, *-*-tpf*, *-*-uclinux*,
*-*-vxworks*): Disable newlib and libgloss in separate case
statement.
(i[[3456789]]86-*-linux*): Move logic allowing newlib to be built
to separate case statement.
(*-*-chorusos, *-*-dragonfly*, *-*-freebsd*, *-*-netbsd*,
*-*-netware*, *-*-tpf*, *-*-uclinux*, *-*-vxworks*,
alpha*-dec-osf*, alpha*-*-linux*, am33_2.0-*-linux*, sh-*-linux*,
sh*-*-pe|mips*-*-pe|*arm-wince-pe, arm-*-coff, arm-*-elf* |
arm*-*-eabi*, arm*-*-linux-gnueabi, arm*-*-symbianelf*, avr-*-*,
bfin-*-*, cris-*-* | crisv32-*-*, frv-*-*, i[[3456789]]86-*-coff |
i[[3456789]]86-*-elf, i[[3456789]]86-w64-mingw*,
i[[3456789]]86-*-mingw*, x86_64-*-mingw*,
i[[3456789]]86-*-interix*, i[[3456789]]86-*-beos*,
i[[3456789]]86-*-rdos*, m32r-*-*,
m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*, m68k-*-elf*, m68*-*-*
| fido-*-*, powerpc-*-aix*, powerpc-*-beos*, powerpc-*-eabi,
powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems*,
rs6000-*-lynxos*, rs6000-*-aix*, mips*-*-linux*, sparclet-*-aout*
| sparc86x-*-*, sparc-*-elf*, sparc64-*-elf*, sparclite-*-*,
sparc-*-sunos4*, sparc-*-solaris* | sparc64-*-solaris* |
sparcv9-*-solaris*, *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu |
*-*-kopensolaris*-gnu, *-*-lynxos*, *-*-*): Don't disable newlib
and libgloss in main case over targets.  Remove most empty cases
in main case over targets.
* configure: Regenerate.

13 years ago * fhandler.cc (is_at_eof): Drop static storage class. Drop err
Corinna Vinschen [Thu, 5 May 2011 09:05:04 +0000 (09:05 +0000)]
* fhandler.cc (is_at_eof): Drop static storage class.  Drop err
parameter since we don't change the Win32 error here anymore.
(fhandler_base::raw_read): Accommodate change to is_at_eof.

* fhandler_disk_file.cc (fhandler_disk_file::pread): In binary mode use
direct call to NtReadFile, rather than lseek/read.
(fhandler_disk_file::pwrite): In binary mode use direct call to
NtWriteFile, rather than lseek/write.

13 years ago * dcrt0.cc (dll_crt0_1): Reset locale to "C" even when dynamically
Corinna Vinschen [Thu, 5 May 2011 07:31:13 +0000 (07:31 +0000)]
* dcrt0.cc (dll_crt0_1): Reset locale to "C" even when dynamically
loaded.

13 years ago * posix.sgml (std-notimpl): Remove bsd_signal, setcontext, and
Corinna Vinschen [Thu, 5 May 2011 06:48:51 +0000 (06:48 +0000)]
* posix.sgml (std-notimpl): Remove bsd_signal, setcontext, and
swapcontext, marked obsolete in SUSv3 and not present in SUSv4.

13 years ago * fhandler_registry.cc (fhandler_registry::exists): Fix regression
Corinna Vinschen [Thu, 5 May 2011 06:45:21 +0000 (06:45 +0000)]
* fhandler_registry.cc (fhandler_registry::exists): Fix regression
in EACCES handling.
(fhandler_registry::open): Fix "%val" case.

13 years ago* signal.cc (_pinfo::kill): Return success on kill(0) only if pid exists or is
Christopher Faylor [Thu, 5 May 2011 00:31:22 +0000 (00:31 +0000)]
* signal.cc (_pinfo::kill): Return success on kill(0) only if pid exists or is
in PID_EXITED state.  Report pid 0 when pid does not exist rather than pid -1.
Make debug output reflect actual function call.
* sigproc.cc (stopped_or_terminated): Set process state to reaped when we've
finished waiting for it.
* include/sys/cygwin.h (PID_REAPED): New enum.

13 years ago* new-features.sgml (ov-new1.7.10): Document psiginfo, psignal,
Yaakov Selkowitz [Wed, 4 May 2011 22:18:16 +0000 (22:18 +0000)]
* new-features.sgml (ov-new1.7.10): Document psiginfo, psignal,
and sys_siglist.

13 years ago* cygwin.din (psiginfo): Export.
Yaakov Selkowitz [Wed, 4 May 2011 22:12:15 +0000 (22:12 +0000)]
* cygwin.din (psiginfo): Export.
(psignal): Export.
(sys_siglist): Export.
* posix.sgml (std-notimpl): Move psiginfo and psignal from here...
(std-susv4): ... to here.
(std-deprec): Add sys_siglist.
* strsig.cc (sys_siglist): New array.
(psiginfo): New function.
* include/cygwin/signal.h (sys_siglist): Declare.
(psiginfo): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years ago * configure.ac: Remove code setting special library locations for
Joseph Myers [Wed, 4 May 2011 21:45:47 +0000 (21:45 +0000)]
* configure.ac: Remove code setting special library locations for
hppa*64*-*-hpux11*.  Remove code setting compiler for
sparc-sun-solaris2*.
* configure: Regenerate.

13 years ago* dll_list::detach (dll_list::detach): Avoid doing anything with detach during
Christopher Faylor [Wed, 4 May 2011 19:19:46 +0000 (19:19 +0000)]
* dll_list::detach (dll_list::detach): Avoid doing anything with detach during
a failing fork.

13 years ago* dll_init.cc (dll_global_dtors): Avoid calling destructors during failing
Christopher Faylor [Wed, 4 May 2011 16:02:45 +0000 (16:02 +0000)]
* dll_init.cc (dll_global_dtors): Avoid calling destructors during failing
fork().

13 years ago * fhandler.h (class fhandler_base): Remove uninterruptible_io status
Corinna Vinschen [Wed, 4 May 2011 13:06:10 +0000 (13:06 +0000)]
* fhandler.h (class fhandler_base): Remove uninterruptible_io status
flag.
(fhandler_base::ready_for_read): Remove declaration.
(fhandler_socket::ready_for_read): Ditto.
(fhandler_pipe::ready_for_read): Ditto.
(fhandler_tty_master::is_slow): Remove.
* fhandler_console.cc (fhandler_console::open): Drop setting
uninterruptible_io.
* fhandler_serial.cc (fhandler_serial::open): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Ditto.
(fhandler_tty_master::init_console): Ditto.
* pipe.cc (fhandler_pipe::fhandler_pipe): Ditto.
(fhandler_pipe::open): Ditto.
(_pipe): Ditto.
* select.cc (fhandler_pipe::ready_for_read): Remove.
(fhandler_base::ready_for_read): Remove.
* syscalls.cc (readv): Drop unneeded wait variable.  Remove entire test
which might lead to calling ready_for_read.  Remove now unused label
out.

13 years ago * fhandler.h (class fhandler_mailslot): Move down in file and change
Corinna Vinschen [Wed, 4 May 2011 12:56:12 +0000 (12:56 +0000)]
* fhandler.h (class fhandler_mailslot): Move down in file and change
parent class to fhandler_base_overlapped.  Remove declaration of
method write.  Add declaraiotns for raw_read and raw_write.
* fhandler_mailslot.cc (fhandler_mailslot::fhandler_mailslot): Call
fhandler_base_overlapped constructor.
(fhandler_mailslot::fstat): Call fhandler_base_overlapped::fstat.
(fhandler_mailslot::open): Drop FILE_SYNCHRONOUS_IO_NONALERT flag from
call to NtOpenFile.
(fhandler_mailslot::raw_read): New method.
(fhandler_mailslot::raw_write): Ditto.  Take over length algorithm from
former write method.
(fhandler_mailslot::write): Remove.
(fhandler_mailslot::ioctl): Call fhandler_base_overlapped::ioctl.

13 years ago * fhandler.h (fhandler_dev_tape::_lock): Add bool parameter.
Corinna Vinschen [Wed, 4 May 2011 12:23:00 +0000 (12:23 +0000)]
* fhandler.h (fhandler_dev_tape::_lock): Add bool parameter.
* fhandler_tape.cc (lock): Call _lock with false argument.
(_lock): Take bool cancelable parameter.  Handle O_NONBLOCK.
Make cancelable if cancelabe parameter is true.
(fhandler_dev_tape::raw_read): Call _lock with true argument.
(fhandler_dev_tape::raw_write): Ditto.

13 years ago * fhandler_dsp.cc (fhandler_dev_dsp::Audio): Add fh member.
Corinna Vinschen [Wed, 4 May 2011 11:41:22 +0000 (11:41 +0000)]
* fhandler_dsp.cc (fhandler_dev_dsp::Audio): Add fh member.
(fhandler_dev_dsp::Audio_out::Audio_out): Take pointer to encapsulating
fhandler_dev_dsp as parameter.
(fhandler_dev_dsp::Audio_in::Audio_in): Ditto.
(fhandler_dev_dsp::Audio::Audio): Take pointer to encapsulating
fhandler_dev_dsp as parameter and store in fh.
(fhandler_dev_dsp::Audio_out::write): Change return type to int and
return number of bytes written.  Return -1 if waitforspace returns false
and no bytes have been written so far.
(fhandler_dev_dsp::Audio_out::waitforspace): Change return type to bool.
Handle O_NONBLOCK.  Make waiting loop interruptible and cancelable.
Return false in any of these cases, otherwise true.
(fhandler_dev_dsp::Audio_in::read): Set returned nBytes to -1 if
waitfordata returns false and nothing has been read so far.
(fhandler_dev_dsp::Audio_in::waitfordata): Change return type to bool.
Handle O_NONBLOCK.  Make waiting loop interruptible and cancelable.
Return false in any of these cases, otherwise true.
(fhandler_dev_dsp::write): Call Audio_out constructor with this as
parameter.
(fhandler_dev_dsp::read): Call Audio_in constructor with this as
parameter.

13 years ago* libc/include/signal.h (psignal): Declare.
Yaakov Selkowitz [Wed, 4 May 2011 11:26:22 +0000 (11:26 +0000)]
* libc/include/signal.h (psignal): Declare.
* libc/sys/linux/psignal.c: Move from here...
* libc/signal/psignal.c: ... to here. Document.
* libc/sys/linux/Makefile.am (GENERAL_SOURCES): Move psignal.c from here...
* libc/signal/Makefile.am (LIB_SOURCES): ... to here.
(CHEWOUT_FILES): Add psignal.def.
* libc/sys/linux/Makefile.in: Regenerate.
* libc/signal/Makefile.in: Ditto.
* libc/signal/signal.tex: Add references to psignal.

13 years agoinclude/coff
Tristan Gingold [Wed, 4 May 2011 11:05:14 +0000 (11:05 +0000)]
include/coff
2011-05-04  Tristan Gingold  <gingold@adacore.com>

* rs6000.h (union external_auxent): Add x_ftype field.
* rs6k64.h: (struct external_auxent): Remap x_file field.

bfd/
2011-04-28  Tristan Gingold  <gingold@adacore.com>

* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file.
(bfd_xcoff_swap_aux_out): Ditto.
* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto.
(bfd_xcoff64_swap_aux_out): Ditto.

13 years ago * configure.ac: Separate libgloss_dir settings from general case
Joseph Myers [Wed, 4 May 2011 09:51:31 +0000 (09:51 +0000)]
* configure.ac: Separate libgloss_dir settings from general case
over targets.
* configure: Regenerate.

13 years ago * libc/locale/lmessages.h (__messages_load_locale): Declare. Remove
Corinna Vinschen [Wed, 4 May 2011 08:54:34 +0000 (08:54 +0000)]
* libc/locale/lmessages.h (__messages_load_locale): Declare.  Remove
accidental declaration of __numeric_load_locale.
* libc/locale/locale.c: Include timelocal.h to get declaration of
__time_load_locale.
(__set_locale_from_locale_alias): Fix return type.
(__locale_msgcharset): Avoid compiler warnings.
(_localeconv_r): Ditto.

13 years ago Cygwin-specific patch from Andy Koppe:
Corinna Vinschen [Wed, 4 May 2011 08:45:17 +0000 (08:45 +0000)]
Cygwin-specific patch from Andy Koppe:
* libc/locale/locale.c (current_categories): On Cygwin, set LC_CTYPE
to C.UTF-8 to match initial __wctomb and __mbtowc settings.
(lc_ctype_charset): On Cygwin, initialize to "UTF-8".
(loadlocale): Remove unused Cygwin-specifc code.

13 years ago2011-05-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 4 May 2011 06:53:38 +0000 (06:53 +0000)]
2011-05-04  Tristan Gingold  <gingold@adacore.com>

* rs6000.h (struct external_exceptab): New struct.
(EXCEPTSZ): New macro.
* rs6k64.h: (struct external_exceptab): New struct.
(EXCEPTSZ): New macro.

13 years ago* thread.h (pthread::static_cancel_self): Mark as noreturn.
Christopher Faylor [Wed, 4 May 2011 06:16:59 +0000 (06:16 +0000)]
* thread.h (pthread::static_cancel_self): Mark as noreturn.
(pthread::cancel_self): Ditto.
* thread.cc (pthread::cancel_self): Explicitly use pthread::exit to avoid a
"function returns" error.

13 years ago* pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential cleanup of
Christopher Faylor [Wed, 4 May 2011 06:00:54 +0000 (06:00 +0000)]
* pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential cleanup of
uninitialized garbage.  (Suggested by Ryan Johnson)

13 years ago * select.cc (cygwin_select): Make degenerate case cancelable.
Corinna Vinschen [Tue, 3 May 2011 15:58:52 +0000 (15:58 +0000)]
* select.cc (cygwin_select): Make degenerate case cancelable.
(select_stuff::destroy): New inline method to delete memory taken
by select_stuff.
(select_stuff::~select_stuff): Call destroy.
(select_stuff::wait): Add case to allow canceling select.
* select.h (select_stuff::destroy): Declare.
* thread.cc: Mark poll, pselect and poll as cancelable.

13 years ago * locale.cc (print_locale_with_codeset): Align printing of locale names
Corinna Vinschen [Tue, 3 May 2011 10:34:25 +0000 (10:34 +0000)]
* locale.cc (print_locale_with_codeset): Align printing of locale names
to POSIX.

13 years ago * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Make
Corinna Vinschen [Tue, 3 May 2011 10:11:19 +0000 (10:11 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Make
cancelable.  Remove test for main thread, always add signal_arrived
to waited objects.

13 years ago2011-05-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 3 May 2011 09:21:05 +0000 (09:21 +0000)]
2011-05-03  Tristan Gingold  <gingold@adacore.com>

* rs6000.h (struct external_ldsym): Use E_SYMNMLEN instead of
SYMNMLEN.

13 years ago * fhandler_tty.cc (fhandler_tty_slave::read): Set WFMO timeout to 0 for
Corinna Vinschen [Tue, 3 May 2011 07:58:13 +0000 (07:58 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::read): Set WFMO timeout to 0 for
nonblocking case.  Drop useless waiter variable.  Rewrite wait for
input_available_event to use a switch statement.  Handle timeout and
failure more gracefully.  Make restartable and cancelable.  Rewrite
wait for input_mutex to use WFMO and a switch statement.  Handle
timeout and failure more gracefully.  Make restartable and cancelable.

13 years ago* new-features.sgml (ov-new1.7.10): Document new pthread APIs.
Yaakov Selkowitz [Tue, 3 May 2011 04:09:52 +0000 (04:09 +0000)]
* new-features.sgml (ov-new1.7.10): Document new pthread APIs.

13 years ago* signal.cc (_pinfo::kill): Avoid referencing 'pid' after ESRCH.
Christopher Faylor [Tue, 3 May 2011 02:03:04 +0000 (02:03 +0000)]
* signal.cc (_pinfo::kill): Avoid referencing 'pid' after ESRCH.

13 years ago* cygwin.din (pthread_attr_getstack): Export.
Yaakov Selkowitz [Tue, 3 May 2011 01:13:37 +0000 (01:13 +0000)]
* cygwin.din (pthread_attr_getstack): Export.
(pthread_attr_getstackaddr): Export.
(pthread_getattr_np): Export.
* ntdll.h (enum _THREAD_INFORMATION_CLASS): Add ThreadBasicInformation.
(struct _THREAD_BASIC_INFORMATION): Define.
(NtQueryInformationThread): Declare.
* posix.sgml (std-susv4): Add pthread_attr_getstack.
(std-gnu): Add pthread_getattr_np.
(std-deprec): Add pthread_attr_getstackaddr.
(std-notimpl): Remove pthread_attr_[gs]etstackaddr, as they were
removed from SUSv4.
* thread.cc (pthread_attr::pthread_attr): Initialize stackaddr.
(pthread_attr_getstack): New function.
(pthread_attr_getstackaddr): New function.
(pthread_attr_setstacksize): Return EINVAL if passed size less than
PTHREAD_STACK_MIN, as required by POSIX.
(pthread_getattr_np): New function.
* thread.h (class pthread_attr): Add stackaddr member.
* include/pthread.h (pthread_attr_getstack): Declare.
(pthread_attr_getstackaddr): Declare unconditionally.
(pthread_attr_setstack): Declare inside false conditional for reference.
(pthread_getattr_np): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years agofix typo
Christopher Faylor [Mon, 2 May 2011 23:11:18 +0000 (23:11 +0000)]
fix typo

13 years ago* Makefile.in: Allow CFLAGS to be overridden from the environment.
Christopher Faylor [Mon, 2 May 2011 19:14:39 +0000 (19:14 +0000)]
* Makefile.in: Allow CFLAGS to be overridden from the environment.

13 years ago * thread.cc (cancelable_wait): Remove test for main thread.
Corinna Vinschen [Mon, 2 May 2011 18:48:11 +0000 (18:48 +0000)]
* thread.cc (cancelable_wait): Remove test for main thread.
* fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.

13 years ago * fhndler_tty.cc (andler_pty_master::process_slave_output): Make
Corinna Vinschen [Mon, 2 May 2011 18:41:10 +0000 (18:41 +0000)]
* fhndler_tty.cc (andler_pty_master::process_slave_output): Make
interruptible and cancelable.  Fix nonblocking case.

13 years ago * fhandler_console.cc (fhandler_console::read): Make restartable and
Corinna Vinschen [Mon, 2 May 2011 17:38:16 +0000 (17:38 +0000)]
* fhandler_console.cc (fhandler_console::read): Make restartable and
cancelable.

13 years ago* strace.cc (strace::vprntf): Avoid closing unopened handle.
Christopher Faylor [Mon, 2 May 2011 17:05:10 +0000 (17:05 +0000)]
* strace.cc (strace::vprntf): Avoid closing unopened handle.

13 years ago* sysconf.cc (sca): Set _SC_SPIN_LOCKS to _POSIX_SPIN_LOCKS.
Yaakov Selkowitz [Mon, 2 May 2011 16:11:06 +0000 (16:11 +0000)]
* sysconf.cc (sca): Set _SC_SPIN_LOCKS to _POSIX_SPIN_LOCKS.

13 years ago* libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
Yaakov Selkowitz [Mon, 2 May 2011 16:05:06 +0000 (16:05 +0000)]
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
* libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t
typedef.

13 years agoEliminate trailing whitespace in some files.
Christopher Faylor [Mon, 2 May 2011 15:28:35 +0000 (15:28 +0000)]
Eliminate trailing whitespace in some files.

* dll_init.cc (dll_list::alloc): Reset 'p' in forked process.
* select.cc (select_stuff::wait): Move cleanup() closer to WFMO to minimize
unavoidable (?) race.

13 years ago Throughout remove NT4 from documentation.
Corinna Vinschen [Mon, 2 May 2011 11:56:36 +0000 (11:56 +0000)]
Throughout remove NT4 from documentation.

* new-features.sgml (ov-new1.7.10): Document change in passwd command.

13 years ago * fhandler_serial.cc (fhandler_serial::raw_read): Add restartability
Corinna Vinschen [Mon, 2 May 2011 10:20:35 +0000 (10:20 +0000)]
* fhandler_serial.cc (fhandler_serial::raw_read): Add restartability
after a signal.  Add cancelability.
(fhandler_serial::raw_write): Wait for write to succeed if O_NONBLOCK
is not set.  Add signal handling and cancelability.

13 years ago * fhandler_windows.cc (fhandler_windows::read): Use
Corinna Vinschen [Sun, 1 May 2011 17:42:41 +0000 (17:42 +0000)]
* fhandler_windows.cc (fhandler_windows::read): Use
pthread::get_cancel_event to fetch thread's cancel event.
* flock.cc (lf_setlock): Ditto.
* posix_ipc.cc (ipc_cond_timedwait): Ditto.
* thread.cc (pthread::get_cancel_event): New static method.
* thread.h (pthread::get_cancel_event): Declare.

13 years ago * libc/minires-os-if.c (get_dns_info): Remove unnecessary test for
Corinna Vinschen [Sun, 1 May 2011 14:56:46 +0000 (14:56 +0000)]
* libc/minires-os-if.c (get_dns_info): Remove unnecessary test for
existence of DnsQuery_A.

13 years agoAdd missing ChangeLog entry:
Corinna Vinschen [Sun, 1 May 2011 14:36:17 +0000 (14:36 +0000)]
Add missing ChangeLog entry:

* fhandler.h (fhandler_windows::is_slow): Remove.

13 years ago Throughout, use user32 UNICODE functions rather than ANSI functions.
Corinna Vinschen [Sun, 1 May 2011 14:35:12 +0000 (14:35 +0000)]
Throughout, use user32 UNICODE functions rather than ANSI functions.
* autoload.cc: Convert all definitions for ANSI user32 functions to
definitions for the corresponding UNICODE function.
(SendMessageA): Remove.
(SendNotifyMessageW): Define.
* fhandler_windows.cc (fhandler_windows::write): Use SendNotifyMessageW
call rather than SendMessage to make function always return immediately.
(fhandler_windows::read): Make function interruptible and a cancellation
point.  Handle O_NONBLOCK.
* select.cc (peek_serial): Don't wait for signal_arrived here.
* window.cc (wininfo::winthread): Call CreateWindowExW directly rather
than CreateWindow wrapper.

13 years ago * net.cc (fdsock): Drop setting uninterruptible_io to true.
Corinna Vinschen [Sun, 1 May 2011 08:14:40 +0000 (08:14 +0000)]
* net.cc (fdsock): Drop setting uninterruptible_io to true.

13 years ago * fhandler.h (fhandler_socket::is_slow): Remove.
Corinna Vinschen [Sun, 1 May 2011 08:01:55 +0000 (08:01 +0000)]
* fhandler.h (fhandler_socket::is_slow): Remove.

13 years ago * fcntl.cc (fcntl64): Call pthread_testcancel.
Corinna Vinschen [Sat, 30 Apr 2011 16:34:48 +0000 (16:34 +0000)]
* fcntl.cc (fcntl64): Call pthread_testcancel.
* fhandler_socket.cc (fhandler_socket::connect): Ditto.
(fhandler_socket::accept4): Ditto.
(fhandler_socket::recvfrom): Ditto.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
* flock.cc (lf_setlock): Allow to cancel thread running blocking
file lock.  Try to make code more readable.
(lockf): Call pthread_testcancel.
* mmap.cc (msync): Ditto.
* posix_ipc.cc (ipc_cond_timedwait): Call pthread::static_cancel_self
rather than pthread_testcancel.
* select.cc (cygwin_select): Call pthread_testcancel.
* syscalls.cc (pread): Ditto.
(pwrite): Ditto.
(readv): Ditto.
(writev): Ditto.
(open): Ditto.
(close): Ditto.
(fsync): Ditto.
* termios.cc (tcdrain): Ditto.
* thread.cc: Align list of cancellation points with above changes.
Mark not-implemented functions, too.
(cancelable_wait): Don't set unused object indices to WAIT_FAILED
since that could result in wrong behaviour.  Set them to the invalid
value WAIT_TIMEOUT + 1 instead.

13 years ago * dwarf2.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
Jakub Jelinek [Sat, 30 Apr 2011 11:01:35 +0000 (11:01 +0000)]
* dwarf2.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret): New.

13 years ago * thread.h (class pthread): Add bool member canceled.
Corinna Vinschen [Sat, 30 Apr 2011 10:20:25 +0000 (10:20 +0000)]
* thread.h (class pthread): Add bool member canceled.
* thread.cc (pthread::pthread): Initialize canceled to false.
(pthread::cancel): Set canceled before setting cancel_event.
(pthread::testcancel): Check for canceled.  Only wait for cancel_event
if canceled is true.  Explain why.
(pthread::_fixup_after_fork): Set canceled to false.

13 years ago * errno.cc (errmap): Sort. Map ERROR_EXE_MACHINE_TYPE_MISMATCH to
Corinna Vinschen [Fri, 29 Apr 2011 18:54:23 +0000 (18:54 +0000)]
* errno.cc (errmap): Sort.  Map ERROR_EXE_MACHINE_TYPE_MISMATCH to
ENOEXEC.

13 years ago * thread.cc: Update comment listing cancellation points per POSIX.
Corinna Vinschen [Fri, 29 Apr 2011 18:29:26 +0000 (18:29 +0000)]
* thread.cc: Update comment listing cancellation points per POSIX.

13 years ago * advapi32.cc: Add comment.
Corinna Vinschen [Fri, 29 Apr 2011 10:38:12 +0000 (10:38 +0000)]
* advapi32.cc: Add comment.
(EqualSid): Remove.
(CopySid): Remove.
(AddAccessAllowedAce): Remove.
(AddAccessDeniedAce): Remove.
(MakeSelfRelativeSD): Remove.
* flock.cc: Replace above functions throughout with their ntdll.dll
equivalent.
* sec_acl.cc: Ditto.
* sec_auth.cc: Ditto.
* sec_helper.cc: Ditto.
* security.cc: Ditto.
* security.h: Ditto.
(RtlEqualSid): Declare.  Explain why.
(RtlCopySid): Ditto.

13 years ago * advapi32.cc (AccessCheck): Remove.
Corinna Vinschen [Fri, 29 Apr 2011 09:48:25 +0000 (09:48 +0000)]
* advapi32.cc (AccessCheck): Remove.
(PrivilegeCheck): Remove.
(OpenThreadToken): Remove.
* fhandler_tty.cc: Replace above functions throughout with their
ntdll.dll equivalent.
* security.cc: Ditto.

13 years ago * ntdll.h (IsEventSignalled): New inline function.
Corinna Vinschen [Fri, 29 Apr 2011 08:27:11 +0000 (08:27 +0000)]
* ntdll.h (IsEventSignalled): New inline function.
* cygthread.cc (cygthread::terminate_thread): Use IsEventSignalled in
place of WaitForSingleObject on event with 0 timeout.
* fhandler.cc (fhandler_base_overlapped::has_ongoing_io): Ditto.
* fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.
(fhandler_fifo::wait): Ditto.
* fhandler_termios.cc (fhandler_termios::bg_check): Ditto.
* select.cc (verify_tty_slave): Ditto.
* thread.cc (pthread::testcancel): Ditto.

13 years ago * advapi32.cc (GetTokenInformation): Remove.
Corinna Vinschen [Fri, 29 Apr 2011 07:34:05 +0000 (07:34 +0000)]
* advapi32.cc (GetTokenInformation): Remove.
(SetTokenInformation): Remove.
* grp.cc: Replace above functions throughout with their ntdll.dll
equivalent.
* sec_auth.cc: Ditto.
* syscalls.cc: Ditto.
* uinfo.cc: Ditto.

13 years ago * posix_ipc.cc (ipc_cond_timedwait): Only wait for pthread's
Corinna Vinschen [Fri, 29 Apr 2011 07:22:07 +0000 (07:22 +0000)]
* posix_ipc.cc (ipc_cond_timedwait): Only wait for pthread's
cancel_event if thread's cancelability isn't disabled.

13 years ago * configure.ac (*-*-dragonfly*, *-*-freebsd*, *-*-netbsd*,
Joseph Myers [Thu, 28 Apr 2011 16:46:34 +0000 (16:46 +0000)]
* configure.ac (*-*-dragonfly*, *-*-freebsd*, *-*-netbsd*,
alpha*-dec-osf*, alpha*-*-linux*, alpha*-*-*, sh-*-linux*,
arm-*-elf* | arm*-*-eabi*, arm*-*-linux-gnueabi, frv-*-*): Remove
cases in libgcj-disabling case statement.
(hppa*64*-*-linux*): Set unsupported_languages instead of
disabling target-zlib.
(hppa*64*-*-*): Restrict case in libgcj-disabling case statement
to hppa*64*-*-hpux*.
(hppa*-*-*): Restrict case in libgcj-disabling case statement to
hppa*-*-hpux*.
(ia64*-*-elf*, ia64*-**-hpux*, i[[3456789]]86-*-elf,
i[[3456789]]86-*-linux*, *-*-cygwin*, i[[3456789]]86-*-interix*,
i[[3456789]]86-*-solaris2*, m32r-*-*, m68k-*-elf*, m68*-*-* |
fido-*-*, powerpc-*-eabi, powerpc-*-eabi* | powerpcle-*-eabi* |
powerpc-*-rtems*, mips*-*-linux*, mips*-*-*, sh-*-* | sh64-*-*,
sparc-*-elf*, sparc64-*-elf*, sparc-*-solaris* |
sparc64-*-solaris* | sparcv9-*-solaris*, *-*-linux* | *-*-gnu* |
*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu, *-*-*): Remove cases in
libgcj-disabling case statement.
* configure: Regenerate.

13 years ago * advapi32.cc (SetSecurityDescriptorDacl): Remove.
Corinna Vinschen [Thu, 28 Apr 2011 15:54:47 +0000 (15:54 +0000)]
* advapi32.cc (SetSecurityDescriptorDacl): Remove.
(SetSecurityDescriptorGroup): Remove.
(SetSecurityDescriptorOwner): Remove.
* pinfo.cc: Replace above functions throughout with their ntdll.dll
equivalent.
* sec_acl.cc: Ditto.
* sec_helper.cc: Ditto.
* security.cc: Ditto.

* sec_helper.cc (__sec_user): Remove old comment.

13 years ago * posix_ipc.cc (ipc_cond_timedwait): Also wait for pthread's
Corinna Vinschen [Thu, 28 Apr 2011 14:44:24 +0000 (14:44 +0000)]
* posix_ipc.cc (ipc_cond_timedwait): Also wait for pthread's
cancel_event, if any.  Call pthread_testcancel if cancel_event has been
signalled.

13 years ago * configure.ac: Disable Java for targets not supporting libffi.
Joseph Myers [Thu, 28 Apr 2011 13:33:02 +0000 (13:33 +0000)]
* configure.ac: Disable Java for targets not supporting libffi.
(*-*-chorusos, *-*-kaos*, am33_2.0-*-linux*, sh*-*-pe|mips*-*-pe):
Remove cases in Java-disabling statement.
(*arm-wince-pe): Change to arm-wince-pe.
(arc-*-*, arm-*-coff, arm-*-pe*, arm-*-riscix*, avr-*-*): Remove
cases in Java-disabling statement.
(bfin-*-*): Don't disable Java again.
(c4x-*-* | tic4x-*-*, tic54x-*-*, cr16-*-*, d10v-*-*, d30v-*-*,
fr30-*-elf*, moxie-*-*, h8300*-*-*, h8500-*-*, hppa1.1-*-osf* |
hppa1.1-*-bsd*, hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-openbsd*,
hppa*-*-pro*, i960-*-*, i[[3456789]]86-*-coff,
i[[3456789]]86-*-pe, i[[3456789]]86-*-sco3.2v5*,
i[[3456789]]86-*-sco*, i[[3456789]]86-*-sysv4*,
i[[3456789]]86-*-beos*, i[[3456789]]86-*-rdos*,
m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*): Remove cases in
Java-disabling statement.
(mmix-*-*): Don't disable Java again.
(mt-*-*, powerpc*-*-winnt* | powerpc*-*-pe*, powerpcle-*-solaris*,
powerpc-*-beos*, rs6000-*-lynxos*, rs6000-*-*, m68k-apollo-*,
microblaze*, mips*-sde-elf*, mips*-*-irix5*, mips*-*-bsd*,
sparclet-*-aout* | sparc86x-*-*, sparclite-*-*, sparc-*-sunos4*,
tic6x-*-*, v810-*-*, vax-*-*): Remove cases in Java-disabling
statement.
* configure: Regenerate.

13 years ago Merge from GCC:
Joseph Myers [Thu, 28 Apr 2011 13:26:23 +0000 (13:26 +0000)]
Merge from GCC:

2011-04-18  Jack Howarth  <howarth@bromo.med.uc.edu>

PR lto/48086
* configure.ac: Re-enable LTO on *-apple-darwin9*.
* configure: Regenerate.

13 years ago * configure.ac: Separate cases disabling Java and Java libraries
Joseph Myers [Thu, 28 Apr 2011 13:24:52 +0000 (13:24 +0000)]
* configure.ac: Separate cases disabling Java and Java libraries
from general case over targets.
* configure: Regenerate.

13 years ago * posix_ipc.cc (ipc_cond_timedwait): Remove pthread_testcancel calls.
Corinna Vinschen [Thu, 28 Apr 2011 12:36:27 +0000 (12:36 +0000)]
* posix_ipc.cc (ipc_cond_timedwait): Remove pthread_testcancel calls.
(_mq_send): Add pthread_testcancel call at start of function.
(_mq_receive): Ditto.

13 years ago * cygerrno.h (geterrno_from_nt_status): Declare.
Corinna Vinschen [Thu, 28 Apr 2011 12:13:41 +0000 (12:13 +0000)]
* cygerrno.h (geterrno_from_nt_status): Declare.
* errno.cc (geterrno_from_nt_status): Define.
* flock.cc: Fix copyright dates.
* ntdll.h (enum _TIMER_TYPE): Define.
(PTIMER_APC_ROUTINE): Define.
(NtCancelTimer): Declare.
(NtCreateTimer): Declare.
(NtSetTimer): Declare.
* posix_ipc.cc (ipc_cond_timedwait): Rewrite to make interruptible and
restartable.  Call pthread_testcancel in case of timeout to enable
pthread_cancel on waiting thread.  Replace WFMO timeout with waiting
for a waitable timer.  Explain why.  Replace single call to WFMO with
two calls, one for the event, one for the mutex.  Don't lock mutex in
case of error.
(ipc_cond_signal): Make void function.
(ipc_cond_close): Ditto.
(_mq_send): Immediately return -1 in case of error from
ipc_cond_timedwait.
(_mq_receive): Ditto.

13 years ago * advapi32.cc (GetSecurityDescriptorDacl): Remove.
Corinna Vinschen [Thu, 28 Apr 2011 09:53:11 +0000 (09:53 +0000)]
* advapi32.cc (GetSecurityDescriptorDacl): Remove.
(GetSecurityDescriptorGroup): Remove.
(GetSecurityDescriptorOwner): Remove.
* sec_acl.cc: Replace above functions throughout with their ntdll.dll
equivalent.  Remove redundant debug output.
* sec_auth.cc: Ditto.
* security.cc: Ditto.
* uinfo.cc: Ditto.

13 years ago * advapi32.cc (InitializeAcl): Remove.
Corinna Vinschen [Thu, 28 Apr 2011 09:30:36 +0000 (09:30 +0000)]
* advapi32.cc (InitializeAcl): Remove.
(AddAce): Remove.
(FindFirstFreeAce): Remove.
(GetAce): Remove.
(InitializeSecurityDescriptor): Remove.
(OpenProcessToken): Remove.
* dcrt0.cc: Replace above functions throughout with their ntdll.dll
equivalent.
* fhandler_tty.cc: Ditto.
* flock.cc: Ditto.
* pinfo.cc: Ditto.  Drop unnecessary error handling.
* sec_acl.cc: Ditto.
* sec_auth.cc: Ditto.
* sec_helper.cc: Ditto.
* security.cc: Ditto.

13 years ago * advapi32.cc (InitializeSid): Remove.
Corinna Vinschen [Thu, 28 Apr 2011 08:34:49 +0000 (08:34 +0000)]
* advapi32.cc (InitializeSid): Remove.
(EqualPrefixSid): Remove.
(GetLengthSid): Remove.
(GetSidSubAuthority): Remove.
(GetSidSubAuthorityCount): Remove.
(GetSidIdentifierAuthority): Remove.
* fhandler_disk_file.cc: Remove above functions throughout with their
ntdll.dll equivalent.
* sec_auth.cc: Ditto.
* sec_helper.cc: Ditto.
* security.cc: Ditto.

13 years ago * advapi32.cc (AllocateLocallyUniqueId): Remove.
Corinna Vinschen [Thu, 28 Apr 2011 08:15:56 +0000 (08:15 +0000)]
* advapi32.cc (AllocateLocallyUniqueId): Remove.
* fhandler_disk_file.cc (fhandler_base::open_fs): Replace call to
AllocateLocallyUniqueId with call to NtAllocateLocallyUniqueId;
* posix_ipc.cc (mq_open): Ditto.  Drop error handling for that call.
(sem_open): Ditto.

13 years ago * autoload.cc (GetSecurityInfo): Remove.
Corinna Vinschen [Thu, 28 Apr 2011 07:27:51 +0000 (07:27 +0000)]
* autoload.cc (GetSecurityInfo): Remove.
* ntdll.h (RtlConvertToAutoInheritSecurityObject): Declare.
(RtlDeleteSecurityObject): Declare.
(RtlGetControlSecurityDescriptor): Declare.
(RtlLengthSecurityDescriptor): Declare.
* security.cc (file_mapping): New global variable.
(get_file_sd): Rewrite.  Clean up code.  Get rid of GetSecurityInfo
call.
(alloc_sd): Call RtlSetControlSecurityDescriptor to set
SE_DACL_PROTECTED flag.
(check_file_access): Remove mapping.  Use file_mapping instead.
(check_registry_access): Rename mapping to reg_mapping.
* wincap.cc: Througout, drop use_get_sec_info_on_dirs,
* wincap.h (struct wincaps): Drop use_get_sec_info_on_dirs.

13 years ago2011-04-27 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 27 Apr 2011 15:04:04 +0000 (15:04 +0000)]
2011-04-27  Tristan Gingold  <gingold@adacore.com>

* xcoff.h (F_FDPR_PROF, F_FDPR_OPTI, F_DSA, F_VARPG)
(STYP_DWARF, SSUBTYP_DWINFO)
(SSUBTYP_DWLINE, SSUBTYP_DWPBNMS, SSUBTYP_DWPBTYP)
(SSUBTYP_DWARNGE, SSUBTYP_DWABREV, SSUBTYP_DWSTR)
(SSUBTYP_DWRNGES, STYP_TDATA, STYP_TBSS, R_TLS, R_TLS_IE)
(R_TLS_LD, R_TLS_LE, R_TLSM, R_TLSML, R_TOCU, R_TOCL, C_DWARF):
New macros.

13 years agogdb/
Jan Kratochvil [Mon, 25 Apr 2011 18:28:53 +0000 (18:28 +0000)]
gdb/
* defs.h (ENUM_BITFIELD): Remove.

include/
* bfdlink.h (ENUM_BITFIELD): Remove.

merge from gcc:
include/
* ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.

13 years ago * include/fenv.h: Add missing _FENV_H_ define.
Corinna Vinschen [Sun, 24 Apr 2011 11:54:06 +0000 (11:54 +0000)]
* include/fenv.h: Add missing _FENV_H_ define.

13 years ago PR ld/12365
Alan Modra [Sun, 24 Apr 2011 10:02:11 +0000 (10:02 +0000)]
PR ld/12365
PR ld/12696
include/
* bfdlink.h (ENUM_BITFIELD): Define.
(struct bfd_link_hash_entry): Make "type" a bitfield.  Add "non_ir_ref".
(struct bfd_link_callbacks <notice>): Pass bfd_link_hash_entry pointer
rather than "name".
bfd/
* coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call.
* linker.c (_bfd_link_hash_newfunc): Clear bitfields.
(_bfd_generic_link_add_one_symbol): Update "notice" call.
* elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when
it is a redef of an IR symbol in a real BFD.
ld/
* ldmain.c (notice): Delete "name" param, add "h".
* plugin.c (plugin_notice): Likewise.  Set non_ir_ref.  Handle
redefinitions of IR symbols in real BFDs.
(plugin_multiple_definition, plugin_multiple_common): Delete.
(non_ironly_hash, init_non_ironly_hash): Delete.
(is_visible_from_outside): Traverse entry_symbol chain.
(get_symbols): Use non_ir_ref flag rather than hash lookup.

13 years ago * registry.cc (reg_key::get_dword): Rename from get_int, use DWORD
Corinna Vinschen [Sat, 23 Apr 2011 13:15:46 +0000 (13:15 +0000)]
* registry.cc (reg_key::get_dword): Rename from get_int, use DWORD
rather than int type.  Avoid compiler warning.
(reg_key::set_dword): Rename from set_int, use DWORD rather than int
type.  Change return type to NTSTATUS.
(reg_key::get_string): Change return type to NTSTATUS.
(reg_key::set_string): Ditto.
* registry.h: Accommodate above changes.
* environ.cc (regopt): Test return value of reg_key::get_string as
NTSTATUS.
* sched.cc (sched_rr_get_interval): Change local int vars to DWORD.
Call reg_key::get_dword instead of reg_key::get_int.
* shared.cc (init_installation_root): Test return value of
reg_key::get_string as NTSTATUS.
(shared_info::heap_slop_size): Call reg_key::get_dword rather than
reg_key::get_int.
(shared_info::heap_chunk_size): Ditto.
* shared_info.h (CURR_SHARED_MAGIC): Update.
(class shared_info): Change heap_chunk and heap_slop to DWORD  values.

13 years ago2011-04-21 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Fri, 22 Apr 2011 00:10:07 +0000 (00:10 +0000)]
2011-04-21  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/windef.h (PACKED): Remove macro.
        * include/wincon.h: Replace PACKED macro with __attribute__((packed)).

        Thanks to Keith Marshall for the fix.

13 years ago2011-04-21 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Thu, 21 Apr 2011 23:57:10 +0000 (23:57 +0000)]
2011-04-21  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/imagehlp.h (PREAD_PROCESS_MEMORY_ROUTINE): Correct definition.

        Thanks to Safety0ff for the report.

13 years ago * cygtls.cc (_cygtls::init_thread): Drop setting locals.process_logmask.
Corinna Vinschen [Thu, 21 Apr 2011 08:10:28 +0000 (08:10 +0000)]
* cygtls.cc (_cygtls::init_thread): Drop setting locals.process_logmask.
* cygtls.cc (_cygtls::remove): Always free mallocated TLS storage on
thread exit.  Drop freeing locals.process_ident.
* cygtls.h (struct _local_storage): Remove syslog-related members.
* syslog.cc (syslog_globals): New static storage for global syslog
settings.  Use throughout instead of _my_tls.locals.
(openlog): Set new syslog_globals.process_ident value more carefully.
* tlsoffsets.h: Regenerate.

13 years ago * include/sys/poll.h: Include signal.h to get definition of sigset_t.
Corinna Vinschen [Thu, 21 Apr 2011 07:18:42 +0000 (07:18 +0000)]
* include/sys/poll.h: Include signal.h to get definition of sigset_t.

13 years ago* cygheap.cc (init_cygheap::close_ctty): Avoid closing console-cttys since they
Christopher Faylor [Thu, 21 Apr 2011 00:53:55 +0000 (00:53 +0000)]
* cygheap.cc (init_cygheap::close_ctty): Avoid closing console-cttys since they
don't use archetypes and this will just result in double frees.
* dll_init.cc (dll_list::protect): Define.
(dll_list::alloc): Guard list access.
(dll_list::detach): Ditto.
* dll_init.h (dll_list::protect): Declare new muto.
(dll_list::guard): Define/declare function to guard list access.
* fhandler_termios.cc (fhandler_termios::sigflush): Avoid SEGV in pathological
condition of get_ttyp() == NULL.

13 years ago* select.cc (serial_cleanup): Make sure that device_specific_pipe is always
Christopher Faylor [Wed, 20 Apr 2011 15:32:31 +0000 (15:32 +0000)]
* select.cc (serial_cleanup): Make sure that device_specific_pipe is always
deleted regardless of whether it has a unique thread associated with it
(socket_cleanup): Ditto.
(mailslot_cleanup): Ditto.

13 years ago * bootstrap-lto.mk: Remove obsolete requirement.
Eric Botcazou [Wed, 20 Apr 2011 09:27:06 +0000 (09:27 +0000)]
* bootstrap-lto.mk: Remove obsolete requirement.

13 years ago * devices.h: Renumber internal devices so that FH_PROCESS is part of
Corinna Vinschen [Wed, 20 Apr 2011 07:29:10 +0000 (07:29 +0000)]
* devices.h: Renumber internal devices so that FH_PROCESS is part of
the /proc family of virtual devices.
(FH_PROC_MAX_MINOR): Define.
* path.h (isproc_dev): Use FH_PROC_MAX_MINOR rather than FH_PROC.

13 years ago Fix spaces
Corinna Vinschen [Wed, 20 Apr 2011 06:52:57 +0000 (06:52 +0000)]
Fix spaces

13 years ago* select.cc (pipe_cleanup): Make sure that device_specific_pipe is always
Christopher Faylor [Wed, 20 Apr 2011 01:10:54 +0000 (01:10 +0000)]
* select.cc (pipe_cleanup): Make sure that device_specific_pipe is always
deleted regardless of whether it has a unique thread associated with it.

13 years ago PR ld/12365
Alan Modra [Wed, 20 Apr 2011 00:11:29 +0000 (00:11 +0000)]
PR ld/12365
include/
* bfdlink.h (struct bfd_link_callbacks): Modify multiple_definition
and multiple_common parameters to pass in a bfd_link_hash_entry
pointer rather than name,bfd etc. found in the hash entry.
bfd/
* elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls.
* linker.c (_bfd_generic_link_add_one_symbol): Likewise.  Call
multiple_definition regardless of allow_multiple_definition.
* simple.c (simple_dummy_multiple_definition): Update.
* xcofflink.c (xcoff_link_add_symbols): Update multiple_definition
calls.
ld/
* ldmain.c (multiple_definition): Take a bfd_link_hash_entry
pointer arg rather than "name", "obfd", "osec", "oval".  Add code
removed from linker.c.  Hack around xcofflink.c oddity in
passing NULL nbfd.
(multiple_common): Similarly.
* plugin.c (orig_allow_multiple_defs): Delete.
(plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition.
(plugin_multiple_definition): Update.

13 years ago2011-04-02 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Tue, 19 Apr 2011 18:51:20 +0000 (18:51 +0000)]
2011-04-02  Jon TURNEY  <jon.turney@dronecode.org.uk>

        * thread.cc (semaphore::init): We cannot reliably infer anything from
        the existing contents of sem, so merely warn rather than return EBUSY
        if it looks like we are reinitialising a semaphore.

13 years ago * COPYING: Replace with the GPLv3 definition.
Corinna Vinschen [Tue, 19 Apr 2011 16:52:51 +0000 (16:52 +0000)]
* COPYING: Replace with the GPLv3 definition.
* CYGWIN_LICENSE: Move Cygwin to GPLv3+.  Align text to FSF speak.

13 years ago * autoload.cc (GetConsoleWindow): Drop.
Corinna Vinschen [Tue, 19 Apr 2011 10:15:09 +0000 (10:15 +0000)]
* autoload.cc (GetConsoleWindow): Drop.
(GetSystemWindowsDirectoryW): Drop.
* fhandler_console.cc (beep): Call GetSystemWindowsDirectoryW instead of
GetWindowsDirectoryW.
* uinfo.cc (cygheap_user::env_systemroot): Call
GetSystemWindowsDirectoryW and convert to multibyte on the fly.
* winlean.h (GetWindowsDirectoryW): Redefine to something invalid.
Explain why.

13 years ago * Makefile.in (DLL_IMPORTS): Drop advapi32.dll.
Corinna Vinschen [Tue, 19 Apr 2011 10:02:06 +0000 (10:02 +0000)]
* Makefile.in (DLL_IMPORTS): Drop advapi32.dll.
* autoload.cc: Enable autoloading advapi32 functions.
* environ.cc (regopt): Use wide char arguments in reg_key functions.
* fhandler_console.cc (beep): Ditto.  Use WCHAR throughout.
* registry.cc (reg_key): Rewrite reg_key class to use native NT registry
functions.  Use WCHAR string parameters throughout.  Use PCWSTR rather
than const WCHAR.  Drop multibyte char functionality.  Drop unused
methods.
(get_registry_hive_path): Use RtlQueryRegistryValues to fetch path from
registry.
(load_registry_hive): Drop useless check for user hive being available.
Load hive using NtLoadKey.
* registry.h: Accommodate above changes.
* sched.cc (sched_rr_get_interval): Use wide char arguments in reg_key
functions.
* shared.cc (init_installation_root): Ditto.
(shared_info::init_obcaseinsensitive): Use RtlQueryRegistryValues to
fetch obcaseinsensitive value.
(shared_info::heap_slop_size): Use wide char arguments in reg_key
functions.
(shared_info::heap_chunk_size): Ditto.
* syscalls.cc (gethostid): Ditto.
* winsup.h (__WIDE): Define.
(_WIDE): Define.
* libc/minires-os-if.c (get_registry_dns_items): Don't fetch values
from registry.  Just extract them from given UNICODE_STRING parameter.
(get_registry_dns): Fetch all registry values at once using
RtlQueryRegistryValues.

13 years ago * net.cc (get_ipv4fromreg_ipcnt): Rearrange to fetch all registry
Corinna Vinschen [Tue, 19 Apr 2011 08:59:30 +0000 (08:59 +0000)]
* net.cc (get_ipv4fromreg_ipcnt): Rearrange to fetch all registry
values at once using RtlQueryRegistryValues.
(get_ipv4fromreg): Ditto.

13 years ago * fhandler_registry.cc (fhandler_registry::fstat): Use RegQueryInfoKeyW.
Corinna Vinschen [Tue, 19 Apr 2011 08:45:36 +0000 (08:45 +0000)]
* fhandler_registry.cc (fhandler_registry::fstat): Use RegQueryInfoKeyW.

13 years ago * fhandler_proc.cc (read_value): Remove definition.
Corinna Vinschen [Tue, 19 Apr 2011 08:39:38 +0000 (08:39 +0000)]
* fhandler_proc.cc (read_value): Remove definition.
(print): Simplify.
(format_proc_cpuinfo): Drop useless call to GetSystemInfo.  Rearrange
to use Rtl registry functions.  Rename dwOldThreadAffinityMask to
orig_affinity_mask.

13 years ago * libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter
Corinna Vinschen [Tue, 19 Apr 2011 08:02:59 +0000 (08:02 +0000)]
* libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter
per POSIX.  Explain in comment.

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