2010-01-30 03:51:11 +08:00
|
|
|
2010-01-29 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* sec_auth.cc (lsaauth): Use CYG_LSA_MAGIC as checksum start value to
|
|
|
|
decouple from Cygwin release.
|
|
|
|
|
2010-01-30 03:38:22 +08:00
|
|
|
2010-01-29 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* libc/strfmon.c (__setup_vars): Test for an empty string rather than
|
|
|
|
for a NULL pointer.
|
|
|
|
|
2010-01-30 02:34:09 +08:00
|
|
|
2010-01-29 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* dll_init.cc (remove_dll_atexit): New function.
|
|
|
|
(dll_list::detach): Run any atexit handlers registered in the DLL prior
|
|
|
|
to unloading.
|
|
|
|
|
2010-01-30 01:37:54 +08:00
|
|
|
2010-01-29 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* libc/strfmon.c (__setup_vars): Fix compiler warning about assigning
|
|
|
|
const strings. Compare a pointer to NULL rather than '\0'.
|
|
|
|
|
|
|
|
* dll_init.cc (dll_dllcrt0_1): Minor comment fix.
|
|
|
|
|
|
|
|
* pipe.cc (fhandler_pipe::create_selectable): Remove Win9x
|
|
|
|
accommodation.
|
|
|
|
|
2010-01-29 19:20:06 +08:00
|
|
|
2010-01-29 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
Throughout, use FileBothDirectoryInformation info class rather than
|
|
|
|
FileDirectoryInformation info class to avoid problems with incomplete
|
|
|
|
filesystem implementations. Fix comments accordingly.
|
|
|
|
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set
|
|
|
|
fname->Length to 0 in error case to avoid potential crash in debug
|
|
|
|
output.
|
|
|
|
(fhandler_disk_file::readdir): Try to speed up the working default case.
|
|
|
|
Check for STATUS_INVALID_NETWORK_RESPONSE as potential status value
|
|
|
|
returned by filesystems not implementing FileIdBothDirectoryInformation.
|
|
|
|
* ntdll.h (STATUS_INVALID_NETWORK_RESPONSE): Define.
|
|
|
|
(FILE_BOTH_DIRECTORY_INFORMATION): Rename to official name.
|
|
|
|
* path.cc (symlink_info::check): Don't request FILE_READ_EA access, it's
|
|
|
|
not required for NFS. Try to speed up the working default case. Check
|
|
|
|
for STATUS_INVALID_NETWORK_RESPONSE as potential status value returned
|
|
|
|
by filesystems not supporting non-NULL EA parameters. Fix the way
|
|
|
|
fs.update is called. Improve debug output.
|
|
|
|
|
2010-01-28 19:54:00 +08:00
|
|
|
2010-01-28 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* Makefile.in (tags, ctags, CTAGS)): Add rules to create tags file.
|
|
|
|
|
2010-01-26 05:20:31 +08:00
|
|
|
2010-01-25 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* nlsfuncs.cc (__get_lcid_from_locale): Add comments. Fix typos in
|
|
|
|
comments. Make sure to set last_lcid every time. Return locale
|
|
|
|
without territory part as invalid. Handle modern serbian territory
|
|
|
|
names per ISO 3166 on older systems as well. Add appropriate comment.
|
|
|
|
(__set_charset_from_locale): Handle LCID for sr_CS as well to make older
|
|
|
|
systems happy.
|
|
|
|
|
2010-01-25 19:55:46 +08:00
|
|
|
2010-01-25 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* nlsfuncs.cc (__set_charset_from_locale): Rearrange to set charset
|
|
|
|
more closely aligned to Glibc.
|
|
|
|
|
2010-01-25 19:21:56 +08:00
|
|
|
2010-01-25 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* spawn.cc (spawn_guts): Only try to remove long path prefix from
|
|
|
|
runpath if runpath is not NULL.
|
|
|
|
|
2010-01-25 18:44:56 +08:00
|
|
|
2010-01-25 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* nlsfuncs.cc (__get_lcid_from_locale): Fix a comment. Handle special
|
|
|
|
language/TERRITORY combinations explicitely. Explain why.
|
|
|
|
|
2010-01-24 22:43:51 +08:00
|
|
|
2010-01-24 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* nlsfuncs.cc (__set_charset_from_locale): Fix comment.
|
|
|
|
|
2010-01-24 20:29:49 +08:00
|
|
|
2010-01-24 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* nlsfuncs.cc (check_codepage): Move from syscalls.cc here.
|
|
|
|
(internal_setlocale): Ditto.
|
|
|
|
(initial_setlocale): Ditto.
|
|
|
|
(setlocale): Ditto.
|
|
|
|
* strfuncs.cc (__sjis_wctomb): Revert previous patch.
|
|
|
|
(__sjis_mbtowc): Ditto.
|
|
|
|
* syscalls.cc: Move setlocale-related functions to nlsfuncs.cc.
|
|
|
|
|
2010-01-24 00:43:17 +08:00
|
|
|
2010-01-23 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* strfuncs.cc (__sjis_wctomb): Special handling for characters which
|
|
|
|
differ between SJIS and Windows codepage 932, if charset is "SJIS".
|
|
|
|
(__sjis_mbtowc): Ditto.
|
|
|
|
(_jis_wctomb): Remove.
|
|
|
|
(__jis_mbtowc): Remove.
|
|
|
|
|
2010-01-23 18:11:43 +08:00
|
|
|
2010-01-23 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* nlsfuncs.cc (wcsxfrm): Call LCMapStringW with LCMAP_BYTEREV flag to
|
|
|
|
allow correct comparison using wcscmp.
|
|
|
|
|
2010-01-23 06:33:22 +08:00
|
|
|
2010-01-22 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* posix.sgml (strfmon): Move to implemented SUSv4 API.
|
|
|
|
|
2010-01-23 06:31:31 +08:00
|
|
|
2010-01-22 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* Makefile.in (DLL_OFILES): Add nlsfunc.o and strfmon.o.
|
|
|
|
* autoload.cc (LocaleNameToLCID): Define.
|
|
|
|
* cygwin.din (strfmon): Export.
|
|
|
|
* nlsfuncs.cc: New file. Define a lot of internal functions called
|
|
|
|
from setlocale.
|
|
|
|
(wcscoll): Implement locale-aware here, using CompareStringW function.
|
|
|
|
(strcoll): Ditto.
|
|
|
|
(wcsxfrm): Implement locale-aware here, usingLCMapStringW function.
|
|
|
|
(strxfrm): Ditto.
|
|
|
|
(__set_charset_from_locale): Replace __set_charset_from_codepage.
|
|
|
|
Return Linux-compatible charset.
|
|
|
|
* strfuncs.cc (__set_charset_from_codepage): Remove.
|
|
|
|
* wchar.h (__set_charset_from_codepage): Drop definition.
|
|
|
|
* wincap.h (wincaps::has_localenames): New element.
|
|
|
|
* wincap.cc: Implement above element throughout.
|
|
|
|
* libc/strfmon.c: New file.
|
|
|
|
* libc/strptime.cc: Remove locale constant strings in favor of
|
|
|
|
access to locale-specifc data.
|
|
|
|
(strptime): Point _CurrentTimeLocale to locale-specific data.
|
|
|
|
Throughout use correct locale-specific format fields for all
|
|
|
|
locale-specific formats.
|
|
|
|
* include/monetary.h: New file.
|
|
|
|
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
|
|
|
|
|
2010-01-19 00:07:22 +08:00
|
|
|
2010-01-18 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* strfuncs.cc: Remove needless includes.
|
|
|
|
|
2010-01-17 17:41:01 +08:00
|
|
|
2010-01-17 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* syscalls.cc (internal_setlocale): Use UTF-8 internally if external
|
|
|
|
charset is ASCII.
|
|
|
|
|
2010-01-16 23:11:56 +08:00
|
|
|
2010-01-15 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* libc/fnmatch.c: Replace with multibyte capable version from FreeBSD.
|
|
|
|
|
2010-01-16 18:22:58 +08:00
|
|
|
2010-01-15 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler_socket.cc (fhandler_socket::accept4): Reset async flag
|
|
|
|
on accepted socket.
|
|
|
|
|
2010-01-16 05:34:27 +08:00
|
|
|
2010-01-15 Pierre A. Humblet <phumblet@phumblet.no-ip.org>
|
|
|
|
|
|
|
|
* fhandler_socket.cc (fhandler_socket::accept4): Set nonblocking
|
|
|
|
flag exactly according to flags, as on Linux.
|
|
|
|
* net.cc (cygwin_accept): Maintain BSD semantics here.
|
|
|
|
|
2010-01-15 23:40:05 +08:00
|
|
|
2010-01-15 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* cygwin.din (accept4): Export.
|
|
|
|
* fhandler.h (fhandler_socket::accept4): Rename from accept. Take
|
|
|
|
additional flag parameter.
|
|
|
|
* fhandler_socket.cc (fhandler_socket::accept4): Ditto. Handle
|
|
|
|
SOCK_NONBLOCK and SOCK_CLOEXEC flags.
|
|
|
|
* net.cc (cygwin_socket): Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags
|
|
|
|
in type. Check for invalid flag values.
|
|
|
|
(socketpair): Ditto.
|
|
|
|
(cygwin_accept): Accommodate renaming of fhandler_socket::accept
|
|
|
|
function to accept4.
|
|
|
|
(accept4): New function.
|
|
|
|
* posix.sgml: Mention accept4 as GNU extensions.
|
|
|
|
* include/cygwin/socket.h (SOCK_NONBLOCK): Define.
|
|
|
|
(SOCK_CLOEXEC): Define.
|
|
|
|
(_SOCK_FLAG_MASK): Define when building Cygwin.
|
|
|
|
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
|
|
|
|
* include/sys/socket.h (accept4): Declare.
|
|
|
|
|
2010-01-15 22:22:42 +08:00
|
|
|
2010-01-15 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* posix.sgml: Mention dup3 and pipe2 as GNU extensions.
|
|
|
|
|
2010-01-15 02:56:24 +08:00
|
|
|
2010-01-14 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* dcrt0.cc (dll_crt0_1): Reset locale to "C" at the last moment before
|
|
|
|
calling the application's main.
|
|
|
|
* syscalls.cc (internal_setlocale): Don't reset locale to "C here.
|
|
|
|
Change comment accordingly.
|
|
|
|
|
2010-01-15 02:46:02 +08:00
|
|
|
2010-01-14 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* cygwin.din (dup3): Export.
|
|
|
|
(pipe2): Export.
|
|
|
|
* dtable.cc (dtable::dup_worker): Take additional flags parameter.
|
|
|
|
Handle O_CLOEXEC flag.
|
|
|
|
(dtable::dup3): Rename from dup2. Take additional flags parameter.
|
|
|
|
Check for valid flags. Drop check for newfd == oldfd.
|
|
|
|
* dtable.h (dtable::dup_worker): Add flags parameter.
|
|
|
|
(dtable::dup3): Rename from dup2.
|
|
|
|
* fcntl.cc (fcntl64): Add F_DUPFD_CLOEXEC case.
|
|
|
|
* fhandler.h (fhandler_mailslot::get_object_attr): Add flags parameter.
|
|
|
|
* fhandler.cc (fhandler_base::open): Use security attribute with
|
|
|
|
inheritance according to setting of O_CLOEXEC flag.
|
|
|
|
* fhandler_console.cc (fhandler_console::open): Ditto.
|
|
|
|
* fhandler_fifo.cc (sec_user_cloexec): New inline function to
|
|
|
|
create security attribute with inheritance according to setting of
|
|
|
|
O_CLOEXEC flag.
|
|
|
|
(fhandler_fifo::open): Call sec_user_cloexec to fetch security
|
|
|
|
attribute.
|
|
|
|
(fhandler_fifo::wait): Ditto.
|
|
|
|
* fhandler_mem.cc (fhandler_dev_mem::open): Ditto.
|
|
|
|
* fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Take
|
|
|
|
additional flags parameter. Use security attribute with inheritance
|
|
|
|
according to setting of O_CLOEXEC flag.
|
|
|
|
(fhandler_mailslot::open): Call get_object_attr with flags parameter.
|
|
|
|
* fhandler_registry.cc (fhandler_registry::open): Call set_close_on_exec
|
|
|
|
on real handles to accommodate O_CLOEXEC flag.
|
|
|
|
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
|
|
|
|
* fhandler_tape.cc: Create mutex with inheritance according to setting
|
|
|
|
of O_CLOEXEC flag.
|
|
|
|
* pipe.cc: Replace usage of O_NOINHERIT with O_CLOEXEC.
|
|
|
|
(fhandler_pipe::init): Simplify setting close_on_exec flag.
|
|
|
|
(fhandler_pipe::open): Remove setting close_on_exec flag.
|
|
|
|
(fhandler_pipe::create): Use security attribute with inheritance
|
|
|
|
according to setting of O_CLOEXEC flag.
|
|
|
|
(pipe2): New exported function.
|
|
|
|
* posix_ipc.cc: Throughout, open backing files with O_CLOEXEC
|
|
|
|
flag to follow POSIX semantics.
|
|
|
|
* security.h (sec_none_cloexec): New define.
|
|
|
|
* syscalls.cc (dup): Add missing extern "C" qualifier. Accommodate
|
|
|
|
renaming of dtable::dup2 to dtable::dup3.
|
|
|
|
(dup2): Ditto. Check newfd == oldfd here.
|
|
|
|
(dup3): New function. Check newfd == oldfd here.
|
|
|
|
(open): Set close_on_exec flag according to O_CLOEXEC flag before
|
|
|
|
calling fhandler->open.
|
|
|
|
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
|
|
|
|
|
2010-01-14 00:51:37 +08:00
|
|
|
2010-01-13 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* include/fcntl.h (O_TTY_INIT): Define as 0.
|
|
|
|
|
2010-01-13 19:06:21 +08:00
|
|
|
2010-01-13 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler_tty.cc (fhandler_tty_master::init): Don't erase all default
|
|
|
|
termios settings of slave console.
|
|
|
|
|
2010-01-13 17:45:18 +08:00
|
|
|
2010-01-13 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* syscalls.cc (rename): Don't exit prematurely with EROFS when trying
|
|
|
|
to rename an AF_LOCAL socket or when trying to replace an AF_LOCAL
|
|
|
|
socket.
|
|
|
|
|
2010-01-12 22:47:46 +08:00
|
|
|
2010-01-12 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* globals.cc (ro_u_nwfs): New R/O unicode string.
|
|
|
|
* mount.cc (fs_info::update): Check for NWFS filesystem. Set
|
|
|
|
has_buggy_basic_info, if so. Add comment to explain why.
|
|
|
|
(fillout_mntent): Add "nwfs" string to fs_names array.
|
|
|
|
* mount.h (enum fs_info_type): Add nwfs.
|
|
|
|
(class fs_info): Add has_buggy_basic_info status flag. Add accessors
|
|
|
|
for has_buggy_basic_info and is_nwfs.
|
|
|
|
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Accommodate
|
|
|
|
filesystems with broken FileBasicInformation handling.
|
|
|
|
* path.cc (symlink_info::check): Ditto.
|
|
|
|
* path.h (path_conv::has_buggy_basic_info): Add method.
|
|
|
|
|
2010-01-12 18:14:59 +08:00
|
|
|
2010-01-12 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* dtable.cc (build_fh_name_worker): Remove. Move all functionality
|
|
|
|
back into build_fh_name.
|
|
|
|
(build_fh_name): Drop unused HANDLE parameter. Drop call to pc.fillin.
|
|
|
|
Remove disabled build_fh_name with UNICODE_STRING name parameter.
|
|
|
|
* dtable.h (build_fh_name): Drop HANDLE parameter from declaration.
|
|
|
|
Remove declaration for build_fh_name with UNICODE_STRING name parameter.
|
|
|
|
* path.cc (path_conv::fillin): Remove.
|
|
|
|
(symlink_info::check): Fix comment.
|
|
|
|
* path.h (path_conv::fillin): Remove declaration.
|
|
|
|
* dir.cc: Accommodate change in build_fh_name parameters throughout.
|
|
|
|
* sec_acl.cc: Ditto.
|
|
|
|
* syscalls.cc: Ditto.
|
|
|
|
|
|
|
|
* ntea.cc (getxattr_worker): Fix debug output.
|
|
|
|
(setxattr_worker): Ditto.
|
|
|
|
* times.cc (utimens_worker): Ditto.
|
|
|
|
|
2010-01-11 23:10:21 +08:00
|
|
|
2010-01-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler_proc.cc (format_proc_stat): Use new in_buf.
|
|
|
|
(format_proc_cpuinfo): Replace szBuffer with a union in_buf. Use type
|
|
|
|
correct throughout. Add a couple of missing or newer cpu flags. Allow
|
|
|
|
certain AMD flags for intel as well.
|
|
|
|
|
2010-01-10 19:12:52 +08:00
|
|
|
2010-01-10 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler.h (fhandler_base::fstat_helper): Declare timestamps as
|
|
|
|
PLARGE_INTEGER.
|
|
|
|
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle):
|
|
|
|
Accommodate fstat_helper change of timestamp arguments.
|
|
|
|
(fhandler_base::fstat_by_name): Ditto.
|
|
|
|
(fhandler_base::fstat_helper): Define with timestamps as PLARGE_INTEGER.
|
|
|
|
Accommodate in call to to_timestruc_t.
|
|
|
|
|
2010-01-08 23:55:27 +08:00
|
|
|
2010-01-08 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* sec_auth.cc (get_token_group_sidlist): Add BUILTIN\Users account
|
|
|
|
to all created tokens.
|
|
|
|
* sec_helper.cc (well_known_users_sid): Define as BUILTIN\Users.
|
|
|
|
* security.h (well_known_users_sid): Declare.
|
|
|
|
|
2010-01-02 03:28:15 +08:00
|
|
|
2010-01-01 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* dcrt0.cc: Bump copyright.
|
|
|
|
|
2010-01-02 03:15:11 +08:00
|
|
|
2010-01-01 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* dcrt0.cc (dll_crt0_1): Move internal locale setting prior to
|
|
|
|
potential globify to prevent creation of unglobbed filenames in the
|
|
|
|
wrong character set.
|