]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years agoMAINTAINERS: clarify policy with config/ (and other top level files)
Michael Frysinger [Sat, 12 May 2012 03:10:17 +0000 (03:10 +0000)]
MAINTAINERS: clarify policy with config/ (and other top level files)

Rather than copy & paste more text, just merge the existing config/
section with the existing intl/ section.  This ends up clarifying
the policy with that subdir (and top level files) that any commit
made to gcc's repo is allowed to be merged with the sourceware tree
without pre-approval.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago PR 13503
Nick Clifton [Fri, 11 May 2012 12:59:23 +0000 (12:59 +0000)]
PR 13503
* reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenrate.
* elf32-avr.c (elf_avr_howto_table): Add entries for
R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
(avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
R_AVR_8_HHI8.

* config/tc-avr.c (exp_mod_pm): Remove variable.
(exp_mod_data_t): New typedef.
(pexp_mod_data, exp_mod_data): New variables.
(avr_parse_cons_expression): Scan through exp_mod_data[] to find
data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
(avr_cons_fix_new): Handle new data expression modifiers shipped
in pexp_mod_data.
(md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
BFD_RELOC_AVR_8_HHI.

* elf/avr.h (RELOC_NUMBERS): Add values for R_AVR_8_LO8,
R_AVR_8_HI8, R_AVR_8_HHI8.

12 years ago PR bootstrap/50461
Nick Clifton [Thu, 10 May 2012 13:42:03 +0000 (13:42 +0000)]
PR bootstrap/50461
* configure.ac (mpfr-dir): When using in-tree MPFR sources
allow for the fact that from release v3.1.0 of MPFR the source
files were moved into a src sub-directory.
* configure: Regenerate.

12 years ago*** empty log message ***
Corinna Vinschen [Thu, 10 May 2012 08:37:56 +0000 (08:37 +0000)]
*** empty log message ***

12 years ago * new-features.sgml (ov-new1.7.16): Document memrchr.
Corinna Vinschen [Thu, 10 May 2012 08:36:44 +0000 (08:36 +0000)]
* new-features.sgml (ov-new1.7.16): Document memrchr.

12 years ago * cygwin.din (memrchr): Export.
Corinna Vinschen [Thu, 10 May 2012 08:35:22 +0000 (08:35 +0000)]
* cygwin.din (memrchr): Export.
* posix.sgml (std-gnu): Add memrchr.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

12 years ago * libc/include/string.h (memrchr): Declare.
Corinna Vinschen [Thu, 10 May 2012 08:34:08 +0000 (08:34 +0000)]
* libc/include/string.h (memrchr): Declare.
* libc/string/Makefile.am (ELIX_4_SOURCES): Add memrchr.c.
(CHEWOUT_FILES): Add memrchr.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/memrchr.c: New file.

12 years ago * libc/sys/rtems/machine/_types.h: Add Microblaze.
Corinna Vinschen [Thu, 10 May 2012 06:59:58 +0000 (06:59 +0000)]
* libc/sys/rtems/machine/_types.h: Add Microblaze.

12 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 16.
Corinna Vinschen [Thu, 10 May 2012 06:51:40 +0000 (06:51 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 16.

12 years ago * libc/sys/rtems/crt0.c: Add stubs for access(), ftruncate(),
Corinna Vinschen [Wed, 9 May 2012 09:03:06 +0000 (09:03 +0000)]
* libc/sys/rtems/crt0.c: Add stubs for access(), ftruncate(),
_getpid_r(), geteuid(), getgid, _getgid_r, getpid(), getppid(),
and _getpid_r().

12 years ago * new-features.sgml (ov-new1.7.15): Fix XML syntax.
Yaakov Selkowitz [Wed, 9 May 2012 07:32:48 +0000 (07:32 +0000)]
* new-features.sgml (ov-new1.7.15): Fix XML syntax.

12 years agoAdd url for reported mailing list problem
Christopher Faylor [Tue, 8 May 2012 22:38:42 +0000 (22:38 +0000)]
Add url for reported mailing list problem

12 years agoRemove references to nonexistent files.
Keith Marshall [Tue, 8 May 2012 19:41:12 +0000 (19:41 +0000)]
Remove references to nonexistent files.

12 years ago* DevNotes: Add entry cgf-000004.
Christopher Faylor [Tue, 8 May 2012 15:06:43 +0000 (15:06 +0000)]
* DevNotes: Add entry cgf-000004.
* pinfo.cc (pinfo::init): Reuse shared memory if the state is marked with
PID_REAPED.
* spawn.cc (child_info_spawn::worker): Don't duplicate myself_pinfo into
non-cygwin child.
* fork.cc (frok::parent): Improve error output.

12 years agoAdd additional observation to cgf-000003
Christopher Faylor [Mon, 7 May 2012 15:28:40 +0000 (15:28 +0000)]
Add additional observation to cgf-000003

12 years ago* DevNotes: Add entry cgf-000003.
Christopher Faylor [Mon, 7 May 2012 15:05:56 +0000 (15:05 +0000)]
* DevNotes: Add entry cgf-000003.
* cygheap.h (init_cygheap::pid_handle): Delete.
* dcrt0.cc (child_info_spawn::handle_spawn): Keep parent open if we have
execed.
* pinfo.cc (pinfo::thisproc): Remove pid_handle manipulations.
(pinfo::init): Don't consider a reaped process to be available.
* spawn.cc (child_info_spawn::worker): Remove pid_handle manipulations.  Make
wr_proc_pipe and parent noninheritable when starting a program which doesn't
use the Cygwin DLL.  Conditionally reset wr_proc_pipe to inheritable if
CreateProcess fails.  Inject wr_proc_pipe handle into non-Cygwin process.
Consider a non-cygwin process to be 'synced'.

12 years ago* new-features.sgml (ov-new1.7.15): Fix tag.
Christopher Faylor [Mon, 7 May 2012 14:40:20 +0000 (14:40 +0000)]
* new-features.sgml (ov-new1.7.15): Fix tag.

12 years ago* cygwinenv.sgml: Add pipe_byte description.
Christopher Faylor [Sun, 6 May 2012 18:59:46 +0000 (18:59 +0000)]
* cygwinenv.sgml: Add pipe_byte description.
* new-features.sgml (ov-new1.7.15): Add new pipe_byte description for 1.7.15.

12 years ago*** empty log message ***
Corinna Vinschen [Sun, 6 May 2012 08:13:58 +0000 (08:13 +0000)]
*** empty log message ***

12 years ago * mkpasswd.c (current_user): Actually *use* $HOME if it's available.
Corinna Vinschen [Sat, 5 May 2012 08:55:17 +0000 (08:55 +0000)]
* mkpasswd.c (current_user): Actually *use* $HOME if it's available.
Add comment to explain what we're doing here.

12 years ago* DevNotes: Add entry cgf-000002.
Christopher Faylor [Fri, 4 May 2012 03:00:43 +0000 (03:00 +0000)]
* DevNotes: Add entry cgf-000002.
* fhandler_tty.cc (bytes_available): Revert to previous Oct-2011 behavior where
a dummy buffer is used to determine how many bytes will be read.
(fhandler_pty_master::ioctl): Correct coercion in assignment.

12 years agoAdd support for Motorola XGATE embedded CPU
Nick Clifton [Thu, 3 May 2012 13:12:06 +0000 (13:12 +0000)]
Add support for Motorola XGATE embedded CPU

12 years ago * net.cc (get_adapters_addresses): Only create thread on affected
Corinna Vinschen [Thu, 3 May 2012 08:34:44 +0000 (08:34 +0000)]
* net.cc (get_adapters_addresses): Only create thread on affected
systems.  Change comment acordingly.
* wincap.h (wincaps::has_gaa_largeaddress_bug): New element.
* wincap.cc: Implement above element throughout.
(wincap_8): New globale wincaps to support Windows 8.
(wincapc::init): Take Windows 8 into account.  Set new
has_gaa_largeaddress_bug member to false on 32 bit systems.

12 years ago * testsuite/newlib.string/strcmp-1.c (LONG_TEST): New macro.
Corinna Vinschen [Thu, 3 May 2012 08:13:17 +0000 (08:13 +0000)]
* testsuite/newlib.string/strcmp-1.c (LONG_TEST): New macro.
(MAX_BLOCK_SIZE): Use small value when LONG_TEST is not set.
(MAX_DIFF, MAX_LEN, MAX_ZEROS) Likewise.

12 years ago * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF.
Roland McGrath [Wed, 2 May 2012 21:37:22 +0000 (21:37 +0000)]
* configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF.
* configure: Regenerate.

gold/
* nacl.cc: New file.
* nacl.h: New file.
* Makefile.am (CCFILES, HFILES): Add them.
* Makefile.in: Regenerate.
* i386.cc (Output_data_plt_i386_nacl): New class.
(Output_data_plt_i386_nacl_exec): New class.
(Output_data_plt_i386_nacl_dyn): New class.
(Target_i386_nacl): New class.
(Target_selector_i386_nacl): New class.
(target_selector_i386): Use it instead of Target_selector_i386.
* x86_64.cc (Output_data_plt_x86_64_nacl): New class.
(Target_x86_64_nacl): New class.
(Target_selector_x86_64_nacl): New class.
(target_selector_x86_64, target_selector_x32): Use it instead of
Target_selector_x86_64.
* arm.cc (Output_data_plt_arm_nacl): New class.
(Target_arm_nacl): New class.
(Target_selector_arm_nacl): New class.
(target_selector_arm, target_selector_armbe): Use it instead of
Target_selector_arm.

* target-select.cc (select_target): Take new Input_file* and off_t
arguments, pass them on to recognize method of selector.
* object.cc (make_elf_sized_object): Update caller.
* parameters.cc (parameters_force_valid_target): Likewise.
* incremental.cc (make_sized_incremental_binary): Likewise.
* target-select.h: Update decl.
(Target_selector::recognize): Take new Input_file* argument,
pass it on to do_recognize.
(Target_selector::do_recognize): Take new Input_file* argument.
* freebsd.h (Target_selector_freebsd::do_recognize): Likewise.
* powerpc.cc (Target_selector_powerpc::do_recognize): Likewise.
* sparc.cc (Target_selector_sparc::do_recognize): Likewise.
* testsuite/testfile.cc (Target_selector::do_recognize): Likewise.

* target.h (Target::Target_info): New members isolate_execinstr
and rosegment_gap.
(Target::isolate_execinstr, Target::rosegment_gap): New methods.
* arm.cc (Target_arm::arm_info): Update initializer.
* i386.cc (Target_i386::i386_info): Likewise.
* powerpc.cc (Target_powerpc::powerpc_info): Likewise.
* sparc.cc (Target_sparc::sparc_info): Likewise.
* x86_64.cc (Target_x86_64::x86_64_info): Likewise.
* testsuite/testfile.cc (Target_test::test_target_info): Likewise.
* layout.cc (Layout::attach_allocated_section_to_segment):
Take new const Target* argument.  If target->isolate_execinstr(), act
like --rosegment.
(Layout::find_first_load_seg): Take new const Target* argument;
if target->isolate_execinstr(), reject PF_X segments.
(Layout::relaxation_loop_body): Update caller.
(Layout::set_segment_offsets): If target->isolate_execinstr(),
reset file offset to zero when we hit LOAD_SEG, and then do a second
loop over the segments before LOAD_SEG to reassign offsets after
addresses have been determined.  Handle target->rosegment_gap().
(Layout::attach_section_to_segment): Take new const Target* argument;
pass it to attach_allocated_section_to_segment.
(Layout::make_output_section): Update caller.
(Layout::attach_sections_to_segments): Take new const Target* argument;
pass it to attach_section_to_segment.
* gold.cc (queue_middle_tasks): Update caller.
* layout.h (Layout): Update method decls with new arguments.

* arm.cc (Target_arm::Target_arm): Take optional argument for the
Target_info pointer to use.
(Target_arm::do_make_data_plt): New virtual method.
(Target_arm::make_data_plt): New method that calls it.
(Target_arm::make_plt_entry): Use it.
(Output_data_plt_arm::Output_data_plt_arm): Take additional argument
for the section alignment.
(Output_data_plt_arm::do_first_plt_entry_offset): New abstract virtual
method.
(Output_data_plt_arm::first_plt_entry_offset): Call it.
(Output_data_plt_arm::do_get_plt_entry_size): New abstract virtual
method.
(Output_data_plt_arm::get_plt_entry_size): Call it.
(Output_data_plt_arm::do_fill_plt_entry): New abstract virtual method.
(Output_data_plt_arm::fill_plt_entry): New method that calls it.
(Output_data_plt_arm::do_fill_first_plt_entry): New abstract virtual
method.
(Output_data_plt_arm::fill_first_plt_entry): New method that calls it.
(Output_data_plt_arm::set_final_data_size): Use get_plt_entry_size
method instead of sizeof(plt_entry).
(Output_data_plt_arm::add_entry): Likewise.
Use first_plt_entry_offset method instead of sizeof(first_plt_entry).
(Target_arm::first_plt_entry_offset): Call method on this->plt_ rather
than static method.
(Target_arm::plt_entry_size): Likewise.
(Output_data_plt_arm::first_plt_entry, Output_data_plt_arm::plt_entry):
Move to ...
(Output_data_plt_arm_standard): ... here, new class.
(Output_data_plt_arm::do_write): Move guts of PLT filling to...
(Output_data_plt_arm_standard::do_fill_first_plt_entry): ... here ...
(Output_data_plt_arm_standard::do_fill_plt_entry): ... and here.

* x86_64.cc (Output_data_plt_x86_64::Output_data_plt_x86_64):
Take additional argument for the PLT entry size.
(Output_data_plt_x86_64::get_tlsdesc_plt_offset):
Use get_plt_entry_size method rather than plt_entry_size variable.
(Output_data_plt_x86_64::reserve_slot): Likewise.
(Output_data_plt_x86_64::do_adjust_output_section): Likewise.
(Output_data_plt_x86_64::add_entry): Likewise.
(Output_data_plt_x86_64::add_local_ifunc_entry): Likewise.
(Output_data_plt_x86_64::address_for_global): Likewise.
(Output_data_plt_x86_64::address_for_local): Likewise.
(Output_data_plt_x86_64::set_final_data_size): Likewise.
(Output_data_plt_x86_64::first_plt_entry_offset): Likewise.
Make method non-static.
(Output_data_plt_x86_64::do_get_plt_entry_size): New abstract virtual
method.
(Output_data_plt_x86_64::get_plt_entry_size): Just call that.
(Output_data_plt_x86_64::do_add_eh_frame): New abstract virtual method.
(Output_data_plt_x86_64::add_eh_frame): New method to call it.
(Output_data_plt_x86_64::do_fill_first_plt_entry): New abstract
virtual method.
(Output_data_plt_x86_64::fill_first_plt_entry): New method to call it.
(Output_data_plt_x86_64::do_fill_plt_entry): New abstract
virtual method.
(Output_data_plt_x86_64::fill_plt_entry): New method to call it.
(Output_data_plt_x86_64::do_fill_tlsdesc_entry): New abstract
virtual method.
(Output_data_plt_x86_64::fill_tlsdesc_entry): New method to call it.
(Output_data_plt_x86_64::plt_entry_size)
(Output_data_plt_x86_64::first_plt_entry)
(Output_data_plt_x86_64::plt_entry)
(Output_data_plt_x86_64::tlsdesc_plt_entry)
(Output_data_plt_x86_64::plt_eh_frame_fde_size)
(Output_data_plt_x86_64::plt_eh_frame_fde): Move to ...
(Output_data_plt_x86_64_standard): ... here, new class.
(Target_x86_64::Target_x86_64): Take optional argument for the
Target_info pointer to use.
(Target_x86_64::do_make_data_plt): New virtual method.
(Target_x86_64::make_data_plt): New method to call it.
(Target_x86_64::init_got_plt_for_update): Use that.
Call this->plt_->add_eh_frame method here.
(Output_data_plt_x86_64::init): Don't do add_eh_frame_for_plt here.
(Target_x86_64::first_plt_entry_offset): Call method on this->plt_
rather than static method.
(Target_x86_64::plt_entry_size): Likewise.
(Output_data_plt_x86_64::do_write): Use get_plt_entry_size method
rather than plt_entry_size variable.  Move guts of PLT filling to...
(Output_data_plt_x86_64_standard::do_fill_first_plt_entry): ... here ...
(Output_data_plt_x86_64_standard::do_fill_plt_entry): ... and here ...
(Output_data_plt_x86_64_standard::do_fill_tlsdesc_entry): ... and here.

* i386.cc (Output_data_plt_i386::Output_data_plt_i386): Take
additional argument for the section alignment.
Don't do add_eh_frame_for_plt here.
(Output_data_plt_i386::first_plt_entry_offset): Make the method
non-static.  Use get_plt_entry_size method rather than plt_entry_size
variable.
(Output_data_plt_i386::do_get_plt_entry_size): New abstract virtual
method.
(Output_data_plt_i386::get_plt_entry_size): Call it.
(Output_data_plt_i386::do_add_eh_frame): New abstract virtual method.
(Output_data_plt_i386::add_eh_frame): New method to call it.
(Output_data_plt_i386::do_fill_first_plt_entry): New abstract virtual
method.
(Output_data_plt_i386::fill_first_plt_entry): New method to call it.
(Output_data_plt_i386::do_fill_plt_entry): New abstract virtual
method.
(Output_data_plt_i386::fill_plt_entry): New method to call it.
(Output_data_plt_i386::set_final_data_size): Use get_plt_entry_size
method instead of plt_entry_size.
(Output_data_plt_i386::plt_entry_size)
(Output_data_plt_i386::plt_eh_frame_fde_size)
(Output_data_plt_i386::plt_eh_frame_fde): Move to ...
(Output_data_plt_i386_standard): ... here, new class.
(Output_data_plt_i386_exec): New class.
(Output_data_plt_i386::exec_first_plt_entry): Move to ...
(Output_data_plt_i386_exec::first_plt_entry): ... here.
(Output_data_plt_i386::exec_plt_entry): Move to ...
(Output_data_plt_i386_exec::plt_entry): ... here.
(Output_data_plt_i386_dyn): New class.
(Output_data_plt_i386::first_plt_entry): Move to ...
(Output_data_plt_i386_dyn::first_plt_entry): ... here.
(Output_data_plt_i386::dyn_plt_entry): Move to ...
(Output_data_plt_i386_dyn::plt_entry): ... here.
(Target_i386::Target_i386): Take optional argument for the Target_info
pointer to use.
(Target_i386::do_make_data_plt): New virtual method.
(Target_i386::make_data_plt): New method to call it.
(Target_i386::make_plt_section): Use that.
Call this->plt_->add_eh_frame method here.
(Output_data_plt_i386::add_entry): Use get_plt_entry_size method
rather than plt_entry_size variable.
(Output_data_plt_i386::add_local_ifunc_entry): Likewise.
(Output_data_plt_i386::address_for_local): Likewise.
(Output_data_plt_i386::do_write): Likewise.
Move guts of PLT filling to...
(Output_data_plt_i386_exec::do_fill_first_plt_entry): ... here ...
(Output_data_plt_i386_exec::do_fill_plt_entry): ... and here ...
(Output_data_plt_i386_dyn::do_fill_first_plt_entry): ... and here ...
(Output_data_plt_i386_dyn::do_fill_plt_entry): ... and here.

Change-Id: Id24b95600489835ff5e860a39c147203d4380c2b

12 years agoReflect ChangeNotes -> DevNotes
Christopher Faylor [Wed, 2 May 2012 20:39:31 +0000 (20:39 +0000)]
Reflect ChangeNotes -> DevNotes

12 years agoinclude/
Cary Coutant [Wed, 2 May 2012 18:33:43 +0000 (18:33 +0000)]
include/

* dwarf2.def: Remove DW_FORM_GNU_ref_index,
replace DW_AT_GNU_ref_base with DW_AT_GNU_ranges_base.

12 years ago.
Christopher Faylor [Wed, 2 May 2012 16:48:13 +0000 (16:48 +0000)]
.

12 years ago* ChangeNotes: New file. Add entry cgf-000001.
Christopher Faylor [Wed, 2 May 2012 16:39:39 +0000 (16:39 +0000)]
* ChangeNotes: New file.  Add entry cgf-000001.
* sigproc.cc (proc_terminate): Don't set parent pid of child to 1 if we've
execed since the execed process is still considered the parent.
* child_info.h: Bump copyright.

12 years ago * arm/redboot-crt0.S (__change_mode): Replace mov with movs.
Corinna Vinschen [Wed, 2 May 2012 08:09:45 +0000 (08:09 +0000)]
* arm/redboot-crt0.S (__change_mode): Replace mov with movs.

12 years ago * fenv.cc (fesetround): Fix test for valid input parameter.
Corinna Vinschen [Wed, 2 May 2012 07:42:08 +0000 (07:42 +0000)]
* fenv.cc (fesetround): Fix test for valid input parameter.
(fesetprec): Ditto.

12 years ago* fhandler.h (PIPE_ADD_PID): Define new flag.
Christopher Faylor [Mon, 30 Apr 2012 15:38:45 +0000 (15:38 +0000)]
* fhandler.h (PIPE_ADD_PID): Define new flag.
* pipe.cc (fhandler_pipe::create): Don't indiscriminately add process id to
every pipe since some pipe names (fifo, tty) don't need it.
* sigproc.cc (sigproc_init): Pass PIPE_ADD_PID to fhandler_pipe::create to
ensure that pid is always part of sigwait pipe name.

12 years ago2012-04-29 Jan Ringos <tringi@users.sf.net>
Chris Sutcliffe [Mon, 30 Apr 2012 00:44:48 +0000 (00:44 +0000)]
2012-04-29  Jan Ringos  <tringi@users.sf.net>

        * include/winbase.h (GetModuleHandleEx[A/W]): Correct version guard.

12 years ago2012-04-28 LRN <l_r_nightmare@users.sf.net>
Chris Sutcliffe [Sun, 29 Apr 2012 02:43:40 +0000 (02:43 +0000)]
2012-04-28  LRN  <l_r_nightmare@users.sf.net>

        * include/shobjidl.h: New file.
        * lib/shobjidl-uuid.c: New file.
        * lib/Makefile.in: Reference shobjidl-uuid.c.

12 years ago * dwarf2.def (DW_OP): Add DW_OP_GNU_addr_index.
Doug Evans [Sat, 28 Apr 2012 21:41:06 +0000 (21:41 +0000)]
* dwarf2.def (DW_OP): Add DW_OP_GNU_addr_index.

12 years ago* environ.cc (struct parse_thing): Add temporary (?) "pipe_byte" option.
Christopher Faylor [Sat, 28 Apr 2012 19:49:58 +0000 (19:49 +0000)]
* environ.cc (struct parse_thing): Add temporary (?) "pipe_byte" option.
* globals.cc (pipe_byte): Declare.
* pipe.cc (fhandler_pipe::create): Use current process id in pipe name rather
than pid for simple name collision avoidance.  Do this only once to avoid extra
overhead when a busy pipe is found.  Honor pipe_byte to create non-message
pipes if set.
* sigproc.cc (sigproc_init): Use a specific name for the signal pipe.

12 years agomerge from gcc
DJ Delorie [Fri, 27 Apr 2012 18:03:18 +0000 (18:03 +0000)]
merge from gcc

12 years agoAdd support for SPARC T4 crypto instructions.
David S. Miller [Fri, 27 Apr 2012 18:02:35 +0000 (18:02 +0000)]
Add support for SPARC T4 crypto instructions.

include/opcode/

* sparc.h: Document new arg code' )' for crypto RS3
immediates.

opcodes/

* sparc-dis.c (print_insn_sparc): Handle ')'.
* sparc-opc.c (sparc_opcodes): Add crypto instructions.

gas/

* config/tc-sparc.c (sparc_ip): Likewise.  Accept instruction
names containing "_".
(sparc_arch_table): Add sparc4, v8pluse, and v9e.  Add crypto
hwcap masks to v8plusv and v9v.

gas/testsuite/

* gas/sparc/crypto.s: New file.
* gas/sparc/crypto.d: New file.
* gas/sparc/sparc.exp: Run crypto test.

12 years agoMove sparc opcode hwcaps out of sparc_opcode flags field.
David S. Miller [Fri, 27 Apr 2012 18:01:35 +0000 (18:01 +0000)]
Move sparc opcode hwcaps out of sparc_opcode flags field.

include/opcode/

* sparc.h (struct sparc_opcode): New field 'hwcaps'.
F_MUL32, F_DIV32, F_FDMULD, F_V8PLUS, F_POPC, F_VIS, F_VIS2,
F_ASI_BLK_INIT, F_FMAF, F_VIS3, F_HPC, F_RANDOM, F_TRANS,
F_FJFMAU, F_IMA, F_ASI_CACHE_SPARING, F_HWCAP_MASK): Delete.
(HWCAP_MUL32, HWCAP_DIV32, HWCAP_FSMULD, HWCAP_V8PLUS, HWCAP_POPC,
HWCAP_VIS, HWCAP_VIS2, HWCAP_ASI_BLK_INIT, HWCAP_FMAF,
HWCAP_VIS3, HWCAP_HPC, HWCAP_RANDOM, HWCAP_TRANS, HWCAP_FJFMAU,
HWCAP_IMA, HWCAP_ASI_CACHE_SPARING, HWCAP_AES, HWCAP_DES,
HWCAP_KASUMI, HWCAP_CAMELLIA, HWCAP_MD5, HWCAP_SHA1,
HWCAP_SHA256, HWCAP_SHA512, HWCAP_MPMUL, HWCAP_MONT, HWCAP_PAUSE,
HWCAP_CBCOND, HWCAP_CRC32): New defines.

opcodes/

* sparc-opc.c (sparc_opcodes): Rework table to put HWCAP values
into new struct sparc_opcode 'hwcaps' field instead of 'flags'.

gas/

* config/tc-sparc.c (sparc_arch_table): Rework to use HWCAP_*
masks.
(sparc_md_end): No longer need to translate hwcap_seen values into
ELF hwcap bits, they now match exactly.
(get_hwcap_name): Use HWCAP_* and handle new values.
(sparc_ip): Fetch hwcaps from insn->hwcaps instead of insn->flags.

12 years agoAdd new ELF_SPARC_HWCAP_* defines for features found on SPARC-T4.
David S. Miller [Fri, 27 Apr 2012 18:00:52 +0000 (18:00 +0000)]
Add new ELF_SPARC_HWCAP_* defines for features found on SPARC-T4.

include/elf/

* sparc.h: Add new ELF_SPARC_HWCAP_* defines for crypto,
pause, and compare-and-branch instructions.

12 years ago * path.cc (find_fast_cwd_pointer): Fix for W8 CP 32 bit.
Corinna Vinschen [Fri, 27 Apr 2012 12:07:15 +0000 (12:07 +0000)]
* path.cc (find_fast_cwd_pointer): Fix for W8 CP 32 bit.

12 years agoUpdate config.sub to 2012-04-18 version.
Joel Brobecker [Wed, 25 Apr 2012 15:53:25 +0000 (15:53 +0000)]
Update config.sub to 2012-04-18 version.

ChangeLog:

        * config.sub: Update to 2012-04-18 version from official repo.

12 years ago * new-features.sgml (ov-new1.7.14): Add mouse reporting mode 1005.
Corinna Vinschen [Wed, 25 Apr 2012 07:34:34 +0000 (07:34 +0000)]
* new-features.sgml (ov-new1.7.14): Add mouse reporting mode 1005.

12 years ago*** empty log message ***
Corinna Vinschen [Wed, 25 Apr 2012 07:33:03 +0000 (07:33 +0000)]
*** empty log message ***

12 years ago * fhandler.h (class dev_console): Add member ext_mouse_mode5.
Corinna Vinschen [Wed, 25 Apr 2012 07:25:00 +0000 (07:25 +0000)]
* fhandler.h (class dev_console): Add member ext_mouse_mode5.
* fhandler_console.cc (fhandler_console::read): Implement extended
mouse mode 1005 (xterm, mintty).
Fix actual mouse reporting for large coordinates.

12 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 15.
Corinna Vinschen [Tue, 24 Apr 2012 16:05:20 +0000 (16:05 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 15.

12 years ago * new-features.sgml (ov-new1.7.14): New section. Add new console mouse
Corinna Vinschen [Tue, 24 Apr 2012 14:42:51 +0000 (14:42 +0000)]
* new-features.sgml (ov-new1.7.14): New section.  Add new console mouse
reporting modes.

12 years ago * fhandler_console.cc (ALT_PRESSED): Define earlier, never undefine.
Corinna Vinschen [Tue, 24 Apr 2012 14:39:22 +0000 (14:39 +0000)]
* fhandler_console.cc (ALT_PRESSED): Define earlier, never undefine.
(CTRL_PRESSED): Ditto.
(fhandler_console::read): Simplify expressions testing for pressed ALT
or CTRL modifier keys.
(get_nonascii_key): Ditto.

12 years ago*** empty log message ***
Corinna Vinschen [Tue, 24 Apr 2012 14:31:35 +0000 (14:31 +0000)]
*** empty log message ***

12 years ago * fhandler.h (class dev_console): Add members ext_mouse_mode6 and
Corinna Vinschen [Tue, 24 Apr 2012 14:29:37 +0000 (14:29 +0000)]
* fhandler.h (class dev_console): Add members ext_mouse_mode6 and
ext_mouse_mode15.
* fhandler_console.cc (fhandler_console::read): Implement extended
mouse modes 1015 (urxvt, mintty, xterm) and 1006 (xterm).  Recognize,
but don't implement extended mouse mode 1005 (xterm, mintty).
Support mouse coordinates greater than 222 (each axis).  Fix formatting.
(fhandler_console::char_command): Initialize enhanced mouse reporting
modes.

12 years ago * configure: Regenerate.
Yaakov Selkowitz [Tue, 24 Apr 2012 08:55:41 +0000 (08:55 +0000)]
* configure: Regenerate.

12 years ago * faq-using.xml (faq.using.emacs, faq.using.xemacs): Change links
Yaakov Selkowitz [Mon, 23 Apr 2012 22:10:37 +0000 (22:10 +0000)]
* faq-using.xml (faq.using.emacs, faq.using.xemacs): Change links
from http://cygwin.com/xfree to http://x.cygwin.com.

12 years ago * faq-programming.xml (faq.programming.objective-c): Update for gcc4.
Yaakov Selkowitz [Mon, 23 Apr 2012 21:46:46 +0000 (21:46 +0000)]
* faq-programming.xml (faq.programming.objective-c): Update for gcc4.
(faq.programming.win32-api): -mwindows does include -lcomdlg32.
(faq.programming.win32-no-cygwin): Update for removal of -mno-cygwin.
* overview2.sgml (ov-ex-win): Ditto.

12 years agoadd in preparation for release
Christopher Faylor [Mon, 23 Apr 2012 15:18:54 +0000 (15:18 +0000)]
add in preparation for release

12 years ago* dtable.cc (fh_alloc): Only disallow opening of nonexistent on-disk device.
Christopher Faylor [Sat, 21 Apr 2012 19:52:11 +0000 (19:52 +0000)]
* dtable.cc (fh_alloc): Only disallow opening of nonexistent on-disk device.
* path.cc (path_conv::check): Remove PATH_KEPT_HANDLE setting.
* path.h (path_types): Remove PATH_KEPT_HANDLE.
(path_conv::kept_handle): Delete now-unneeded function.

12 years ago* dtable.cc (fh_alloc): Keep fh which was flagged as error if it is for an
Christopher Faylor [Thu, 19 Apr 2012 17:21:32 +0000 (17:21 +0000)]
* dtable.cc (fh_alloc): Keep fh which was flagged as error if it is for an
on-disk device and we were stating it.
* path.cc (path_conv::check): Set PATH_KEPT_HANDLE.
* path.h (path_types): Add PATH_KEPT_HANDLE.
(path_conv::kept_handle): Implement.

12 years ago* fhandler.h (fhandler_base::nohandle): Revert to standard implementation.
Christopher Faylor [Wed, 18 Apr 2012 05:57:38 +0000 (05:57 +0000)]
* fhandler.h (fhandler_base::nohandle): Revert to standard implementation.
* dtable.cc (dtable::fixup_after_exec): Specifically reject releasing
nohandle() type fhandlers rather than relying on contents of io_handle.
(dtable::fixup_after_fork): Ditto.
* fhandler_termios.cc: Add includes necessary for definitions of have_execed
and have_execed_cygwin.
(fhandler_termios::sigflush): Don't flush console input when we've started a
non-Cygwin process.

12 years agoreformat
Christopher Faylor [Sun, 15 Apr 2012 17:56:50 +0000 (17:56 +0000)]
reformat

12 years agowincap.h: Rename assitant to assistant throughout. wincap.cc: Ditto.
Christopher Faylor [Sun, 15 Apr 2012 17:51:22 +0000 (17:51 +0000)]
wincap.h: Rename assitant to assistant throughout.  wincap.cc: Ditto.
* devices.in (exists_console): Use fhandler_console::exists () rather than raw
test.
* devices.cc: Regenerate.
* fhandler.h (fhandler_console::exists): Define new function.
* fhandler_console.cc (fhandler_console::need_invisible): Use
fhandler_console::exists () rather than raw test.
* spawn.cc: Rename assitant to assistant throughout.
(child_info_spawn::worker): Simplify test for when to start a non-Cygwin
process in its own process group.  Just do it whenever we start a non-Cygwin
process.

12 years agoclarify latest entry
Christopher Faylor [Fri, 13 Apr 2012 05:05:42 +0000 (05:05 +0000)]
clarify latest entry

12 years ago* devices.in (exists_console): Allow /dev/con{sole,in,out} to be referenced
Christopher Faylor [Fri, 13 Apr 2012 02:30:51 +0000 (02:30 +0000)]
* devices.in (exists_console): Allow /dev/con{sole,in,out} to be referenced
they exist.
* devices.cc: Regenerate.
* fhandler_console.cc (fhandler_console::set_unit): Ditto.

12 years agoSupport R_SPARC_WDISP10 and R_SPARC_H34.
David S. Miller [Thu, 12 Apr 2012 16:26:04 +0000 (16:26 +0000)]
Support R_SPARC_WDISP10 and R_SPARC_H34.

include/

* elf/sparc.h (R_SPARC_WDISP10): New reloc.
* opcode/sparc.h: Define '=' as generating R_SPARC_WDISP10.

opcodes/

* sparc-dis.c (X_DISP10): Define.
(print_insn_sparc): Handle '='.

bfd/

* reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
* libbfd.h: Regenerate.
* bfd-in2.h: Likewise.
* elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
(_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
(_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
(_bfd_sparc_elf_check_relocs): Likewise.
(_bfd_sparc_elf_gc_sweep_hook): Likewise.
(_bfd_sparc_elf_relocate_section): Likewise.

gas/

* config/tc-sparc.c (sparc_ip): Handle '=', "%h34", "%l34", and
BFD_RELOC_SPARC_H34.
(md_apply_fix): Handle BFD_RELOC_SPARC_WDISP10 and BFD_RELOC_SPARC_H34.
(tc_gen_reloc): Likewise.

gas/testsuite/

* gas/sparc/reloc64.s: Add abs34 code model tests.
* gas/sparc/reloc64.d: Update.

elfcpp/

* sparc.h (R_SPARC_WDISP10): New relocation.

gold/

* sparc.cc (Reloc::wdisp10): New relocation method.
(Reloc::h34): Likewise.
(Target_sparc::Scan::check_non_pic): Handle R_SPARC_H34.
(Target_sparc::Scan::get_reference_flags): Handle R_SPARC_H34 and
R_SPARC_WDISP10.
(Target_sparc::Scan::local): Likewise.
(Target_sparc::Scan::global): Likewise.
(Target_sparc::Relocate::relocate): Likewise.

12 years ago * configure.ac (ia64*-*-*vms*): Add support for ld.
Nick Clifton [Thu, 12 Apr 2012 07:34:57 +0000 (07:34 +0000)]
* configure.ac (ia64*-*-*vms*): Add support for ld.
* configure: Regenerate.

* scripttempl/ia64vms.sc: New file.
* emultempl/vms.em (_before_parse): Support for ia64.
(elf64-ia64-vms): New fragment for ia64.
* emulparams/elf64_ia64_vms.sh: New file.
* configure.tgt (ia64-*-*vms*): Add.
* Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64_ia64_vms.c
(eelf64_ia64_vms.c): New rule.
* Makefile.in: Regenerate.

* elflink.c (elf_link_output_extsym): Add a guard.
(bfd_elf_final_link): Remove assertion.
(bfd_elf_final_link): Add a guard.
* elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
(elfNN_vms_section_from_shdr, elfNN_vms_object_p)
(elfNN_vms_post_process_headers, elfNN_vms_section_processing)
(elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
Remove.
(elfNN-ia64-vms target): Move to ...
* elf64-ia64-vms.c: New file.
* configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
* Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
(BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
* configure: Regenerate.
* Makefile.in: Regenerate.

12 years agogdb: add callback defines for new ARGV handling
Michael Frysinger [Thu, 12 Apr 2012 05:33:15 +0000 (05:33 +0000)]
gdb: add callback defines for new ARGV handling

The common sim code has slightly unfinished support for these already,
but even arch ports are unable to handle these if the common header does
not define them.  This is because the generated callback header includes
simple common gdb/sim headers only which causes it to skip the new ARGV
syscalls.  Plus, it isn't like providing these in the common header will
break any sim targets which don't want them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago * syscalls.cc (fhandler_base::stat_fixup): Fix inode numbers of
Corinna Vinschen [Wed, 11 Apr 2012 08:49:52 +0000 (08:49 +0000)]
* syscalls.cc (fhandler_base::stat_fixup): Fix inode numbers of
non-device files in virtual fileysystems.

12 years agomerge from gcc
DJ Delorie [Tue, 10 Apr 2012 17:07:28 +0000 (17:07 +0000)]
merge from gcc

12 years agobfd/
Roland McGrath [Mon, 9 Apr 2012 16:27:18 +0000 (16:27 +0000)]
bfd/
* elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
* elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
(nacl_modify_program_headers): Likewise.

include/
* bfdlink.h (struct bfd_link_info): Add new member user_phdrs.

12 years ago* dtable.cc (cygwin_attach_handle_to_fd): Defend against NULL return from
Christopher Faylor [Sat, 7 Apr 2012 17:32:44 +0000 (17:32 +0000)]
* dtable.cc (cygwin_attach_handle_to_fd): Defend against NULL return from
build_fh_*.
(dtable::init_std_file_from_handle): Ditto.
* mmap.cc (mmap_record::alloc_fh): Ditto.
* path.cc (path_conv::check): Ditto.

12 years ago* fhandler.h (fhandler_base::nohandle): Implement "by hand" rather than through
Christopher Faylor [Fri, 6 Apr 2012 19:40:58 +0000 (19:40 +0000)]
* fhandler.h (fhandler_base::nohandle): Implement "by hand" rather than through
macro.  Set io_handle to INVALID_HANDLE_VALUE when setting flag to true.

12 years ago* path.c (path_conv::check): Avoid directly referencing fields of the dev
Christopher Faylor [Fri, 6 Apr 2012 04:40:49 +0000 (04:40 +0000)]
* path.c (path_conv::check): Avoid directly referencing fields of the dev
structure when it can be easily avoided.

12 years agoFix a couple of typos.
Christopher Faylor [Fri, 6 Apr 2012 04:36:22 +0000 (04:36 +0000)]
Fix a couple of typos.

12 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 14.
Corinna Vinschen [Thu, 5 Apr 2012 15:26:27 +0000 (15:26 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 14.

12 years ago * new-features.sgml (ov-new1.7.13): Add typeahead description.
Corinna Vinschen [Thu, 5 Apr 2012 15:04:24 +0000 (15:04 +0000)]
* new-features.sgml (ov-new1.7.13): Add typeahead description.

12 years agoAdd typeahead description.
Christopher Faylor [Thu, 5 Apr 2012 14:23:06 +0000 (14:23 +0000)]
Add typeahead description.

12 years ago * new-features.sgml (ov-new1.7.13): New section. Add entry for
Corinna Vinschen [Thu, 5 Apr 2012 13:41:49 +0000 (13:41 +0000)]
* new-features.sgml (ov-new1.7.13): New section.  Add entry for
mkpasswd/mkgroup change to print TrustedInstaller account.

12 years ago*** empty log message ***
Corinna Vinschen [Thu, 5 Apr 2012 13:39:59 +0000 (13:39 +0000)]
*** empty log message ***

12 years ago * mkgroup.c (print_special_by_sid): Rename from print_special. Change
Corinna Vinschen [Thu, 5 Apr 2012 13:37:32 +0000 (13:37 +0000)]
* mkgroup.c (print_special_by_sid): Rename from print_special.  Change
calls throughout.
(print_special_by_name): New function.
(main): Call print_special_by_name for TrustedInstaller account.
* mkpasswd.c (print_special_by_sid): Rename from print_special.  Change
calls throughout.
(print_special_by_name): New function.
(enum_std_accounts): Call print_special_by_name for TrustedInstaller
account.

12 years ago * passwd.cc (pwdgrp::read_passwd): Fix pretty_ls entry tyo contain
Corinna Vinschen [Thu, 5 Apr 2012 10:16:09 +0000 (10:16 +0000)]
* passwd.cc (pwdgrp::read_passwd): Fix pretty_ls entry tyo contain
the required number of colons.

12 years ago* fhandler.h (fhandler_pty_common::bytes_available): Declare new function.
Christopher Faylor [Thu, 5 Apr 2012 02:54:51 +0000 (02:54 +0000)]
* fhandler.h (fhandler_pty_common::bytes_available): Declare new function.
(fhandler_pty_master::flush_to_slave): Ditto.
* fhandler_tty.cc (bytes_available): Define new function.
(fhandler_pty_common::bytes_available): Ditto.
(handler_pty_master::flush_to_slave): Ditto.
(fhandler_pty_master::process_slave_output): Call flush_to_slave () here.  Use
bytes_available () rather than PeekNamedPipe.  Cleanup sloppy logic.
(fhandler_pty_slave::read): Use bytes_available () rather than PeekNamedPipe.
(fhandler_pty_slave::ioctl): Ditto.
(fhandler_pty_master::ioctl): Ditto.
(fhandler_pty_master::cleanup): Remove ancient #if 0.
* select.cc (peek_pipe): Call flush_to_slave whenever we're checking for a pty
master.

12 years ago * fhandler_nodevice.cc (fhandler_nodevice::open): Convert EROFS to
Corinna Vinschen [Wed, 4 Apr 2012 12:45:24 +0000 (12:45 +0000)]
* fhandler_nodevice.cc (fhandler_nodevice::open): Convert EROFS to
ENOENT if non-existent file got opened for reading only.  Explain why.
* path.cc (path_conv::check): Stick to ENOENT if file has been opened
for informational purposes only.  Add to comment.

12 years ago * path.cc (path_conv::check): Convert device type to FH_FS for
Corinna Vinschen [Wed, 4 Apr 2012 12:06:21 +0000 (12:06 +0000)]
* path.cc (path_conv::check): Convert device type to FH_FS for
non-existant files on /dev, unless /dev itself doesn't exist on disk.
Add comment to explain why.

12 years ago * hookapi.cc (rvadelta): Compute max_size using SizeOfRawData rather
Corinna Vinschen [Wed, 4 Apr 2012 11:09:44 +0000 (11:09 +0000)]
* hookapi.cc (rvadelta): Compute max_size using SizeOfRawData rather
than VirtualSize.

12 years ago * passwd.cc (_getpass_close_fd): New static pthread cleanup handler.
Corinna Vinschen [Wed, 4 Apr 2012 09:57:17 +0000 (09:57 +0000)]
* passwd.cc (_getpass_close_fd): New static pthread cleanup handler.
(getpass): Rework to use /dev/tty in the first place.  Install
_getpass_close_fd as pthread cleanup handler.  Flush prompt explicitely.
Lock input and switch off signal input handling when reading password.

12 years ago2012-04-03 Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Tue, 3 Apr 2012 19:16:10 +0000 (19:16 +0000)]
2012-04-03  Corinna Vinschen  <corinna@vinschen.de>

* new-features.sgml (ov-new1.7.12): Fix layout of flock example.

12 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 13.
Corinna Vinschen [Tue, 3 Apr 2012 14:54:17 +0000 (14:54 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 13.

12 years ago * syscalls.cc (fhandler_base::stat_fixup): Replace string comparison
Corinna Vinschen [Tue, 3 Apr 2012 07:28:48 +0000 (07:28 +0000)]
* syscalls.cc (fhandler_base::stat_fixup): Replace string comparison
with new device::is_dev_resident() call.

12 years ago* devices.h (lives_in_dev): New field.
Christopher Faylor [Mon, 2 Apr 2012 20:41:46 +0000 (20:41 +0000)]
* devices.h (lives_in_dev): New field.
(dev_on_fs): Set bit size.
(is_dev_resident): Define new method.
* devices.in: Use different method for labelling requested name for dev
storage: prefix it with a ='.  Use an actual ':' to denote an internal device.
(exists_console): Avoid repeated test.
(exists_ntdev_silent): Rename from the less-descriptive exists_ntdevs.
(dev_dev_storage): Delete unneeded define.
* gendevices: Add a flag to each line denoting whether the device lives in /dev
space.
(generate): Handle special ":" case here for internal devices.  Parse
=something_dev as requiring a storage location.  Tack the rest of the line back
onto the reformulated "$rest".
* devices.cc: Regenerate.

12 years ago * devices.h (device::get_device): New method.
Corinna Vinschen [Mon, 2 Apr 2012 19:25:58 +0000 (19:25 +0000)]
* devices.h (device::get_device): New method.
* fhandler_dev.cc (fhandler_dev::readdir): Set st_ino to device number.
* syscalls.cc (fhandler_base::stat_fixup): Ditto.  Fix link count for
CD-ROM devices.  Fix typo in comment.

12 years ago * fhandler.h (fhandler_base::stat_fixup): Rename from
Corinna Vinschen [Mon, 2 Apr 2012 16:19:29 +0000 (16:19 +0000)]
* fhandler.h (fhandler_base::stat_fixup): Rename from
fhandler_base::set_ino_and_dev.
* syscalls.cc (fhandler_base::stat_fixup): Ditto. Accommodate name
change throughout.  Fixup link count of console devices.

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.

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