libc/winsup/cygwin/include
Corinna Vinschen 161211d186 * 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.
2009-03-24 12:18:34 +00:00
..
arpa * Makefile.in (DLL_OFILES): Add minires-os-if.o and minires.o. 2006-12-11 19:59:06 +00:00
asm * include/asm/byteorder.h (__constant_ntohs): Remove declaration. 2009-03-23 14:26:55 +00:00
attr * fhandler_disk_file.cc (fhandler_disk_file::fgetxattr): Remove unused 2008-02-11 19:03:36 +00:00
bits * include/bits/wordsize.h: New linux-compatibility header. 2008-12-31 04:12:44 +00:00
cygwin * cygwin.din: Export wordexp, wordfree. 2009-03-23 09:46:38 +00:00
machine * include/machine/stdlib.h: New file. 2005-06-01 18:24:31 +00:00
net
netinet 2006-07-25 Corinna Vinschen <corinna@vinschen.de> 2006-07-25 19:23:23 +00:00
sys * include/sys/un.h: #include <string.h> for strlen. 2009-03-23 08:45:18 +00:00
a.out.h
byteswap.h * include/byteswap.h: New file. 2005-07-26 00:55:42 +00:00
ctype.h * ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character. 2009-03-24 12:18:34 +00:00
dlfcn.h
elf.h * include/sys/cdefs.h (__CONCAT): Define. 2005-08-08 15:00:39 +00:00
endian.h * include/endian.h: Remove USE_BSD ifdef since it is never defined on Cygwin. 2005-11-10 21:17:15 +00:00
err.h
exceptions.h * include/exceptions.h (exception_list): Revert previous change. Windows 2005-12-03 05:01:51 +00:00
fcntl.h * syscalls.cc (open): Handle O_DIRECTORY flag. 2009-02-11 16:06:39 +00:00
features.h white space 2006-05-28 15:50:14 +00:00
fnmatch.h
fts.h * Makefile.in (DLL_OFILES): Add fts.o, ftw.o, nftw.o. 2005-08-08 09:45:42 +00:00
ftw.h * include/ftw.h: Include sys/cdefs.h. 2007-01-28 11:27:05 +00:00
getopt.h * include/getopt.h (getopt_long_only): Declare. 2006-01-09 12:41:54 +00:00
glob.h * glob_pattern_p.cc: New file. 2008-12-31 21:33:34 +00:00
icmp.h
ifaddrs.h * autoload.cc (WSAIoctl): Remove. 2007-06-21 15:57:54 +00:00
inttypes.h * include/inttypes.h: Remove "l" size specifier from all 16 and 32 bit 2009-03-15 13:29:04 +00:00
io.h
lastlog.h
libgen.h * cygwin.din (basename): Export. 2005-02-22 19:45:41 +00:00
limits.h * include/limits.h (PATH_MAX): Add comment. 2008-06-21 20:24:45 +00:00
mapi.h
memory.h
mntent.h * include/mntent.h: Remove declarations of nonexistant addmntent 2009-03-24 09:19:37 +00:00
mqueue.h * posix_ipc.cc (mq_open): Avoid compiler warning. Initialize mqhdr 2007-02-15 17:49:25 +00:00
netdb.h * net.cc (ga_dup): New function, taken from ga_clone with v4-in-v6 2007-02-01 15:54:40 +00:00
paths.h
poll.h
pthread.h * cygmalloc.h (MALLOC_FAILURE_ACTION): Define empty. 2007-02-07 17:22:40 +00:00
pty.h
resolv.h * resolv.h: #include <netinet/in.h> for sockaddr_in typedef. 2008-12-09 16:09:46 +00:00
sched.h
search.h * include/search.h: Reinstate node_t definition. 2007-06-17 00:31:27 +00:00
semaphore.h * cygwin.din (sem_unlink): Export. 2007-02-20 15:48:04 +00:00
stdint.h * include/stdint.h: Use int rather than long for {u,}int32_t. 2008-05-17 21:34:05 +00:00
strings.h Perform whitespace cleanup throughout. 2008-02-15 17:53:11 +00:00
sysexits.h
syslog.h
termio.h
tzfile.h
utmpx.h * cygwin.din (updwtmpx): Export. 2006-02-02 22:46:37 +00:00
wait.h * include/wait.h: New file. 2008-04-24 08:46:41 +00:00