Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-10-09 * fhandler_procsys.cc (fhandler_procsys::readdir): Just testCorinna Vinschen
ObjectTypeName for object types rather than calling lstat to avoid performance hit. * globals.cc (ro_u_natdir): Define. (ro_u_natsyml): Define. (ro_u_natdev): Define.
2014-10-09 * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set d_typeCorinna Vinschen
for virtual directories.
2014-10-09 * fhandler_proc.cc (fhandler_proc::readdir): Set dirent d_type.Corinna Vinschen
* fhandler_process.cc (fhandler_process::readdir): Ditto. * fhandler_procnet.cc (fhandler_procnet::readdir): Ditto. * fhandler_procsys.cc (fhandler_procsys::readdir): Ditto. * fhandler_procsysvipc.cc (fhandler_procsysvipc::readdir): Ditto. * fhandler_virtual.h (virt_ftype_to_dtype): Define new inline function to generate dirent d_type from virtual_ftype_t.
2014-10-09Add accidentally missing ChangeLog for latest change.Corinna Vinschen
2014-10-09 * common.din (ffsl): Export.Corinna Vinschen
(ffsll): Export. * syscalls.cc (ffs): Implement using GCC intrinsic. (ffsl): Ditto. (ffsll): Ditto. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2014-10-08 * syscall.cc (ffs): Fix crash of ffs (0x80000000) on 64 bit.Corinna Vinschen
2014-10-08 * fhandler_process.cc (format_process_statm): Fix output of dirtyCorinna Vinschen
pages. Add linefeed.
2014-10-08Fix typoCorinna Vinschen
2014-09-05 * fhandler_proc.cc (proc_tab): Add entry for cygdrive symlink.Corinna Vinschen
(format_proc_cygdrive): New function to implement /proc/cygdrive.
2014-09-05 * exception.h (class exception): Remove unnecessary #ifdef.Corinna Vinschen
* uinfo.cc (client_request_pwdgrp::client_request_pwdgrp): Fix length counter to include trailing NUL. * sec_auth.cc (get_user_groups): Add experimental exception handler. (get_user_local_groups): Ditto.
2014-09-05 * uinfo.cc (pwdgrp::fetch_account_from_windows): Handle APPLICATIONCorinna Vinschen
PACKAGE AUTHORITY SIDs. * winlean.h (DNLEN): Raise to 31. Explain why.
2014-09-03 * sec_acl.cc (aclcheck32): Check for required default entries as well.Corinna Vinschen
Enable check for missing CLASS_OBJ entries, now that setfacl creates them.
2014-09-03 * sec_acl.cc (aclsort32): Set errno to EINVAL if aclcheck32 failed.Corinna Vinschen
2014-08-31 * uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow user accountsCorinna Vinschen
as groups. Add comment.
2014-08-31 * uinfo.cc (cygheap_pwdgrp::init): Fix comment. Rearrange code forCorinna Vinschen
style. (cygheap_pwdgrp::nss_init_line): Disable db_prefix and db_separator settings. Add comment. (pwdgrp::fetch_account_from_windows): Drop outdated comment. Fix code fetching primary group gid of group setting in SAM description field. Change comment accordingly.
2014-08-31 * uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow creating anCorinna Vinschen
entry for "NULL SID".
2014-08-31 * sec_acl.cc (setacl): Add comment. Handle NULL ACE for SUID, SGID,Corinna Vinschen
and VTX bits. Create owner, group, other and NULL entries in the same way and in the same order as alloc_sd. (getacl): Skip NULL ACE.
2014-08-28 * fhandler.cc (fhandler_base::facl): Drop CLASS_OBJ entry.Corinna Vinschen
* fhandler_disk_file.cc (fhandler_disk_file::facl): Ditto in noacl case. * sec_acl.cc (getacl): Compute useful fake CLASS_OBJ and DEF_CLASS_OBJ permission bits based on how these values are generated on Linux. Add commants to explain what the code is doing. * security.cc (get_attribute_from_acl): Compute group permission based on the actual primary group permissions and all secondary user and group ACCESS_ALLOWED_ACEs to emulate Linux' behaviour more closely. (check_access): Fix typos im comment. * include/cygwin/acl.h (MIN_ACL_ENTRIES): Redefine as 3.
2014-08-28 * fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Try theCorinna Vinschen
FileFsSizeInformation information class on filesystems choking on FileFsFullSizeInformation (I see you Netapp!)
2014-08-27 * fhandler.h (fhandler_pty_slave::fch_open_handles): Add bool parameterCorinna Vinschen
to declaration. * fhandler_tty.cc (fhandler_pty_slave::fch_open_handles): Add bool parameter "chown". Only request WRITE_OWNER access when opening pty synchronization objects if "chown" is set. (fhandler_pty_slave::fchmod): Call fch_open_handles with new bool parameter set to false. (fhandler_pty_slave::fchown): Call fch_open_handles with new bool parameter set to true. * kernel32.cc (CreateFileMappingW): Fix default standard rights for file mappings from READ_CONTROL to STANDARD_RIGHTS_REQUIRED to allow changing the DACL (fixes "access denied" error in pinfo::set_acl). * fhandler_disk_file.cc (fhandler_base::fstat_helper): Change debug output to print mode bits in octal. * security.cc (alloc_sd): Ditto. (set_file_attribute): Ditto.
2014-08-27 * kernel32.cc (CreateFileMappingW): Fix default standard rights forCorinna Vinschen
file mappings from READ_CONTROL to STANDARD_RIGHTS_REQUIRED to allow changing the DACL (fixes "access denied" error in pinfo::set_acl).
2014-08-27 * ntea.cc (read_ea): Change left-over return to __leave. FixCorinna Vinschen
condition to close handle. Call NtClose rather than CloseHandle. (write_ea): Fix condition to close handle. Call NtClose rather than CloseHandle. * security.cc (get_file_sd): Call pc.init_reopen_attr if a valid incoming handle was given, pc.get_object_attr otherwise. (set_file_sd): Ditto.
2014-08-27 * path.h (path_conv::init_reopen_attr): Change from void to returningCorinna Vinschen
POBJECT_ATTRIBUTES. Take OBJECT_ATTRIBUTES reference as argument, not pointer. * fhandler_disk_file.cc: Throughout accommodate above change. * syscalls.cc: Ditto. * ntea.cc (read_ea): Don't set hdl to NULL if it's already NULL. Set attr with pc.init_reopen_attr before trying to reopen file. (write_ea): Ditto. * security.cc (get_file_sd): Use pc.init_reopen_attr rather than pc.get_object_attr when trying to reopen file. (set_file_sd): Ditto.
2014-08-25 * cygtls.cc (san::leave/x86_64): Implement.Corinna Vinschen
* cygtls.h (class tls_pathbuf): Move counter variables into a union. Add 64 bit element _counters covering both counter variables to optimize save and restore operations. (class san/x86_64): Only store single 64 bit value. (san::san/x86_64): Implement. (san::leave/x86_64): Only declare here, as returns_twice function. Explain why. (class san/i686): Change type of _c_cnt and _w_cnt to uint32_t. (__try/x86_64): Move definition of __sebastian after the first memory barrier. Drop __sebastian.setup call.
2014-08-25 * cygtls.cc (_cygtls::remove): Revert previous patch.Corinna Vinschen
* cygtls.h (struct _local_storage): Move pathbufs back here. (class san/x86_64): Revert class. Save and restore pathbufs counters only. (class san/i686): Revert saving and restoring pathbufs counters. (__try/x86_64): Add a san variable and call it's setup method. (__except/x86_64): Call san::leave to restore pathbufs counters. * gendef (_sigbe): Revert previous change. * thread.cc (verifyable_object_state): Remove gcc 4.7 workaround in forward declaration as well. * tls_pbuf.cc (tls_pbuf): Revert previous change. * tls_pbuf.h (class tmp_pathbuf): Accommodate reverting pathbufs to locals structure. * tlsoffsets.h: Regenerate. * tlsoffsets64.h: Regenerate.
2014-08-22 * Throughout, use __try/__except/__endtry blocks, rather than myfaultCorinna Vinschen
handler. * cygtls.cc (_cygtls::remove): Accommodate the fact that pathbufs has been moved from _local_storage to _cygtls. * cygtls.h (class tls_pathbuf): Add comment to hint to gendef usage of counters. Change type of counters to uint32_t for clarity. Remove _cygtls as friend class. (struct _local_storage): Move pathbufs from here... (struct _cygtls): ...to here, allowing to access it from _sigbe. (class san): Only define on 32 bit. Remove errno, _c_cnt and _w_cnt members. (san::setup): Drop parameter. Don't initialize removed members. (san::leave): Don't set removed members. (class myfault): Only define on 32 bit. (myfault::faulted): Only keep implementation not taking any parameter. Drop argument in call to sebastian.setup. (__try/__leave/__except/__endtry): Implement to support real SEH. For now stick to SJLJ on 32 bit. * dcrt0.cc (dll_crt0_0): Drop 64 bit call to exception::install_myfault_handler. * exception.h (exception_handler): Define with EXCEPTION_DISPOSITION as return type. (PDISPATCHER_CONTEXT): Define as void * on 32 bit. Define as pointer to _DISPATCHER_CONTEXT on 64 bit. (class exception): Define separately for 32 and 64 bit. (exception::myfault): Add handler for myfault SEH handling on 64 bit. (exception::exception): Fix mangled method name to account for change in type of last parameter. (exception::install_myfault_handler): Remove. * exceptions.cc (exception::myfault_handle): Remove. (exception::myfault): New SEH handler for 64 bit. * gendef (_sigbe): Set tls_pathbuf counters to 0 explicitely when returning to the caller. * ntdll.h: Move a comment to a better place. (struct _SCOPE_TABLE): Define on 64 bit. * thread.cc (verifyable_object_isvalid): Remove gcc 4.7 workaround. * tls_pbuf.cc (tls_pbuf): Fix to accommodate new place of pathbufs. (tls_pathbuf::destroy): Change type of loop variables to uint32_t. * tls_pbuf.h (class tmp_pathbuf): Change type of buffer counters to uint32_t. Accommodate new place of pathbufs. * tlsoffsets.h: Regenerate. * tlsoffsets64.h: Regenerate.
2014-08-21 * miscfuncs.cc (__import_address): Cover the first dereference to impCorinna Vinschen
under the fault handler.
2014-08-21 * net.cc (if_freenameindex): Don't catch a SEGV from free to failCorinna Vinschen
loudly on double free.
2014-08-21 * dir.cc (rmdir): Don't skip deleting fh in the ENOTEMPTY case.Corinna Vinschen
2014-08-20 * tls_pbuf.h (tmp_pathbuf::tmp_pathbuf): Convert to inline method.Corinna Vinschen
(tmp_pathbuf::~tmp_pathbuf): Ditto. * tls_pbuf.cc (tmp_pathbuf::tmp_pathbuf): Remove here. (tmp_pathbuf::~tmp_pathbuf): Ditto.
2014-08-19 * dir.cc (dirfd): Per POSIX, return EINVAL on invalid directory stream.Corinna Vinschen
(telldir): Per POSIX, return -1 and set errno to EBADF, rather than just returning 0, on invalid directory stream. * signal.cc (sigwaitinfo): Return -1, not EFAULT, when SEGV was catched.
2014-08-19 * fhandler.h (enum conn_state): Add "connect_credxchg" state.Corinna Vinschen
(class fhandler_socket): Grant another bit to connect_state flag. * fhandler_socket.cc (fhandler_socket::af_local_connect): Rearrange variable definition. Set connect_state to connect_credxchg. (fhandler_socket::af_local_accept): Ditto. (fhandler_socket::recv_internal): Accept connect_credxchg on connection oriented AF_LOCAL sockets as well to allow the credential exchange. Extend comment to explain.
2014-08-19 * autoload.cc: Replace WNet[...]A with WNet[...]W imports.Corinna Vinschen
* dcrt0.cc (initial_env): Drop strlwr calls. Call strcasestr instead. * fhandler_netdrive.cc: Throughout, convert to calling WNet UNICODE functions. Use tmp_pathbuf rather than alloca. Replace call to strlwr with call to RtlDowncaseUnicodeString.
2014-08-19 * fhandler.h (fhandler_serial::is_tty): Reinstantiate.Corinna Vinschen
2014-08-18 * miscfuncs.cc (strlwr): Rename from cygwin_strlwr. Drop __stdcallCorinna Vinschen
decoration. (strupr): Rename from cygwin_strupr. Drop __stdcall decoration. * string.h (strlwr): Remove override macro. Simply declare. (strupr): Ditto.
2014-08-18*** empty log message ***Corinna Vinschen
2014-08-18 * dtable.cc (dtable::init_std_file_from_handle): Mention that consoleCorinna Vinschen
handles are kernel objects since Windows 8. * fhandler.h (enum conn_state): Add "listener" state. (class fhandler_socket): Drop listener status flag. (fhandler_socket::lseek): Return -1 and errno ESPIPE. (fhandler_serial::lseek): Ditto. * fhandler_socket.cc (fhandler_socket::listen): Set connect_state to listener. Add comment. (fhandler_socket::accept4): Explicitely check if the socket is listening and fail with EINVAL, if not. Explain why we have to do that. (fhandler_socket::recv_internal): Explicitely check if the socket is connected if it's a stream socket. Explain why we have to do that. (fhandler_socket::getpeereid): Drop now redundant test.
2014-08-16 * winsup.h (_GNU_SOURCE): Define. Explain why.Corinna Vinschen
* configure.ac: Convert to new AC_INIT style. * configure: Regenerate.
2014-08-15 * cygerrno.h (seterrno): Define as (always) inline function.Corinna Vinschen
* errno.cc (seterrno): Remove.
2014-08-15 * dll_init.sgml: Remove.Corinna Vinschen
* dtable.sgml: Move into ../doc/misc-funcs.xml. * external.sgml: Ditto. * stackdump.sgml: Ditto.
2014-08-15 * security.sgml: Move to ../doc dir and rename to logon-funcs.xml.Corinna Vinschen
2014-08-14 * path.sgml: Move to ../doc dir and rename to path.xml.Corinna Vinschen
* posix.sgml: Move to ../doc dir and rename to posix.xml.
2014-08-14 * dlmalloc.c: Remove unused file.Corinna Vinschen
* dlmalloc.h: Ditto. * malloc.cc: Update to Doug Lea's malloc version 2.8.6.
2014-08-13 * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 33.Corinna Vinschen
(CYGWIN_VERSION_API_MINOR): Bump to reflect intermediate 1.7.32 release.
2014-08-11 * cpuid.h: Add missing copyright header. Fix formatting. Use uint32_tCorinna Vinschen
instead of unsigned throughout. Change functions to static inline and always inline. (cpuid): Add parameter to set ecx, allowing to request extended CPUID info. * fhandler_proc.cc (format_proc_cpuinfo): Use uint32_t instead of unsigned throughout. Add fake decimal places to MHz info. Handle more feature flags. * fhandler_random.cc (fhandler_dev_random::write): Allow up to 4K input to add entropy. * syscalls.cc: Drop including cpuid.h.
2014-08-07* common.din (__cxa_finalize): Export.Yaakov Selkowitz
* dcrt0.cc (cygwin_atexit): Use d->handle with __cxa_atexit. * dll_init.cc (dll_list::detach): Use d->handle with __cxa_finalize. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Use 274 for __cxa_finalize as well.
2014-08-06 * include/sys/file.h: Add extern "C".Corinna Vinschen
2014-08-04 * common.din (__cxa_atexit): Export.Corinna Vinschen
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump to 274.
2014-08-04 * uinfo.cc (pwdgrp::fetch_account_from_windows): Drop "plus_prepended"Corinna Vinschen
as naming style. Drop enum name_style_t, use a boolean "fully_qualified_name" value instead. Rework function to drop "plus_prepended" handling througout and default to "name only" style as replacement.
2014-08-01headers: properly decorate attributesEric Blake
As pointed out here: https://cygwin.com/ml/cygwin/2014-07/msg00371.html any use of __attribute__ in a header that can be included by a user should be namespace-safe, by decorating the attribute arguments with __ (while gcc does a lousy job at documenting it, ALL attributes have a __ counterpart, precisely so that public headers can use attributes without risk of collision with macros belonging to user namespace). * include/pthread.h: Decorate attribute names with __, for namespace safety. * include/cygwin/core_dump.h: Likewise. * include/cygwin/cygwin_dll.h: Likewise. * include/sys/cygwin.h: Likewise. * include/sys/strace.h: Likewise.