]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years ago * devices.h (FH_CYGDRIVE): Define as DEV_VIRTFS_MAJOR class device.
Corinna Vinschen [Mon, 2 Apr 2012 15:56:43 +0000 (15:56 +0000)]
* devices.h (FH_CYGDRIVE): Define as DEV_VIRTFS_MAJOR class device.
(DEV_CYGDRIVE_MAJOR): Remove.
(iscygdrive_dev): Define.
* dtable.cc (fh_alloc): Accommodate above change.
* path.cc (path_conv::check): Use iscygdrive_dev to check for cygdrive.
* syscalls.cc (fhandler_base::set_ino_and_dev): Drop check for
DEV_CYGDRIVE_MAJOR from conditional.

12 years ago * devices.h (FH_DEV): Define as DEV_VIRTFS_MAJOR class device.
Corinna Vinschen [Mon, 2 Apr 2012 11:45:56 +0000 (11:45 +0000)]
* devices.h (FH_DEV): Define as DEV_VIRTFS_MAJOR class device.
(DEV_DEV_MAJOR): Remove.
* dtable.cc (fh_alloc): Accommodate above change.
* syscalls.cc (set_ino_and_dev): Drop check for DEV_DEV_MAJOR from
conditional.

12 years ago * fhandler.h (fhandler_base::set_ino_and_dev): Declare.
Corinna Vinschen [Mon, 2 Apr 2012 11:18:45 +0000 (11:18 +0000)]
* fhandler.h (fhandler_base::set_ino_and_dev): Declare.
* syscalls.cc (fhandler_base::set_ino_and_dev): New method to set
st_ino, st_dev, and st_rdev for devices in a single spot.
(fstat64): Call fhandler_base::set_ino_and_dev instead of setting
st_ino, st_dev, and st_rdev here.
(stat_worker): Ditto.

12 years ago * fhandler.h (fhandler_dev::open): Declare.
Corinna Vinschen [Mon, 2 Apr 2012 11:08:07 +0000 (11:08 +0000)]
* fhandler.h (fhandler_dev::open): Declare.
(fhandler_dev::close): Declare.
(fhandler_dev::fstat): Declare.
(fhandler_dev::fstatvfs): Declare.
(fhandler_cygdrive::fstatvfs): Declare.
* fhandler_dev.cc (fhandler_dev::open): New method.
(fhandler_dev::close): Ditto.
(fhandler_dev::fstat): Ditto.
(fhandler_dev::fstatvfs): Ditto.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Don't fill
st_rdev.
(fhandler_cygdrive::fstatvfs): New method.
* path.h (path_conv::fs_got_fs): New method.
* mount.h (fs_info::got_fs): Change type to bool, make public.

12 years ago * mount.cc (fillout_mntent): Use "none" rather than 0 when checking
Corinna Vinschen [Mon, 2 Apr 2012 11:00:17 +0000 (11:00 +0000)]
* mount.cc (fillout_mntent): Use "none" rather than 0 when checking
FS type.

12 years ago* dtable.cc (dtable::fixup_close): Define new function.
Christopher Faylor [Sun, 1 Apr 2012 22:28:39 +0000 (22:28 +0000)]
* dtable.cc (dtable::fixup_close): Define new function.
(dtable::fixup_after_exec): Use fixup_close() and detect when it was not
possible to open an inherited file handle.
(dtable::fixup_after_fork): Defensively close any file handles which were not,
for some reason, inheritable.
* dtable.h: Make #pragma once.
(dtable::fixup_close): Declare new function.
* fhandler_console.cc (fhandler_console::set_unit): Set I/O handles to NULL
when this function fails.

12 years ago * fhandler_dev.cc (fhandler_dev::readdir): Fix formatting. Simplify
Corinna Vinschen [Sun, 1 Apr 2012 10:38:07 +0000 (10:38 +0000)]
* fhandler_dev.cc (fhandler_dev::readdir): Fix formatting.  Simplify
code.  Use device::type() to fetch dirent compatible device type.
Add comment.

12 years ago* devices.h (device::exists_func): Redefine field.
Christopher Faylor [Sun, 1 Apr 2012 07:19:52 +0000 (07:19 +0000)]
* devices.h (device::exists_func): Redefine field.
(device::dev_on_fs): Remove unneeded bit field.  Just make a normal boolean.
(device::exists): Redefine function.
* devices.in: Move previous functions earlier since they are now only defined
static.  Rename some functions due to an as-yet unresolved bug in gendevices.
Rename posix part of internal-only devices with a double-slash.  gendevices
will eventuall translate that to a ":".
(device::parse): Rework to use dev pointer and dev_storage_end.
* devices.cc: Regenerate.
* gendevices: Translate "// to ": after shilka processing.

12 years ago * devices.cc: Regenerate.
Corinna Vinschen [Sat, 31 Mar 2012 20:14:14 +0000 (20:14 +0000)]
* devices.cc: Regenerate.
* devices.h (device::exists_func): New member function pointer,
replacing noexpose.
(device::expose): Remove.
(device::exists_never): Declare.
(device::exists_ptys): Declare.
(device::exists_cons): Declare.
(device::exists_console): Declare.
(device::exists_nt_dev): Declare.
(device::exists): Declare.
* devices.in (dev_storage): Replace former noexpose values with
pointers to matching exists_XXX method.
(device::exists_never): New method.
(device::exists_ptys): New method.
(device::exists_cons): New method.
(device::exists_console): New method.
(device::exists_nt_dev): New method.
(device::exists): New method.
* fhandler_dev.cc (fhandler_dev::readdir): Replace call to
device::expose with call to device::exists and drop all further
existence filtering since it's done in device::exists now.
* path.cc (path_conv::check): Replace call to device::expose with call
to device::exists.

12 years agoupdate copyright
Christopher Faylor [Sat, 31 Mar 2012 17:38:40 +0000 (17:38 +0000)]
update copyright

