]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
15 years ago* speclib: Use a more robust method to derive full file path.
Christopher Faylor [Fri, 10 Apr 2009 04:29:25 +0000 (04:29 +0000)]
* speclib: Use a more robust method to derive full file path.

15 years ago* speclib: Semi-revert to previous version but don't try to generate
Christopher Faylor [Thu, 9 Apr 2009 21:02:53 +0000 (21:02 +0000)]
* speclib: Semi-revert to previous version but don't try to generate
well-formed import library.  Instead, just extract appropriate symbols and let
later libcygwin.a on link line fill in the rest of the import stuff.
* gendef: Hopefully no-op modification to allow easier post-processing on
symbol values.

15 years ago * syscalls.cc (try_to_bin): Use tmp_pathbuf buffer to allocate infobuf
Corinna Vinschen [Thu, 9 Apr 2009 17:55:01 +0000 (17:55 +0000)]
* syscalls.cc (try_to_bin): Use tmp_pathbuf buffer to allocate infobuf
rather than using the stack.

15 years ago * syscalls.cc (try_to_bin): Fix alignment of infobuf.
Corinna Vinschen [Thu, 9 Apr 2009 17:00:35 +0000 (17:00 +0000)]
* syscalls.cc (try_to_bin): Fix alignment of infobuf.

15 years ago2009-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
H.J. Lu [Thu, 9 Apr 2009 15:54:10 +0000 (15:54 +0000)]
2009-04-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

* configure.ac: Bump minimum GMP/MPFR versions to 4.2 and 2.3.1.
* configure: Regenerate.

15 years ago2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 9 Apr 2009 15:40:57 +0000 (15:40 +0000)]
2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10039
* configure.ac: Require texinfo 4.7.
* configure: Regenerated.

15 years ago2009-04-09 Steve Ellcey <sje@cup.hp.com>
H.J. Lu [Thu, 9 Apr 2009 15:39:52 +0000 (15:39 +0000)]
2009-04-09  Steve Ellcey  <sje@cup.hp.com>

* Makefil.def (languages): New entries.
* Makefile.tpl (check-gcc-*): New generic target.
* Makefile.in: Regenerate.

15 years ago * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
Corinna Vinschen [Thu, 9 Apr 2009 10:37:58 +0000 (10:37 +0000)]
* libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Remove _B flag from TAB.
* libc/ctype/ctype_cp.h: Mark non-cased letters in tables for codepages
720, 862, 874, 1255, and 1256 to _U|_L.  Fix a couple of incorrect
class mappings.
* libc/ctype/ctype_iso.h: Mark non-cased letters in ISO-8859 tables
6, 8, and 11 to _U|_L.  Fix a couple of incorrect class mappings.
* libc/ctype/isblank.c (isblank): Special case TAB.
* libc/ctype/islower.c (islower): Check explicitely for _L flag only
in (_U|_L).
* libc/ctype/isupper.c (isupper): Ditto, but check for _U flag.
* libc/include/ctype.h (islower): Same in macro.
(isupper): Ditto.
(isblank): Special case TAB.  Redefine macro for GCC only.

