aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-09-01* tty.cc (tty::create_inuse): Eliminate unneeded argument.Christopher Faylor4-6/+13
* tty.h: Reflect above change. * fhandler_tty.cc: Reflect argument reduction in tty::create_inuse, throughout. Always make inuse inheritable.
2001-09-01* debug.cc (mark_closed): Rename from debug_mark_closed and make static.Christopher Faylor9-44/+95
(setclexec_pid): New function for marking saved handle as close-on-exec. (delete_handle): New function. (debug_fixup_after_fork): New function. * debug.h: Declare new functions, remove obsolete ones. * fork.cc (debug_fixup_after_fork): Call to cleanup close-on-exec handles. * fhandler.cc (fhandler_disk_file::close): Minor reorg. (fhandler_base::set_inheritance): Set flag appropriately for debugging when close-on-exec so forked process can delete closed handles. * tty.h (open_output_mutex): Eliminate unneeded argument. (open_input_mutex): Ditto. * fhandler_tty.cc (fhandler_tty_slave::open): reflect open_*_mutex argument changes. * fhandler.h (fhandler_socket): Make saw_shutdown_* functions type bool. * tty.cc (tty::get_event): Eliminate unneeded argument. (tty::common_init): Reflect change to get_event. Events should always be inherited.
2001-08-31mips3264 supportEric Christopher4-5/+10
2001-08-312001-03-30 Richard Henderson <rth@redhat.com>Eric Christopher2-4/+11
Eric Christopher <echristo@redhat.com> * mips/crt0.S: Fix for .init/.fini sections.
2001-08-31 * security.cc (create_token): Change initialization of `exp' to complyCorinna Vinschen2-1/+6
with new LARGE_INTEGER definition in winnt.h.
2001-08-31 * include/winnt.h: Change definition of `SYSTEM_LUID' to complyCorinna Vinschen2-1/+6
with new `LARGE_INTEGER' definition.
2001-08-312001-08-30 Richard Henderson <rth@redhat.com>Eric Christopher2-50/+61
Eric Christopher <echristo@redhat.com> * mips/idt.ld: Rewrite for .init/.fini sections.
2001-08-31* cygwin.sc: Revert to previous NO_COPY behavior.Christopher Faylor5-29/+33
* winsup.h: Ditto. * sigproc.cc: Ditto. * autoload.cc: Ditto.
2001-08-312001-08-30 Eric Christopher <echristo@redhat.com>Eric Christopher2-3/+8
Jason Eckhardt <jle@redhat.com> * config.sub: Add support for mipsisa32.
2001-08-312001-08-30 Eric Christopher <echristo@redhat.com>Eric Christopher3-5/+15
* config.sub, config.guess: Import latest from subversions.
2001-08-31minor wording change.Christopher Faylor1-1/+1
2001-08-31space reduction.Christopher Faylor1-2/+2
2001-08-31space reduction.Christopher Faylor1-1/+1
2001-08-31* cygwin.sc: New file -- linker script for building cygwin DLL.Christopher Faylor10-46/+236
* Makefile.in: Use linker script to control location of cygheap. * cygheap.cc (buckets): Make static. (init_cheap): Remove special iswinnt handling. Allocate cygheap at a fixed location. Display more info when allocation fails. (cygheap_fixup_in_child): Try harder to move cygheap to correct location. Display more info when allocation fails. * fhandler.h (fhandler_socket): Add macros for tracking socket shutdown state. * net.cc (cygwin_shutdown): Set appropriate shutdown value for future use. * select.cc (select_stuff::cleanup): New method. (cygwin_select): Call cleanup explicitly to avoid a race. (select_stuff:~select_stuff): Call cleanup chain via cleanup method. (fhandler_socket::select_read): Set *_ready when shutdown has been called on the socket. (fhandler_socket::select_write): Ditto. (fhandler_socket::select_except): Ditto. * winsup.h: Move NO_COPY to "COMMON" section. * autoload.cc (wsock_started): Avoid initializing NO_COPY value. * sigproc.cc: Remove initialization from NO_COPY variables. (sigproc_init): Initialize sig_loop_wait here, rather than via initialization. (subproc_init): Initialize proc_loop_wait here, rather than via initialization.
2001-08-30* dumper.h: Update copyright notice.Egor Duda3-6/+50
* dumper.cc: Ditto. * dumper.cc: (dumper::print_core_section_list): New function. * dumper.h: (dumper::print_core_section_list): Declare it. * dumper.cc (print_section_name): New function. (dumper::collect_process_information): Augment debugging output. Stop debugee processing if it posts double exception. (usage): Fix typo in option name.
2001-08-30* include/winsock2.h: Remove "extra token" after #endif.Christopher Faylor2-1/+5
2001-08-30 * select.cc (select_read): Add setting read_ready flag.Corinna Vinschen2-0/+7
(select_write): Add setting write_ready flag.
2001-08-30 * config.guess: Remove the \r from the end of line.Earnie Boyd7-368/+500
* config.sub: Ditto. * include/winnt.h: Allow anonymous struct in [U]LARGE_INTEGER if __cplusplus as well as if _ANONYMOUS_STRUCT. * config.guess: Add the MSYS system. * config.sub: Ditto. * include/winsock.h: Add the __INSIDE_MSYS__ protections. * incldue/winsock2.h: Ditto.
2001-08-292001-08-29 Joel Sherrill <joel@OARcorp.com>Jeff Johnston18-3/+78
* libc/include/sys/unistd.h: Prototype chroot() for RTEMS. 2001-08-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S, libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c, libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S, libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S, libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S, libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S, libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c, libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S: Add conditional compilation to avoid HW FPU instructions when compiled for soft-float.
2001-08-29merge from gccDJ Delorie2-5/+11
2001-08-292001-08-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-4/+10
* Makefile.am: Add check for ln failing when creating libg.a so that cp gets used as a backup. * Makefile.in: Regenerated.
2001-08-292001-08-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston5-6/+36
* libc/include/sys/reent.h: Add include of <sys/_types.h>. No longer include time.h. Add struct __tm to use for _localtime_buf in the reentrant structure. Add a _NULL definition to use in initializing the reentrant struct. * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in <sys/_types.h>. * libc/include/sys/unistd.h: Include <sys/_types.h>. * libc/time/lcltime.c (localtime): Cast the reentrant struct _localtime_buf to be struct tm *.
2001-08-29 * h8.h (EF_H8_MACH): New mask for encoded machine type.Jeff Law2-1/+17
(E_H8_MACH_H8300, E_H8_MACH_H8300H, E_H8_MACH_H8300S): New machine types.
2001-08-29 * include\winnt.h: Allow anonymous (Xxx.LowPart) orEarnie Boyd3-14/+35
non-anonymous (Xxx.u.LowPart) access to HighPart and LowPart of a LARGE_INTEGER or ULARGE_INTEGER. * include/wingdi.h (HANGUL_CHARSET): Add define.
2001-08-29 * include/stdarg.h (va_list): Typedef as __builtin_va_list ifEarnie Boyd4-6/+23
__GNUC__ >= 3. * include/varargs.h (va_list): Ditto. * include/stdio.h (va_list): Ditto.
2001-08-29 * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.Joern Rennecke4-0/+25
* libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors / __ctors_end. * libc/sys/h8300hms/syscalls.c: Include errno.h. (_unlink): New stub function.
2001-08-29* path.cc (path_conv::check): Avoid splitting off leading '/' in path componentChristopher Faylor2-0/+7
when building a symlink.
2001-08-28 * resource.cc (getrlimit): Return actual values on RLIMIT_STACK.Corinna Vinschen2-0/+15
2001-08-28 * h8.h: New file.Joern Rennecke2-0/+90
2001-08-28oopsChristopher Faylor1-14/+7
2001-08-28* dir.cc (rmdir): Report ENOENT when file doesn't exist rather than ENOTDIR.Christopher Faylor3-9/+27
2001-08-28* mount.cc (main): Issue correct warning for 'not enough arguments'.Christopher Faylor2-1/+8
2001-08-27merge from gccDJ Delorie2-4/+8
2001-08-27* select.cc (cygwin_select): Ensure that arguments are zeroed on timeout.Christopher Faylor2-12/+20
(select_stuff::wait): Ditto.
2001-08-27 * ppc.h (PPC_OPERAND_DS): Define.Alan Modra2-1/+7
2001-08-27 * ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.Alan Modra2-1/+77
2001-08-27 * xcoff.h (struct __rtinit): Make proper prototype for rtl.Andreas Jaeger2-2/+7
2001-08-26For include/opcode:Andreas Jaeger4-40/+54
* d30v.h: Fix declaration of reg_name_cnt. * d10v.h: Fix declaration of d10v_reg_name_cnt. * arc.h: Add prototypes from opcodes/arc-opc.c. For opcodes: * tic54x-dis.c: Add unused attributes where needed. * z8k-dis.c (output_instr): Add unused attribute. * h8300-dis.c: Add missing prototypes. (bfd_h8_disassemble): Make static. * cris-dis.c: Add missing prototype. * h8500-dis.c: Likewise. * m68hc11-dis.c: Likewise. * pj-dis.c: Likewise. * tic54x-dis.c: Likewise. * v850-dis.c: Likewise. * vax-dis.c: Likewise. * w65-dis.c: Likewise. * z8k-dis.c: Likewise. * d10v-dis.c: Add missing prototype. (dis_long): Remove unused variable. (dis_2_short): Likewise. * sh-dis.c: Add missing prototypes. * v850-opc.c: Likewise. Add unused attributes where needed. * ns32k-dis.c: Add missing prototypes. (bit_extract_simple): Remove unused variable.
2001-08-26* libc/include/sys/errno.h: Add a cautionary comment.Christopher Faylor2-0/+6
2001-08-25* syscalls.cc (check_tty_fds): New function. Check whether there is a fdChristopher Faylor2-2/+25
referring to pty slave. (setsid): Don't detach console if the process has a pty slave.
2001-08-25fix compile time warning messageNick Clifton2-1/+6
2001-08-24Apply H.J.'s patch to revert change to elfxx-target.hNick Clifton2-0/+19
Apply my patch to allow SREC as output format.
2001-08-24 * net.cc (free_addr_list): Add define for symmetry.Corinna Vinschen2-2/+35
(free_hostent_ptr): Use free_addr_list to free h_addr_list element. (dup_addr_list): New static function. (dup_hostent_ptr): Use dup_addr_list instead of dup_char_list in order to handle embedded null characters.
2001-08-24 * internal.h (R_JMP2, R_JMPL2, R_MOVL2): Comment spelling fix.Joern Rennecke2-3/+7
2001-08-23 * elf-bfd.h (enum elf_reloc_type_class): New.Jakub Jelinek2-1/+13
(struct elf_backend_data): Add elf_backend_reloc_type_class. (_bfd_elf_reloc_type_class): New. * elfxx-target.h (elf_backend_reloc_type_class): Define. (elfNN_bed): Add elf_backend_reloc_type_class. * elf.c (_bfd_elf_reloc_type_class): New. * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf_i386_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (elf32_sparc_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the reloc is against read-only section. (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. (sparc64_elf_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field. (elfNN_ia64_hash_table_create): Clear ia64_info. (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only section. (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag instead of looking up section names for DT_TEXTREL. (elfNN_ia64_reloc_type_class): New. (elf_backend_reloc_type_class): Define. * elflink.h (size_dynamic_sections): Add spare DT_NULL tags. (struct elf_link_sort_rela): New. (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New. (elf_bfd_final_link): Call elf_link_sort_relocs. Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if necessary. * bfdlink.h (struct bfd_link_info): Add combreloc and spare_dynamic_tags fields. * emultempl/elf32.em (place_orphan): Place orphan .rel* sections into .rel.dyn resp. .rela.dyn if combreloc. (get_script): If .x linker script is equal to .xn, only put it once into the binary. Add .xc and .xsc scripts. (parse_args): Handle -z combreloc and -z nocombreloc. * scripttempl/elf.sc (.rela.sbss): Fix a typo. For .xc and .xsc scripts put all .rel* or .rela* input sections but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn. * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME is elf. Strip trailing whitespace from script. Generate .xc and .xsc scripts if requested. * ldmain.c (main): Initialize link_info.combreloc and link_info.spare_dynamic_tags. * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define. (ld_options): Add --spare-dynamic-tags option. (parse_args): Likewise. * ld.texinfo: Document -z combreloc and -z nocombreloc. * ldint.texinfo: Document .xc and .xsc linker scripts. * NEWS: Add notes about -z combreloc and SHF_MERGE.
2001-08-23merge from gccDJ Delorie6-20/+25
2001-08-23* dtable.cc (dtable::dup2): Allow extension of fd table by dup2.Christopher Faylor4-24/+28
* syscalls.cc: Minor code cleanup. (fpathconf): Check for bad fd before doing anything else. * termios.cc (tcsetattr): Don't convert to new termios if bad fd. (tcgetattr): Minor debugging tweak.
2001-08-22 * net.cc (cygwin_inet_ntoa): Rearrange previous patch to useCorinna Vinschen4-68/+94
thread local buffer space when compiled thread safe. (cygwin_getprotobyname): Ditto. (cygwin_getprotobynumber): Ditto. (cygwin_getservbyname): Ditto. (cygwin_getservbyport): Ditto. (cygwin_gethostbyname): Ditto. (cygwin_gethostbyaddr): Ditto. Move near to cygwin_gethostbyname. * thread.h (struct _winsup_t): Add pointers for above used buffer space. * passwd.cc (getpwduid): Remove initializing passwd. (setpwent): Ditto. (endpwent): Ditto. (setpassent): Ditto.
2001-08-22* smallprint.c (console_printf): New function.Christopher Faylor8-36/+81
* dcrt0.cc (dll_crt0_1): Use console_printf for debugging output. * debug.cc (debug_mark_closed): New function. (close_handle): Use debug_mark_closed. * debug.h: Declare new functions. * dtable.cc (dtable::build_fhandler): Remove unneeded extern. * spawn.cc: Cosmetic changes. * winsup.h: Define NO_COPY for C files, too. Declare a global.
2001-08-22 * net.cc (free_char_list): New static function.Corinna Vinschen2-7/+205
(dup_char_list): Ditto. (free_protoent_ptr): Ditto. (dup_protoent_ptr): Ditto. (free_servent_ptr): Ditto. (dup_servent_ptr): Ditto. (free_hostent_ptr): Ditto. (dup_hostent_ptr): Ditto. (cygwin_inet_ntoa): Use local static buffer to allow propagating of the result to child processes. (cygwin_getprotobyname): Ditto. (cygwin_getprotobynumber): Ditto. (cygwin_getservbyname): Ditto. (cygwin_getservbyport): Ditto. (cygwin_gethostbyname): Ditto. (cygwin_gethostbyaddr): Ditto.