12 years ago(Interim checkin while we work on this)
Christopher Faylor [Sat, 31 Mar 2012 17:38:00 +0000 (17:38 +0000)]
(Interim checkin while we work on this)
* devices.cc: Regenerate.
* devices.h (device::noexpose): New field.
(device::dev_on_fs): Make a bit field.
(get_major): Use proper type for declaration.
(expose): New field.
(ext_dev_storage): Delete declaration.
(dev_storage_size): Ditto.
(dev_storage): New declaration.
(dev_storage_end): Ditto.
* devices.in: Mark /dev/ptym*, /dev/com*, /dev/pipe, /dev/fifo, and "/dev" as
"no expose".
* fhandler.h (fhandler_dev::lastrealpos): Delete declaration.
(fhandler_dev::devidx): Declare new field.
* fhandler_disk_file.cc: Move fhandler_dev functions into fhandler_dev.cc.
* fhandler_dev.cc: Add includes needed for functions moved from
fhandler_disk_file.cc.
(dev_storage_scan_start): Define place to start listing devices.
(dev_storage_size): Define size of array to scan.
(fhandler_dev::fhandler_dev): Move here from fhandler_disk_file.cc.
(fhandler_dev::opendir): Ditto.
(fhandler_dev::readdir): Just check devidx for non-NULL to determine when to go
to disk for /dev content.  Use dev_storage rather than ext_dev_storage.
Iterate over dev_storage using devidx pointer.  Use accessor functions rather
than raw references to the device struct.  Only increment dir->__d_position
when we are actually going to be returning something.  Add debug_printf for
exit.
(fhandler_dev::rewinddir): Set devidx as appropriate depending on whether
there's a /dev on disk or not.
* gendevices: Don't mark dev_storage static but do put it in the _RDATA
section.
* path.cc (path_conv::check): Use new "device::expose()" function to decide to
forbid programs from referencing internal device types.

12 years agoFix typo
Corinna Vinschen [Fri, 30 Mar 2012 13:28:17 +0000 (13:28 +0000)]
Fix typo

12 years ago*** empty log message ***
Corinna Vinschen [Fri, 30 Mar 2012 13:27:38 +0000 (13:27 +0000)]
*** empty log message ***

12 years ago * cygwinenv.sgml (cygwinenv-implemented-options): Add detect_bloda.
Corinna Vinschen [Fri, 30 Mar 2012 11:30:13 +0000 (11:30 +0000)]
* cygwinenv.sgml (cygwinenv-implemented-options): Add detect_bloda.
* new-features.sgml (ov-new1.7.12): Add list items for the change to
flock and the detect_bloda CYGWIN option.
* overview2.sgml (ov-hi-process-problems): Add a reference to the
detect_bloda CYGWIN option.

12 years ago * posix.sgml (std-notes): Change description of flock restrictions.
Corinna Vinschen [Fri, 30 Mar 2012 11:29:57 +0000 (11:29 +0000)]
* posix.sgml (std-notes): Change description of flock restrictions.

12 years ago * devices.h (DEV_TTY_MAJOR): Define, use throughout where appropriate.
Corinna Vinschen [Fri, 30 Mar 2012 09:26:45 +0000 (09:26 +0000)]
* devices.h (DEV_TTY_MAJOR): Define, use throughout where appropriate.
(DEV_VIRTFS_MAJOR): Ditto.
* fhandler_dev.cc (fhandler_dev::readdir): Add comments.  Tweak tests
for invisible devices.  Don't print comX devices, only ttySX.  Drop
requirement to call stat64.

12 years ago * libc/locale/locale.c (__mb_cur_max): On Cygwin, align default value
Corinna Vinschen [Thu, 29 Mar 2012 20:27:15 +0000 (20:27 +0000)]
* libc/locale/locale.c (__mb_cur_max): On Cygwin, align default value
with default UTF-8 charset.

12 years ago*** empty log message ***
Corinna Vinschen [Thu, 29 Mar 2012 18:24:45 +0000 (18:24 +0000)]
*** empty log message ***

12 years ago * new-features.sgml (ov-new1.7.12): Create. Move mountinfo here.
Corinna Vinschen [Thu, 29 Mar 2012 18:23:32 +0000 (18:23 +0000)]
* new-features.sgml (ov-new1.7.12): Create.  Move mountinfo here.
Add /dev notice.
* pathnames.sgml (pathnames-posixdevices): Rephrase to account for
/dev change in 1.7.12.

12 years ago * Makefile.in (DLL_OFILES): Add fhandler_dev.o.
Corinna Vinschen [Thu, 29 Mar 2012 18:02:54 +0000 (18:02 +0000)]
* Makefile.in (DLL_OFILES): Add fhandler_dev.o.
* devices.h (DEV_DEV_MAJOR): Define.
(FH_DEV): Redefine in terms of DEV_DEV_MAJOR.
(ext_dev_storage): Declare.
(dev_storage_size): Declare.
(dev_dev_storage): Declare.
(dev_dev): Define.
(isdev_dev): Define.
* devices.in (dev_dev_storage): Activate.
(ext_dev_storage): Define as externally available pointer to
dev_storage.
(dev_storage_size): Define to contain number of dev_storage elements.
* dir.cc (rmdir): Handle /dev as always not empty.
* dtable.cc (fh_alloc): Handle DEV_DEV_MAJOR.
* fhandler.h (fhandler_dev): New class, derived from fhandler_disk_file.
(fhandler_union): Add fhandler_dev member.
* fhandler_disk_file.cc (class __DIR_mounts): Handle /dev directory
to make sure it always exists.
* fhandler_dev.cc: New file implementing /dev.
* globals.cc (ro_u_dev): New R/O unicode string.
* path.cc (path_conv::check): Handle FH_DEV device.

12 years ago* fhandler_console.cc (fhandler_console::set_unit): Don't succeed unless we are
Christopher Faylor [Thu, 29 Mar 2012 17:34:55 +0000 (17:34 +0000)]
* fhandler_console.cc (fhandler_console::set_unit): Don't succeed unless we are
opening a console actually associated with this process.

12 years ago * sec_acl.cc (acl32): Fix potnetial crash if build_fh_name returns NULL.
Corinna Vinschen [Thu, 29 Mar 2012 15:01:18 +0000 (15:01 +0000)]
* sec_acl.cc (acl32): Fix potnetial crash if build_fh_name returns NULL.

