summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [include/elf]DJ Delorie2009-04-082-0/+6
| | | | | | | | | | | | | | | * mep.h (EF_MEP_CPU_C5): New. [bfd] * archures.c: Add bfd_mach_mep_c5. * bfd-in2.h: Likewise. * cpu-mep.c: Add bfd_c5_arch. * elf32-mep.c: Support it. [gas] * config/tc-mep.c: Add UCI/DSP instruction support. Add C5 support. (md_show_usage): Change default endian to little. * config/tc-mep.h (TARGET_BYTES_BIG_ENDIAN): Change default to little. [ld] * emulparams/elf32mep.sh: Change default endian to little.
* [bfd]DJ Delorie2009-04-072-62/+66
| | | | | | | | | | * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes. [gas] * tc-h8300.c (do_a_fix_imm): Pass the insn, force relocs for MOVA immediates. (build_bytes): Pass insn to do_a_fix_imm. [include/opcode] * h8300.h: Add relaxation attributes to MOVA opcodes.
* * include/stdint.h (int_least32_t): Define as int.Corinna Vinschen2009-04-072-12/+27
| | | | | | | | | | | | | | (uint_least32_t): Ditto, unsigned. (int_fast16_t): Define as int. (int_fast32_t): Ditto. (uint_fast16_t): Ditto, unsigned. (uint_fast32_t): Ditto. (UINT32_MAX): Remove `L' long marker. (UINT_LEAST32_MAX): Ditto. (UINT_FAST16_MAX): Ditto. (UINT_FAST32_MAX): Ditto. (INT32_C): Ditto. (UINT32_C): Ditto.
* * path.cc (readlink): Accommodate new UTF-16 symlinks.Corinna Vinschen2009-04-072-5/+27
|
* * strfuncs.cc: Change WCHAR to wchar_t in multibyte<->widecharCorinna Vinschen2009-04-073-13/+22
| | | | | conversion functions throughout. * wchar.h: Ditto in declarations. Guard them __INSIDE_CYGWIN__.
* * setup2.sgml (setup-locale-console): New section to explainCorinna Vinschen2009-04-077-19/+85
| | | | | | | | console character set setting. * faq: Throughout, change references to User's Guide to references to 1.7 User's Guide temporarily. * faq-setup.html (faq.using.unicode): Rephrase slightly. (faq.using.weirdchars): New FAQ entry for console charset problems.
* * fhandler.h (class dev_console): Add members con_mbtowc, con_wctomb,Corinna Vinschen2009-04-076-50/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and con_charset. (dev_console::str_to_con): Take mbtowc function pointer and charset as additional parameters. * fhandler_console.cc (fhandler_console::get_tty_stuff): Initialize aforementioned new members. Explain why. (dev_console::con_to_str): Remove useless comment. Call new sys_cp_wcstombs function rather than sys_wcstombs. (dev_console::str_to_con): Take mbtowc function pointer and charset as additional parameters. Call sys_cp_mbstowcs accordingly. (fhandler_console::write_normal): Only initialize f_mbtowc and charset once. Accommodate changed str_to_con. * strfuncs.cc (sys_cp_wcstombs): Renamed from sys_wcstombs. Take wctomb function pointer and charset as parameters. Use throughout. (sys_cp_mbstowcs): Take wctomb function pointer and charset as parameters instead of codepage. Remove matching local variables and their initialization. * wchar.h (ENCODING_LEN): Define as in newlib. (__mbtowc): Use mbtowc_p typedef for declaration. (wctomb_f): New type. (wctomb_p): New type. (__wctomb): Declare. (__utf8_wctomb): Use wctomb_f typedef for declaration. (sys_cp_wcstombs): Move declaration from winsup.h here. (sys_wcstombs): Ditto. (sys_wcstombs_alloc): Ditto. (sys_cp_mbstowcs): Ditto. (sys_mbstowcs): Ditto. (sys_mbstowcs_alloc): Ditto. * winsup.h: Move declaration of sys_FOO functions to wchar.h. Include wchar.h instead.
* 2009-04-06 Mike Burgess <wizardsguild@earthlink.net>Jeff Johnston2009-04-062-10/+13
| | | | * libc/string/strncasecmp.c: Optimized rewrite.
* 2009-04-06 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2009-04-063-5/+10
| | | | | * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu. * libc/include/machine/time.h (nanosleep): Declare.
* * libc/rexec.cc (ruserpass): Use fstat64 instead of fstat.Corinna Vinschen2009-04-062-3/+7
|
* * strfuncs.cc: Add comment to explain why we can't support JISCorinna Vinschen2009-04-062-40/+169
| | | | | | | | | | | | | | | | | | | for now. (__db_wctomb): Alwaus use WC_NO_BEST_FIT_CHARS. (__jis_wctomb): Just call __ascii_wctomb from here. (__eucjp_wctomb): Convert to standalone implementation to fix up the difference between eucJP and CP 20932 affecting JIS-X-0212 characters. Explain. (__kr_wctomb): Use codepage 949. (__db_mbtowc): Reorder code slightly. Always use MB_ERR_INVALID_CHARS in call to MultiByteToWideChar. Fix a problem with singlebyte sequences. Fix a bug in '\0' handling. Reset state->__count on successful return from non-zero state. (__jis_mbtowc): Just call __ascii_mbtowc from here. (__eucjp_mbtowc): Convert to standalone implementation to fix up the difference between eucJP and CP 20932 affecting JIS-X-0212 characters. (__kr_mbtowc): Use codepage 949. (__set_charset_from_codepage): Handle codepage 20932 as eucJP.
* * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.Corinna Vinschen2009-04-062-1/+5
|
* * new-features.sgml (ov-new1.7-posix): Remove JIS from supportedCorinna Vinschen2009-04-063-4/+9
| | | | | charsets. * setup2.sgml (setup-locale-charsetlist): Ditto.
* * setup2.sgml (setup-locale-problems): Change title to be more clearCorinna Vinschen2009-04-062-1/+6
| | | | when referencing this section.
* * Makefile.in: Use all compile options when calculating magic values.Christopher Faylor2009-04-055-6/+15
| | | | | | | * shared_info.h (CURR_SHARED_MAGIC): Revert erroneous value. * child_info.h (CURR_CHILD_INFO_MAGIC): Update. * fhandler.h (acquire_output_mutex): Remove unneeded ';'. (release_output_mutex): Ditto.
* * net.cc: Undefine NOERROR and DELETE to avoid compiler warnings.Christopher Faylor2009-04-054-2/+18
| | | | | | * shared_info.h (CURR_SHARED_MAGIC): Update. * spawn.cc (spawn_guts): Avoid copying one line command line argument if it hasn't been filled out.
* * libc/stdlib/wcstombs.c: Fix datatypes in documentation.Corinna Vinschen2009-04-042-3/+7
|
* * include/asm/byteorder.h (__ntohl): Prototype before define to avoidCorinna Vinschen2009-04-042-8/+14
| | | | | | a warning with -Wmissing-prototypes. Use _ELIDABLE_INLINE macro from _ansi.h. (__ntohs): Ditto.
* * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...Corinna Vinschen2009-04-043-22/+27
| | | | * libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.
* 2009-04-03 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>Jeff Johnston2009-04-032-0/+7
| | | | | * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define to avoid a warning with -Wmissing-prototypes.
* 2009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2009-04-032-2/+11
| | | | * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.
* 2009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2009-04-035-2/+145
| | | | | | | * spu/Makefile.in: Add new files. * spu/times.c: New File. * spu/getitimer.c: Likewise. * spu/setitimer.c: Likewise.
* 2009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2009-04-032-3/+15
| | | | | * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h> (linux_getpid, linux_gettid): Declare.
* 2009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2009-04-034-1/+107
| | | | | | * spu/Makefile.in: Add linux_getpid.o and linux_gettid.o. * spu/linux_getpid.c: New file. * spu/linux_getpid.c: New file.
* 2009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2009-04-032-8/+34
| | | | | * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU profiling.
* 2009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2009-04-032-1/+9
| | | | * spu/crt0.S (_start): Place spu_id in the first agument register.
* 2009-04-03 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2009-04-032-3/+8
| | | | | * libc/include/math.h: Remove duplicate copysign prototype. Fix __math_68881 define typo. Guard functions of the rint family.
* 2009-04-03 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2009-04-035-18/+250
| | | | | | | * libm/common/s_llrint.c: New file, implementing llrint(). * libm/common/sf_llrint.c: New file, implementing llrintf(). * libm/common/Makefile.am: Add s_llrint.c (src); sf_llrint.c (fsrc). * libm/common/Makefile.in: Regenerate.
* * Various syntactical and semantical fixes throughout.Corinna Vinschen2009-04-0310-179/+193
|
* * utils.sgml: Various syntactical and semantical fixes.Corinna Vinschen2009-04-033-25/+30
| | | | * cygcheck.cc (usage): Fix --find-package explanation.
* * environ.cc (build_env): Fix length calculation of resultingCorinna Vinschen2009-04-022-2/+7
| | | | wide char environment string.
* * include/netdb.h: #include <inttypes.h>, <netinet/in.h>,Corinna Vinschen2009-04-022-2/+10
| | | | and <sys/socket.h> per SUSv3.
* * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h andCorinna Vinschen2009-04-023-11/+45
| | | | | | | | | ctype_cp.h out of ALLOW_NEGATIVE_CTYPE_INDEX case. (__ctype_ptr__): Constify in !_MB_CAPABLE case. Otherwise, de-constify in !ALLOW_NEGATIVE_CTYPE_INDEX case, too. Add comment. (__set_ctype): Set __ctype_ptr__ pointer according to definition of ALLOW_NEGATIVE_CTYPE_INDEX. * libc/include/ctype.h (__ctype_ptr__): Constify in !_MB_CAPABLE case.
* include/coff/Richard Sandiford2009-04-012-61/+4
| | | | | | | * xcoff.h (xcoff_link_hash_table): Move to bfd/xcofflink.c. bfd/ * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
* 2009-04-01 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2009-04-012-2/+13
| | | | | | | | | * common.h (EM_INTEL178): Removed. (EM_INTEL179): Likewise. (EM_ETPU): New. (EM_SLE9X): Likewise. (EM_INTEL181): Likewise. (EM_INTEL182): Likewise.
* * faq-using.xml (faq.using.symlinkstoppedworking): Rename.Corinna Vinschen2009-04-013-11/+37
| | | | | (faq.using.ipv6): New IPv6 FAQ. * gdb.sgml: Remove incorrect statement about Insight.
* * strfuncs.cc (sys_cp_mbstowcs): Check if ASCII SO is followed by atCorinna Vinschen2009-04-012-2/+12
| | | | | least two chars and the next byte is a valid UTF-8 start byte before trying to convert the followup bytes as UTF-8 sequence.
* 2009-03-31 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2009-03-312-0/+9
| | | | | | * common.h (EM_INTEL178): New. (EM_INTEL179): Likewise. (EM_INTEL180): Likewise.
* * shm.cc (struct shm_attached_list): Convert access type to ULONG.Corinna Vinschen2009-03-312-13/+30
| | | | | | | | (fixup_shms_after_fork): Fix comment. Use NtMapViewOfSection rather than MapViewOfFileEx to recreate shared memory regions. Add function name to api_fatal output. (shmat): Use NtMapViewOfSection to create shared memory region top-down.
* * setup2.sgml (setup-locale-problems): Fix an incomplete sentence.Corinna Vinschen2009-03-312-3/+8
|
* * faq-using.xml (faq.using.unicode): Modernize.Corinna Vinschen2009-03-313-38/+35
| | | | (faq.api.symlinkstoppedworking): Move here from faq-api.xml.
* * ctype.cc: Remove implementation of ctype functions in favor ofCorinna Vinschen2009-03-316-822/+48
| | | | | | | | | | | | | | | pointer-based newlib implementation. (_ctype_b): Declare. (__ctype_cp): Move to newlib. Declare. (__ctype_iso): Ditto. (__set_ctype): Implement changing __ctype_ptr__. Only copy character class data in applications built under older Cygwin. * cygwin.din (__ctype_ptr__): Export. * include/ctype.h: Remove in favor of newlib implementation. * include/cygwin/config.h (__EXPORT): Define alongside __IMPORT. * include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE): Define check for old vs. new ctype implementation. Bump API minor number.
* * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.cCorinna Vinschen2009-03-3113-91/+1141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source files. Add a dependency rule for ctype_o to note changes in ctype_iso.h and ctype_cp.h. * libc/ctype/Makefile.in: Regenerate. * libc/ctype/_tolower.c: Remove file. * libc/ctype/_toupper.c: Remove file. * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX is always defined on Cygwin. (_ctype_b): Don't make `static const' on Cygwin. (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set. (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set. (__ctype_ptr): Drop definition. (__ctype_ptr__): De-constify. Mark as __EXPORT symbol. (_ctype_): Add Cygwin-specifc asm define. (__set_ctype): New function to set __ctype_ptr__ according to current charset. * libc/ctype/ctype_cp.h: New file containing Windows codepage specific character class tables. * libc/ctype/ctype_iso.h: New file containing ISO-8859-x specific character class tables. * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte charset if one of the extended charsets is enabled. * libc/ctype/toupper.c (toupper): Ditto. * libc/include/ctype.h (_tolower): Define as macro per POSIX. (_toupper): Ditto. (__ctype_ptr__): De-constify. (toupper): Disable macro on systems supporting extended charsets. (tolower): Ditto. * libc/include/sys/config.h (__EXPORT): Define empty if not defined. * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol. (__set_ctype): Declare unconditionally. (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
* * faq-using.xml (faq.using.bloda): Update with new entries.Dave Korn2009-03-302-2/+20
|
* * Makefile.in: Perform some minor cleanup. Revamp speclib handling.Christopher Faylor2009-03-283-97/+60
| | | | | * speclib: Rewrite to create libraries with dlltool rather than attempting surgery on libcygwin.a.
* * net.cc (inet_ntop6): Convert to lowercase hex digits on the fly.Corinna Vinschen2009-03-272-1/+10
|
* * net.cc (cygwin_getaddrinfo): Check hints for non-NULL beforeCorinna Vinschen2009-03-272-0/+6
| | | | checking its content.
* * fhandler.h (class fhandler_fifo): Rename read/write methods toCorinna Vinschen2009-03-273-4/+10
| | | | | raw_read/raw_write. * fhandler_fifo.cc: Ditto.
* * djunpack.bat: Use ".." quoting in Sed command, for the sake ofEli Zaretskii2009-03-272-1/+6
| | | | Windows builds of Sed.
* * syscalls.cc (pathconf): Fix memory leak.Corinna Vinschen2009-03-272-5/+11
|