15 years ago * fhandler_disk_file.cc (fhandler_disk_file::fchown): Catch an
Corinna Vinschen [Thu, 9 Apr 2009 09:19:03 +0000 (09:19 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Catch an
error when changing the user account on a standalone Samba server.
Explain why.
* sec_acl.cc (setacl): Accommodate additional parameter to set_file_sd.
* sec_helper.cc (SECURITY_SAMBA_UNIX_AUTHORITY): Define.
(well_known_samba_unix_user_fake_sid): Define.
* security.cc (set_file_sd): Take additional parameter if ownership
should be changed.  Restrict requested permissions accordingly.
(set_file_attribute): Accommodate additional parameter to set_file_sd.
* security.h (well_known_samba_unix_user_fake_sid): Declare.
(set_file_sd): Align declaration to above change.

15 years ago * libc/stdlib/local.h (__mbtowc): Declare extern.
Corinna Vinschen [Thu, 9 Apr 2009 08:24:37 +0000 (08:24 +0000)]
* libc/stdlib/local.h (__mbtowc): Declare extern.
(__wctomb): Ditto.

15 years ago * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
Corinna Vinschen [Thu, 9 Apr 2009 08:20:10 +0000 (08:20 +0000)]
* libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
recognizes 0x8e and 0x8f lead bytes.
(_iseucjp2): Rename from _iseucjp.
* libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
triplebyte sequences as well.
* libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
triplebyte sequences as well.

15 years ago2009-04-08 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Wed, 8 Apr 2009 20:00:01 +0000 (20:00 +0000)]
2009-04-08  Ken Werner  <ken.werner@de.ibm.com>

        * configure.in: Add square brackets for the array aliasing conftest.
        * configure: Regenerate.

15 years agobfd/
H.J. Lu [Wed, 8 Apr 2009 16:04:49 +0000 (16:04 +0000)]
bfd/

2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (elf_link_add_object_symbols): Warn alternate ELF
machine code.

include/

2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>

* bfdlink.h (bfd_link_info): Add warn_alternate_em.

ld/

2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>

* lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
(ld_options): Likewise.
(parse_args): Likewise.

* ld.texinfo: Document --warn-alternate-em.

* NEWS: Mention --warn-alternate-em.

15 years ago[include/elf]
DJ Delorie [Wed, 8 Apr 2009 02:24:19 +0000 (02:24 +0000)]
[include/elf]
* 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.

15 years ago[bfd]
DJ Delorie [Tue, 7 Apr 2009 18:21:21 +0000 (18:21 +0000)]
[bfd]
* 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.

15 years ago * include/stdint.h (int_least32_t): Define as int.
Corinna Vinschen [Tue, 7 Apr 2009 17:23:20 +0000 (17:23 +0000)]
* include/stdint.h (int_least32_t): Define as int.
(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.

15 years ago * path.cc (readlink): Accommodate new UTF-16 symlinks.
Corinna Vinschen [Tue, 7 Apr 2009 16:24:50 +0000 (16:24 +0000)]
* path.cc (readlink): Accommodate new UTF-16 symlinks.

15 years ago * strfuncs.cc: Change WCHAR to wchar_t in multibyte<->widechar
Corinna Vinschen [Tue, 7 Apr 2009 16:22:55 +0000 (16:22 +0000)]
* strfuncs.cc: Change WCHAR to wchar_t in multibyte<->widechar
conversion functions throughout.
* wchar.h: Ditto in declarations.  Guard them __INSIDE_CYGWIN__.

15 years ago * setup2.sgml (setup-locale-console): New section to explain
Corinna Vinschen [Tue, 7 Apr 2009 13:04:43 +0000 (13:04 +0000)]
* setup2.sgml (setup-locale-console): New section to explain
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.

15 years ago * fhandler.h (class dev_console): Add members con_mbtowc, con_wctomb,
Corinna Vinschen [Tue, 7 Apr 2009 12:13:37 +0000 (12:13 +0000)]
* fhandler.h (class dev_console): Add members con_mbtowc, con_wctomb,
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.

15 years ago2009-04-06 Mike Burgess <wizardsguild@earthlink.net>
Jeff Johnston [Mon, 6 Apr 2009 22:42:08 +0000 (22:42 +0000)]
2009-04-06  Mike Burgess  <wizardsguild@earthlink.net>

        * libc/string/strncasecmp.c: Optimized rewrite.

15 years ago2009-04-06 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Mon, 6 Apr 2009 22:04:33 +0000 (22:04 +0000)]
2009-04-06  Ken Werner  <ken.werner@de.ibm.com>

        * libc/include/sys/features.h: Undefine _POSIX_TIMERS for spu.
        * libc/include/machine/time.h (nanosleep): Declare.

15 years ago * libc/rexec.cc (ruserpass): Use fstat64 instead of fstat.
Corinna Vinschen [Mon, 6 Apr 2009 20:44:55 +0000 (20:44 +0000)]
* libc/rexec.cc (ruserpass): Use fstat64 instead of fstat.

15 years ago * strfuncs.cc: Add comment to explain why we can't support JIS
Corinna Vinschen [Mon, 6 Apr 2009 10:50:11 +0000 (10:50 +0000)]
* strfuncs.cc: Add comment to explain why we can't support JIS
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.

15 years ago * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
Corinna Vinschen [Mon, 6 Apr 2009 10:36:49 +0000 (10:36 +0000)]
* libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.

15 years ago * new-features.sgml (ov-new1.7-posix): Remove JIS from supported
Corinna Vinschen [Mon, 6 Apr 2009 10:30:02 +0000 (10:30 +0000)]
* new-features.sgml (ov-new1.7-posix): Remove JIS from supported
charsets.
* setup2.sgml (setup-locale-charsetlist): Ditto.

15 years ago * setup2.sgml (setup-locale-problems): Change title to be more clear
Corinna Vinschen [Mon, 6 Apr 2009 10:25:28 +0000 (10:25 +0000)]
* setup2.sgml (setup-locale-problems): Change title to be more clear
when referencing this section.

15 years ago* Makefile.in: Use all compile options when calculating magic values.
Christopher Faylor [Sun, 5 Apr 2009 16:49:15 +0000 (16:49 +0000)]
* Makefile.in: Use all compile options when calculating magic values.
* 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.

15 years ago* net.cc: Undefine NOERROR and DELETE to avoid compiler warnings.
Christopher Faylor [Sun, 5 Apr 2009 04:23:50 +0000 (04:23 +0000)]
* net.cc: Undefine NOERROR and DELETE to avoid compiler warnings.
* 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.

15 years ago * libc/stdlib/wcstombs.c: Fix datatypes in documentation.
Corinna Vinschen [Sat, 4 Apr 2009 16:00:31 +0000 (16:00 +0000)]
* libc/stdlib/wcstombs.c: Fix datatypes in documentation.

15 years ago * include/asm/byteorder.h (__ntohl): Prototype before define to avoid
Corinna Vinschen [Sat, 4 Apr 2009 15:49:05 +0000 (15:49 +0000)]
* include/asm/byteorder.h (__ntohl): Prototype before define to avoid
a warning with -Wmissing-prototypes.  Use _ELIDABLE_INLINE macro from
_ansi.h.
(__ntohs): Ditto.

15 years ago * libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
Corinna Vinschen [Sat, 4 Apr 2009 15:44:19 +0000 (15:44 +0000)]
* libc/include/stdio.h (_ELIDABLE_INLINE): Move definition from here...
* libc/include/_ansi.h (_ELIDABLE_INLINE): ..to here.

15 years ago2009-04-03 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Jeff Johnston [Fri, 3 Apr 2009 22:46:15 +0000 (22:46 +0000)]
2009-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

        * libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
        to avoid a warning with -Wmissing-prototypes.

15 years ago2009-04-03 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Fri, 3 Apr 2009 22:42:31 +0000 (22:42 +0000)]
2009-04-03  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/mmap_ea.c (mmap_ea): Check length argument.