12 years ago* exceptions.cc (ctrl_c_handler): Don't generate a SIGINT if we've execed a
Christopher Faylor [Thu, 29 Mar 2012 05:45:49 +0000 (05:45 +0000)]
* exceptions.cc (ctrl_c_handler): Don't generate a SIGINT if we've execed a
non-cygwin process.  Let the Windows process deal with it itself.

12 years ago* sigproc.cc (proc_terminate): Avoid releasing myself.
Christopher Faylor [Wed, 28 Mar 2012 17:28:27 +0000 (17:28 +0000)]
* sigproc.cc (proc_terminate): Avoid releasing myself.

12 years ago * times.cc (clock_setres): Set minperiod to period.
Corinna Vinschen [Wed, 28 Mar 2012 07:38:35 +0000 (07:38 +0000)]
* times.cc (clock_setres): Set minperiod to period.

12 years ago Fix copyright.
Corinna Vinschen [Tue, 27 Mar 2012 18:31:09 +0000 (18:31 +0000)]
Fix copyright.

12 years ago * fhandler_process.cc (process_tab): Add entry for mountinfo.
Corinna Vinschen [Tue, 27 Mar 2012 18:30:28 +0000 (18:30 +0000)]
* fhandler_process.cc (process_tab): Add entry for mountinfo.
(format_process_mountstuff): New function, derived from
format_process_mounts.  Only open another user's user_info shared
memory area if the process is owned by another user.  Actually
access the opened shared user_info to get the right mount table.
For other users, don't print remote cygdrive mount points.  Print
mountinfo or mounts output depending on the bool mountinfo argument.
(format_process_mounts): Just call format_process_mountstuff with
mountinfo set to false.
(format_process_mountinfo): Ditto with mountinfo set to true.

* new-features.sgml (ov-new1.7.11): Add mountinfo.

12 years ago * times.cc (clock_setres): Revert previous change.
Corinna Vinschen [Tue, 27 Mar 2012 08:50:45 +0000 (08:50 +0000)]
* times.cc (clock_setres): Revert previous change.

12 years ago * fhandler.h (class fhandler_dev_clipboard): Add fstat method.
Corinna Vinschen [Mon, 26 Mar 2012 11:24:51 +0000 (11:24 +0000)]
* fhandler.h (class fhandler_dev_clipboard): Add fstat method.
* fhandler_clipboard.cc (cygcb_t): New type for Cygwin-specific
clipboard format.
(set_clipboard): Use new clipboard format to allow setting a timestamp.
(fhandler_dev_clipboard::fstat): New method.  Read modification and
access timestamp as well as length from clipboard data.
(fhandler_dev_clipboard::read): Use new clipboard format.

12 years ago * libc/stdio/findfp.c (__sinit): Set __sdidinit last.
Corinna Vinschen [Mon, 26 Mar 2012 10:43:06 +0000 (10:43 +0000)]
* libc/stdio/findfp.c (__sinit): Set __sdidinit last.

12 years ago * hires.h (hires_ms::dmsecs): Drop unused method.
Corinna Vinschen [Mon, 26 Mar 2012 09:05:50 +0000 (09:05 +0000)]
* hires.h (hires_ms::dmsecs): Drop unused method.
* times.cc (JITTER): Remove.
(gtod): Revert to process-local variable.
(hires_ms::nsecs): Just return system time to disallow discrepancy with
the OS.
(hires_ms::resolution): Return coarsest timer value from OS.  Add
comment to explain why.
(clock_setres): Ditto.

12 years agolibgloss: cris: respect DESTDIR when installing
Michael Frysinger [Sat, 24 Mar 2012 03:38:28 +0000 (03:38 +0000)]
libgloss: cris: respect DESTDIR when installing

12 years ago* child_info.h: Reset magic number.
Christopher Faylor [Wed, 21 Mar 2012 17:23:57 +0000 (17:23 +0000)]
* child_info.h: Reset magic number.

12 years ago* child_info.h (child_info::postfork): Define new function.
Christopher Faylor [Wed, 21 Mar 2012 15:54:50 +0000 (15:54 +0000)]
* child_info.h (child_info::postfork): Define new function.
* fork.cc (frok::parent): Call postfork to do all of the manipulation required
prior to calling pinfo::remember.
* pinfo.h (pinfo::set_rd_proc_pipe): Just set pinfo's rd_proc_pipe.  Don't
bother setting it to NULL.
* sigproc.cc (child_info_spawn::wait_for_myself): Call postfork to set up
myself for waiting.
* spawn.cc (child_info_spawn::worker): Avoid now-unnecessary global lock.
Consistently test mode rather than chtype when making wr_proc_pipe decisions.
Call postfork() to set up stuff prior to pinfo::remember.

12 years ago * cygtls.cc (well_known_dlls): Add advapi32.dll.
Corinna Vinschen [Wed, 21 Mar 2012 10:42:24 +0000 (10:42 +0000)]
* cygtls.cc (well_known_dlls): Add advapi32.dll.

12 years ago* child_info.h: Reset magic number.
Christopher Faylor [Wed, 21 Mar 2012 05:23:13 +0000 (05:23 +0000)]
* child_info.h: Reset magic number.
(child_info_spawn::wait_for_myself): Move function to sigproc.cc.
* pinfo.cc (is_toplevel_proc): Delete unneeded variable.
* sigproc.cc (child_info_spawn::wait_for_myself): Move function from header to
here.  Do all setup required to properly wait for top-level execed process to
exit.
* spawn.cc (child_info_spawn::worker): Attempt to properly handle _P_DETACH.
Set wr_proc_pipe if top-level process even when execing.  Just call
wait_for_myself() to...  wait for myself.  Don't call cleanup twice.

12 years ago* pinfo.cc (proc_waiter): Remove debugging.
Christopher Faylor [Wed, 21 Mar 2012 04:45:57 +0000 (04:45 +0000)]
* pinfo.cc (proc_waiter): Remove debugging.

12 years ago* dtable.cc (set_std_handle): Call SetStdHandle with NULL if fd is closed.
Christopher Faylor [Tue, 20 Mar 2012 23:13:40 +0000 (23:13 +0000)]
* dtable.cc (set_std_handle): Call SetStdHandle with NULL if fd is closed.
(dtable::release): "Close" standard handle if appropriate.
* dcrt0.cc (dll_crt0_0): Fix minor switch formatting problem.
* fork.cc (frok::parent): Make minor comment indentation change.

