]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
22 years agoRemove unneeded sync.h, where appropriate, throughout. Remove unneeded heap.h,
Christopher Faylor [Sat, 25 May 2002 02:22:50 +0000 (02:22 +0000)]
Remove unneeded sync.h, where appropriate, throughout.  Remove unneeded heap.h,
where appropriate, throughout.  Remove unneeded exceptions.h, where
appropriate, throughout.  Remove unneeded perprocess.h, where appropriate,
throughout.

22 years ago2002-05-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 24 May 2002 23:44:39 +0000 (23:44 +0000)]
2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/string.h: Add strnlen and strerror_r prototypes.
        * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
        * libc/string/Makefile.in: Regenerated.
        * libc/string/strerror_r.c: New file.
        * libc/string/strnlen.c: New file.
        * libc/sys/linux/Makefile.am: Add rename.c.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/rename.c: New file to override default rename.

22 years agoFix typos.
Christopher Faylor [Fri, 24 May 2002 21:11:43 +0000 (21:11 +0000)]
Fix typos.

22 years ago * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
Thomas Fitzsimmons [Fri, 24 May 2002 18:50:29 +0000 (18:50 +0000)]
* libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
* libc/sys/linux/sys/time.h: Add conversion macros.
* libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
* libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
* libc/sys/linux/gethostname.c: New file.
* libc/sys/linux/seteuid.c: New file.
* libc/sys/linux/sysctl.c: New file.

22 years ago * security.cc (create_token): Call __sec_user() instead of
Corinna Vinschen [Fri, 24 May 2002 14:44:05 +0000 (14:44 +0000)]
* security.cc (create_token): Call __sec_user() instead of
sec_user() to remove dependence on allow_ntsec. Verify that
the returned sd is non-null.

22 years ago * setfacl.c (usage): Standardize usage output. Change return type to
Corinna Vinschen [Fri, 24 May 2002 14:40:14 +0000 (14:40 +0000)]
    * setfacl.c (usage): Standardize usage output. Change return type to
        static void.
        (print_version): New function.
        (longopts): Added longopts for all options.
        (main): Accommodate changes in usage function and new version option.

22 years ago2002-05-25 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Fri, 24 May 2002 14:24:33 +0000 (14:24 +0000)]
2002-05-25  Robert Collins   <rbtcollins@hotmail.com>

        * gmon.c (fake_sbrk): Correctly return -1 on failed malloc's.

22 years ago* dtable.cc (dtable::build_fhandler_from_name): Just pass posix path along to
Christopher Faylor [Fri, 24 May 2002 05:44:10 +0000 (05:44 +0000)]
* dtable.cc (dtable::build_fhandler_from_name): Just pass posix path along to
set_name via return_and_clear_normalized_path.
(dtable::build_fhandler): New method with const char * argument.
(dtable::reset_unix_path_name): Eliminate.
(dtable::dup_worker): Use correct build_fhandler method.
* mmap.cc (mmap_record::alloc_fh): Ditto.
* dtable.h (dtable::build_fhandler): New method.
(dtable::reset_unix_path_name): Eliminate.
* fhandler.cc (fhandler_base::set_name): Assume that unix_name has already been
cmalloced.
(fhandler_base::reset_unix_path_name): Eliminate.
(fhandler_base::~fhandler_base): Coercion for cfree.
* fhandler.h (fhandler_base::unix_path_name): Make const char *.
(fhandler_base::win32_path_name): Ditto.
(fhandler_base::reset_unix_path_name): Eliminate.
* fhandler_disk_file.cc (fhandler_cygdrive::set_drives): Accommodate const char
*ness of win32_path_name.
* fhandler_socket.cc (fhandler_socket::fstat): Accommodate new set_name
requirements.
* path.cc (path_conv::return_and_clear_normalized_path): New method.
(path_conv::clear_normalized_path): Eliminate.
(path_conv::~path_conv): Ditto.
(path_conv::check): Accommodate new build_fhandler method.
* path.h (path_conv::~path_conv): Eliminate.
(path_conv::clear_normalized_path): Ditto.
(path_conv::return_and_clear_normalized_path): Declare new method.

22 years ago2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 24 May 2002 00:13:57 +0000 (00:13 +0000)]
2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/string/Makefile.am: Add support for strsep.c.
        * libc/string/Makefile.in: Regenerated.
        * libc/string/strsep.c: New file.
        * libc/string/strtok.c: Change to call __strtok_r service routine.
        * libc/string/strtok_r.c: Add __strtok_r routine which takes
        additional flag parameter regarding whether to skip leading delimeters.
        Change strtok_r to call __strtok_r.

22 years ago* sim-d10v.h: Delete file. Moved to include/gdb/.
Andrew Cagney [Fri, 24 May 2002 00:12:18 +0000 (00:12 +0000)]
* sim-d10v.h: Delete file.  Moved to include/gdb/.

* sim-d10v.h: New file.  Moved from include/sim-d10v.h.

* Makefile.in (INCLUDE): Add "gdb/sim-d10v.h".
* interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".

* d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
* Makefile.in (sim_d10v_h): Update definition.

22 years ago2002-05-23 Gareth Pearce <tilps@hotmail.com>
Jeff Johnston [Thu, 23 May 2002 22:05:54 +0000 (22:05 +0000)]
2002-05-23  Gareth Pearce  <tilps@hotmail.com>

        * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
        * libc/stdio/Makefile.in: Regenerated.
        * libc/stdio/setbuffer.c: New file.
        * libc/stdio/setlinebuf.c: New file.

22 years ago* path.cc (path_conv::check): Make sure any trailing path component is part of
Christopher Faylor [Thu, 23 May 2002 20:01:46 +0000 (20:01 +0000)]
* path.cc (path_conv::check): Make sure any trailing path component is part of
potential normalized posix path.

22 years ago2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 23 May 2002 19:52:46 +0000 (19:52 +0000)]
2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/Makefile.am: Add resource.c.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/resource.c: New file.
        * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
        * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
        * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
        * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
        are now found in libc/sys/linux/resource.c.

22 years ago2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 23 May 2002 18:46:04 +0000 (18:46 +0000)]
2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
        to use void * pointers and comply with Single Unix spec.
        * libc/string/bcmp.c: Change to use void * instead of char *.
        * libc/string/bcopy.c: Ditto.
        * libc/string/bzero.c: Ditto.