15 years ago2009-04-03 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Fri, 3 Apr 2009 22:37:40 +0000 (22:37 +0000)]
2009-04-03  Ken Werner  <ken.werner@de.ibm.com>

        * spu/Makefile.in: Add new files.
        * spu/times.c: New File.
        * spu/getitimer.c: Likewise.
        * spu/setitimer.c: Likewise.

15 years ago2009-04-03 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Fri, 3 Apr 2009 22:34:17 +0000 (22:34 +0000)]
2009-04-03  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
        (linux_getpid, linux_gettid): Declare.

15 years ago2009-04-03 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Fri, 3 Apr 2009 22:32:28 +0000 (22:32 +0000)]
2009-04-03  Ken Werner  <ken.werner@de.ibm.com>

        * spu/Makefile.in: Add linux_getpid.o and linux_gettid.o.
        * spu/linux_getpid.c: New file.
        * spu/linux_getpid.c: New file.

15 years ago2009-04-03 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Fri, 3 Apr 2009 22:29:24 +0000 (22:29 +0000)]
2009-04-03  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU
        profiling.

15 years ago2009-04-03 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Fri, 3 Apr 2009 22:27:31 +0000 (22:27 +0000)]
2009-04-03  Ken Werner  <ken.werner@de.ibm.com>

        * spu/crt0.S (_start): Place spu_id in the first agument register.

15 years ago2009-04-03 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Fri, 3 Apr 2009 17:42:27 +0000 (17:42 +0000)]
2009-04-03  Ken Werner  <ken.werner@de.ibm.com>

        * libc/include/math.h: Remove duplicate copysign prototype.
        Fix __math_68881 define typo.  Guard functions of the rint family.

15 years ago2009-04-03 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Fri, 3 Apr 2009 17:39:24 +0000 (17:39 +0000)]
2009-04-03  Craig Howland <howland@LGSInnovations.com>

        * 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.

15 years ago * Various syntactical and semantical fixes throughout.
Corinna Vinschen [Fri, 3 Apr 2009 11:51:31 +0000 (11:51 +0000)]
* Various syntactical and semantical fixes throughout.

15 years ago * utils.sgml: Various syntactical and semantical fixes.
Corinna Vinschen [Fri, 3 Apr 2009 11:50:26 +0000 (11:50 +0000)]
* utils.sgml: Various syntactical and semantical fixes.
* cygcheck.cc (usage): Fix --find-package explanation.

15 years ago * environ.cc (build_env): Fix length calculation of resulting
Corinna Vinschen [Thu, 2 Apr 2009 17:44:01 +0000 (17:44 +0000)]
* environ.cc (build_env): Fix length calculation of resulting
wide char environment string.

15 years ago * include/netdb.h: #include <inttypes.h>, <netinet/in.h>,
Corinna Vinschen [Thu, 2 Apr 2009 08:48:03 +0000 (08:48 +0000)]
* include/netdb.h: #include <inttypes.h>, <netinet/in.h>,
and <sys/socket.h> per SUSv3.

15 years ago * libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
Corinna Vinschen [Thu, 2 Apr 2009 07:53:12 +0000 (07:53 +0000)]
* libc/ctype/ctype_c.c: Move inclusion of ctype_iso.h and
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.

15 years agoinclude/coff/
Richard Sandiford [Wed, 1 Apr 2009 19:38:11 +0000 (19:38 +0000)]
include/coff/
* xcoff.h (xcoff_link_hash_table): Move to bfd/xcofflink.c.

bfd/
* xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.

15 years ago2009-04-01 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 1 Apr 2009 17:30:35 +0000 (17:30 +0000)]
2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (EM_INTEL178): Removed.
(EM_INTEL179): Likewise.
(EM_ETPU): New.
(EM_SLE9X): Likewise.
(EM_INTEL181): Likewise.
(EM_INTEL182): Likewise.

15 years ago * faq-using.xml (faq.using.symlinkstoppedworking): Rename.
Corinna Vinschen [Wed, 1 Apr 2009 16:56:08 +0000 (16:56 +0000)]
* faq-using.xml (faq.using.symlinkstoppedworking): Rename.
(faq.using.ipv6): New IPv6 FAQ.
* gdb.sgml: Remove incorrect statement about Insight.

15 years ago * strfuncs.cc (sys_cp_mbstowcs): Check if ASCII SO is followed by at
Corinna Vinschen [Wed, 1 Apr 2009 09:49:25 +0000 (09:49 +0000)]
* strfuncs.cc (sys_cp_mbstowcs): Check if ASCII SO is followed by at
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.

15 years ago2009-03-31 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 31 Mar 2009 21:19:03 +0000 (21:19 +0000)]
2009-03-31  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (EM_INTEL178): New.
(EM_INTEL179): Likewise.
(EM_INTEL180): Likewise.