12 years ago * syscalls.cc (lseek): Fix debug output.
Corinna Vinschen [Tue, 20 Mar 2012 20:39:32 +0000 (20:39 +0000)]
* syscalls.cc (lseek): Fix debug output.

12 years ago * ntdll.h (SharedUserData): Add volatile qualifier. This fixes a
Corinna Vinschen [Tue, 20 Mar 2012 18:01:09 +0000 (18:01 +0000)]
* ntdll.h (SharedUserData): Add volatile qualifier. This fixes a
possible infinite loop in hires_ms::timeGetTime_ns.

12 years ago* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
Christopher Faylor [Tue, 20 Mar 2012 15:07:30 +0000 (15:07 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
(child_info::rd_proc_pipe): Declare new field.
(child_info::wr_proc_pipe): Ditto.
(child_info::prefork): Declare new function, derived from previous pinfo
version.
* dcrt0.cc (child_info_fork::handle_fork): Close previous wr_proc_pipe when
appropriate and assign new one from passed-in child_info block.
(child_info_spawn::handle_spawn): Assign our wr_proc_pipe handle from passed-in
child_info block.
* fork.cc (child_info::prefork): Define new function.
(frok::child): Clear rd_proc_pipe and wr_proc_pipe so they will not be closed
by the child_info destructor.
(frok::parent): Use child_info prefork handling, outside of retry loop.  Set
rd_proc_pipe in child's pinfo after successful CreateProcess.  Eliminate
postfork call.
* globals.cc (my_wr_proc_pipe): Define/declare new variable.
* pinfo.cc (pinfo::pending_rd_proc_pipe): Delete.
(pinfo::pending_wr_proc_pipe): Ditto.
(pinfo::prefork): Ditto.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(pinfo::wait): Assume that rd_proc_pipe is set up correctly prior to call.
(_pinfo::alert_parent): Replace "wr_proc_pipe" with "my_wr_proc_pipe".
* pinfo.h (_pinfo::_wr_proc_pipe): Delete declaration.
(_pinfo::set_rd_proc_pipe): Define new function.
(pinfo::pending_rd_proc_pipe): Delete declaration.
(pinfo::pending_wr_proc_pipe): Ditto.
(pinfo::prefork): Ditto.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(pinfo::wr_proc_pipe): Ditto.
* sigproc.cc (child_info::child_info): Clear rd_proc_pipe and wr_proc_pipe.
(child_info::cleanup): Close rd_proc_pipe and wr_proc_pipe if necessary.
(child_info_fork::child_info_fork): Set forker_finished to NULL by default.
(child_info_spawn::child_info_spawn): Use my_wr_proc_pipe rather than
myself->wr_proc_pipe.
(child_info::sync): Ditto.
(child_info_spawn::cleanup): Call child_info::cleanup.
* spawn.cc (child_info_spawn::worker): Remove call to myself.prefork().  Set
wr_proc_pipe when execing or set up new rd_proc_pipe/wr_proc_pipe via
child_info::prefork when spawning.  Remove call to pinfo::postexec.  Set
rd_proc_pipe in child pinfo when spawning.  Use my_wr_proc_pipe rather than
myself->wr_proc_pipe.  Remove call to postfork.

12 years ago* pinfo.cc (pinfo_init): Cosmetic change: unset "destroy" for myself.
Christopher Faylor [Tue, 20 Mar 2012 02:08:14 +0000 (02:08 +0000)]
* pinfo.cc (pinfo_init): Cosmetic change: unset "destroy" for myself.
(pinfo::wait): Change some comments.
(pinfo::prefork): Move a comment.
(pinfo::postfork): Set pending_*_pipe variables to NULL if closed.
(pinfo::postexec): Use right name when closing handle.
(_pinfo::alert_parent): Ditto.
* sigproc.h (hold_everything): Remove debugging label.

12 years ago2012-03-19 Ben Greear <greear@users.sf.net>
Chris Sutcliffe [Tue, 20 Mar 2012 00:28:53 +0000 (00:28 +0000)]
2012-03-19      Ben Greear  <greear@users.sf.net>

        * include/routprot.h (IP_LOCAL_BINDING): Move above IP_ADAPTER_BINDING_INFO
        to correct warning about IP_LOCAL_BINDING being undefined.

12 years ago* client.cc: Revert sigproc.h inclusion since it was fixed elsewhere.
Christopher Faylor [Mon, 19 Mar 2012 20:52:55 +0000 (20:52 +0000)]
* client.cc: Revert sigproc.h inclusion since it was fixed elsewhere.

12 years ago* cygserver_ipc.h: Include sigproc.h for signal_arrived declaration.
Christopher Faylor [Mon, 19 Mar 2012 20:18:18 +0000 (20:18 +0000)]
* cygserver_ipc.h: Include sigproc.h for signal_arrived declaration.

12 years ago * client.cc: Include sigproc.h if __INSIDE_CYGWIN__ is defined.
Corinna Vinschen [Mon, 19 Mar 2012 19:25:01 +0000 (19:25 +0000)]
* client.cc: Include sigproc.h if __INSIDE_CYGWIN__ is defined.

12 years ago* cygprops.h: Use #pragma once.
Christopher Faylor [Mon, 19 Mar 2012 17:49:40 +0000 (17:49 +0000)]
* cygprops.h: Use #pragma once.
* mkglobals_h: Ditto for generated globals.h file.
* globals.cc: Use specific NO_GLOBALS_H flag to control inclusion of globals.h.
* winsup.h: Honor NO_GLOBALS_H to control inclusion of globals.h.  Make
clear_procimptoken extern inline so that it is only defined when needed.

12 years ago* client.cc: Remove unneeded #include "sigproc.h".
Christopher Faylor [Mon, 19 Mar 2012 17:47:05 +0000 (17:47 +0000)]
* client.cc: Remove unneeded #include "sigproc.h".

12 years ago * thread.cc (cancelable_wait): Don't malloc tbi, just make it a struct
Corinna Vinschen [Mon, 19 Mar 2012 17:34:23 +0000 (17:34 +0000)]
* thread.cc (cancelable_wait): Don't malloc tbi, just make it a struct
on the stack to avoid memory leak.

12 years ago* pinfo.cc (pinfo::wait): Handle case where prefork was not called prior to
Christopher Faylor [Mon, 19 Mar 2012 16:51:30 +0000 (16:51 +0000)]
* pinfo.cc (pinfo::wait): Handle case where prefork was not called prior to
calling wait().  This is the case when we are reabsorbing processes after being
execed.

12 years ago* fork.cc (lock_signals): Move to sigproc.h.
Christopher Faylor [Fri, 16 Mar 2012 20:20:29 +0000 (20:20 +0000)]
* fork.cc (lock_signals): Move to sigproc.h.
(lock_pthread): Ditto.
(hold_everything): Ditto.
(frok::parent): Call myself.prefork() just before calling CreateProcess.  Call
myself.postfork () on function exit.
* pinfo.cc (pinfo::pending_rd_proc_pipe): Define.
(pinfo::pending_wr_proc_pipe): Ditto.
(_pinfo::dup_proc_pipe): Delete.
(pinfo::wait): Move pipe creation into pinfo::prefork.  Set pipe variables from
pending_*.
(_pinfo::sync_proc_pipe): Delete.
(_pinfo::proc_pipe_owner): Ditto.
(pinfo::prefork): Define new function.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(_pinfo::alert_parent): Remove obsolete call to sync_proc_pipe.
(_pinfo::dup_proc_pipe): Delete declaration.
(_pinfo::sync_proc_pipe): Ditto.
(pinfo::pending_rd_proc_pipe): Declare.
(pinfo::pending_wr_proc_pipe): Ditto.
(pinfo::prefork): Declare new function.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(pinfo::wr_proc_pipe): Define new wrapper function.
* sigproc.h: Include "sync.h".  Move locking functions from fork to here.
* spawn.cc (child_info_spawn::worker): Delete now-unneeded requirement to
record orig_wr_proc_pipe.  Call hold_everything prior to doing anything.  Call
myself.prefork() if spawning.  Replace wr_proc_pipe synchronization with call
to myself.postexec().  Call myself.postfork() if not execing.
* sync.h: Replace #ifdef wrapper with "#pragma once".

12 years ago * configure.ac (enable_libgomp): Remove *-*-irix6*.
Rainer Orth [Thu, 15 Mar 2012 14:13:32 +0000 (14:13 +0000)]
* configure.ac (enable_libgomp): Remove *-*-irix6*.
(unsupported_languages): Remove mips-sgi-irix6.*.
(noconfigdirs): Don't add ${libgcj} for mips*-*-irix6*.
(with_stabs): Remove.
* configure: Regenerate.

12 years ago * configure.ac (enable_libgomp): Remove *-*-osf*.
Rainer Orth [Thu, 15 Mar 2012 14:11:38 +0000 (14:11 +0000)]
* configure.ac (enable_libgomp): Remove *-*-osf*.
(with_stabs): Remove alpha*-*-osf*.
* configure: Regenerate.

12 years agoinclude/
Alan Modra [Thu, 15 Mar 2012 12:58:48 +0000 (12:58 +0000)]
include/
* dis-asm.h (disassemble_init_powerpc): Declare.
opcodes/
* disassemble.c (disassemble_init_for_target): Handle ppc init.
* ppc-dis.c (private): New var.
(powerpc_init_dialect): Don't return calloc failure, instead use
private.
(PPC_OPCD_SEGS, PPC_OP_TO_SEG): Define.
(powerpc_opcd_indices): New array.
(disassemble_init_powerpc): New function.
(print_insn_big_powerpc): Don't init dialect here.
(print_insn_little_powerpc): Likewise.
(print_insn_powerpc): Start search using powerpc_opcd_indices.

12 years ago * hookapi.cc (hook_or_detect_cygwin): Change condition when to use
Corinna Vinschen [Tue, 13 Mar 2012 17:15:28 +0000 (17:15 +0000)]
* hookapi.cc (hook_or_detect_cygwin): Change condition when to use
importRVAMaxSize or importRVASize for the mapping size.  Make sure
to map never more than the section size.  Change comments accordingly.

12 years ago * include/netdb.h (h_errno): Add self-referencing macro and comment.
Corinna Vinschen [Tue, 13 Mar 2012 09:13:02 +0000 (09:13 +0000)]
* include/netdb.h (h_errno): Add self-referencing macro and comment.

12 years agolibgloss: libnosys: use @host_makefile_frag@
Michael Frysinger [Tue, 13 Mar 2012 01:52:31 +0000 (01:52 +0000)]
libgloss: libnosys: use @host_makefile_frag@

Rather than inlining the generated rules, use @host_makefile_frag@ instead.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agolibgloss: change 'q' flag to 'r' in ar call
Michael Frysinger [Tue, 13 Mar 2012 01:47:40 +0000 (01:47 +0000)]
libgloss: change 'q' flag to 'r' in ar call

The GNU ar has "q" aliased to "r", and we generally want this behavior anyways
(replacing rather than always appending), so change our AR_FLAGS definition.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoChristopher Faylor <me.cygwin2012@cgf.cx>
Christopher Faylor [Mon, 12 Mar 2012 21:29:36 +0000 (21:29 +0000)]
Christopher Faylor <me.cygwin2012@cgf.cx>
* fhandler.h (wait_return): Add overlapped_nullread.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Detect zero-byte
read as a special case.
(fhandler_base_overlapped::raw_read): Keep looping when zero-byte read detected
without EOF.
(fhandler_base_overlapped::raw_write): Quiet gcc warning by adding
overlapped_nullread to switch statement even though it will never actually be
hit.

12 years ago* dtable.cc (fh_alloc): Treat pc.dev as unsigned.
Christopher Faylor [Sat, 10 Mar 2012 17:51:33 +0000 (17:51 +0000)]
* dtable.cc (fh_alloc): Treat pc.dev as unsigned.
* fhandler_console.cc (fhandler_console::set_unit): Use lock always to avoid
races between competing cygwin processes running on the console.

12 years agoinclude/opcode/
Alan Modra [Fri, 9 Mar 2012 23:39:02 +0000 (23:39 +0000)]
include/opcode/
* ppc.h: Add PPC_OPCODE_ALTIVEC2, PPC_OPCODE_E6500, PPC_OPCODE_TMR.
opcodes/
* ppc-dis.c (ppc_opts): Add entries for "e5500" and "e6500".
* ppc-opc.c (insert_ls, TMR, ESYNC, XSYNCLE_MASK): New.
(PPCVEC2, PPCTMR, E6500): New short names.
(powerpc_opcodes): Add vabsdub, vabsduh, vabsduw, dni, mvidsplt,
mviwsplt, icblq., mftmr, mttmr, dcblq., miso, lvexbx, lvexhx,
lvexwx, stvexbx, stvexhx, stvexwx, lvepx, lvepxl, stvepx, stvepxl,
lvtrx, lvtrxl, lvtlx, lvtlxl, stvfrx, stvfrxl, stvflx, stvflxl,
lvswx, lvswxl, stvswx, stvswxl, lvsm mnemonics. Accept LS, ESYNC
optional operands on sync instruction for E6500 target.
bfd/
* archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
* bfd-in2.h: Regenerate.
* cpu-powerpc.c (bfd_powerpc_archs): Add entryies for
bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
gas/
* config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
(ppc_handle_align): Add termination nop opcode for e500mc family.
* doc/as.texinfo: Document options -me5500 and -me6500.
* doc/c-ppc.texi: Likewise.
gas/testsuite/
* gas/ppc/e500mc64_nop.s: New test case for e500mc family
termination nops.
* gas/ppc/e500mc64_nop.d: Likewise.
* gas/ppc/e5500_nop.s: Likewise.
* gas/ppc/e5500_nop.d: Likewise.
* gas/ppc/e6500_nop.s: Likewise.
* gas/ppc/e6500_nop.d: Likewise.
* gas/ppc/e6500.s: New.
* gas/ppc/e6500.d: Likewise.
* gas/ppc/ppc.exp: Run e6500, e500mc64_nop, e5500_nop, and e6500_nop.

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 20:31:34 +0000 (20:31 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Modify DJ Delorie license to include
        modification rights in clause as permitted by DJ Delorie.
        * COPYING.LIBGLOSS: Ditto.

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 20:28:57 +0000 (20:28 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * epiphany/access.c: Add modification rights to clause as
        permitted by DJ Delorie.
        * iq2000/access.c: Ditto.
        * mn10200/access.c: Ditto.
        * mn10300/access.c: Ditto.
        * mt/access.c: Ditto.
        * v850/access.c: Ditto.

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 20:26:39 +0000 (20:26 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/machine/setjmp-dj.h: Modify license to include
        modification in clause as permitted by DJ Delorie.
        * libc/machine/arm/access.c: Ditto.
        * libc/machine/i386/setjmp.S: Ditto.
        * libc/sys/h8300hms/sys/file.h: Ditto.
        * libc/sys/linux/machine/i386/setjmp.S: Ditto.
        * libc/sys/sysmec/access.c: Ditto.
        * libc/sys/sysnecv850/access.c: Ditto.

12 years ago2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 9 Mar 2012 19:38:10 +0000 (19:38 +0000)]
2012-03-09  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Remove two unused licenses.

12 years ago * hookapi.cc (find_first_notloaded_dll): Fix a compiler warning.
Corinna Vinschen [Fri, 9 Mar 2012 12:42:14 +0000 (12:42 +0000)]
* hookapi.cc (find_first_notloaded_dll): Fix a compiler warning.

12 years ago * hookapi.cc (rvadelta): Add parameter to return maximum available
Corinna Vinschen [Fri, 9 Mar 2012 12:37:37 +0000 (12:37 +0000)]
* hookapi.cc (rvadelta): Add parameter to return maximum available
size from start of import RVA table to end of section.
(find_first_notloaded_dll): Take big executables into account.  Use
offset and size computation as in hook_or_detect_cygwin, just simpler.
(hook_or_detect_cygwin): Return NULL rather than false througout.
Change computation of required mapping size to take non-gcc compilers
into account.  Explain the differences and what we do against them.
Don't alloca buf if fn is NULL.  Never use buf if fn is NULL.

Fix name and address in previous ChangeLog entry.

12 years ago * net.cc (call_gaa): New thread function to call GetAdaptersAddresses.
Corinna Vinschen [Thu, 8 Mar 2012 16:02:44 +0000 (16:02 +0000)]
* net.cc (call_gaa): New thread function to call GetAdaptersAddresses.
(get_adapters_addresses): Call call_gaa.  If necessary, call it as
child thread.  Explain why that's necessary.

12 years ago * path.cc (readlink): Avoid calling strlen() twice.
Corinna Vinschen [Thu, 8 Mar 2012 14:56:18 +0000 (14:56 +0000)]
* path.cc (readlink): Avoid calling strlen() twice.

12 years ago2012-03-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 8 Mar 2012 14:14:52 +0000 (14:14 +0000)]
2012-03-08  Tristan Gingold  <gingold@adacore.com>

* lbr.h (struct vms_lhd): Add comments.

12 years ago * Throughout, replace usage of w32api's min with MIN from sys/param.h.
Corinna Vinschen [Thu, 8 Mar 2012 09:36:11 +0000 (09:36 +0000)]
* Throughout, replace usage of w32api's min with MIN from sys/param.h.

12 years agomerge from gcc
DJ Delorie [Thu, 8 Mar 2012 00:01:18 +0000 (00:01 +0000)]
merge from gcc

12 years ago * mn10300.h (elf_mn10300_reloc_type): Add R_MN10300_TLS_GD,
Nick Clifton [Wed, 7 Mar 2012 17:51:56 +0000 (17:51 +0000)]
* mn10300.h (elf_mn10300_reloc_type): Add R_MN10300_TLS_GD,
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF and R_MN10300_TLS_TPOFF.

* elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
field.
(elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
(elf_mn10300_tdata): Define.
(elf_mn10300_local_got_tls_type): Define.
(elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
(mn10300_reloc_map): Likewise.
(elf_mn10300_tls_transition): New function.
(dtpoff, tpoff, mn10300_do_tls_transition): New functions.
(mn10300_elf_check_relocs): Add TLS support.
(mn10300_elf_final_link_relocate): Likewise.
(mn10300_elf_relocate_section): Likewise.
(mn10300_elf_relax_section): Likewise.
(elf32_mn10300_link_hash_newfunc): Initialise new field.
(_bfd_mn10300_copy_indirect_symbol): New function.
(elf32_mn10300_link_hash_table_create): Initialise new fields.
(_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_reloc_type_class): Allocate an
elf_mn10300_obj_tdata structure.
(elf_backend_copy_indirect_symbol): Define.
* reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
(BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
alongside other MN10300 relocations.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

* config/tc-mn10300.c (other_registers): Add SSP and USP.
(md_assemble): Add support for TLS relocs.
(mn10300_parse_name): Likewise.

* readelf.c (is_16bit_abs_reloc): Add detection of R_MN10300_16.

12 years ago* pinfo.cc (_pinfo::dup_proc_pipe): Reorganize to provide more information for
Christopher Faylor [Wed, 7 Mar 2012 17:09:37 +0000 (17:09 +0000)]
* pinfo.cc (_pinfo::dup_proc_pipe): Reorganize to provide more information for
failing condition.
(pinfo::wait): Pass name of function to dup_proc_pipe.  Eliminate error check
for dup_proc_pipe since it never actually returned an error.
* pinfo.h (_pinfo::dup_proc_pipe): Add an argument.
* spawn.cc (child_info_spawn::worker): Pass name of function to dup_proc_pipe.

12 years ago * glob.cc (MAXPATHLEN): Reinstantiate with a value of 8192.
Corinna Vinschen [Wed, 7 Mar 2012 10:12:28 +0000 (10:12 +0000)]
* glob.cc (MAXPATHLEN): Reinstantiate with a value of 8192.

12 years ago * pinfo.cc (_pinfo::dup_proc_pipe): Fix order of arguments in debug
Corinna Vinschen [Mon, 5 Mar 2012 12:12:10 +0000 (12:12 +0000)]
* pinfo.cc (_pinfo::dup_proc_pipe): Fix order of arguments in debug
output.

12 years ago * init.cc (dll_entry): Move wincap.init call back from here...
Corinna Vinschen [Mon, 5 Mar 2012 12:09:22 +0000 (12:09 +0000)]
* init.cc (dll_entry): Move wincap.init call back from here...
* dcrt0.cc (dll_crt0_0): ...to here.

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 5 Mar 2012 11:57:17 +0000 (11:57 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* configure.ac: Enable gdb and readline for ia64*-*-*vms*.
* configure: Regenerate.

12 years ago * cygheap.h (enum fcwd_version_t): Move here from path.cc.
Corinna Vinschen [Mon, 5 Mar 2012 11:50:25 +0000 (11:50 +0000)]
* cygheap.h (enum fcwd_version_t): Move here from path.cc.
(class fcwd_access_t): Ditto.  Only declare methods.
(class cwdstuff): Move fast_cwd_ptr and fast_cwd_version from shared
DLL section here.
* path.cc: Keep fcwd_access_t method definitions.
(fcwd_access_t::fast_cwd_version): New method.
(find_fast_cwd_pointer): Change comment.  Mention test on W8CP.
(cwdstuff::init): Initialize fast_cwd_ptr and fast_cwd_version.

12 years ago * dll_init.cc (dll_list::operator[]): Extend comment a bit more to
Corinna Vinschen [Mon, 5 Mar 2012 10:27:44 +0000 (10:27 +0000)]
* dll_init.cc (dll_list::operator[]): Extend comment a bit more to
explain previous patch.

12 years ago * dll_init.cc (dll_list::alloc): Compare linked DLLs by basename only.
Corinna Vinschen [Sun, 4 Mar 2012 16:47:45 +0000 (16:47 +0000)]
* dll_init.cc (dll_list::alloc): Compare linked DLLs by basename only.
Explain why.  Add code to check if a DLL with the same basename but
different path is the same DLL.  Bail out if not.
(in_load_after_fork): New static NO_COPY bool to allow to differ
between linked and loaded DLL at fork.
(dll_list::load_after_fork): Set in_load_after_fork accordingly.
(dll_dllcrt0_1): Don't treat DLL as linked if in_load_after_fork is set.
Drop test for in_forkee.

12 years ago * dll_init.cc: Revert pathname changes from 2012-02-08.
Corinna Vinschen [Sun, 4 Mar 2012 13:50:12 +0000 (13:50 +0000)]
* dll_init.cc: Revert pathname changes from 2012-02-08.
(dll_list::operator[]): Add long comment to explain the misery.
(dll_list::alloc): Skip long pathname prefix potentially returned by
GetModuleFileNameW.
* dll_init.h (dll_list::find_by_modname): Add back declaration.

12 years ago * winver.rc: Bump copyright date.
Corinna Vinschen [Sun, 4 Mar 2012 13:19:21 +0000 (13:19 +0000)]
* winver.rc: Bump copyright date.

12 years ago* fhandler_console.cc (fhandler_console::dup): Only set ctty when we haven't
Christopher Faylor [Sat, 3 Mar 2012 21:35:30 +0000 (21:35 +0000)]
* fhandler_console.cc (fhandler_console::dup): Only set ctty when we haven't
specifically called setsid.
* fhandler_tty.cc (fhandler_pty_slave::dup): Ditto.  Also add comment
documenting research into rxvt problem.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Don't check specifically
for myself->ctty == -1.  Test for > 0 as that is the correct test.
(fhandler_termios::sigflush): Ditto.

12 years ago * flock.cc (allow_others_to_sync): Reorder conditional expression to
Corinna Vinschen [Fri, 2 Mar 2012 17:20:11 +0000 (17:20 +0000)]
* flock.cc (allow_others_to_sync): Reorder conditional expression to
check for DACL presence first, since otherwise dacl pointer value is
undefined.  Add comment.

12 years ago * flock.cc (allow_others_to_sync): Use RtlGetDaclSecurityDescriptor
Corinna Vinschen [Fri, 2 Mar 2012 17:07:17 +0000 (17:07 +0000)]
* flock.cc (allow_others_to_sync): Use RtlGetDaclSecurityDescriptor
rather than accessing the SECURITY_DESCRIPTOR structure directly.
Take no DACL and NULL DACL into account.

12 years ago2012-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 2 Mar 2012 16:02:04 +0000 (16:02 +0000)]
2012-03-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/posix/readdir_r.c: Fix return code when end of
        directory is reached.

12 years ago * configure.in: Accept "arm*" target spec instead of just "arm".
Nick Clifton [Fri, 2 Mar 2012 13:20:08 +0000 (13:20 +0000)]
* configure.in: Accept "arm*" target spec instead of just "arm".
* configure: Regenerated.
* libnosys/configure.in: Likewise.
(libc_symbol_prefix): Renamed to libc_cv_symbol_prefix.
* libnosys/configure: Regenerated (using autoconf v2.68).

12 years agoFix typo in ChangeLog entry
Corinna Vinschen [Fri, 2 Mar 2012 12:01:27 +0000 (12:01 +0000)]
Fix typo in ChangeLog entry

12 years ago * fhandler_console.cc (fhandler_console::input_tcsetattr): Revert
Corinna Vinschen [Fri, 2 Mar 2012 11:56:06 +0000 (11:56 +0000)]
* fhandler_console.cc (fhandler_console::input_tcsetattr): Revert
prevois patch.
(fhandler_console::open_setup): Install Ctrl-C handler here, if this
console is the controlling tty and the process hasn't been started by
a Cygwin process.

12 years ago * fhandler_console.cc (fhandler_console::input_tcsetattr): Set the
Corinna Vinschen [Fri, 2 Mar 2012 10:17:16 +0000 (10:17 +0000)]
* fhandler_console.cc (fhandler_console::input_tcsetattr): Set the
state of the Ctrl-C handler depending on the setting of
ENABLE_PROCESSED_INPUT.

12 years ago* faq-programming.xml (faq.programming.make-execvp): Remove obsolete
Yaakov Selkowitz [Thu, 1 Mar 2012 07:35:02 +0000 (07:35 +0000)]
* faq-programming.xml (faq.programming.make-execvp): Remove obsolete
information about Tcl/Tk.
(faq.programming.dll-relocatable): Ditto.
* faq-using.xml (faq.using.tcl-tk): Rewrite to reflect switch to
X11 Tcl/Tk.

12 years agotcgetsid: fix return type
Eric Blake [Tue, 28 Feb 2012 14:03:03 +0000 (14:03 +0000)]
tcgetsid: fix return type

* include/sys/termios.h (tcgetsid): Fix return type.
* termios.cc (tcgetsid): Likewise.
* fhandler_termios.cc (fhandler_termios::tcgetsid): Likewise.
* fhandler.h (fhandler_base): Likewise.
* fhandler.cc (fhandler_base::tcgetsid): Likewise.

12 years ago * cygtls.cc (well_known_dlls): Add shlwapi.dll.
Corinna Vinschen [Tue, 28 Feb 2012 09:44:14 +0000 (09:44 +0000)]
* cygtls.cc (well_known_dlls): Add shlwapi.dll.

12 years ago* faq-using.xml (faq.using.bloda): Fix missing closing parenthesis.
Yaakov Selkowitz [Mon, 27 Feb 2012 19:45:26 +0000 (19:45 +0000)]
* faq-using.xml (faq.using.bloda): Fix missing closing parenthesis.

12 years ago * cygtls.cc (dll_cmp): New comparison function for bsearch.
Corinna Vinschen [Mon, 27 Feb 2012 11:55:27 +0000 (11:55 +0000)]
* cygtls.cc (dll_cmp): New comparison function for bsearch.
(well_known_dlls): New array containing well-known DLLs.
(_cygtls::call2): Add code for BLODA detection.
* net.cc (fdsock): Ditto.

12 years agogas/
Alan Modra [Mon, 27 Feb 2012 06:37:38 +0000 (06:37 +0000)]
gas/
* config/tc-crx.c: Include bfd_stdint.h.
(getconstant): Remove irrelevant comment.  Don't fail due to
sign-extension of int mask.
(check_range): Rewrite using unsigned arithmetic throughout.
opcodes/
* crx-dis.c (print_arg): Mask constant to 32 bits.
* crx-opc.c (cst4_map): Use int array.
include/opcode/
* crx.h (cst4_map): Update declaration.

12 years agoDrop "potentially" from latest ChangeLog entry.
Corinna Vinschen [Sun, 26 Feb 2012 15:49:31 +0000 (15:49 +0000)]
Drop "potentially" from latest ChangeLog entry.

12 years ago * environ.cc (enum settings): Add setbool. Rename justset to setdword
Corinna Vinschen [Sun, 26 Feb 2012 15:47:43 +0000 (15:47 +0000)]
* environ.cc (enum settings): Add setbool.  Rename justset to setdword
to avoid future problems.
(struct parse_thing): Change all justset to setbool for bool variables.
(parse_options): Add a case for setbool setting for bool variables
since justset (now setdword) always writes a DWORD value, thus
potentially overwriting adjacent memory locations.
* external.cc (cygwin_internal): Drop extern declaration.

12 years ago * environ.cc (dos_file_warning): Drop declaration.
Corinna Vinschen [Sun, 26 Feb 2012 14:01:32 +0000 (14:01 +0000)]
* environ.cc (dos_file_warning): Drop declaration.
(ignore_case_with_glob): Ditto.
(allow_winsymlinks): Ditto.
(reset_com): Move definition to globals.cc.
(struct parse_thing): Add "detect_bloda" option.
* fhandler_serial.cc (fhandler_serial::open): Drop (incorrect)
declaration of reset_com.
* globals.cc (ignore_case_with_glob): Move definition into C++-only
block.
(dos_file_warning): Define.
(allow_winsymlinks): Define.
(reset_com): Define.
(detect_bloda): Define.
* path.cc (dos_file_warning): Drop definition here.
(allow_winsymlinks): Drop definition here.

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