summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.Joern Rennecke2001-08-294-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.
* * path.cc (path_conv::check): Avoid splitting off leading '/' in path componentChristopher Faylor2001-08-292-0/+7
| | | | when building a symlink.
* * resource.cc (getrlimit): Return actual values on RLIMIT_STACK.Corinna Vinschen2001-08-282-0/+15
|
* * h8.h: New file.Joern Rennecke2001-08-282-0/+90
|
* oopsChristopher Faylor2001-08-281-14/+7
|
* * dir.cc (rmdir): Report ENOENT when file doesn't exist rather than ENOTDIR.Christopher Faylor2001-08-283-9/+27
|
* * mount.cc (main): Issue correct warning for 'not enough arguments'.Christopher Faylor2001-08-282-1/+8
|
* merge from gccDJ Delorie2001-08-272-4/+8
|
* * select.cc (cygwin_select): Ensure that arguments are zeroed on timeout.Christopher Faylor2001-08-272-12/+20
| | | | (select_stuff::wait): Ditto.
* * ppc.h (PPC_OPERAND_DS): Define.Alan Modra2001-08-272-1/+7
|
* * ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.Alan Modra2001-08-272-1/+77
|
* * xcoff.h (struct __rtinit): Make proper prototype for rtl.Andreas Jaeger2001-08-272-2/+7
|
* For include/opcode:Andreas Jaeger2001-08-264-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.
* * libc/include/sys/errno.h: Add a cautionary comment.Christopher Faylor2001-08-262-0/+6
|
* * syscalls.cc (check_tty_fds): New function. Check whether there is a fdChristopher Faylor2001-08-252-2/+25
| | | | | referring to pty slave. (setsid): Don't detach console if the process has a pty slave.
* fix compile time warning messageNick Clifton2001-08-252-1/+6
|
* Apply H.J.'s patch to revert change to elfxx-target.hNick Clifton2001-08-242-0/+19
| | | | Apply my patch to allow SREC as output format.
* * net.cc (free_addr_list): Add define for symmetry.Corinna Vinschen2001-08-242-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.
* * internal.h (R_JMP2, R_JMPL2, R_MOVL2): Comment spelling fix.Joern Rennecke2001-08-242-3/+7
|
* * elf-bfd.h (enum elf_reloc_type_class): New.Jakub Jelinek2001-08-232-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.
* merge from gccDJ Delorie2001-08-236-20/+25
|
* * dtable.cc (dtable::dup2): Allow extension of fd table by dup2.Christopher Faylor2001-08-234-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.
* * net.cc (cygwin_inet_ntoa): Rearrange previous patch to useCorinna Vinschen2001-08-224-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.
* * smallprint.c (console_printf): New function.Christopher Faylor2001-08-228-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.
* * net.cc (free_char_list): New static function.Corinna Vinschen2001-08-222-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.
* fix typo.Christopher Faylor2001-08-221-1/+1
|
* merge from gccDJ Delorie2001-08-222-13/+19
|
* * mips/Makefile.in (jmr3904-io.o): Remove bogus use of `-mips3.'Jonathan Larmour2001-08-222-1/+5
|
* 2001-08-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-212-1/+6
| | | | | * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional for SIZE_SZ so that alignment ends up a minimum of 8.
* merge from gccDJ Delorie2001-08-212-0/+84
|
* * include/setupapi.h : New file.Earnie Boyd2001-08-2116-54/+2133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/setupapi.def:New file. * lib/test.c: Include setupapi.h. * include/winioctl.h (_DISK_PERFORMANCE): Correct typo. * include/richedit.h (ENLINK): Add structure definition. (EM_AUTOURLDETECT, EN_LINK, ENM_LINK): Add defines. * include/shlobj.h (CMIC_*): Remove duplicate defines. (CMDSTR_*): Remove duplicates; UNICODE string constants. (GCS_*): Make UNICODE. (CSIDL_*): Add more defines. * include/winioctl.h (_MEDIA_TYPE): Add pointer typedef. (_DISK_GEOMETRY): Ditto. (_DISK_PERFORMANCE): Ditto. * include/winbase.h (HasOverlappedIoCompleted): Add macro. * include/winnt.h: Move CHAR, SHORT and LONG typedefs outside of block protected by #ifndef VOID. (This reverts 1998-12-01 Anders Norlander change.) * include/odbcinst.h: End file with newline. * include/raserror.h: Ditto. * include/winsock2.h (#include <wtypes.h): Don't. (_BLOB): Define instead, if not already done. (__BLOB_T_DEFINED: New define for guarding _BLOB. * include/wtypes.h (_BLOB): Guard against prior definition. * include/oaidl.h (tagVARIANT): Mark anonymous structs and unions as __extension__. (tagTYPEDESC): Ditto. (_wireBRECORD): Add structure definition. (_wireSAFEARR_BRECORD): Ditto. (_wireSAFEARR_HAVEIID): Ditto. (_wireSAFEARRAY_UNION.u): Add fields SAFEARR_BRECORD RecordStr, SAFEARR_HAVEIID HaveIidStr. (tagVariant): Add fields _VARIANT_BOOL bool,*pbool. (_wireVARIANT): Change field parray to type wirePSAFEARRAY, pparray to wirePSAFEARRAY*. (_wireVARIANT): Add field wireBRECORD brecVal. (wireVARIANT): Change typedef to struct _wireVariant*. (IRecordInfo): Add interface definition. (LPRECORDINFO): Add typedef for IRecordInfo*. (IID_IRecordInfo): Add forward decalaration. * include/lmcons.h: Guard CNLEN and UNCLEN against prior definition. * include/nddeapi.h: Likewise. * ChangeLog: Formatting and typo fixes.
* * floatformat.h (floatformat_arm_ext): Document as deprecated.Andrew Cagney2001-08-212-1/+17
| | | | | | | (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword) (floatformat_ia64_spill_little, floatformat_ia64_quad_little) (floatformat_ia64_spill_big, floatformat_ia64_quad_big) (floatformat_m88110_harris_ext): Declare.
* debugChristopher Faylor2001-08-201-1/+1
|
* * cygheap.cc (init_cheap): Allocate cygheap in shared memory for Windows NT.Christopher Faylor2001-08-202-4/+23
|
* * config.sub, config.guess: Import latest from subversions.Alan Modra2001-08-203-212/+212
|
* merge from gccDJ Delorie2001-08-182-137/+186
|
* merge from gccDJ Delorie2001-08-172-0/+7
|
* Add support for MIPS R1[02]000 performance counter opcodes.Thiemo Seufer2001-08-162-1/+10
|
* * fhandler_socket.cc (fhandler_socket::create_secret_event): RelaxEgor Duda2001-08-162-2/+9
| | | | | | security of secret_event so AF_UNIX socket clients can connect to servers even if running under a different user account. (fhandler_socket::check_peer_secret_event): Ditto.
* * resource.cc (getrlimit): Return getdtablesize () as current limitCorinna Vinschen2001-08-164-3/+11
| | | | | | | on RLIMIT_NOFILE. * syscalls.cc (getdtablesize): Return OPEN_MAX if current dtable size is less than OPEN_MAX, the current dtable size otherwise. * sysconf.cc (sysconf): Return getdtablesize () on _SC_OPEN_MAX.
* * resource.cc (getrlimit): Return OPEN_MAX as current limitCorinna Vinschen2001-08-165-5/+20
| | | | | | | on RLIMIT_NOFILE. * syscalls.cc (getdtablesize): Return OPEN_MAX. * sysconf.cc (sysconf): Return OPEN_MAX on _SC_OPEN_MAX. * include/limits.h (OPEN_MAX): Define as 256.
* * times.cc (utimes): Revert previous change. Just open theCorinna Vinschen2001-08-152-32/+10
| | | | | file using FILE_WRITE_ATTRIBUTES instead of GENERIC_WRITE on NT/W2K.
* * security.cc (set_nt_attribute): Return always -1 in case ofCorinna Vinschen2001-08-153-2/+40
| | | | | | | a failure. * times.cc (utimes): On NTFS with ntsec ON, change the file's security descriptor temporarily to acquire write access if opening the file failed.
* * fhandler.cc (fhandler_base::is_nonblocking): New method.Corinna Vinschen2001-08-157-24/+46
| | | | | | | | | | | | | | | | | | (fhandler_base::set_nonblocking): Ditto. * fhandler.h (fhandler_base): Declare new methods `is_nonblocking' and `set_nonblocking'. * fhandler_socket.cc (fhandler_socket::ioctl): Use `set_nonblocking'. * fhandler_tty.cc (fhandler_pty_master::process_slave_output): Use `is_nonblocking'. (fhandler_tty_slave::read): Ditto. (fhandler_tty_slave::ioctl): Use `set_nonblocking'. (fhandler_pty_master::ioctl): Ditto. * net.cc (cygwin_sendto): Fallback to winsock 1 functionality in case of nonblocking IO. (cygwin_recvfrom): Ditto. (cygwin_recv): Ditto. (cygwin_send): Ditto. * syscalls.cc (_read): Use `is_nonblocking'.
* * cygpath.cc (main): Support -w for Windows (System) directories and returnChristopher Faylor2001-08-152-2/+16
| | | | physical correct orthography for the Windows System dir.
* * include/cygwin/version.h: Bump API version.Christopher Faylor2001-08-142-1/+6
|
* * spawn.cc (spawn_guts): Enable appropriate privilege beforeEgor Duda2001-08-142-0/+12
| | | | loading user's registry hive.
* * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro arguments.Christopher Faylor2001-08-143-4/+20
| | | | * libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under Cygwin.
* * fhandler.cc (fhandler_base::fcntl): Use new O_NONBLOCK_MASK define.Corinna Vinschen2001-08-148-28/+68
| | | | | | | | | | | | | | | | | | | * fhandler.h: Move definitions of O_NOSYMLINK, O_DIROPEN and OLD_O_NDELAY from winsup.h to here. Add O_NONBLOCK_MASK define. * fhandler_socket.cc (fhandler_socket::close): Add hack to allow a graceful shutdown even if shutdown() hasn't been called by the application. Add debug output. (fhandler_socket::ioctl): Set fhandler's NONBLOCK flag according to FIONBIO setting. (fhandler_socket::fcntl): Use new O_NONBLOCK_MASK define. Actually set `request' before using it. * fhandler_tty.cc: Use new O_NONBLOCK_MASK define throughout. (fhandler_tty_slave::ioctl): Set fhandler's NONBLOCK flag according to FIONBIO setting. (fhandler_pty_master::ioctl): Ditto. * net.cc (wsock_event::prepare): Compare WSACreateEvent return code with `WSA_INVALID_EVENT' according to MSDN. * syscalls.cc (_read): Use new O_NONBLOCK_MASK define.
* 2001-08-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-08-132-0/+20
| | | | | | * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New macro constants for mallopt options. (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.