15 years ago * shm.cc (struct shm_attached_list): Convert access type to ULONG.
Corinna Vinschen [Tue, 31 Mar 2009 14:58:14 +0000 (14:58 +0000)]
* shm.cc (struct shm_attached_list): Convert access type to ULONG.
(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.

15 years ago * setup2.sgml (setup-locale-problems): Fix an incomplete sentence.
Corinna Vinschen [Tue, 31 Mar 2009 11:17:08 +0000 (11:17 +0000)]
* setup2.sgml (setup-locale-problems): Fix an incomplete sentence.

15 years ago * faq-using.xml (faq.using.unicode): Modernize.
Corinna Vinschen [Tue, 31 Mar 2009 10:54:28 +0000 (10:54 +0000)]
* faq-using.xml (faq.using.unicode): Modernize.
(faq.api.symlinkstoppedworking): Move here from faq-api.xml.

15 years ago * ctype.cc: Remove implementation of ctype functions in favor of
Corinna Vinschen [Tue, 31 Mar 2009 09:42:58 +0000 (09:42 +0000)]
* ctype.cc: Remove implementation of ctype functions in favor of
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.

15 years ago * libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
Corinna Vinschen [Tue, 31 Mar 2009 09:31:38 +0000 (09:31 +0000)]
* libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c
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.

15 years ago * faq-using.xml (faq.using.bloda): Update with new entries.
Dave Korn [Mon, 30 Mar 2009 09:23:13 +0000 (09:23 +0000)]
* faq-using.xml (faq.using.bloda):  Update with new entries.

15 years ago* Makefile.in: Perform some minor cleanup. Revamp speclib handling.
Christopher Faylor [Sat, 28 Mar 2009 04:55:36 +0000 (04:55 +0000)]
* Makefile.in: Perform some minor cleanup.  Revamp speclib handling.
* speclib: Rewrite to create libraries with dlltool rather than attempting
surgery on libcygwin.a.

15 years ago * net.cc (inet_ntop6): Convert to lowercase hex digits on the fly.
Corinna Vinschen [Fri, 27 Mar 2009 15:20:27 +0000 (15:20 +0000)]
* net.cc (inet_ntop6): Convert to lowercase hex digits on the fly.

15 years ago * net.cc (cygwin_getaddrinfo): Check hints for non-NULL before
Corinna Vinschen [Fri, 27 Mar 2009 15:10:18 +0000 (15:10 +0000)]
* net.cc (cygwin_getaddrinfo): Check hints for non-NULL before
checking its content.

15 years ago * fhandler.h (class fhandler_fifo): Rename read/write methods to
Corinna Vinschen [Fri, 27 Mar 2009 15:04:42 +0000 (15:04 +0000)]
* fhandler.h (class fhandler_fifo): Rename read/write methods to
raw_read/raw_write.
* fhandler_fifo.cc: Ditto.

15 years ago * djunpack.bat: Use ".." quoting in Sed command, for the sake of
Eli Zaretskii [Fri, 27 Mar 2009 13:37:09 +0000 (13:37 +0000)]
* djunpack.bat: Use ".." quoting in Sed command, for the sake of
Windows builds of Sed.

15 years ago * syscalls.cc (pathconf): Fix memory leak.
Corinna Vinschen [Fri, 27 Mar 2009 11:29:56 +0000 (11:29 +0000)]
* syscalls.cc (pathconf): Fix memory leak.

15 years ago * README: Remove "How to use" section, as CYGWIN="server" is
Corinna Vinschen [Fri, 27 Mar 2009 10:17:48 +0000 (10:17 +0000)]
* README: Remove "How to use" section, as CYGWIN="server" is
no longer required.

15 years ago * utils.sgml (passwd -R): Remove references to CYGWIN="server".
Corinna Vinschen [Fri, 27 Mar 2009 10:16:13 +0000 (10:16 +0000)]
* utils.sgml (passwd -R): Remove references to CYGWIN="server".

15 years ago * cygwinenv.sgml: Add text to explain new UTF-16 symlinks.
Corinna Vinschen [Thu, 26 Mar 2009 12:25:11 +0000 (12:25 +0000)]
* cygwinenv.sgml: Add text to explain new UTF-16 symlinks.
* faq-api.xml: Add FAQ entry "Why do some of my old symlinks don't
work anymore?"
* new-features.sgml: Fix symlink text.  Add new UTF-16 symlinks.
* overview2.sgml: Add text about new UTF-16 symlinks and potential
problems with old symlinks.
* pathnames.sgml: Fix typo.
* setup2.sgml: Extend text about problems with symlinks.

15 years ago * path.cc (symlink_worker): Write target filename as UTF-16 string
Corinna Vinschen [Thu, 26 Mar 2009 12:12:11 +0000 (12:12 +0000)]
* path.cc (symlink_worker): Write target filename as UTF-16 string
with leading BOM marker.
(symlink_info::check_shortcut): If check for leading BOM marker
succeeds, read filename as UTF-16 string.
(symlink_info::check_sysfile): Ditto.

15 years ago * include/asm/byteorder.h (__ntohl): Align definition to ISO C99.
Corinna Vinschen [Thu, 26 Mar 2009 10:40:29 +0000 (10:40 +0000)]
* include/asm/byteorder.h (__ntohl): Align definition to ISO C99.
(__ntohs): Ditto.

15 years ago * new-features.sgml: Replace GB2312 with GBK.
Corinna Vinschen [Thu, 26 Mar 2009 10:31:08 +0000 (10:31 +0000)]
* new-features.sgml: Replace GB2312 with GBK.
* setup2.sgml: Ditto.

15 years ago * strfuncs.cc (__set_charset_from_codepage): Revert to translating
Corinna Vinschen [Thu, 26 Mar 2009 10:26:57 +0000 (10:26 +0000)]
* strfuncs.cc (__set_charset_from_codepage): Revert to translating
codepage 936 to "GBK".

15 years ago * libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
Corinna Vinschen [Thu, 26 Mar 2009 10:24:38 +0000 (10:24 +0000)]
* libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead
of "GB2312".  Fix documentation accordingly.

15 years ago Revert erroneously checked in files.
Corinna Vinschen [Thu, 26 Mar 2009 10:04:40 +0000 (10:04 +0000)]
Revert erroneously checked in files.

15 years ago * libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
Corinna Vinschen [Thu, 26 Mar 2009 09:45:11 +0000 (09:45 +0000)]
* libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
* libc/ctype/isblank.c: Replace hardcoded test with test for having _B
marker in ctype array.
* libc/include/ctype.h (isblank): Add macro.

15 years ago2009-03-25 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Wed, 25 Mar 2009 21:16:04 +0000 (21:16 +0000)]
2009-03-25  Craig Howland <howland@LGSInnovations.com>

