summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-192-1/+5
| | | | * COPYING.LIBGLOSS: Update default copyright.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-192-1/+5
| | | | * COPYING.NEWLIB: Update default copyright.
* 2007-12-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-192-1/+9
| | | | | * libc/include/sys/features.h: Add checks for C90 compilers using -ansi.
* 2007-11-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-12-193-182/+198
| | | | | | | | | * libc/include/sys/_default_fcntl.h: New header file that is the default version of sys/fcntl.h. * libc/include/sys/fcntl.h: Changed to simply include sys/_default_fcntl.h. * libc/sys/arm/sys/fcntl.h: New file that includes sys/_default_fcntl.h and defines O_BINARY.
* * cygwin.din: Export wcpcpy, wcpncpy.Corinna Vinschen2007-12-193-1/+9
| | | | * include/cygwin/version.h: Bump API minor number.
* * libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.Corinna Vinschen2007-12-197-6/+148
| | | | | | | | | | * libc/string/Makefile.am (ELIX_SOURCES): Add wcpcpy.c and wcpncpy.c. (CHEWOUT_FILES): Add wcpcpy.def and wcpncpy.def. * libc/string/Makefile.in: Regenerate. * libc/string/wcpcpy.c: New file. * libc/string/wcpncpy.c: New file. * libc/string/wcstrings.tex: Add wcpcpy and wcpncpy.
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call toCorinna Vinschen2007-12-192-3/+8
| | | | _wcsrtombs_r.
* /tmp/foo.diffRichard Sandiford2007-12-185-20/+30
|
* /tmp/foo.diffRichard Sandiford2007-12-181-0/+6
|
* * dtable.cc (POSIX_NAMED_PIPE): New define.Christopher Faylor2007-12-166-30/+247
| | | | | | | | | | | | | | | | | | | | | | | | (POSIX_NAMED_PIPE_LEN): Ditto. (dtable::add_archetype): Use crealloc_abort. (dtable::init_std_file_from_handle): Specifically detect pipe stdin/stdout. Pass name to build_fh_dev so that proper name is recorded. Use binmode of fh if it is set before using get_default_mode. Set proper read/write access when calling init(). (handle_to_fn): Handle pipes. * fhandler.cc (fhandler_base::wait_overlapped): Add some debugging. * fhandler.h (fhandler_base::set_name): Default to just setting the path_conv name. (fhandler_pipe::init): Declare. * pipe.cc (struct pipesync): New struct. (getov_result): New function. Blocks and retrieves the result of an overlay I/O operation. (pipe_handler): New function. (pipesync::pipesync): New function. Initializer for pipesync struct. (handler_pipe::init): Define. Detects attempts to set up a "native" pipe fhandler and creates a thread which accepts input from or output to the non-cygwin pipe, creating a cygwin pipe wrapper around the non-cygwin pipe. (fhandler_pipe::create): Add pipe-specific flags to call to init(). * exceptions.cc (ctrl_c_handler): Lock process while we determine what to do.
* * pathnames.xml: Fix a typo.Christopher Faylor2007-12-162-1/+5
|
* * include/cygwin/socket.h: Include sys/uio.h instead of cygwin/uio.h.Corinna Vinschen2007-12-143-2/+6
| | | | * include/cygwin/uio.h: Remove.
* * dtable.cc (dtable::set_file_pointers_for_exec): Reenable. FixCorinna Vinschen2007-12-143-4/+11
| | | | | | comment. * spawn.cc (spawn_guts): Call cygheap->fdtab.set_file_pointers_for_exec only for non-Cygwin processes.
* Merge from gcc:DJ Delorie2007-12-143-2/+7
| | | | | | | 2007-12-10 Andreas Tobler <a.tobler@schweiz.org> * configure.ac: Enable libjava for x86_64-*-darwin9. * configure: Regenerate.
* * poll.cc (poll): Return count of fds with events instead of totalCorinna Vinschen2007-12-132-39/+52
| | | | event count.
* * string.h: Guard cygwin internal string function definitions withCorinna Vinschen2007-12-132-0/+10
| | | | __INSIDE_CYGWIN__.
* * dcrt0.cc: Include string.h.Corinna Vinschen2007-12-1212-80/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (initial_env): Use small_printf's %P specifier. * dll_init.cc (dll_list::alloc): Use PATH_MAX instead of CYG_MAX_PATH for path name buffer size. * dll_init.h (struct dll): Ditto. * environ.cc: Include string.h. (win_env::add_cache): Use temporary local buffer for path conversion. (posify): Ditto. * exceptions.cc (try_to_debug): Use CreateProcessW to allow long path names. * miscfuncs.cc: Drop unused implementations of strcasematch and strncasematch. (ch_case_eq): Drop. (strcasestr): Drop. (cygwin_wcscasecmp): New function. (cygwin_wcsncasecmp): New function. (cygwin_strcasecmp): New function. (cygwin_strncasecmp): New function. (cygwin_wcslwr): New function. (cygwin_wcsupr): New function. (cygwin_strlwr): New function. (cygwin_strupr): New function. * ntdll.h (RtlDowncaseUnicodeString): Declare. (RtlUpcaseUnicodeString): Declare. (RtlInt64ToHexUnicodeString): Fix typo in comment. * string.h: Disable not NLS aware implementations of strcasematch and strncasematch. (cygwin_strcasecmp): Declare. (strcasecmp): Define as cygwin_strcasecmp. (cygwin_strncasecmp): Declare. (strncasecmp): Define as cygwin_strncasecmp. (strcasematch):Define using cygwin_strcasecmp. (strncasematch):Define using cygwin_strncasecmp. (cygwin_strlwr): Declare. (strlwr): Define as cygwin_strlwr. (cygwin_strupr): Declare. (strupr): Define as cygwin_strupr. * wchar.h: New file. * wincap.cc (wincapc::init): Use "NT" as fix OS string. * winsup.h (strcasematch): Drop declaration. (strncasematch): Ditto. (strcasestr): Ditto.
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix R/O bitCorinna Vinschen2007-12-112-4/+8
| | | | handling on filesystems without ACL support.
* 2007-12-11 Dave Korn <dave.korn@artimi.com>Dave Korn2007-12-112-5/+12
| | | | | * include/wincrypt.h (PCRYPT_DECODE_PARA): Add missing typedef. (CERT_POLICY_MAPPINGS_INFO): Move before CERT_POLICY_MAPPING.
* * localtime.cc (tzset): Guard by a muto for thread safety.Corinna Vinschen2007-12-112-3/+13
|
* * cygheap.cc (_csbrk): Don't request zero bytes from VirtualAlloc,Dave Korn2007-12-112-1/+6
| | | | as windows treats that as an invalid parameter and returns an error.
* * localtime.cc (tzset): Call tzsetwall only if it hasn't beenCorinna Vinschen2007-12-112-1/+7
| | | | called before.
* * dwarf2.h (DW_AT_hi_user): Correct value.Daniel Jacobowitz2007-12-112-1/+5
|
* 2007-12-07 Bob Wilson <bob.wilson@acm.org>Bob Wilson2007-12-072-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/elf/ * xtensa.h (R_XTENSA_32_PCREL): New. bfd/ * elf32-xtensa.c (elf_howto_table): Add R_XTENSA_32_PCREL. (elf_xtensa_reloc_type_lookup): Handle BFD_RELOC_32_PCREL. (elf_xtensa_check_relocs): Use default case for all relocations that need nothing done here. (elf_xtensa_do_reloc): Compute self_address for all relocation types. Handle R_XTENSA_32_PCREL. (elf_xtensa_relocate_section): Check for R_XTENSA_32_PCREL for dynamic symbols. (check_section_ebb_pcrels_fit): Ignore R_XTENSA_32_PCREL relocations. gas/ * config/tc-xtensa.c (O_pcrel): Define. (suffix_relocs): Add pcrel suffix. (md_pseudo_table): Add 4byte and 2byte directives. (xtensa_elf_cons): Pass correct pcrel argument to fix_new_exp. (xg_assemble_literal): Likewise. Check for O_pcrel. (expression_maybe_register): Reorganize. Handle BFD_RELOC_32_PCREL. (xg_valid_literal_expression): Allow O_pcrel. (md_pcrel_from, md_apply_fix): Handle BFD_RELOC_32_PCREL. (tc_gen_reloc): Fix punctuation in error message. gas/testsuite/ * gas/xtensa/all.exp: Run new pcrel test. * gas/xtensa/err-pcrel.s: New. * gas/xtensa/pcrel.d: New. * gas/xtensa/pcrel.s: New. * gas/xtensa/xtensa-err.exp: New.
* * regtool.cc (opts): Add missing 'W'.Corinna Vinschen2007-12-072-1/+5
|
* * include/sys/cygwin.h: Include limits.h.Corinna Vinschen2007-12-072-0/+5
|
* * ps.cc: Include limits.h.Corinna Vinschen2007-12-062-3/+14
| | | | | | (main): Set file name buffer size to PATH_MAX. Use progname or progname_long member of struct external_pinfo dependent of the value of the struct's version member.
* * dcrt0.cc (initial_env): Use PATH_MAX instead of CYG_MAX_PATH for pathCorinna Vinschen2007-12-0611-23/+53
| | | | | | | | | | | | | | | | | | | | | | name buffer size. (dll_crt0_1): Allocate new_argv0 with PATH_MAX size. * exceptions.cc (debugger_command): Set size to 2 * PATH_MAX + 20; (error_start_init): Use PATH_MAX instead of CYG_MAX_PATH for path name buffer size. * external.cc (fillout_pinfo): Always fill out ep.progname 0-terminated. Fill out ep.progname_long. * fhandler_process.cc (fhandler_process::fill_filebuf): Allocate buffer for executable filename with PATH_MAX size. * pinfo.cc: Throughout use PATH_MAX instead of CYG_MAX_PATH. * pinfo.h (class _pinfo): Set progname size to PATH_MAX. * smallprint.cc: Include limits.h. Use PATH_MAX instead of CYG_MAX_PATH for path name buffer size. * strace.cc (strace::vsprntf): Ditto. * include/sys/cygwin.h (EXTERNAL_PINFO_VERSION_32_LP): Define. (EXTERNAL_PINFO_VERSION): Set to EXTERNAL_PINFO_VERSION_32_LP. (struct external_pinfo): Add progname_long member. * include/sys/dirent.h: Correctly include limits.h instead of sys/limits.h.
* config/Richard Sandiford2007-12-063-4/+9
| | | | | * mt-sde (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Use +=, not =. * mt-mips-elfoabi: Likewise.
* * fhandler_tty.cc (fhandler_tty_slave::open): Use MAX_PATH instead ofCorinna Vinschen2007-12-053-11/+18
| | | | | | | | | | | | CYG_MAX_PATH for event name buffer size. (fhandler_pty_master::setup): Use MAX_PATH instead of CYG_MAX_PATH for mutex name buffer size. * netdb.cc: Drop old comment. (open_system_file): Set path buffer size to MAX_PATH instead of CYG_MAX_PATH. Drop conversion to posix path. Open file using win32 path. Fix typo in ChangeLog.
* * fhandler_registry.cc: Use NAME_MAX + 1 instead of CYG_MAX_PATHCorinna Vinschen2007-12-0510-22/+44
| | | | | | | | | | | | | | | | | | | | throughout for subkey name buffer size. * fhandler_socket.cc (search_wsa_event_slot): Use MAX_PATH instead of CYG_MAX_PATH for mutext name buffer size. (fhandler_socket::init_events): Ditto. * fhandler_virtual.cc (fhandler_virtual::opendir): Check path length against PATH_MAX instead of against CYG_MAX_PATH. * registry.cc (get_registry_hive_path): Use PATH_MAX instead of CYG_MAX_PATH for registry value path buffer size. * shared.cc (open_shared): Use MAX_PATH instead of CYG_MAX_PATH for shared memory name buffer size. * thread.cc (semaphore::semaphore): Use MAX_PATH instead of CYG_MAX_PATH for semaphore name buffer size. * uinfo.cc (cygheap_user::env_userprofile): Use PATH_MAX instead of CYG_MAX_PATH for temporary path name buffer size. * winf.h (LINE_BUF_CHUNK): Define as MAX_PATH * 2. * include/sys/dirent.h: Include sys/limits.h. Define name buffer sizes using NAME_MAX.
* Add missing ChangeLog entry.Corinna Vinschen2007-12-051-0/+8
|
* * config.sub, config.guess: Update from upstream sources.Ben Elliston2007-12-053-6/+45
|
* * fhandler_fifo.cc (fhandler_fifo::open): Use MAX_NAME for pipe nameCorinna Vinschen2007-12-042-14/+7
| | | | | | | buffer size. (fhandler_fifo::fstatvfs): Use same technique as in fhandler_socket. * fhandler_proc.cc (format_proc_partitions): Use NAME_MAX+1 for device name buffer size. Use MAX_PATH for device path buffer size.
* 2007-12-03 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2007-12-042-1/+5
| | | | * include/wingdi.h: Change WINVER guard to _WIN32_WINNT.
* 2007-12-03 techrazy <techrazy@users.sourceforge.net>Chris Sutcliffe2007-12-042-0/+14
| | | | | * include/wingdi.h (NTM_NONNEGATIVE_AC, NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_MULTIPLEMASTER, NTM_TYPE1, NTM_DSIG): define.
* * autoload.cc (GetModuleFileNameExW): Replace definition ofCorinna Vinschen2007-12-034-16/+28
| | | | | | | | | | | | | | GetModuleFileNameExA. * fhandler_process.cc (format_process_maps): Change modname type to WCHAR. Set buffer sizes to PATH_MAX. Call GetModuleFileNameExW instead of GetModuleFileNameExA. Call mount_info::conv_to_posix_path instead of cygwin_conv_to_full_posix_path. Set posix_modname to modname if that call fails. (format_process_stat): Set cmd buffer size to NAME_MAX + 1. Simplify setting cmd to process name. (format_process_status): Ditto. * path.cc (mount_info::conv_to_posix_path): Call sys_wcstombs correctly.
* * include/cygwin/time.h: Remove redundant #endif.Corinna Vinschen2007-12-032-1/+4
|
* * include/cygwin/time.h (daylight): Declare as extern symbol referringCorinna Vinschen2007-12-012-3/+11
| | | | | _daylight variable. (timezone): Only define if __timezonefunc__ is undefined.
* * cris/Makefile.in (crt0.o): Add CFLAGS when compiling crt0.S.Hans-Peter Nilsson2007-12-012-1/+5
|
* * Makefile.in (OBSOLETE_FUNCTIONS): Add timezone.Corinna Vinschen2007-12-013-8/+10
| | | | | * include/cygwin/time.h: Drop conditional timezone definitions. (timezone): Declare as extern symbol referring _timezone variable.
* 2007-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>Paolo Bonzini2007-11-292-12/+25
| | | | | * config-ml.in: Robustify against white space in absolute file names.
* bfd/Mark Shinwell2007-11-294-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * archures.c (bfd_mach_mips_loongson_2e): New. (bfd_mach_mips_loongson_2f): New. * bfd-in2.h (bfd_mach_mips_loongson_2e): New. (bfd_mach_mips_loongson_2f): New. * cpu-mips.c: Add I_loongson_2e and I_loongson_2f to anonymous enum. (arch_info_struct): Add Loongson-2E and Loongson-2F entries. * elfxx-mips.c (_bfd_elf_mips_mach): Handle Loongson-2E and Loongson-2F flags. (mips_set_isa_flags): Likewise. (mips_mach_extensions): Add Loongson-2E and Loongson-2F entries. binutils/ * readelf.c (get_machine_flags): Handle Loongson-2E and -2F flags. gas/ * config/tc-mips.c (mips_cpu_info_table): Add loongson2e and loongson2f entries. * doc/c-mips.texi: Document -march=loongson{2e,2f} options. gas/testsuite/ * gas/mips/mips.exp: Add loongson-2e and -2f tests. * gas/mips/loongson-2e.d: New. * gas/mips/loongson-2e.s: New. * gas/mips/loongson-2f.d: New. * gas/mips/loongson-2f.s: New. include/elf/ * mips.h (E_MIPS_MACH_LS2E): New. (E_MIPS_MACH_LS2F): New. include/opcode/ * mips.h (INSN_LOONGSON_2E): New. (INSN_LOONGSON_2F): New. (CPU_LOONGSON_2E): New. (CPU_LOONGSON_2F): New. (OPCODE_IS_MEMBER): Update for Loongson-2E and -2F flags. opcodes/ * mips-dis.c (mips_arch_choices): Add Loongson-2E and -2F entries. * mips-opc.c (IL2E): New. (IL2F): New. (mips_builtin_opcodes): Add Loongson-2E and -2F instructions. Allow movz and movn for Loongson-2E and -2F. Add movnz entry. Move coprocessor encodings to the end of the table. Allow certain MIPS V .ps instructions on the Loongson-2E and -2F.
* include/opcode/Mark Shinwell2007-11-292-24/+61
| | | | | | | | | | | | | * mips.h (INSN_ISA*): Redefine certain values as an enumeration. Update comments. (mips_isa_table): New. (ISA_MIPS*): Redefine to match enumeration. (OPCODE_IS_MEMBER): Modify to correctly test new INSN_ISA* values. opcodes/ * mips-opc.c (I3_32, I3_33, I4_32, I4_33, I5_33): New. (mips_builtin_opcodes): Use these new I* values.
* * fhandler_tape.cc (mtinfo::initialize): Use MAX_PATH instead ofCorinna Vinschen2007-11-285-5/+15
| | | | | | | | | CYG_MAX_PATH. * fhandler_tty.cc (fhandler_pty_master::ptsname): Set buffer size to TTY_NAME_MAX. * syscalls.cc (ttyname): Eliminate the `+ 1' from the name buffer size since TTY_NAME_MAX already counts the trailing NUL. * libc/bsdlib.cc (openpty): Set pts buffer size to TTY_NAME_MAX.
* * fhandler_socket.cc (fhandler_socket::recv_internal): Add MSG_WAITALLCorinna Vinschen2007-11-283-10/+54
| | | | | | | | handling. Use explicit flag values instead of MSG_WINMASK. (fhandler_socket::send_internal): Use explicit flag values instead of MSG_WINMASK. * include/cygwin/socket.h (MSG_WINMASK): Remove definition. (MSG_WAITALL): Define.
* * internal.h (ELF_IS_SECTION_IN_SEGMENT): Adjust to cope withNathan Sidwell2007-11-282-3/+9
| | | | segments at the end of memory.
* * posix_ipc.cc (ipc_names): Rename max_len to prefix_len. StoreCorinna Vinschen2007-11-272-20/+46
| | | | | | | | | | | | | | | the prefix len in it. (check_path): Take length parameter. Use this length insetad of calling strlen. Allow PATH_MAX length paths. (ipc_mutex_init): Use MAX_PATH instead of CYG_MAX_PATH. (ipc_cond_init): Ditto. (shm_open): Allocate local name buffer not bigger than necessary. Call check_path with additional length argument. (shm_unlink): Ditto. (mq_open): Ditto. (mq_unlink): Ditto. (sem_open): Ditto. (sem_unlink): Ditto.
* Drop old SetResourceLock stuff in favor of mutos.Corinna Vinschen2007-11-277-118/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dcrt0.cc (_reslock): Remove. (__cygwin_user_data): Accommodate removal of resourcelocks member. (dll_crt0_0): Don't initialize resourcelocks. * exceptions.cc (_cygtls::signal_exit): Drop resourcelocks handling. * mmap.cc (mmap_guard): New muto. (LIST_LOCK): Define. (LIST_UNLOCK): Define. (mmap_list::search_record): Remove. (mmap_list::try_map): Include code for anonymous case from mmap_list::search_record. (mmap_is_attached_or_noreserve): Access bookkeeping lists in a thread safe way. (mmap64): Replace SetResourceLock/ReleaseResourceLock by LIST_LOCK/LIST_UNLOCK. Lock at the latest possible point. (munmap): Replace SetResourceLock/ReleaseResourceLock by LIST_LOCK/LIST_UNLOCK. (msync): Ditto. (mprotect): Ditto. * thread.cc (ResourceLocks::Lock): Remove. (SetResourceLock): Remove. (ReleaseResourceLock): Remove. (ResourceLocks::Init): Remove. (ResourceLocks::Delete): Remove. * thread.h (SetResourceLock): Drop declaration. (ReleaseResourceLock): Ditto. (class ResourceLocks): Drop definition. * include/sys/cygwin.h (class ResourceLocks): Drop forward declaration. (struct per_process): Replace resourcelocks with additional unused2 element. (per_process_overwrite): Accommodate above change.
* * mmap.cc: Convert usage of dynamically growing cmalloced arrays toCorinna Vinschen2007-11-272-200/+176
| | | | | | | | | | | | | | | | | cmalloced linked lists throughout. (class mmap_record): Add LIST_ENTRY element. (mmap_record::match): New method, taking over match algorithm from list::search_record. (class mmap_list): Rename from class list. Add LIST_ENTRY. Convert recs to a LIST_HEAD. Drop nrecs and maxrecs members. (mmap_list::get_record): Drop entirely. (mmap_list::free_recs): Drop entirely. (mmap_list::del_record): Take mmap_record to delete as parameter. (mmap_list::search_record): Convert to mmap_record::match. (class mmap_areas): Rename from class map. Convert lists to LIST_HEAD. (mmap_areas::get_list): Drop entirely. (mmap_areas::del_list): Take mmap_list to delete as parameter. (mprotect): Fix indentation.