22 years ago * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
Jakub Jelinek [Thu, 23 May 2002 13:12:52 +0000 (13:12 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
for symbols from SHF_TLS section.
(_bfd_elf_print_private_bfd_data): Add PT_TLS.
(elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
(map_sections_to_segments): Build PT_TLS segment if necessary.
(assign_file_positions_for_segments): Likewise.
(get_program_header_size): Account for PT_TLS segment.
(swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
SEC_THREAD_LOCAL sections to STT_TLS.
* reloc.c: Add 386 and IA-64 TLS relocs.
* section.c (SEC_THREAD_LOCAL): Define.
(SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
Remove.
* elflink.h (elf_link_add_object_symbols): Support .tcommon.
(size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
unconditionally.
(struct elf_final_link_info): Add first_tls_sec.
(elf_bfd_final_link): Set first_tls_sec.
Compute elf_hash_table (info)->tls_segment.
(elf_link_output_extsym): Handle STT_TLS symbols.
(elf_link_input_bfd): Likewise.
* syms.c (BSF_THREAD_LOCAL): Define.
* bfd-in2.h: Rebuilt.
* libbfd.h: Rebuilt.
* elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
elf_i386_mkobject, elf_i386_object_p): New functions.
(elf_howto_table): Add TLS relocs.
(elf_i386_reloc_type_lookup): Support TLS relocs.
(elf_i386_info_to_howto_rel): Likewise.
(struct elf_i386_link_hash_entry): Add tls_type.
(struct elf_i386_obj_tdata): New.
(elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
New macros.
(struct elf_i386_link_hash_table): Add tls_ldm_got.
(link_hash_newfunc): Clear tls_type.
(elf_i386_check_relocs): Support TLS relocs.
(elf_i386_gc_sweep_hook): Likewise.
(allocate_dynrelocs): Likewise.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject, elf_backend_object_p): Define.
* elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
want_tprel, want_dtpmod, want_dtprel.
(elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
(ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
R_IA64_LTOFF_TPREL22.
(elf_code_to_howto_index): Add TLS relocs.
(elfNN_ia64_check_relocs): Support TLS relocs.
(allocate_global_data_got): Account for TLS .got data.
(allocate_dynrel_entries): Account for TLS dynamic relocations.
(elfNN_ia64_install_value): Supprt TLS relocs.
(set_got_entry): Support TLS relocs.
(elfNN_ia64_relocate_section): Likewise.

* config/obj-elf.c (elf_common): Renamed from obj_elf_common.
(obj_elf_common): Call elf_common.
(obj_elf_tls_common): New function.
(elf_pseudo_tab): Support .tls_common.
(special_sections): Add .tdata and .tbss.
(obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
sections.
(obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
(obj_elf_parse_section_letters): Include T in error message.
* config/tc-ppc.c (ppc_section_letter): Likewise.
* config/tc-alpha.c (alpha_elf_section_letter): Likewise.
(tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
SEC_MERGE.
* config/tc-sparc.c (md_apply_fix3): Likewise.
* config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
Define them if not BFD_ASSEMBLER.
(lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
and @NTPOFF.
(md_apply_fix3): Add TLS relocs.
* config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
(pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
(ia64_elf_section_letter): Include T in error message.
(md_begin): Support TLS operators.
(md_operand): Likewise.
(ia64_gen_real_reloc_type): Support TLS relocs.
* testsuite/gas/i386/tlspic.s: New file.
* testsuite/gas/i386/tlsd.s: New file.
* testsuite/gas/i386/tlsnopic.s: New file.
* testsuite/gas/i386/tlsd.d: New file.
* testsuite/gas/i386/tlsnopic.d: New file.
* testsuite/gas/i386/tlspic.d: New file.
* testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
* testsuite/gas/ia64/tls.s: New file.
* testsuite/gas/ia64/tls.d: New file.
* testsuite/gas/ia64/ia64.exp: Add tls test.
* write.c (adjust_reloc_syms): Don't change symbols in
SEC_THREAD_LOCAL sections to STT_SECTION + addend.

* elf/common.h (PT_TLS, SHF_TLS, STT_TLS, DF_STATIC_TLS): Define.
* elf/ia64.h (R_IA64_LTOFF_TPREL22): Renamed from R_IA64_LTOFF_TP22.
* elf/i386.h: Add TLS relocs.

* scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
* ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
output section if necessary.  Handle .tbss.
(lang_size_sections): Clear _raw_size for .tbss section
(it allocates space in PT_TLS segment only).
* ldwrite.c (build_link_order): Build link order for .tbss too.

* readelf.c (get_segment_type): Add PT_TLS.
(get_elf_section_flags): Add SHF_TLS.
(get_dynamic_flags): Optimize.  Add DF_STATIC_TLS.
(process_dynamic_segment): Use puts instead of printf.
(get_symbol_type): Support STT_TLS.
* objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT,
SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS.
Add SEC_THREAD_LOCAL.

22 years ago * getfacl.c (usage): Standardize usage output. Change return type to
Corinna Vinschen [Thu, 23 May 2002 10:56:57 +0000 (10:56 +0000)]
* getfacl.c (usage): Standardize usage output. Change return type to
static void.
(print_version): New function.
(longopts): Added longopts for all options.
(main): Accommodate new help and version options.

22 years ago* smallprint.c (__small_vsprintf): Implement '%o' after all these years.
Christopher Faylor [Thu, 23 May 2002 06:00:49 +0000 (06:00 +0000)]
* smallprint.c (__small_vsprintf): Implement '%o' after all these years.

22 years agofix typo.
Christopher Faylor [Thu, 23 May 2002 04:48:03 +0000 (04:48 +0000)]
fix typo.

22 years ago* mount.cc (version) New global variable.
Christopher Faylor [Thu, 23 May 2002 04:19:07 +0000 (04:19 +0000)]
* mount.cc (version) New global variable.
(usage) Standardize usage output.  Accomodate new version option.
(print_version) New function.
(longopts) Accomodate new version option.
(opts) Ditto.
(main) Ditto.

22 years ago* fhandler.h (fhandler_virtual::exists): Eliminate path argument.
Christopher Faylor [Wed, 22 May 2002 22:09:58 +0000 (22:09 +0000)]
* fhandler.h (fhandler_virtual::exists): Eliminate path argument.
(fhandler_proc::exists): Ditto.
(fhandler_registry::exists): Ditto.
(fhandler_process::exists): Ditto.
* fhandler_proc.cc (fhandler_proc::exists): Ditto.  Use built-in name.
* fhandler_process.cc (fhandler_process::exists): Ditto.
(fstat): Ditto.
* fhandler_registry.cc (fhandler_registry::exists): Ditto.
(fhandler_registry::fstat): Ditto.
* fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
* path.cc (path_conv::check): Ditto.  Add debugging.
* syscalls.cc (dup): Always call dup2 for error handling.

22 years ago* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
DJ Delorie [Wed, 22 May 2002 21:06:53 +0000 (21:06 +0000)]
* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.

22 years ago2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 22 May 2002 20:26:28 +0000 (20:26 +0000)]
2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/shm_open.c: New file.
        * libc/sys/linux/shm_unlink.c: Ditto.
        * libc/sys/linux/Makefile.am: Add support for shm_open.c and
        shm_unlink.c.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/sys/types.h: Add some additional checks to see
        if clock_t or time_t is already defined.

22 years ago* config.guess: Update to 2002-05-22 version.
Jason Thorpe [Wed, 22 May 2002 18:36:13 +0000 (18:36 +0000)]
* config.guess: Update to 2002-05-22 version.
* config.sub: Likewise.

22 years ago2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 22 May 2002 18:25:12 +0000 (18:25 +0000)]
2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>

        * Makefile.am: Don't pass $toollibdir down directly in
        AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
        Pass it under the name: top_toollibdir.
        * Makefile.in: Regenerated.

22 years ago * include/cygwin/types.h: Revert previous patch.
Corinna Vinschen [Wed, 22 May 2002 12:47:54 +0000 (12:47 +0000)]
* include/cygwin/types.h: Revert previous patch.

22 years ago * libc/include/sys/types.h: Revert previous patch.
Corinna Vinschen [Wed, 22 May 2002 12:34:12 +0000 (12:34 +0000)]
* libc/include/sys/types.h: Revert previous patch.

22 years ago * libc/include/sys/types.h: Include cygwin/types.h always under
Corinna Vinschen [Wed, 22 May 2002 11:39:07 +0000 (11:39 +0000)]
* libc/include/sys/types.h: Include cygwin/types.h always under
Cygwin, not only if _POSIX_THREADS is defined.

22 years ago * include/cygwin/types.h: Define pthread stuff only if _POSIX_THREADS
Corinna Vinschen [Wed, 22 May 2002 10:33:39 +0000 (10:33 +0000)]
* include/cygwin/types.h: Define pthread stuff only if _POSIX_THREADS
is defined.

22 years ago * cygpath.cc (usage): Change usage output slightly.
Corinna Vinschen [Wed, 22 May 2002 10:05:41 +0000 (10:05 +0000)]
* cygpath.cc (usage): Change usage output slightly.

* cygpath.cc (main): Add option l to support conversion to
Windows long file names.  Refactured code for capital options.
Support of options from file for capital options.
(dowin): New function.  Refactured from main.
(doit): Call long path conversion.
(get_long_name): New function.
(get_long_paths): New function.
(get_long_path_name_w32impl): New function.  Reimplementation
of Windows API function GetLongPathName (only 98/Me/2000/XP or
higher).
(get_short_name): Call GetShortPathName only once.
(get_short_paths): Fix calculating buffer size.
* utils.sgml: Update cygpath section for l option.

22 years agoAllow for PWDCMD to override hardcoded pwd.
Nick Clifton [Wed, 22 May 2002 09:21:32 +0000 (09:21 +0000)]
Allow for PWDCMD to override hardcoded pwd.

22 years ago2002-05-21 H.J. Lu (hjl@gnu.org)
H.J. Lu [Wed, 22 May 2002 05:07:20 +0000 (05:07 +0000)]
2002-05-21  H.J. Lu  (hjl@gnu.org)

* bfdlink.h (bfd_link_info): Add allow_multiple_definition.

22 years ago? gas/testsuite/gas/mips/rol64.d
Thiemo Seufer [Tue, 21 May 2002 23:54:46 +0000 (23:54 +0000)]
? gas/testsuite/gas/mips/rol64.d
? gas/testsuite/gas/mips/rol64.s
Index: gas/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.1334
diff -u -p -r1.1334 ChangeLog
--- gas/ChangeLog 21 May 2002 20:01:51 -0000 1.1334
+++ gas/ChangeLog 21 May 2002 23:32:51 -0000
@@ -1,3 +1,8 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
+ Optimize the rotate by zero case.
+
 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>

  * configure.in: Remove accidental enabling of bfd_gas=yes for
Index: gas/config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.123
diff -u -p -r1.123 tc-mips.c
--- gas/config/tc-mips.c 14 May 2002 23:35:59 -0000 1.123
+++ gas/config/tc-mips.c 21 May 2002 23:32:52 -0000
@@ -6686,6 +6686,17 @@ macro2 (ip)
       --mips_opts.noreorder;
       break;

+    case M_DROL:
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsubu",
+    "d,v,t", AT, 0, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsrlv",
+    "d,t,s", AT, sreg, AT);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsllv",
+    "d,t,s", dreg, sreg, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+    "d,v,t", dreg, dreg, AT);
+      break;
+
     case M_ROL:
       macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "subu",
     "d,v,t", AT, 0, treg);
@@ -6697,15 +6708,55 @@ macro2 (ip)
     "d,v,t", dreg, dreg, AT);
       break;

+    case M_DROL_I:
+      {
+ unsigned int rot;
+ char *l, *r;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x3f;
+ if (! rot)
+   break;
+ l = (rot < 0x20) ? "dsll" : "dsll32";
+ r = ((0x40 - rot) < 0x20) ? "dsrl" : "dsrl32";
+ rot &= 0x1f;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, l,
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, r,
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
+      break;
+
     case M_ROL_I:
-      if (imm_expr.X_op != O_constant)
- as_bad (_("rotate count too large"));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll", "d,w,<",
-    AT, sreg, (int) (imm_expr.X_add_number & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl", "d,w,<",
-    dreg, sreg, (int) ((0 - imm_expr.X_add_number) & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or", "d,v,t",
-    dreg, dreg, AT);
+      {
+ unsigned int rot;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x1f;
+ if (! rot)
+   break;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll",
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl",
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
+      break;
+
+    case M_DROR:
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsubu",
+    "d,v,t", AT, 0, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsllv",
+    "d,t,s", AT, sreg, AT);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsrlv",
+    "d,t,s", dreg, sreg, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+    "d,v,t", dreg, dreg, AT);
       break;

     case M_ROR:
@@ -6719,15 +6770,44 @@ macro2 (ip)
     "d,v,t", dreg, dreg, AT);
       break;

+    case M_DROR_I:
+      {
+ unsigned int rot;
+ char *l, *r;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x3f;
+ if (! rot)
+   break;
+ r = (rot < 0x20) ? "dsrl" : "dsrl32";
+ l = ((0x40 - rot) < 0x20) ? "dsll" : "dsll32";
+ rot &= 0x1f;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, r,
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, l,
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
+      break;
+
     case M_ROR_I:
-      if (imm_expr.X_op != O_constant)
- as_bad (_("rotate count too large"));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl", "d,w,<",
-    AT, sreg, (int) (imm_expr.X_add_number & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll", "d,w,<",
-    dreg, sreg, (int) ((0 - imm_expr.X_add_number) & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or", "d,v,t",
-    dreg, dreg, AT);
+      {
+ unsigned int rot;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x1f;
+ if (! rot)
+   break;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl",
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll",
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
       break;

     case M_S_DOB:
Index: gas/testsuite/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/testsuite/ChangeLog,v
retrieving revision 1.315
diff -u -p -r1.315 ChangeLog
--- gas/testsuite/ChangeLog 20 May 2002 17:05:34 -0000 1.315
+++ gas/testsuite/ChangeLog 21 May 2002 23:32:54 -0000
@@ -1,3 +1,9 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * gas/mips/rol64.s: New file, test of drol, dror macros.
+ * gas/mips/rol64.d: Likewise.
+ * gas/mips/mips.exp: Add new test.
+
 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>

  * gas/arm/arm.exp: Replace deprecated command line switches
Index: gas/testsuite/gas/mips/mips.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips.exp,v
retrieving revision 1.32
diff -u -p -r1.32 mips.exp
--- gas/testsuite/gas/mips/mips.exp 4 Apr 2002 08:23:30 -0000 1.32
+++ gas/testsuite/gas/mips/mips.exp 21 May 2002 23:32:54 -0000
@@ -122,6 +122,7 @@ if { [istarget mips*-*-*] } then {
  run_dump_test "mul"
     }
     run_dump_test "rol"
+    run_dump_test "rol64"
     if !$aout { run_dump_test "sb" }
     run_dump_test "trunc"
     if !$aout { run_dump_test "ulh" }
Index: include/opcode/ChangeLog
===================================================================
RCS file: /cvs/src/src/include/opcode/ChangeLog,v
retrieving revision 1.167
diff -u -p -r1.167 ChangeLog
--- include/opcode/ChangeLog 17 May 2002 19:01:03 -0000 1.167
+++ include/opcode/ChangeLog 21 May 2002 23:32:57 -0000
@@ -1,3 +1,7 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * mips.h: Add M_DROL, M_DROL_I, M_DROR, M_DROR_I macro cases.
+
 2002-05-17  Andrey Volkov  <avolkov@sources.redhat.com>

         * h8300.h: Corrected defs of all control regs
Index: include/opcode/mips.h
===================================================================
RCS file: /cvs/src/src/include/opcode/mips.h,v
retrieving revision 1.24
diff -u -p -r1.24 mips.h
--- include/opcode/mips.h 16 Mar 2002 03:09:18 -0000 1.24
+++ include/opcode/mips.h 21 May 2002 23:32:57 -0000
@@ -526,9 +526,13 @@ enum
   M_REM_3I,
   M_REMU_3,
   M_REMU_3I,
+  M_DROL,
   M_ROL,
+  M_DROL_I,
   M_ROL_I,
+  M_DROR,
   M_ROR,
+  M_DROR_I,
   M_ROR_I,
   M_S_DA,
   M_S_DOB,
Index: opcodes/ChangeLog
===================================================================
RCS file: /cvs/src/src/opcodes/ChangeLog,v
retrieving revision 1.447
diff -u -p -r1.447 ChangeLog
--- opcodes/ChangeLog 17 May 2002 14:36:45 -0000 1.447
+++ opcodes/ChangeLog 21 May 2002 23:33:00 -0000
@@ -1,3 +1,7 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * mips-opc.c (mips_builtin_opcodes): Add drol, dror macros.
+
 Fri May 17 14:26:44 2002  J"orn Rennecke <joern.rennecke@superh.com>

  * disassemble.c (disassembler): Just use print_insn_sh for bfd_arch_sh.
Index: opcodes/mips-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/mips-opc.c,v
retrieving revision 1.32
diff -u -p -r1.32 mips-opc.c
--- opcodes/mips-opc.c 17 Mar 2002 02:42:25 -0000 1.32
+++ opcodes/mips-opc.c 21 May 2002 23:33:00 -0000
@@ -492,6 +492,10 @@ const struct mips_opcode mips_builtin_op
 {"dremu",   "z,s,t",    0x0000001f, 0xfc00ffff, RD_s|RD_t|WR_HILO,      I3      },
 {"dremu",   "d,v,t", 3,    (int) M_DREMU_3, INSN_MACRO, I3 },
 {"dremu",   "d,v,I", 3,    (int) M_DREMU_3I, INSN_MACRO, I3 },
+{"drol",    "d,v,t", 0,    (int) M_DROL, INSN_MACRO, I3 },
+{"drol",    "d,v,I", 0,    (int) M_DROL_I, INSN_MACRO, I3 },
+{"dror",    "d,v,t", 0,    (int) M_DROR, INSN_MACRO, I3 },
+{"dror",    "d,v,I", 0,    (int) M_DROR_I, INSN_MACRO, I3 },
 {"dsllv",   "d,t,s", 0x00000014, 0xfc0007ff, WR_d|RD_t|RD_s, I3 },
 {"dsll32",  "d,w,<", 0x0000003c, 0xffe0003f, WR_d|RD_t, I3 },
 {"dsll",    "d,w,s", 0x00000014, 0xfc0007ff, WR_d|RD_t|RD_s, I3 }, /* dsllv */

22 years ago2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
Thomas Fitzsimmons [Tue, 21 May 2002 18:20:18 +0000 (18:20 +0000)]
2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>

* configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.

22 years ago * Makefile.in: Increment VERSION to 1.4.
Earnie Boyd [Tue, 21 May 2002 16:50:13 +0000 (16:50 +0000)]
* Makefile.in: Increment VERSION to 1.4.
(conf_prefix): New variable.
(bindist): Modify target to use $(conf_prefix).

22 years ago * security.cc (open_local_policy): Initialize lsa to
Corinna Vinschen [Tue, 21 May 2002 14:50:26 +0000 (14:50 +0000)]
    * security.cc (open_local_policy): Initialize lsa to
INVALID_HANDLE_VALUE instead of NULL.
(get_logon_server_and_user_domain): Test for INVALID_HANDLE_VALUE
instead of NULL.
(create_token): Both of the above.

22 years ago2002-05-20 Philip Aston <philipa@mail.com>
Danny Smith [Mon, 20 May 2002 00:57:18 +0000 (00:57 +0000)]
2002-05-20  Philip Aston  <philipa@mail.com>

* include/pbt.h (PBT_APMRESUMESUSPEND): Correct value is 7.

22 years ago2002-05-20 Ren� M�ller Fonseca <fonseca@users.sourceforge.net>
Danny Smith [Mon, 20 May 2002 00:52:06 +0000 (00:52 +0000)]
2002-05-20  Ren� M�ller Fonseca  <fonseca@users.sourceforge.net>

* include/lmaccess.h: (NetAccess*, NetGroup*,
NetLocalGroup*, NetUser*, NetGet*, INetLogonControl[2],
NetQueryDisplayInfotmationIndex): Replace LPWSTR with LPCWSTR.

22 years ago* fhandler_disk_file.cc (fhandler_disk_file::fstat): Make handling of nlink
Christopher Faylor [Sat, 18 May 2002 21:07:18 +0000 (21:07 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Make handling of nlink
consistent for remote files.

22 years ago* strace.cc (add_child): Use calloc since new requires working libstdc++.a.
Christopher Faylor [Sat, 18 May 2002 21:05:10 +0000 (21:05 +0000)]
* strace.cc (add_child): Use calloc since new requires working libstdc++.a.
(fhandler_disk_file::fstat): Ditto for delete/free.

22 years ago* path.cc (path_conv::check): Always set executable bit for executable
Christopher Faylor [Sat, 18 May 2002 20:27:49 +0000 (20:27 +0000)]
* path.cc (path_conv::check): Always set executable bit for executable
extension.

22 years agoremove white space
Christopher Faylor [Sat, 18 May 2002 06:10:16 +0000 (06:10 +0000)]
remove white space

22 years ago2002-05-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 17 May 2002 23:39:39 +0000 (23:39 +0000)]
2002-05-17  Jeff Johnston  <jjohnstn@redhat.com>

* Makefile.am: Copy and install headers from sys/machine/include
directory.  Also pass $toollibdir to lower-level directories.
* Makefile.in: Regenerated.
* libc/include/stdio.h[!_REENT_ONLY]: Change stdin, stdout, and
stderr to use _REENT macro instead of _impure_ptr directly.
* libc/include/sys/config.h[__i386__][__linux__]: Define
__DYNAMIC_REENT__.
* libc/include/sys/reent.h[!_REENT_ONLY]: Change _REENT macro to be
call to __getreent() function if !__SINGLE_THREAD__ and
__DYNAMIC_REENT__ is set.
* libc/reent/Makefile.am: Add support for getreent.c.
* libc/reent/Makefile.in: Regenerated.
* libc/string/strerror.c: Add check if EOPNOTSUPP and ENOTSUP are same.
* libc/sys/linux/Makefile.am: Add support for new files.
* libc/sys/linux/configure.in: Add $EXTRA_DIRS variable.
* libc/sys/linux/Makefile.in: Regenerated.
* libc/sys/linux/configure: Ditto.
* libc/sys/linux/io.c: Add poll syscall.  Also weak-alias
__close, __read, __write, __poll, __open, __lseek, __fcntl from
their __libc_ counterparts.
* libc/sys/linux/io64.c: Add __libc_ prefix to lseek64 and open64
and weak-alias to regular names.
* libc/sys/linux/pread64.c: Rename to __libc_pread64 and weak-alias
to pread64 and __pread64.
* libc/sys/linux/process.c: Weak_alias __libc_getpid to __getpid.
* libc/sys/linux/pwrite64.c: Rename to __libc_pwrite64 and
weak-alias to pwrite64.
* libc/sys/linux/sched.c: Weak-alias __libc_sched_getparam,
__libc_sched_getscheduler, __libc_sched_get_priority_max,
__libc_sched_get_priority_min, and __libc_sched_setschedule to
name with __ instead of __libc_.
* libc/sys/linux/siglongjmp.c: Include <machine/weakalias.h>.
Rename siglongjmp to __libc_siglongjmp and weak-alias to siglongjmp.
Call __libc_longjmp instead of longjmp, from __libc_siglongjmp.
* libc/sys/linux/signal.c: Rename raise to __libc_raise and weak-alias
to raise.
* libc/sys/linux/socket.c: Weak-alias __libc_connect to __connect and
__libc_send to __send.
* libc/sys/linux/time.c: Weak-alias __libc_gettimeofday to
__gettimeofday.
* libc/sys/linux/wait.c: Rename wait to __libc_wait and weak-alias
it to wait.  Rename wait3 to __libc_wait3 and weak-alias it to wait3.
* libc/sys/linux/include/setjmp.h: Use __jmp_buf in sigjmp_buf
type and typedef __jmp_buf to jmp_buf.
* libc/sys/linux/machine/i386/Makefile.am: Add syscalls.c and
setjmp.S.
* libc/sys/linux/machine/i386/Makefile.in: Regenerated.
* libc/sys/linux/machine/i386/crt0.c: Add support to clear .bss
section.
* libc/sys/linux/machine/i386/socketcall.h: Change to use __libc_
prefix for function macros and then use weak_alias() to regular names.
* libc/sys/linux/machine/i386/syscall.h: Ditto.
* libc/sys/linux/sys/errno.h: Define EOPNOTSUP to be ENOTSUP.
* libc/sys/linux/sys/stdio.h: Define _flockfile and _funlockfile
to be flockfile() and funlockfile() respectively.
* libc/sys/linux/sys/types.h
* libc/reent/getreent.c: New file.
* libc/sys/linux/flockfile.c: Ditto.
* libc/sys/linux/funlockfile.c: Ditto.
* libc/sys/linux/getreent.c: Ditto.
* libc/sys/linux/pread.c: Ditto.
* libc/sys/linux/pwrite.c: Ditto.
* libc/sys/linux/raise.c: Ditto.
* libc/sys/linux/system.c: Ditto.
* libc/sys/linux/tcdrain.c: Ditto.
* libc/sys/linux/machine/i386/i386mach.h: Ditto.
* libc/sys/linux/machine/i386/setjmp.S: Ditto.
* libc/sys/linux/machine/i386/syscalls.c: Ditto.
* libc/sys/linux/machine/i386/weakalias.h: Ditto.
* libc/sys/linux/machine/i386/include/setjmp.h: Ditto.

22 years ago * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
Thomas Fitzsimmons [Fri, 17 May 2002 20:13:38 +0000 (20:13 +0000)]
* newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.
* newlib/libc/sys/h8300hms/read.c: New file.  Magic trap 0xC8 for sim.
* newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c.
* newlib/libs/sys/h8300hms/sys/syscall.h: New file.

22 years ago* fhandler.cc (fhandler_base::lseek): Avoid calling SetFilePointer with high
Christopher Faylor [Fri, 17 May 2002 19:30:52 +0000 (19:30 +0000)]
* fhandler.cc (fhandler_base::lseek): Avoid calling SetFilePointer with high
order part of 64 bit address on OS's which do not support that kind of
operation.  Otherwise Windows 95 will become confused.

22 years ago* h8300.h: Corrected defs of all control regs and eepmov instr.
Andrey Volkov [Fri, 17 May 2002 19:01:03 +0000 (19:01 +0000)]
* h8300.h: Corrected defs of all control regs and eepmov instr.

22 years agoprint_insn_sh cleanup:
Joern Rennecke [Fri, 17 May 2002 14:36:42 +0000 (14:36 +0000)]
print_insn_sh cleanup:

include:
* dis-asm.h (print_insn_shl, print_insn_sh64l): Remove prototype.
gdb:
* sh-tdep.c (gdb_print_insn_sh64): Delete.
(gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
(sh_gdbarch_init): Always use gdb_print_insn_sh.
opcodes:
* disassemble.c (disassembler): Just use print_insn_sh for bfd_arch_sh.
* sh-dis.c (LITTLE_BIT): Delete.
(print_insn_sh, print_insn_shl): Deleted.
(print_insn_shx): Renamed to
(print_insn_sh).  No longer static.  Handle SHmedia instructions.
Use info->endian to determine endianness.
* sh64-dis.c (print_insn_sh64, print_insn_sh64l): Delete.
(print_insn_sh64x): No longer static.  Renamed to
(print_insn_sh64).  Removed pfun_compact and endian arguments.
If we got an uneven address to indicate SHmedia, adjust it.
Return -2 for SHcompact instructions.
sim/sh64:
* sim-if.c (sh64_disassemble_insn): Use  print_insn_sh instead of
print_insn_shl.

22 years ago * fhandler_raw.cc (fhandler_dev_raw::open): Replace set_errno()
Corinna Vinschen [Fri, 17 May 2002 09:32:45 +0000 (09:32 +0000)]
* fhandler_raw.cc (fhandler_dev_raw::open): Replace set_errno()
by __seterrno_from_win_error().
* security.cc (open_local_policy): Ditto.
(get_lsa_srv_inf): Ditto.
(get_user_groups): Ditto.
(get_user_primary_group): Ditto.
(create_token): Ditto.
(subauth): Ditto.

22 years ago * times.cc (utimes): Use FILE_WRITE_ATTRIBUTES even on 9x/Me when
Corinna Vinschen [Fri, 17 May 2002 08:32:29 +0000 (08:32 +0000)]
* times.cc (utimes): Use FILE_WRITE_ATTRIBUTES even on 9x/Me when
opening file for writing timestamp.
* wincap.cc: Remove flag has_specific_access_rights.
* wincap.h: Ditto.

22 years ago * libc/machine/sh/strcpy.S (strcpy): make sure r0 has right value
Joern Rennecke [Thu, 16 May 2002 17:29:15 +0000 (17:29 +0000)]
* libc/machine/sh/strcpy.S (strcpy): make sure r0 has right value
at first loop exit point.

22 years ago * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
Joern Rennecke [Thu, 16 May 2002 16:16:14 +0000 (16:16 +0000)]
* libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN with
__LITTLE_ENDIAN__.

22 years ago * syscalls.cc (seteuid): Set default dacl in process token.
Corinna Vinschen [Thu, 16 May 2002 09:30:48 +0000 (09:30 +0000)]
* syscalls.cc (seteuid): Set default dacl in process token.
Replace in-line code by call to verify_token().
(setegid): Reverse change from 2002-01-21. Add call to
RevertToSelf and set primary group in impersonation token.
* security.cc (create_token): Store pgrpsid in token security
descriptor, except if it already appears in my_grps.
Use sec_acl() in place of get_dacl().
(verify_token): Create from code in seteuid(), with tighter checks.
(get_dacl) Deleted.
(get_group_sidlist): Add argument to indicate if pgrpsid is already
in the groups.
* security.h: Define verify_token().
* autoload.cc: Load GetKernelObjectSecurity().

22 years ago * testsuite/lib/newlib.exp: Add newlib_include_flags to compile
Thomas Fitzsimmons [Thu, 16 May 2002 00:17:50 +0000 (00:17 +0000)]
* testsuite/lib/newlib.exp: Add newlib_include_flags to compile
options when testing natively on i[3456]86-*-linux.

22 years ago * ChangeLog: Update.
Thomas Fitzsimmons [Wed, 15 May 2002 23:49:07 +0000 (23:49 +0000)]
* ChangeLog: Update.

22 years ago * testsuite/lib/checkoutput.exp (newlib_check_output): Output
Thomas Fitzsimmons [Wed, 15 May 2002 23:48:47 +0000 (23:48 +0000)]
* testsuite/lib/checkoutput.exp (newlib_check_output): Output
only one pass or fail per test file.  Trim \r's from output
values received from test programs.  Remove support for named
tests.
* testsuite/newlib.locale/UTF-8.exp: Update to support new
newlib_check_output behaviour.
* testsuite/newlib.locale/UTF-8.c: Likewise.

22 years ago2002-05-15 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 15 May 2002 22:58:10 +0000 (22:58 +0000)]
2002-05-15  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/stdlib.h: Add on_exit prototype.
        * libc/include/sys/reent.h (struct _atexit): Add argument array
        and bits to track type of exit routine to support both on_exit
        and atexit.
        (_REENT_INIT_PTR): Add missing fields that won't be zeroed out
        by default and change the setting of the atexit structure.
        (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace.
        * libc/stdlib/on_exit.c: New file.
        * libc/stdlib/Makefile.am: Add support for on_exit.
        * libc/stdlib/Makefile.in: Regenerated.
        * libc/stdlib/atexit.c: Change to initialize types field.
        * libc/stdlib/exit.c: Change to look at types field for each
        exit routine and either call an atexit-style or an on_exit-style
        routine accordingly.

22 years ago * cygpath.cc (get_short_paths): Fix more error checking.
Corinna Vinschen [Wed, 15 May 2002 11:36:00 +0000 (11:36 +0000)]
* cygpath.cc (get_short_paths): Fix more error checking.
(get_short_name): Ditto.

* cygpath.cc (main): Add option H to show the Windows' profiles
directory.  Support short names for options DPSW.  Clean up
copied code lines.
* utils.sgml: Update cygpath section for H option and s support.

22 years ago * cygpath.cc (get_short_name): Fix error checking.
Corinna Vinschen [Tue, 14 May 2002 16:07:26 +0000 (16:07 +0000)]
* cygpath.cc (get_short_name): Fix error checking.

22 years ago* kill.cc (prog_name) New global variable.
Christopher Faylor [Mon, 13 May 2002 23:42:32 +0000 (23:42 +0000)]
* kill.cc (prog_name) New global variable.
(usage) Standardize usage output.  Add descriptions.
(print_version) New function.
(longopts) Accomodate new version option.
(opts) Ditto.
(main) Ditto.

22 years ago* configure.in: simplify makefile fragment collection.
DJ Delorie [Mon, 13 May 2002 21:19:04 +0000 (21:19 +0000)]
* configure.in: simplify makefile fragment collection.

22 years ago* configure.in: remove code to build emacs.
DJ Delorie [Mon, 13 May 2002 21:16:43 +0000 (21:16 +0000)]
* configure.in: remove code to build emacs.

22 years ago* mh-apollo68: remove unused HDEFINES setting.
DJ Delorie [Mon, 13 May 2002 21:14:19 +0000 (21:14 +0000)]
* mh-apollo68: remove unused HDEFINES setting.
* mh-dgux: remove unused HDEFINES setting.
* mh-dgux386: remove unused HDEFINES setting, duplicate RANLIB=true

22 years ago* configure.in : Remove --srcdir argument from targargs and buildargs
DJ Delorie [Mon, 13 May 2002 21:11:50 +0000 (21:11 +0000)]
* configure.in : Remove --srcdir argument from targargs and buildargs
(it's always overridden in the Makefile anyway).  Rearrange a bit.

22 years ago2002-05-13 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 13 May 2002 20:59:40 +0000 (20:59 +0000)]
2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't
        allow v specifier with n or L specifiers.  For vector c format,
        move tmp declaration to the top.

22 years ago* configure: move some logic to configure.in
DJ Delorie [Mon, 13 May 2002 20:55:25 +0000 (20:55 +0000)]
* configure: move some logic to configure.in
* configure.in: move some logic from configure

22 years ago* cygwin.din: Add strlcat and strlcpy.
Christopher Faylor [Mon, 13 May 2002 19:53:46 +0000 (19:53 +0000)]
* cygwin.din: Add strlcat and strlcpy.
* include/cygwin/version.h: Increment API minor version number.

22 years ago2002-05-13 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 13 May 2002 19:52:17 +0000 (19:52 +0000)]
2002-05-13  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore
        the original format specifier when looping for vectors to compensate
        for any changes made in vector %g format processing.
        Also add syntax checking for various invalid scenarios
        involving vector format extensions.
        * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix
        return code setting for vector formats.  Also treat vector
        separator mismatch as a match error instead of an input error.
        Perform some syntax checking for vector formats.

22 years ago * strlcat.c: Add file.
Thomas Fitzsimmons [Mon, 13 May 2002 19:33:46 +0000 (19:33 +0000)]
* strlcat.c: Add file.
* strlcpy.c: Add file.

22 years ago2002-05-10 Mark Bradshaw <bradshaw@staff.crosswalk.com>
Thomas Fitzsimmons [Mon, 13 May 2002 19:33:01 +0000 (19:33 +0000)]
2002-05-10  Mark Bradshaw  <bradshaw@staff.crosswalk.com>

* libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy.
* libc/string/Makefile.am: Add strlcat.c and strlcpy.c.
* libc/string/strlcat.c: New file.
* libc/string/strlcpy.c: New file.

22 years ago * shared.cc (__sec_user): Split into sec_acl() and call orig_sid().
Corinna Vinschen [Mon, 13 May 2002 12:10:49 +0000 (12:10 +0000)]
* shared.cc (__sec_user): Split into sec_acl() and call orig_sid().
(sec_acl): Create from part of __sec_user(), except creator/owner.
* security.h: Define sec_acl() and MAX_DACL_LEN.

22 years ago* kill.cc (listsig): Display numeric id when given symbolic input.
Christopher Faylor [Mon, 13 May 2002 05:35:44 +0000 (05:35 +0000)]
* kill.cc (listsig): Display numeric id when given symbolic input.

22 years agodocument kill -h.
Christopher Faylor [Mon, 13 May 2002 05:25:14 +0000 (05:25 +0000)]
document kill -h.

22 years ago* kill.cc (usage): Show new options. Allow specification of output stream.
Christopher Faylor [Mon, 13 May 2002 05:23:37 +0000 (05:23 +0000)]
* kill.cc (usage): Show new options.  Allow specification of output stream.
(main): Implement 'h' option.

22 years agoUpdate ChangeLog with missing entry.
Christopher Faylor [Mon, 13 May 2002 05:18:34 +0000 (05:18 +0000)]
Update ChangeLog with missing entry.

22 years ago* Makefile.in (kill.exe): Add as a specific target.
Christopher Faylor [Mon, 13 May 2002 05:13:58 +0000 (05:13 +0000)]
* Makefile.in (kill.exe): Add as a specific target.
* kill.cc (longopts): New.
(opts): Ditto.
(get_sig): Accept const char * parameter.  Return -1 on unknown signal.
(test_for_unknown_sig): New function.
(listsig): New function.
(main): Use getopt_long for option parsing.  Implement -l, and -s options.  Use
test_for_unknown_sig() to test for signal validity.

22 years agoremove a comma
Christopher Faylor [Sun, 12 May 2002 19:29:20 +0000 (19:29 +0000)]
remove a comma

22 years ago* fhandler_disk_file.cc (fhandler_disk_file::open): Avoid using O_DIROPEN when
Christopher Faylor [Sun, 12 May 2002 19:20:01 +0000 (19:20 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::open): Avoid using O_DIROPEN when
OS doesn't support it.  Return proper errno in that case.

22 years agofix entry
Christopher Faylor [Sun, 12 May 2002 04:55:10 +0000 (04:55 +0000)]
fix entry

22 years ago* syscalls.cc (_read): Change error to EBADF if attempt to write to a
Christopher Faylor [Sun, 12 May 2002 04:43:29 +0000 (04:43 +0000)]
* syscalls.cc (_read): Change error to EBADF if attempt to write to a
non-writable fd.

22 years ago* mount.cc (do_mount): Default to non-exec option for remote drives. Report
Christopher Faylor [Sun, 12 May 2002 04:29:54 +0000 (04:29 +0000)]
* mount.cc (do_mount): Default to non-exec option for remote drives.  Report
warnings before attempting a mount.
(longopts): Add no-executable option.
(mount_commands): Ditto.
(opts): Ditto.
(usage): Ditto.  Indicate that system mount is now the default.
(main): Accommodate no-executable option.  Make system mount the default.
* umount.cc (usage): Indicate that system umount is now the default.
(main): Make system umount the default.

22 years ago* fhandler.h (executable_states): For now, make dont_care_if_executable
Christopher Faylor [Sun, 12 May 2002 03:08:59 +0000 (03:08 +0000)]
* fhandler.h (executable_states): For now, make dont_care_if_executable
equivalent to not_executable.
* sys/mount.h: Define MOUNT_NOTEXEC.
* path.h (fs_info): New class.
(path_conv): Move fs-specific fields to new 'fs' structure.
(path_conv::update_fs_info): Move to fs_info and rename to just 'update'.
* path.cc (fs_info::update): Ditto.  Return 'true' if successful.
(fillout_mntent): Add ',noexec' to list of reported options.

22 years ago* fhandler_virtual.cc (fhandler_virtual::close): Quiet a compiler warning.
Christopher Faylor [Sun, 12 May 2002 01:59:53 +0000 (01:59 +0000)]
* fhandler_virtual.cc (fhandler_virtual::close): Quiet a compiler warning.

22 years agofix formatting
Christopher Faylor [Sun, 12 May 2002 01:50:38 +0000 (01:50 +0000)]
fix formatting

22 years agofix comment
Christopher Faylor [Sun, 12 May 2002 01:41:17 +0000 (01:41 +0000)]
fix comment

22 years ago* autoload.cc: Add dynamic load statements for 'ZwQueryInformationProcess' and
Christopher Faylor [Sun, 12 May 2002 01:37:48 +0000 (01:37 +0000)]
* autoload.cc: Add dynamic load statements for 'ZwQueryInformationProcess' and
'ZwQueryVirtualMemory'.
* fhandler.h: Change type of bufalloc and filesize members of fhandler_virtual
from int to size_t.  Change type of position member from __off32_t to
__off64_t.  Add new fileid member to fhandler_virtual class.  Make seekdir take
an __off64_t argument.  Make lseek take an __off64_t argument.  Add
fill_filebuf method to fhandler_virtual.  Add fill_filebuf method to
fhandler_proc.  Add fill_filebuf method to fhandler_registry.  Add fill_filebuf
method to fhandler_process.  Add saved_pid and saved_p members to
fhandler_process.
* fhandler_proc.cc (proc_listing_array): Add 'loadavg', 'meminfo', and 'stat'.
(proc_fhandlers array): Ditto.
(fhandler_proc::open): Use fill_filebuf to flesh out the file contents.
(fhandler_proc::fill_filebuf): New method.
(fhandler_proc::format_proc_meminfo): Ditto.
(fhandler_proc::format_proc_stat): Ditto.
(fhandler_proc::format_proc_uptime): Ditto.
* fhandler_process.cc (process_listing): Add 'stat' and 'statm'.
(fhandler_process::fstat): Find the _pinfo structure for the process named in
the filename.  Return ENOENT if the process is no longer around.  Set the gid
and uid fields of the stat structure.
(fhandler_process::open): Store pid and pointer to _pinfo structure in
saved_pid and saved_p respectively.  Use fill_filebuf to flesh out file
contents.
(fhandler_proc::fill_filebuf): New method.
(format_process_stat): New function.
(format_process_status): Ditto.
(format_process_statm): Ditto.
(get_process_state): Ditto.
(get_mem_values): Ditto.
* fhandler_registry.cc (fhandler_registry::seekdir): Change argument type from
__off32_t to __off64_t.
(fhandler_registry::fill_filebuf): New method.
* fhandler_virtual.cc (fhandler_virtual::seekdir): Change argument type from
__off32_t to __off64_t.
(fhandler_virtual::lseek): Ditto.
(fhandler_virtual::fill_filebuf): New method.
(fhandler_virtual::fhandler_virtual): Initialise fileid to -1.
* wincap.cc: Set flag has_process_io_counters appropriately.
* wincap.h: Add flag has_process_io_counters.

22 years ago * libnosys/acconfig.h (HAVE_SECTION_ATTRIBUTES): New macro.
Thomas Fitzsimmons [Sat, 11 May 2002 20:48:04 +0000 (20:48 +0000)]
* libnosys/acconfig.h (HAVE_SECTION_ATTRIBUTES): New macro.
* libnosys/configure.in: Check gcc's support for section attributes.
* libnosys/warning.h: Have link_warning expand to nothing if gcc
does not support section attributes.

22 years ago2002-05-10 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 10 May 2002 22:53:56 +0000 (22:53 +0000)]
2002-05-10  Elena Zannoni  <ezannoni@redhat.com>

        * sim-sh.h: New file, for sh gdb<->sim interface.

22 years ago2002-05-10 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 10 May 2002 17:51:18 +0000 (17:51 +0000)]
2002-05-10  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/string/strchr.c: Fix comment typo.

22 years ago* syscalls.cc (_write): Change error to EBADF if attempt to write to a
Christopher Faylor [Thu, 9 May 2002 22:55:08 +0000 (22:55 +0000)]
* syscalls.cc (_write): Change error to EBADF if attempt to write to a
non-writable fd.

22 years ago2002-05-09 Daniel Jacobowitz <drow@mvista.com>
Daniel Jacobowitz [Thu, 9 May 2002 22:19:48 +0000 (22:19 +0000)]
2002-05-09  Daniel Jacobowitz  <drow@mvista.com>

        * signals.h: Update comments.
        (enum target_signal): Remove conditional compilation around
        Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.

22 years ago * acinclude.m4: Add support for --enable-newlib-multithread.
Thomas Fitzsimmons [Wed, 8 May 2002 20:35:16 +0000 (20:35 +0000)]
* acinclude.m4: Add support for --enable-newlib-multithread.
* configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if
--enable-newlib-multithread=no.

22 years ago * libc/stdio/getc_u.c: New file.
Thomas Fitzsimmons [Wed, 8 May 2002 19:11:22 +0000 (19:11 +0000)]
* libc/stdio/getc_u.c: New file.
* libc/stdio/getchar_u.c: New file.
* libc/stdio/putc_u.c: New file.
* libc/stdio/putchar_u.c: New file.
* libc/include/stdio.h: Add declarations for getc_unlocked,
getchar_unlocked, putc_unlocked and putchar_unlocked.
* libc/stdio/Makefile.am (LIB_SOURCES): Add new files.
(CHEWOUT_FILES): Add new files' .def's.
* libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.

22 years ago * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
Joern Rennecke [Wed, 8 May 2002 17:56:50 +0000 (17:56 +0000)]
* libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
Also handle as single quad word when destination ends at last
byte of first quad word.  Fix byte selection in single quad code.

22 years ago* common.h (NT_GNU_ABI_TAG): Define.
Jason Thorpe [Wed, 8 May 2002 14:28:37 +0000 (14:28 +0000)]
* common.h (NT_GNU_ABI_TAG): Define.
(GNU_ABI_TAG_LINUX): Define.
(GNU_ABI_TAG_HURD): Define.
(GNU_ABI_TAG_SOLARIS): Define.
(NT_NETBSD_IDENT): Define.
(NT_FREEBSD_ABI_TAG): Define.

22 years ago * cygheap.h (class cygheap_user): Add member `orig_psid'.
Corinna Vinschen [Wed, 8 May 2002 14:21:08 +0000 (14:21 +0000)]
* cygheap.h (class cygheap_user): Add member `orig_psid'.
Add method `orig_sid()'.
* cygheap.cc (cygheap_user::set_sid): Maintain orig_psid.

22 years ago* dumper.cc (usage) Standardize usage output. Generalize to allow use for
Christopher Faylor [Wed, 8 May 2002 01:55:56 +0000 (01:55 +0000)]
* dumper.cc (usage) Standardize usage output.  Generalize to allow use for
help.
(longopts) New struct.  Added longopts for all options.
(print_version) New function.
(main) Change getopt to getopt_long.  Accommodate new help and version options.

22 years ago * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
Thomas Fitzsimmons [Wed, 8 May 2002 01:23:44 +0000 (01:23 +0000)]
* libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vector
support for 'p' format.  Fix code to print bytes for vector
integer formats that do not specify 'h' or 'l'.
* libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support
for 'p' specifier.  Fix code to scan 16 bytes for vector integer
formats that do not specify 'h' or 'l'.

22 years ago * libc/include/sys/stdio.h: New file.
Thomas Fitzsimmons [Wed, 8 May 2002 00:12:49 +0000 (00:12 +0000)]
* libc/include/sys/stdio.h: New file.
* libc/sys/linux/sys/stdio.h: New file.
* libc/include/stdio.h: Add declarations for flockfile,
ftrylockfile, and funlockfile.  Include <sys/stdio.h>.
* libc/stdio/clearerr.c: Add file locking.
* libc/stdio/fclose.c: Likewise.
* libc/stdio/feof.c: Likewise.
* libc/stdio/ferror.c: Likewise.
* libc/stdio/fflush.c: Likewise.
* libc/stdio/fgetc.c: Likewise.
* libc/stdio/fgetpos.c: Likewise.
* libc/stdio/fgets.c: Likewise.
* libc/stdio/fileno.c: Likewise.
* libc/stdio/fputc.c: Likewise.
* libc/stdio/fputs.c: Likewise.
* libc/stdio/fread.c: Likewise.
* libc/stdio/freopen.c: Likewise.
* libc/stdio/fseek.c: Likewise.
* libc/stdio/ftell.c: Likewise.
* libc/stdio/fwrite.c: Likewise.
* libc/stdio/getc.c: Likewise.
* libc/stdio/putc.c: Likewise.
* libc/stdio/setvbuf.c: Likewise.
* libc/stdio/ungetc.c: Likewise.
* libc/stdio/vfprintf.c: Likewise.

22 years ago * include/commctrl.h (ImageList_DragShowNolock): Remove
Danny Smith [Tue, 7 May 2002 22:58:26 +0000 (22:58 +0000)]
* include/commctrl.h (ImageList_DragShowNolock): Remove
conflicting redeclaration.

22 years ago2002-05-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 7 May 2002 17:52:36 +0000 (17:52 +0000)]
2002-05-07  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.LIBGLOSS: New file.

22 years agoHonour DESTDIR
Nick Clifton [Tue, 7 May 2002 17:22:14 +0000 (17:22 +0000)]
Honour DESTDIR

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