* libc/include/math.h:  (llround, llroundf): Declare.
* libm/common/s_llround.c: New file, implementing llround().
* libm/common/sf_llround.c: New file, implementing llroundf().
* libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
version of function.
* libm/common/sf_lrint.c: Ditto.
* libm/common/sf_logb.c:  Corrected return for subnormal argument
by replacing existing function with a version created from sf_ilogb.c.
* libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
added documentation for logb() and logbf().
* libm/common/s_signbit.c:  Add signbit() documentation.
* libm/common/s_log2.c: Update return values to match what w_log2.c has,
since log2 uses log(); add note about being derived instead of direct.
* libm/common/sf_fma.c: Add casts to attempt to get correct results,
as well as comments pointing out problems with the implementation.
* libm/common/s_fma.c: Add fma() and fmaf() documentation.
* libm/common/sf_remquo.c: Incorrect quotient returns for large values
corrected by discarding existing function and replacing with Sun
verion, with some enhancements.
* libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
documentation.
* libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
* libm/common/s_fmin.c: Add fmin() and fminf() documentation.
* libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
documentation.
* libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
* libm/common/s_trunc.c: Add trunc() and truncf() documentation.
* libm/common/s_rint.c: Add rint() and rintf() documentation.
* libm/common/s_round.c: Add round() and roundf() documentation.
* libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
* libm/common/s_infinity.c: Add infinity() and infinityf()
documentation.
* libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
llroundf() documentation.
* libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
documentation.
* libm/common/isgreater.c: New file for documenting math.h function-like
macros isgreater(), isgreaterequal(), isless(), islessequal(),
islessgreater(), and isunordered().
* libm/common/s_isnan.c: Add documentation for function-like macros
fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
* libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
documentation.
* libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
        s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
        isgreater.def (chobj);
re-name all existing chew files (chobj) to match source file base
names (put in underscores), delete all special targets for chew files
(leaving all to be generated by rule).
* libm/common/Makefile.in: regenerate.
* libm/math/w_exp2.c: Add "base 2" to documentation description (and
delete TRAD_SYNOPSIS).
* libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
with some history behind the function names.
* libm/math/math.tex: Add includes for newly-added documentation (see
.def additions to common/Makefile.am and math/Makefile.am in this
ChangeLog list), adjusted existing .def file names to match source file
base names (added underscores); add mention of HUGE_VALF; rename
"Version of library" section to "Error Handling" and add some text
about floating-point exception; added section "Standards Compliance And
Portability".
* libm/math/Makefile.am: Add w_exp2.def (chobj);
re-name all existing chew files (chobj) to match source file base
names, delete all special targets for chew files (leaving all to be
generated by rule).
* libm/math/Makefile.in: regenerated
* doc/makedoc.c: Change silent ignoring of commands < 5 characters
to a failure when reading macro file for commands < 4 characters;
add -v (verbose) option for printing some debugging information;
get rid of spurious translation of "@*" to "*" (no source files used @*,
so no existing doc pages were affected); clean up some compiler
warnings.
* doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
which has them); Remove ITEM command (redundant with makedoc built-in
"o", not used in any present source file so nothing is lost, anyway).
* HOWTO: New file to hold information for maintainers regarding how
to do things.  Initial sections on documentation and ELIX levels.

15 years ago2009-03-25 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston [Wed, 25 Mar 2009 19:13:24 +0000 (19:13 +0000)]
2009-03-25  Craig Howland <howland@LGSInnovations.com>

* libc/include/math.h:  (llround, llroundf): Declare.
* libm/common/s_llround.c: New file, implementing llround().
* libm/common/sf_llround.c: New file, implementing llroundf().
* libm/common/sf_lround.c: Remove spurious cast in _DOUBLE_IS_32BITS
version of function.
* libm/common/sf_lrint.c: Ditto.
* libm/common/sf_logb.c:  Corrected return for subnormal argument
by replacing existing function with a version created from sf_ilogb.c.
* libm/common/s_logb.c: Ditto, except starting point s_ilogb.c.  Also
added documentation for logb() and logbf().
* libm/common/s_signbit.c:  Add signbit() documentation.
* libm/common/s_log2.c: Update return values to match what w_log2.c has,
since log2 uses log(); add note about being derived instead of direct.
* libm/common/sf_fma.c: Add casts to attempt to get correct results,
as well as comments pointing out problems with the implementation.
* libm/common/s_fma.c: Add fma() and fmaf() documentation.
* libm/common/sf_remquo.c: Incorrect quotient returns for large values
corrected by discarding existing function and replacing with Sun
verion, with some enhancements.
* libm/common/s_remquo.c: Ditto.  Add remquo() and remquof()
documentation.
* libm/common/s_fmax.c: Add fmax() and fmaxf() documentation.
* libm/common/s_fmin.c: Add fmin() and fminf() documentation.
* libm/common/s_fdim.c: Return NAN for NAN arg, add fdim() and fdimf()
documentation.
* libm/common/sf_fdim.c: Return NAN for NAN arg, HUGE_VALF for inf arg.
* libm/common/s_trunc.c: Add trunc() and truncf() documentation.
* libm/common/s_rint.c: Add rint() and rintf() documentation.
* libm/common/s_round.c: Add round() and roundf() documentation.
* libm/common/s_scalbn.c: Add scalbln() and scalblnf() documentation.
* libm/common/s_infinity.c: Add infinity() and infinityf()
documentation.
* libm/common/s_lround.c: Add lround(), lroundf(), llround(), and
llroundf() documentation.
* libm/common/s_lrint.c: Add lrint(), lrintf(), llrint(), and llrintf()
documentation.
* libm/common/isgreater.c: New file for documenting math.h function-like
macros isgreater(), isgreaterequal(), isless(), islessequal(),
islessgreater(), and isunordered().
* libm/common/s_isnan.c: Add documentation for function-like macros
fpclassify(), isfinite(), isinf(), isnan(), and isnormal().
* libm/common/s_nearbyint.c: Add nearbyint() and nearbyintf()
documentation.
* libm/common/Makefile.am: Add s_llround.c (src); sf_llround.c (fsrc);
s_fdim.def, s_fma.def, s_fmax.def, s_fmin.def,
s_logb.def, s_lrint.def, s_lround.def, s_nearbyint.def, s_remquo.def,
        s_rint.def, s_round.def, s_signbit.def, s_trunc.def, and
        isgreater.def (chobj);
