summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler_disk_file.cc (DIR_NUM_ENTRIES): Set to 100 to maximizeCorinna Vinschen2006-08-202-24/+68
| | | | | | | | | | | performance on remote shares. (fhandler_disk_file::opendir): Move comment about Samba weirdness into fhandler_disk_file::readdir. Don't disallow FileIdBothDirectoryInformation on Samba. (fhandler_disk_file::readdir): Workaround Samba problem with FileIdBothDirectoryInformation by rereading already read entries using FileBothDirectoryInformation. Change comment about Samba weirdness explaining this change.
* * fhandler_disk_file.cc (fhandler_disk_file::pread): Properly check forChristopher Faylor2006-08-192-4/+9
| | | | non-error return from lseek.
* * sys/types.h: Correct syntax error caused by missing '\' on #ifdef line.Christopher Faylor2006-08-192-1/+6
|
* 2006-08-17 Brian Ford <Brian.Ford@FlightSafety.com>Jeff Johnston2006-08-172-5/+10
| | | | | * libc/time/gmtime.c: Correct man page; clock is not a local time and no conversion occurs.
* * fhandler_serial.cc (raw_read): Evaluate minchars taking theCorinna Vinschen2006-08-172-14/+15
| | | | | | vmin_ > ulen case into account. Simplify evaluating the bytes to read. Don't use bytes in Queue value from ClearCommError call in case vtime_ is > 0. Reformat GetOverlappedResult call. Simplify call to ReadFile.
* 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-08-162-0/+6
| | | | | * configure.host (newlib_cflags) [spu]: Add special compiler options to reduce size.
* 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-08-162-1/+6
| | | | | * spu/Makefile.in: Add special compiler options to reduce size.
* 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-08-163-12/+57
| | | | | | * spu/jsre.h(JSRE_STAT): New define. (syscall_stat_t): New type. * spu/syscalls.c(stat): New syscall.
* 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-08-1614-6/+5667
| | | | | | | | | | | | | | | | * configure.host: Add spu support. * libc/include/stdint.h: Ditto. * libc/include/machine/ieeefp.h: Ditto. * libc/include/machine/setjmp.h: Ditto. * libc/include/sys/config.h: Ditto. * libc/include/sys/types.h: Ditto. * libc/machine/spu/Makefile.am: New file. * libc/machine/spu/Makefile.in: Ditto. * libc/machine/spu/aclocal.m4: Ditto. * libc/machine/spu/configure: Ditto. * libc/machine/spu/configure.in: Ditto. * libc/machine/spu/memcpy.c: Ditto. * libc/machine/spu/setjmp.S: Ditto.
* 2006-08-16 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2006-08-1613-0/+4350
| | | | | | | | | | | | | | | * configure.in: Add spu support. * configure: Regenerated. * spu/Makefile.in: New file. * spu/aclocal.m4: Ditto. * spu/configure: Ditto. * spu/configure.in: Ditto. * spu/crt0.c: Ditto. * spu/exit.c: Ditto. * spu/init.c: Ditto. * spu/jsre.h: Ditto. * spu/sbrk.c: Ditto. * spu/syscalls.c: Ditto.
* [ ChangeLog ]Thiemo Seufer2006-08-152-0/+10
| | | | | | | | | | | | | | | | | * config.sub: Add support for sde as alias of mipsisa32-sde-elf. [ bfd/ChangeLog ] * config.bfd: Add configurations for mips*el-sde-elf* and mips*-sde-elf*. [ binutils/testsuite/ChangeLog ] * binutils-all/readelf.exp (readelf_test): Handle mips*-sde-elf*. [ gas/ChangeLog ] * configure.tgt: Handle mips*-sde-elf*. [ gas/testsuite/ChangeLog ] * gas/mips/mips.exp: Handle mips*-sde-elf*.
* * security.cc (subauth): Initialize user_token to NULL. Add comment.Corinna Vinschen2006-08-142-2/+9
|
* * shared.cc (open_shared): Desperately try to get shared memory, onlyCorinna Vinschen2006-08-112-0/+29
| | | | when DEBUGGING enabled for now.
* * lib/wtsapi32.def (WTSGetActiveConsoleSessionId). Move from here...Danny Smith2006-08-103-1/+8
| | | | * lib/kernel32.def (WTSGetActiveConsoleSessionId). ...to here.
* * pinfo.cc (_onreturn::~onreturn): Don't attempt to close a NULL handle.Christopher Faylor2006-08-103-2/+8
|
* revert erroneous checkinChristopher Faylor2006-08-102-5/+18
|
* * winsup.h: Turn on DEBUGGING by default for now.Christopher Faylor2006-08-105-18/+103
|
* * fhandler_disk_file.cc (fhandler_disk_file::lock): HandleCorinna Vinschen2006-08-102-0/+7
| | | | ERROR_NOT_LOCKED returned from UnlockFileEx.
* * overview2.sgml: Remove inaccurate "full support for windows pathnames"Christopher Faylor2006-08-092-2/+6
| | | | clause.
* * path.h (SYMLINK_EA_NAME): Remove.Corinna Vinschen2006-08-092-5/+5
| | | | (SHORTCUT_HDR_SIZE): Ditto.
* * autoload.cc (GetHandleInformation): Declare new function.Christopher Faylor2006-08-094-3/+16
| | | | | | | (SetHandleInformation): Ditto. * debug.cc (add_handle): Use SetHandleInformation to protect handle. (close_handle): Use SetHandleInformation to unprotect handle. * spawn.cc (spawn_guts): Move detached test outside of P_OVERLAY block.
* * autoload.cc (NtSetInformationFile): Define.Corinna Vinschen2006-08-0711-33/+213
| | | | | | | | | | | | | | | | | | | | | | | | | * cygwin.din: Export posix_fadvise and posix_fallocate. * fhandler.cc (fhandler_base::fadvise): New method. (fhandler_base::ftruncate): Add allow_truncate parameter. * fhandler.h (class fhandler_base): Add fadvise method. Accomodate new parameter to ftruncate. (class fhandler_pipe): Add fadvise and ftruncate methods. (class fhandler_disk_file): Add fadvise method. Accomodate new parameter to ftruncate. * fhandler_disk_file.cc (fhandler_disk_file::fadvise): New method. (fhandler_disk_file::ftruncate): Accomodate new allow_truncate parameter. Set EOF using NtSetInformationFile on NT. * ntdll.h (struct _FILE_END_OF_FILE_INFORMATION): Define. (NtSetInformationFile): Declare. * pipe.cc (fhandler_pipe::fadvise): New method. (fhandler_pipe::ftruncate): Ditto. * syscalls.cc (posix_fadvise): New function. (posix_fallocate): Ditto. (ftruncate64): Accomodate second parameter to fhandler's ftruncate method. * include/fcntl.h: Add POSIX_FADV_* flags. Add declarations of posix_fadvise and posix_fallocate. * include/cygwin/version.h: Bump API minor number.
* * ldmain.c (main): Initialise print_gc_sections field of link_info structure.Nick Clifton2006-08-042-0/+7
| | | | | | | | * lexsup.c: Add --print-gc-sections and --no-print-gc-sections switches. * ld.texinfo: Document new switches. * NEWS: Mention new switches. * bfdlink.h (struct bfd_link_info): New field: print_gc_sections. * elflink.c (elf_gc_sweep): If info.print_gc_sections is true, list removed sections to stderr.
* * include/ctype.h: Remove stray ')'.Danny Smith2006-08-032-1/+5
|
* 2006-08-03 J"orn Rennecke <joern.rennecke@st.com>Jeff Johnston2006-08-032-0/+13
| | | | | * dtoa.c (dtoa_r): Handle the denormalized _DOUBLE_IS_32BITS case properly.
* * path.cc (vconcat): Don't convert backslahes to slashes.Corinna Vinschen2006-08-032-4/+6
| | | | (cygpath): Return native path with all backslashes.
* * include/ctype.h (_BLANK): Expand comment.Danny Smith2006-08-036-7/+64
| | | | | | | | | (isblank): Add prototype and inline definition. (iswblank): Add prototype and inline definition. * include/wctype.h (iswblank): Add prototype and inline definition. * mingwex/isblank.c: New file. * mingwex/iswblank.c: New file. * mingwex/Makefile.in: Add isblank, iswblank to libmingwex.a
* fix typoChristopher Faylor2006-08-031-1/+1
|
* * Makefile.in (subauth): Add dependency on mingw.Christopher Faylor2006-08-032-0/+6
|
* * environ.cc (env_win32_to_posix_path_list): Declare.Christopher Faylor2006-08-024-5/+44
| | | | | | | | | | (conv_envvars): Use env_win32_to_posix_path_list rather than cygwin_win32_to_posix_path_list. (posify): Translate back to win32 path if errno is EIDRM. * environ.h: Update copyright. Define ENV_CVT. * path.cc (conv_path_list): If converting for the environment and removed an element set errno to ENV_CVT. (env_win32_to_posix_path_list): New function.
* * Makefile.in (cygpath.exe): Add rule to link cygpath against ntdll.dll.Corinna Vinschen2006-08-023-0/+178
| | | | | | | | | * cygpath.cc: Include DDK headers. (RtlAllocateUnicodeString): New static inline function. (get_device_name): New static function to evaluate DOS path from native NT path. (get_device_paths): New function to do the same for path lists. (doit): Call get_device_paths/get_device_name where appropriate.
* 2006-08-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-08-016-15/+30
| | | | | | | | | * libc/Makefile.am: Add libc_TEXINFOS dependency on generated .texi files. * libm/Makefile.am: Add libm_TEXINFOS dependency on generated .texi files. * libc/Makefile.in: Regenerated. * libm/Makefile.in: Ditto.
* * cygwinenv.sgml: Document [no]dosfilewarning option.Christopher Faylor2006-08-012-1/+11
|
* * environ.cc (dos_file_warning): Declare.Christopher Faylor2006-08-015-10/+55
| | | | | | | | | | | | (parse_thing): Add "dosfilewarning". Alphabetize. * path.cc (normalize_posix_path): Return -1 when MS-DOS path detected. (warn_msdos): New function. (path_conv::check): Call if !PC_NOWARN and MS-DOS path detected. (cygwin_conv_to_win32_path): Set PC_NOWARN when calling path_conv. (cygwin_conv_to_full_win32_path): Ditto. * path.h (pathconv_arg::PC_NOWARN): Define. * shared_info.h (user_info::warned_msdos): New field. (CURR_USER_MAGIC): Reset.
* 2006-08-01 Thiemo Seufer <ths@mips.com>Jeff Johnston2006-08-012-0/+10
| | | | | | | Nigel Stephens <nigel@mips.com> * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS define this to force _impure_ptr to live in the .sdata section.
* 2006-07-31 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-07-31177-89/+6204
| | | | | | * acinclude.m4: Check for readelf tool. * configure.in: Use ${READELF} instead of hard-coding. * Regenerate all aclocal.m4, Makefile.in, and configure files.
* 2006-07-31 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-07-312-1/+5
| | | | | * libc/sys/linux/mmap.c: Remove include of sys/mman.h to avoid conflict with newer glibc's revision of mremap.
* * fhandler_socket.cc (fhandler_socket::recv_internal): Fix a problemCorinna Vinschen2006-07-314-37/+25
| | | | | | | | with poll(2) after shutdown(SHUT_RD) has been called on the local side. * poll.cc (poll): Use POSIX type nfds_t for second parameter. Drop special socket handling for POLLIN. Add comment to explain why. * include/sys/poll.h: Declare nfds_t. Use as type for second parameter in poll(2) declaration.
* * fhandler_socket.cc (fhandler_socket::evaluate_events): CircumventCorinna Vinschen2006-07-312-22/+23
| | | | | | | potential race condition. (fhandler_socket::recv_internal): Fix MSG_PEEK bug on blocking sockets and simplify recv loop. (fhandler_socket::send_internal): Only lock when changing wsock_events.
* * autoload.cc: Drop LoadDLLprime for wsock32 since no wsock32 functionCorinna Vinschen2006-07-312-15/+7
| | | | is used anymore. Drop all unused ws2_32.dll functions.
* * cygpath.cc (get_long_name): Fallback to get_long_path_name_w32impl.Corinna Vinschen2006-07-312-4/+15
|
* Update more IMAGE relocation type indicatorsDanny Smith2006-07-292-15/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to PECOFF v8 (May, 2006) specs. * include/winnt.h (IMAGE_REL_SH3_ABSOLUTE, IMAGE_REL_SH3_DIRECT16, IMAGE_REL_SH3_DIRECT32, IMAGE_REL_SH3_DIRECT8, IMAGE_REL_SH3_DIRECT8_WORD, IMAGE_REL_SH3_DIRECT8_LONG, IMAGE_REL_SH3_DIRECT4, IMAGE_REL_SH3_DIRECT4_WORD, IMAGE_REL_SH3_DIRECT4_LONG, IMAGE_REL_SH3_PCREL8_WORD, IMAGE_REL_SH3_PCREL8_LONG, IMAGE_REL_SH3_PCREL12_WORD, IMAGE_REL_SH3_STARTOF_SECTION, IMAGE_REL_SH3_SIZEOF_SECTION, IMAGE_REL_SH3_SECTION, IMAGE_REL_SH3_SECREL, IMAGE_REL_SH3_DIRECT32_NB, IMAGE_REL_SH3_GPREL4_LONG, IMAGE_REL_SH3_TOKEN, IMAGE_REL_SHM_PCRELPT, IMAGE_REL_SHM_REFLO, IMAGE_REL_SHM_REFHALF, IMAGE_REL_SHM_RELLO, IMAGE_REL_SHM_RELHALF, IMAGE_REL_SHM_PAIR, IMAGE_REL_SHM_NOMODE): Add defines. (IMAGE_REL_M32R_ABSOLUTE, IMAGE_REL_M32R_ADDR32, IMAGE_REL_M32R_ADDR32NB, IMAGE_REL_M32R_ADDR24, IMAGE_REL_M32R_GPREL16, IMAGE_REL_M32R_PCREL24, IMAGE_REL_M32R_PCREL16, IMAGE_REL_M32R_PCREL8, IMAGE_REL_M32R_REFHALF, IMAGE_REL_M32R_REFHI, IMAGE_REL_M32R_REFLO, IMAGE_REL_M32R_PAIR, IMAGE_REL_M32R_SECTION, IMAGE_REL_M32R_SECREL, IMAGE_REL_M32R_TOKEN): Add defines. (IMAGE_REL_MIPS_JMPADDR16): Add define.
* * fhandler.h (struct wsa_event): Define here.Corinna Vinschen2006-07-284-15/+35
| | | | | | | | | | | | (class fhandler_socket): Make wsock_evt private again. (fhandler_socket::wsock_event): New read accessor for wsock_evt. (fhandler_socket::serial_number): New read accessor to get the socket's serial number. (fhandler_socket::ready_for_read): Just return true. * fhandler_socket.cc (struct wsa_event): Move definition to fhandler.h. * select.cc (struct socketinf): Add serial number vector. (start_thread_socket): Identify duplicate sockets by their serial number, not (wrongly) by their wsock_evt.
* * cygpath.c (get_long_name): Cover the case that GetLongPathNameCorinna Vinschen2006-07-272-4/+16
| | | | | doesn't return valid information for non-existant files. Just return incoming filename in that case.
* * fhandler_socket.cc: Revert misguided attempt to handle FD_CLOSE errorCorinna Vinschen2006-07-274-44/+50
| | | | | | | | | | | | | | | conditions in evaluate_events. (search_wsa_event_slot): Move wrongly placed memset in fhandler_socket::init_events here. (fhandler_socket::init_events): Initially set FD_WRITE event for connectionless sockets. * poll.cc (poll): Don't add sockets always to except_fds since select is now supposed to do it right. * select.cc (set_bits): Set connection state correctly for failed af_local_connect on local sockets. Remove socket special handling for except_selected descriptors. (peek_socket): Try to set the read/write/exception bits actually correctly.
* * fhandler_socket.cc (fhandler_socket::recvmsg): Remove unused totCorinna Vinschen2006-07-274-8/+20
| | | | | | | | | | argument. All callers changed. (fhandler_socket::sendmsg): Likewise. * net.cc (cygwin_recvmsg): Likewise. (cygwin_sendmsg): Likewise, and prevent calling sendmsg whith an invalid iovec. * fhandler.h (fhandler_socket::recvmsg): Adjust prototype. (fhandler_socket::sendmsg): Likewise.
* * fhandler.h (class fhandler_socket): Remove prot_info_ptr.Corinna Vinschen2006-07-275-128/+58
| | | | | | | | | | | | | | | | | | | | | | | | | (fhandler_socket::fixup_before_fork_exec): Remove. (fhandler_socket::fixup_after_exec): Remove. (fhandler_socket::need_fixup_before): Remove. * fhandler_socket.cc (fhandler_socket::fhandler_socket): Drop initializing prot_info_ptr. Remove unused code. (fhandler_socket::~fhandler_socket): Drop free'ing prot_info_ptr. (struct wsa_event): Rename connect_errorcode to errorcode. (fhandler_socket::evaluate_events): Handle FD_CLOSE error condition as FD_CONNECT error condition, except, never reset an FD_CLOSE error condition. Always set FD_WRITE after successfully recorded FD_CONNECT. (fhandler_socket::fixup_before_fork_exec): Remove. (fhandler_socket::fixup_after_fork): Revert to using handle duplication. (fhandler_socket::fixup_after_exec): Remove. (fhandler_socket::dup): Revert to using handle duplication. (fhandler_socket::send_internal): Only call wait_for_events in case of WSAEWOULDBLOCK condition. (fhandler_socket::set_close_on_exec): Call fhandler_base::set_close_on_exec. * net.cc (fdsock): Just set socket to inheritable on non-NT. Don't call inc_need_fixup_before. * select.cc (peek_socket): Don't set except_ready on every FD_CLOSE, just on error.
* Update some IMAGE flags to PECOFF v8 (May, 2006) specs.Danny Smith2006-07-272-25/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/winnt.h (IMAGE_FILE_MACHINE_AM33, IMAGE_FILE_MACHINE_ARM, IMAGE_FILE_MACHINE_EBC, IMAGE_FILE_MACHINE_M32R, IMAGE_FILE_MACHINE_MIPS16, IMAGE_FILE_MACHINE_MIPSFPU, IMAGE_FILE_MACHINE_MIPSFPU16, IMAGE_FILE_MACHINE_POWERPCFP, IMAGE_FILE_MACHINE_R4000, IMAGE_FILE_MACHINE_SH3, IMAGE_FILE_MACHINE_SH3DSP, IMAGE_FILE_MACHINE_SH4, IMAGE_FILE_MACHINE_SH5, IMAGE_FILE_MACHINE_THUMB, IMAGE_FILE_MACHINE_WCEMIPSV2): Add defines. (IMAGE_SUBSYSTEM_EFI_APPLICATION, IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER, IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER, IMAGE_SUBSYSTEM_EFI_ROM): Add defines. (IMAGE_SYM_CLASS_CLR_TOKEN): Add define (IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLLCHARACTERISTICS_NO_ISOLATION, IMAGE_DLLCHARACTERISTICS_NO_SEH, IMAGE_DLLCHARACTERISTICS_NO_BIND, IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE): Add defines. (IMAGE_REL_I386_TOKEN, IMAGE_REL_I386_SECREL7): Add defines. (IMAGE_REL_AMD64_ABSOLUTE, IMAGE_REL_AMD64_ADDR64, IMAGE_REL_AMD64_ADDR32, IMAGE_REL_AMD64_ADDR32NB, IMAGE_REL_AMD64_REL32, IMAGE_REL_AMD64_REL32_1, IMAGE_REL_AMD64_REL32_2, IMAGE_REL_AMD64_REL32_3, IMAGE_REL_AMD64_REL32_4, IMAGE_REL_AMD64_REL32_5, IMAGE_REL_AMD64_SECTION, IMAGE_REL_AMD64_SECREL, IMAGE_REL_AMD64_SECREL7, IMAGE_REL_AMD64_TOKEN, IMAGE_REL_AMD64_SREL32, IMAGE_REL_AMD64_PAIR, IMAGE_REL_AMD64_SSPAN32): Add defines. (IMAGE_REL_IA64_ABSOLUTE, IMAGE_REL_IA64_IMM14, IMAGE_REL_IA64_IMM22, IMAGE_REL_IA64_IMM64, IMAGE_REL_IA64_DIR32, IMAGE_REL_IA64_DIR64, IMAGE_REL_IA64_PCREL21B, IMAGE_REL_IA64_PCREL21M, IMAGE_REL_IA64_PCREL21F, IMAGE_REL_IA64_GPREL22, IMAGE_REL_IA64_LTOFF22, IMAGE_REL_IA64_SECTION, IMAGE_REL_IA64_SECREL22, IMAGE_REL_IA64_SECREL64I, IMAGE_REL_IA64_SECREL32, IMAGE_REL_IA64_DIR32NB, IMAGE_REL_IA64_SREL14, IMAGE_REL_IA64_SREL22, IMAGE_REL_IA64_SREL32, IMAGE_REL_IA64_UREL32, IMAGE_REL_IA64_PCREL60X, IMAGE_REL_IA64_PCREL60B, IMAGE_REL_IA64_PCREL60F, IMAGE_REL_IA64_PCREL60I, IMAGE_REL_IA64_PCREL60M, IMAGE_REL_IA64_IMMGPREL64, IMAGE_REL_IA64_TOKEN, IMAGE_REL_IA64_GPREL32, IMAGE_REL_IA64_ADDEND): Add defines. (IMAGE_SCN_GPREL): Add define.
* * fhandler.cc (fhandler_base::read): Call get_readahead_into_buffer instead ofChristopher Faylor2006-07-272-11/+7
| | | | duplicating it.
* * shared.cc (offsets): Define as offsets relative to cygwin_hmoduleCorinna Vinschen2006-07-263-24/+23
| | | | | | | instead of addresses. (off_addr): New macro. (open_shared): Use offsets array accordingly. Remove unused code. * shared_info.h (cygwin_shared_address): Remove.