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
path: root/winsup
AgeCommit message (Collapse)Author
2010-10-18* winsup/cygwin/cygwin.din: Add llround and llroundf.Christopher Faylor
2010-10-16fix datesChristopher Faylor
2010-10-09*** empty log message ***Corinna Vinschen
2010-10-09 * new-features.sgml (ov-new1.7.8): Document reinstantiation of theCorinna Vinschen
original 1.7 CWD handling.
2010-10-09 * cygheap.h (cwdstuff::override_win32_cwd): Declare.Corinna Vinschen
* ntdll.h (struct _PEB): Add members accessed by the fast cwd method starting with Vista. (struct _KUSER_SHARED_DATA): Define with only the DismountCount. (RtlAllocateHeap): Declare. (RtlEnterCriticalSection): Declare. (RtlFreeHeap): Declare. (RtlLeaveCriticalSection): Declare. * path.cc (get_user_proc_parms): Remove. (struct _FAST_CWD): New structure. (fast_cwd_ptr): Define. (SharedUserData): Define. (peek32): Define. (find_fast_cwd_pointers): New function to find the global pointer to the current FAST_CWD structure. (copy_cwd_str): New helper function. (cwdstuff::override_win32_cwd): New method to set the Win32 CWD. (cwdstuff::init): Just call override_win32_cwd from here when started from native Win32 parent. (cwdstuff::set): Access Win32 CWD via PEB reference instead of using get_user_proc_parms function. Memorize old DismountCount before opening directory handle. Call override_win32_cwd to set up Win32 CWD. Be more verbose in comments. * wincap.h (wincaps::has_fast_cwd): New element. * wincap.cc: Implement has_fast_cwd element throughout.
2010-10-08 * new-features.sgml (ov-new1.7.8): Document new C99 complex API.Corinna Vinschen
2010-10-08 * cygwin.din: Export new complex math functions from newlib.Corinna Vinschen
* posix.sgml: Move newly exported complex functions to implemented SUSv4 functions. * include/cygwin/version.h: Bump API minor version.
2010-10-07 * fhandler.h (fhandler_base::get_stat_access): Delete.Corinna Vinschen
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Always check executable suffix to get x-bits for .exe files also in notexec case. Always reopen file when checking for file header. * ntdll.h (wait_pending): Delete. * path.cc (symlink_info::check_shortcut): Drop call to wait_pending since file is always opened for sync IO. (symlink_info::check_sysfile): Ditto. (MIN_STAT_ACCESS): Remove. (FULL_STAT_ACCESS): Remove. (symlink_info::check): Drop access flag. Revert to open file with just read attributes access. Reorder symlink check to check for reparse points first. Don't check reparse points for anything else, even on remote drives. Open file for GENERIC_READ when trying to read shortcuts or system-bit symlinks. Accommodate dropped access flag in call to path_conv_handle::set. * path.h (class path_conv_handle): Drop access flag and accommodate all related methods.
2010-10-07 * posix_ipc.cc (ipc_mutex_init): Call NtCreateMutant to make sure theCorinna Vinschen
access mask is correct. (ipc_cond_init): Take additional parameter to differ between send and receive event. Call NtCreateEvent to make sure the access mask is correct. (ipc_cond_timedwait): Reset Event prior to calling WFMO. (struct mq_info): Split mqi_wait into two events, mqi_waitsend and mqi_waitrecv. (mq_open): Calloc mqinfo. Create mqi_waitsend and mqi_waitrecv events. Make sure all synchronization objects are closed in case of an error. (_mq_send): Wait for mqi_waitsend event. Signal mqi_waitrecv event. (_mq_receive): Wait for mqi_waitrecv event. Signal mqi_waitsend event. (mq_close): Close mqi_waitsend and mqi_waitrecv events.
2010-10-05 * path.h (enum pathconv_arg): Remove PC_CHECK_EA.Corinna Vinschen
2010-10-02* dcrt0.cc (dll_crt0_0): Move _main_tls initialization here.Christopher Faylor
(__dll_crt0): Only initialize _main_tls if it changes. * fhandler_console.cc (fhandler_console::write): Fix debugging output.
2010-10-02 * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Simplify.Corinna Vinschen
Just call nfs_fetch_fattr3 if called via fstat. * nfs.cc (nfs_fetch_fattr3): New function to fetch NFS fattr3 info from file handle. * nfs.h (nfs_fetch_fattr3): Declare. * path.cc (symlink_info::check): Simplify NFS case. Just call nfs_fetch_fattr3.
2010-10-02 * fhandler_procsys.cc (fhandler_procsys::exists): Return virt_noneCorinna Vinschen
if path is invalid.
2010-10-02* autoload.cc (std_dll_init): Add a retry loop.Christopher Faylor
2010-09-30 * fhandler.cc: Drop including nfs.h.Corinna Vinschen
* fhandler_disk_file.cc: Ditto. (fhandler_base::fstat_by_nfs_ea): Use fattr3 from path_conv member, unless called from fstat. * path.cc: Drop including nfs.h. (symlink_info::check): Rearrange definition of file info buffers. Fetch fattr3 info for files on NFS and store in conv_hdl for later use in fhandler_base::fstat_by_nfs_ea. Use fattr3 file type to recognize symlink on NFS and try to fetch symlink target only for actual symlinks. * path.h: Include nfs.h. (class path_conv_handle): Change file info storage to union of FILE_NETWORK_OPEN_INFORMATION and fattr3 structures. (path_conv_handle::fnoi): Align to aforementioned change. (path_conv_handle::nfsattr): New method. (path_conv::nfsattr): New method.
2010-09-30 * path.cc (symlink_info::check): Remove erroneous assumption aboutCorinna Vinschen
required permissions when reading NFS symlinks.
2010-09-29* fhandler_tty.cc (fhandler_tty_slave::init): Revert to using tc->setpgid sinceChristopher Faylor
previous change broke some use cases.
2010-09-29* fhandler_tty.cc (fhandler_tty_slave::init): Add debugging. Use tcsetpgrp toChristopher Faylor
potentially set pgid since it is smarter about deciding if a process is in the background. * include/sys/cygwin.h (PID_ORPHANED): Actually delete as planned. (PID_NOTCYGWIN): Correctly define.
2010-09-28 * net.cc (getdomainname): Drop special case for NT4.Corinna Vinschen
2010-09-28 Revert accidental previous login.Corinna Vinschen
2010-09-28 * Makefile.in (DLL_IMPORTS): Remove libadvapi32.a.Corinna Vinschen
* autoload.cc: Add all advapi32 entry points. * mount.cc (mount_info::init): Read user fstab only if we have a username. * passwd.cc (pwdgrp::read_passwd): Only use username if we have one. * shared.cc (user_info::initialize): Set cb last so as not to override planned behaviour in pwdgrp::read_passwd. * uinfo.cc (cygheap_user::init): Fetch Windows username from environment variable $USERNAME. Don't set name in cygheap if variable is empty. (internal_getlogin): If we still have no username, try GetUserNameW.
2010-09-28 * fhandler_tty.cc (fhandler_pty_master::setup): Always create masterCorinna Vinschen
thread.
2010-09-28 * syscalls.cc (gethostid): Use correct path to ProductId registry value.Corinna Vinschen
2010-09-27 * pathnames.sgml (mount-table): Fix pathnames-mount-ex example. ChangeCorinna Vinschen
an expression.
2010-09-27 * new-features.sgml (ov-new1.7.8): Document dropped NT4 pre-SP4 support.Corinna Vinschen
* faq-what.xml (faq.what.supported): Change accordingly. * ntsec.sgml (ntsec-mapping): Add 2008 R2.
2010-09-27 * mount.cc (fs_info::update): Remove erroneous NtClose on random handleCorinna Vinschen
value.
2010-09-26 * uinfo.cc (cygheap_user::init): Call GetUserNameW and convert toCorinna Vinschen
multibyte here so as not to rely on the current ANSI page.
2010-09-26* dcrt0.cc (__main): Force signal synchronization.Christopher Faylor
2010-09-26 * fhandler_socket.cc (fhandler_socket::bind): Drop has_exclusiveaddruseCorinna Vinschen
condition. Fix comment about availability. Move remaining comment to the right spot. Drop has_ip_helper_lib condition. * net.cc (cygwin_setsockopt): Drop has_disabled_user_tos_setting condition. Fix comment. (get_2k_ifs): Fix comment. (get_nt_ifs): Remove. (getifaddrs): Drop call to get_nt_ifs. (get_ifconf): Ditto. * wincap.cc: Throughout, drop has_ip_helper_lib, has_disabled_user_tos_setting, and has_exclusiveaddruse settings from wincaps. (wincap_unknown): Remove. (wincap_nt4): Remove. (wincap_minimal): New macro, set to wincap_nt4sp4 for now. (wincapc::init): Drop test for pre-SP4 NT4. Just imply at least NT SP4. Replace references to wincap_unknown with references to wincap_minimal. * wincap.h (struct wincaps): Drop has_ip_helper_lib, has_disabled_user_tos_setting, and has_exclusiveaddruse flags and methods.
2010-09-25 * autoload.cc: Throughout. order entry points alphabetically by DLLCorinna Vinschen
and function name. Make functions which are available on all supported systems non-optional. Fix return value on entry points imported from secur32.dll. Add comment. (std_dll_init): Call fesetenv unconditionally.
2010-09-24* autoload.cc (std_dll_init): Move dll_path closer to its use. Use dll_path inChristopher Faylor
fatal error. Set ret values under lock control. * lib/minires.c (res_nsend): Fix compilation errors owing to pointer signedness.
2010-09-24 * fhandler.cc (fhandler_base::open): Handle query_write_dac flag.Corinna Vinschen
* fhandler.h (enum query_state): Add query_write_dac flag. * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Open file with query_write_dac instead of query_write_control.
2010-09-24 * errno.cc (errmap): Map ERROR_BAD_NET_RESP to ENOSYS.Corinna Vinschen
* fhandler_disk_file.cc (fhandler_disk_file::facl): Handle ENOSYS and point to the explanation. * ntdll.h (STATUS_NOT_IMPLEMENTED): Define. * path.cc (symlink_info::check): Handle the inability of NT4 to use FileNetworkOpenInformation on share root dirs in either direction. * path.h (slash_unc_prefix_p): Remove unused declaration. * security.cc (get_info_from_sd): Handle ENOSYS from get_file_sd. Explain when this happens.
2010-09-24* autoload.cc (std_dll_init): Use correct format type when displaying dll nameChristopher Faylor
in error output.
2010-09-222010-09-21 Pierre Humblet <Pierre.Humblet@ieee.org>Pierre Humblet
* libc/minires.c (res_nsend): Use the Windows resolver if appropriate. (dn_expand): Only set errno in case of error. Delete old comments. (dn_skipname): Fix typo in comment.
2010-09-21 * path.cc (cwdstuff::set): Replace constant 2 with sizeof(WCHAR) whereCorinna Vinschen
appropriate.
2010-09-21 * mount.h (class fs_info): Add has_buggy_reopen flag and accessorCorinna Vinschen
methods. * mount.cc (fs_info::update): Set has_buggy_reopen flag for NWFS. Add comment. * path.h (path_conv::get_object_attr) Make inline method. (path_conv::init_reopen_attr): New inline method. * path.cc (path_conv::get_object_attr): Remove. * fhandler_disk_file.cc (fhandler_base::fstat_helper): Use path_conv::init_reopen_attr method to initialize OBJECT_ATTRIBUTE for reopening file. (fhandler_disk_file::fchmod): Ditto. (fhandler_base::utimens_fs): Ditto. (fhandler_disk_file::rewinddir): Ditto. * syscalls.cc (unlink_nt): Ditto.
2010-09-21 * fhandler.cc (fhandler_base::open): Always open NFS files withCorinna Vinschen
FILE_READ_EA, even when opening with O_WRONLY to allow fstat. * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Call FlushFileBuffers if file has been opened for writing. Explain why. (fhandler_base::fstat_by_handle): Renew content of pc.fnoi if called via fstat. Explain why. Fix formatting. * path.cc (symlink_info::check): Try to open file the second time with FILE_READ_EA permissions since it's needed in later calls to fhandler_base::fstat_by_nfs_ea.
2010-09-21* include/sys/cygwin.h (PID_NOTCYGWIN): New enum.Christopher Faylor
* spawn.cc (spawn_guts): Set a flag when a process is not a cygwin process. * fhandler_tty.cc (fhandler_tty_slave::init): Remove previous change. Try a different method to determine when we should become the process group owner. * signal.cc (kill0): Remove archaic code which dealt with never-set flag.
2010-09-21* fhandler_tty.cc (fhandler_tty_slave::init): Add additional checks toChristopher Faylor
determine when a process should grab control of a tty's pgid. Use being_debugged() for consistency. * debug.h (being_debugged): Remove vestige of win9x accommodation.
2010-09-20* wincap.h (wincaps::has_buggy_thread_startup): Declare.Christopher Faylor
(wincapc::has_buggy_thread_startup): Ditto. * wincap.cc::wincap_*): Accommodate has_buggy_thread_startup. (wincapc::init): Explicitly turn off has_buggy_thread_startup if not WOW64. * cygthread.h (cygthread::thread_handle): Declare/define new method. * dcrt0.cc (_dll_crt0): Don't call __sinit here. (dll_crt0_0): Don't call sigproc_init during initialization if wincap.has_buggy_thread_startup(). (dll_crt0_1): Defer sigproc_init to here when wincap.has_buggy_thread_startup(). Call __sinit after we've determined that we're not forking. (__main): Rework comments. Add potential future reminder.
2010-09-18* overview2.sgml: Remove cheerful paragraph which implied that it was ok toChristopher Faylor
casually mix Windows and POSIX. Add more words about mixing POSIX/Windows.
2010-09-18 * setup2.sgml (setup-locale-how): Fix typo.Corinna Vinschen
2010-09-15 * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch numberCorinna Vinschen
of links and inode number only if path has good inodes. (fhandler_base::fstat_by_name): Fetch inode number only if path has good inodes.
2010-09-14 * path.cc (symlink_info::check): Make sure AllocationSize and EndOfFileCorinna Vinschen
are stored in the right order when fetching the info from the NtQueryDirectoryFile result.
2010-09-13 * fhandler_process.cc (get_mem_values): Simplify code. FixCorinna Vinschen
NtQueryVirtualMemory loop so it handles memory allocation gracefully. Always set errno to a useful value.
2010-09-13 * fhandler.h (class fhandler_base): Change inheritance of fstat_helperCorinna Vinschen
and fstat_by_... methods to private. (fhandler_base::fstat_helper): Drop all redundant arguments. * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Drop call to fstat_by_nfs_ea here. Drop fetching basic file information. Drop setting file attributes. Accommodate change in fstat_helper call. (fhandler_base::fstat_by_name): Simplify. Only fetch directory information to get the inode number. Drop setting file attributes. Accommodate change in fstat_helper call. (fhandler_base::fstat_fs): Call fstat_by_nfs_ea if on NFS. (fhandler_base::fstat_helper): Drop all redundant arguments. Use information already collected in the fhandler. Move heading comment into code and drop dwFileAttributes comment. * mmap.cc (mmap64): Call fstat_fs rather than fstat_by_handle. * mount.cc (fs_info::update): Note that has_buggy_basic_info is unused. * path.cc (symlink_info::check_reparse_point): Add comment. (symlink_info::check): Fetch FileNetworkOpenInformation rather than FileBasicInformation throughout, except on NFS. Explain why. Store FILE_NETWORK_OPEN_INFORMATION in conv_hdl. Remove FILE_ATTRIBUTE_DIRECTORY attribute in conv_hdl for reparse point symlinks. * path.h (class path_conv_handle): Add FILE_NETWORK_OPEN_INFORMATION member _fnoi. (path_conv_handle::fnoi): New accessor method for _fnoi. (path_conv::fnoi): New accessor method for cubv_hdl._fnoi. * fhandler_tty.cc (fhandler_tty_slave::init): Use tty::setpgid method.
2010-09-12 * sec_acl.cc (acl_worker): Remove.Corinna Vinschen
(acl32): Implement acl_worker functionality here. (lacl32): Just return -1 with errno set to ENOSYS. (lacl): Ditto. * include/cygwin/acl.h (lacl): Remove this call.
2010-09-12* sigproc.cc (sig_dispatch_pending): Remove debugging statement.Christopher Faylor
(sigproc_init): Wrap a long line.
2010-09-12* cygthread.h (cygthread::cygthread): Reorganize slightly.Christopher Faylor
* dcrt0.cc (dll_crt0_0): Move sigproc initialization later to ensure everything we need has been set up. (dll_crt0_1): Streamline some logic slightly. * sigproc.cc (no_signals_available): Add back dropped test for macro parameter. * fhandler_console.cc (fhandler_console::write): Show a little bit of what's being written to the console in debugging output.