re-name all existing chew files (chobj) to match source file base
names (put in underscores), delete all special targets for chew files
(leaving all to be generated by rule).
* libm/common/Makefile.in: regenerate.
* libm/math/w_exp2.c: Add "base 2" to documentation description (and
delete TRAD_SYNOPSIS).
* libm/math/w_gamma.c: Add tgamma() and tgammaf() documentation, along
with some history behind the function names.
* libm/math/math.tex: Add includes for newly-added documentation (see
.def additions to common/Makefile.am and math/Makefile.am in this
ChangeLog list), adjusted existing .def file names to match source file
base names (added underscores); add mention of HUGE_VALF; rename
"Version of library" section to "Error Handling" and add some text
about floating-point exception; added section "Standards Compliance And
Portability".
* libm/math/Makefile.am: Add w_exp2.def (chobj);
re-name all existing chew files (chobj) to match source file base
names, delete all special targets for chew files (leaving all to be
generated by rule).
* libm/math/Makefile.in: regenerated
* doc/makedoc.c: Change silent ignoring of commands < 5 characters
to a failure when reading macro file for commands < 4 characters;
add -v (verbose) option for printing some debugging information;
get rid of spurious translation of "@*" to "*" (no source files used @*,
so no existing doc pages were affected); clean up some compiler
warnings.
* doc/doc.str: add BUGS and SEEALSO sections (to match texi2pod.pl
which has them); Remove ITEM command (redundant with makedoc built-in
"o", not used in any present source file so nothing is lost, anyway).
* HOWTO: New file to hold information for maintainers regarding how
to do things.  Initial sections on documentation and ELIX levels.

15 years ago2009-03-25 Richard Earnshaw <rearnsha@arm.com>
Jeff Johnston [Wed, 25 Mar 2009 18:56:15 +0000 (18:56 +0000)]
2009-03-25  Richard Earnshaw  <rearnsha@arm.com>

        * libc/machine/arm/strcmp.c (strcmp_unaligned): Correctly
        detect the nul-byte in a big-endian string.

15 years ago2009-03-25 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 25 Mar 2009 17:57:11 +0000 (17:57 +0000)]
2009-03-25  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/string/wcsdup.c: Fix documentation error.
        * libc/string/Makefile.am: Fix CHEWOUT files to contain
        wcsdup.def rather than wcsdup.
        * libc/string/Makefile.in: Regenerated.

15 years ago * pathnames.sgml: Add a note that ASCII SO handling isn't foolproof
Corinna Vinschen [Wed, 25 Mar 2009 14:33:05 +0000 (14:33 +0000)]
* pathnames.sgml: Add a note that ASCII SO handling isn't foolproof
under all circumstances.

15 years ago * strfuncs.cc (sys_wcstombs): Don't convert ASCII SO into two
Corinna Vinschen [Wed, 25 Mar 2009 13:54:41 +0000 (13:54 +0000)]
* strfuncs.cc (sys_wcstombs): Don't convert ASCII SO into two
ASCII SO's.

15 years ago * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
Corinna Vinschen [Wed, 25 Mar 2009 13:52:08 +0000 (13:52 +0000)]
* libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc
pointers if category is LC_CTYPE.

15 years ago * environ.cc (environ_init): Break from locale loop after first hit.
Corinna Vinschen [Wed, 25 Mar 2009 12:29:04 +0000 (12:29 +0000)]
* environ.cc (environ_init): Break from locale loop after first hit.
* fhandler_console.cc (fhandler_console::write_normal): Print a SO
sequence using always valid Unicode chars.

15 years ago * new-features.sgml: Add missing GB2312 and eucKR character sets.
Corinna Vinschen [Wed, 25 Mar 2009 10:37:06 +0000 (10:37 +0000)]
* new-features.sgml: Add missing GB2312 and eucKR character sets.
* pathnames.sgml: Change "DOS devices" title to "Invalid filenames"
and rephrase that section.
Add section "Filenames with unusual (foreign) characters".
Fix an emphasis.
* setup-net.sgml: Integrate setup-locale section.
* setup2.sgml: Add locale variables to section "Environment Variables".
Add section "Internationalization".

15 years ago * strfuncs.cc (__kr_wctomb): Use codepage 51949 rather than 50949.
Corinna Vinschen [Wed, 25 Mar 2009 09:02:22 +0000 (09:02 +0000)]
* strfuncs.cc (__kr_wctomb): Use codepage 51949 rather than 50949.
(__kr_mbtowc): Ditto.
(__set_charset_from_codepage): Ditto.  Translate codepage 936 to
"GB2312" and drop the charset name "GBK".

15 years ago * libc/locale/locale.c (loadlocale): Rename charset "GBK" to
Corinna Vinschen [Wed, 25 Mar 2009 09:00:03 +0000 (09:00 +0000)]
* libc/locale/locale.c (loadlocale): Rename charset "GBK" to
"GB2312".  Fix documentation accordingly.

15 years ago * strfuncs.cc (__kr_wctomb): Use codepage 50949 rather than 949.
Corinna Vinschen [Tue, 24 Mar 2009 18:20:01 +0000 (18:20 +0000)]
* strfuncs.cc (__kr_wctomb): Use codepage 50949 rather than 949.
(__kr_mbtowc): Ditto.
(__set_charset_from_codepage): Translate codepages 949 and 50949 to
"EUCKR" and drop the charset name "CP949".

15 years ago * libc/locale/locale.c (loadlocale): Rename charset "CP949" to
Corinna Vinschen [Tue, 24 Mar 2009 18:18:14 +0000 (18:18 +0000)]
* libc/locale/locale.c (loadlocale): Rename charset "CP949" to
"eucKR".  Fix documentation accordingly.

15 years ago * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
Corinna Vinschen [Tue, 24 Mar 2009 16:56:33 +0000 (16:56 +0000)]
* libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
for "eucJP" charset support.

15 years ago * strfuncs.cc (sys_cp_mbstowcs): Don't read beyond src + nms.
Corinna Vinschen [Tue, 24 Mar 2009 16:42:36 +0000 (16:42 +0000)]
* strfuncs.cc (sys_cp_mbstowcs): Don't read beyond src + nms.

15 years ago2009-03-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 24 Mar 2009 16:05:07 +0000 (16:05 +0000)]
2009-03-24  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/errno.h: Move EFTYPE to general usage because
        it is used in libc/search.

15 years ago * new-features.sgml: Add section about chaged (no)winsymlink default.
Corinna Vinschen [Tue, 24 Mar 2009 13:51:25 +0000 (13:51 +0000)]
* new-features.sgml: Add section about chaged (no)winsymlink default.

15 years ago * shared_info.h (CURR_SHARED_MAGIC): Update.
Corinna Vinschen [Tue, 24 Mar 2009 13:44:53 +0000 (13:44 +0000)]
* shared_info.h (CURR_SHARED_MAGIC): Update.

15 years ago * cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.
Corinna Vinschen [Tue, 24 Mar 2009 13:35:08 +0000 (13:35 +0000)]
* cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.
* strace.cc (proc_child): Ditto.
* ldd.cc: Remove now useless undef wcscasecmp.

15 years ago * wchar.h: Replace UINT with unsigned int.
Corinna Vinschen [Tue, 24 Mar 2009 13:33:57 +0000 (13:33 +0000)]
* wchar.h: Replace UINT with unsigned int.

15 years ago * wchar.h: Remove erroneous "C" specifier from extern declaration.
Corinna Vinschen [Tue, 24 Mar 2009 13:21:23 +0000 (13:21 +0000)]
* wchar.h: Remove erroneous "C" specifier from extern declaration.

15 years ago * cygwinenv.sgml: Move "codepage:xxx" to the removed options section.
Corinna Vinschen [Tue, 24 Mar 2009 12:37:02 +0000 (12:37 +0000)]
* cygwinenv.sgml: Move "codepage:xxx" to the removed options section.
Change text accordingly.
* new-features.sgml: Try to explain new way to define character sets.

15 years ago * ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character.
Corinna Vinschen [Tue, 24 Mar 2009 12:18:34 +0000 (12:18 +0000)]
* ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character.
(__ctype_default): New character class array for default ASCII
character set.
(__ctype_iso): New array of character class array for ISO charsets.
(__ctype_cp): Ditto for singlebyte Windows codepages.
(tolower): Implement as distinct function to support any singlebyte
charset.
(toupper): Ditto.
(__set_ctype): New function to copy singlebyte character classes
corresponding to current charset to ctype_b array.
Align copyright text to upstream.
* dcrt0.cc (dll_crt0_1): Reset current locale to "C" per POSIX.
* environ.cc (set_file_api_mode): Remove.
(codepage_init): Remove.
(parse_thing): Remove "codepage" setting.
(environ_init): Set locale according to environment settings, or
to current codepage, before converting environment to multibyte.
* fhandler.h (fhandler_console::write_replacement_char): Drop argument.
* fhandler_console.cc (dev_console::str_to_con): Call sys_cp_mbstowcs
rather than MultiByteToWideChar.
(fhandler_console::write_replacement_char): Always print a funny
half filled square if a character isn't in the current charset.
(fhandler_console::write_normal): Convert to using __mbtowc
rather than next_char.
* fork.cc (frok::child): Drop call to set_file_api_mode.
* globals.cc (enum codepage_type) Remove.
(current_codepage): Remove.
* miscfuncs.cc (cygwin_wcslwr): Unused, dangerous.  Remove.
(cygwin_wcsupr): Ditto.
(is_cp_multibyte): Remove.
(next_char): Remove.
* miscfuncs.h (is_cp_multibyte): Drop declaration.
(next_char): Ditto.
* strfuncs.cc (get_cp): Remove.
(__db_wctomb): New function to implement _wctomb_r functionality for
doublebyte charsets using WideCharToMultiByte.
(__sjis_wctomb): New function to replace unusable newlib function.
(__jis_wctomb): Ditto.
(__eucjp_wctomb): Ditto.
(__gbk_wctomb): New function.
(__kr_wctomb): Ditto.
(__big5_wctomb): Ditto.
(__db_mbtowc): New function to implement _mbtowc_r functionality for
doublebyte charsets using MultiByteToWideChar.
(__sjis_mbtowc): New function to replace unusable newlib function.
(__jis_mbtowc): Ditto.
(__eucjp_mbtowc): Ditto.
(__gbk_mbtowc): New function.
(__kr_mbtowc): New function
(__big5_mbtowc): New function
(__set_charset_from_codepage): New function.
(sys_wcstombs): Reimplement, basically using same wide char to multibyte
conversion as newlib's application level functions.  Plus extras.
Add lengthy comment to explain.  Change return type to size_t.
(sys_wcstombs_alloc): Just use sys_wcstombs.  Change return type to
size_t.
(sys_cp_mbstowcs): Replace sys_mbstowcs, take additional codepage
argument.  Explain why.  Change return type to size_t.
(sys_mbstowcs_alloc): Just use sys_mbstowcs.  Change return type to
size_t.
* wchar.h: Declare internal functions implemented in strfuncs.cc.
(wcscasecmp): Remove.
(wcsncasecmp): Remove.
(wcslwr): Remove.
(wcsupr): Remove.
* winsup.h (codepage_init): Remove declaration.
(get_cp): Ditto.
(sys_wcstombs): Align declaration to new implementation.
(sys_wcstombs_alloc): Ditto.
(sys_cp_mbstowcs): Add declaration.
(sys_mbstowcs): Define as inline function.
(sys_mbstowcs_alloc): Align declaration to new implementation.
(set_file_api_mode): Remove declaration.
* include/ctype.h (isblank): Redefine to use _B character class.
(toupper): Remove ASCII-only definition.
(tolower): Ditto.

15 years ago * sec_auth.cc (str2buf2uni): Remove.
Corinna Vinschen [Tue, 24 Mar 2009 10:53:57 +0000 (10:53 +0000)]
* sec_auth.cc (str2buf2uni): Remove.
* security.h (str2buf2uni): Remove declaration.

15 years ago * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
Corinna Vinschen [Tue, 24 Mar 2009 10:13:27 +0000 (10:13 +0000)]
* libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
_MB_CAPABLE systems.
* libc/ctype/iswblank.c: Ditto.
* libc/ctype/iswcntrl.c: Ditto.
* libc/ctype/iswprint.c: Ditto.
* libc/ctype/iswpunct.c: Ditto.
* libc/ctype/iswspace.c: Ditto.
* libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
Explain why.
* libc/ctype/towlower.c: Ditto.
* libc/ctype/towupper.c: Ditto.
* libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
* libc/include/sys/reent.h (struct _reent): Mark _current_category
and _current_locale as unused.
* libc/locale/locale.c: Add new charset support to documentation.
Include ../stdio/local.h from here.
(lc_ctype_charset): Set to "ASCII" by default.
(lc_message_charset): Ditto.
(_setlocale_r): Don't set _current_category and _current_locale.
(loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
systems, set __mbtowc and __wctomb function pointers to function
corresponding with current charset.  Don't allow non-existant
ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
_current_category and _current_locale.
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/local.h: Add prototype for __locale_charset.
Add prototypes for __mbtowc and __wctomb pointers.
Add prototypes for charset-specific _wctomb_r and _mbtowc_r
functions.
Declare tables and functions from sb_charsets.c.
* libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
by default.
(_mbtowc_r): Just call __mbtowc from here.
(__ascii_mbtowc): New function.
(__iso_mbtowc): New function.
(__cp_mbtowc): New function.
(__utf8_mbtowc): New function.
(__sjis_mbtowc): New function.  Disable on Cygwin.
(__eucjp_mbtowc): New function.  Disable on Cygwin.
(__jis_mbtowc): New function.  Disable on Cygwin.
* libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
conversion tables for all ISO and CP charsets.
(__iso_8859_index): New function.
(__cp_index): New function.
* libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
by default.
(_wctomb_r): Just call __wctomb from here.
(__ascii_wctomb): New function.
(__utf8_wctomb): New function.
(__sjis_wctomb): New function.  Disable on Cygwin.
(__eucjp_wctomb): New function.  Disable on Cygwin.
(__jis_wctomb): New function.  Disable on Cygwin.
(__iso_wctomb): New function.
(__cp_wctomb): New function.

15 years ago * include/mntent.h: Remove declarations of nonexistant addmntent
Corinna Vinschen [Tue, 24 Mar 2009 09:19:37 +0000 (09:19 +0000)]
* include/mntent.h: Remove declarations of nonexistant addmntent
and hasmntopt.  Update and clarify the /etc/mtab comment.

15 years ago * passwd.c (usage): Change description for -d option according to
Corinna Vinschen [Mon, 23 Mar 2009 20:40:17 +0000 (20:40 +0000)]
* passwd.c (usage): Change description for -d option according to
previous change.
(main): Fix typo.
* utils.sgml: Add missing description for passwd -d option.

This page took 0.071604 seconds and 5 git commands to generate.