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
2012-07-25 * syscalls.cc (enum bin_status): Add dir_not_empty.Corinna Vinschen
(try_to_bin): Call NtQueryInformationFile(FileInternalInformation) with exact buffer size. Explain why. Ditto for NtSetInformationFile(FileRenameInformation). Handle race-condition which might lead to renaming a non-empty directory. (unlink_nt): Rearrange and partially rephrase comments related to the STATUS_SHARING_VIOLATION case. Fix condition under which a dir is tested for being non-empty. Handle dir_not_empty return code from try_to_bin. Gracefully handle disappearing directory in rm -r workaround. Fix typo in comment.
2012-07-24 * wincap.cc (wincapc::init): Drop memset call since it can result inCorinna Vinschen
a race condition. Drop all considerations for pre-Windows 2000 systems since Cygwin won't start on them anyway.
2012-07-23Change "set_thread_waiting" to "set_signal_arrived" throughout.Christopher Faylor
2012-07-22* DevNotes: Add entry cgf-000013.Christopher Faylor
* cygserver_ipc.h (ipc_set_proc_info): Use _cygtls::ipc_set_proc_info to set per-thread signal arrived value. * cygthread.cc (cygthread::detach): Use per-thread signal_arrived via set_thread_waiting. * fork.cc (_cygtls::fixup_after_fork): Clear signal_arrived. (_cygtls::remove): Close any signal_arrived handle when thread exists. (_cygtls::find_tls): Remove unneeded function. * cygtls.h: Update copyright. (class _cygtls): Reorganize to help avoid rebuilding newlib when structure changes. (_cygtls::event): Delete. (_cygtls::threadkill): Ditto. (_cygtls::signal_waiting): Declare new bool. (_cygtls::find_tls): Delete declaration. (_cygtls::set_threadkill): Ditto. (_cygtls::reset_threadkill): Ditto. (_cygtls::set_signal_arrived): Declare new function. (class set_thread_waiting): Declare new class. * cygwait.cc (cw_nowait_storage): Define. (cygwait): Set per-thread signal_arrived via set_thread_waiting. Don't special-case _main_tls. * cygwait.h (cw_nowait): Define. (cw_infinite): Ditto. (cygwait): Redefine pathological wait-only case. * dcrt0.cc (dll_crt0_0): Remove call to now-defunct events_init(). (dll_crt0_1): Remove call to now-defunct create_signal_arrived(). * exceptions.cc: Reflect set_signal_mask() argument reordering throughout. Remove signal mask synchronization throughout. (events_init): Delete definition. (mask_sync): Delete now-unneeded mask synchronization. (set_signal_mask): Reverse order of arguments to "standard" to, from layout. Rename "newmask" argument to "setmask". Remove debugging. (sig_handle_tty_stop): Use cancelable_wait rather than WFMO. (_cygtls::interrupt_setup): Don't treat "threadkill" events specially. Conditionally set signal_arrived depending on whether the thread has created it or not. (sigpacket::process): Reorganize to reflect thread-specific sending of signals which is more in line with the way it was actually supposed to work. * fhandler_socket.cc (get_inet_addr): Use cancelable_wait rather than IsEventSignalled to avoid potential race. (fhandler_socket::wait_for_events): Set signal_arrived event using set_thread_waiting(). (fhandler_socket::close): Use cygwait for the case of just waiting 10 ms for a signal. * fhandler_tape.cc (fhandler_dev_tape::_lock): Use cancelable_wait rather than WFMO. Redo switch/case tests accordingly. * fhandler_termios.cc (fhandler_termios::bg_check): Use cygwait for case of just waiting 0 ms for a potential signal. * fhandler_tty.cc (fhandler_pty_master::process_slave_output): Use cancelable_wait rather than WFSO. * fhandler_windows.cc (fhandler_windows::read): Set per-thread signal_arrived via set_thread_waiting(). * flock.cc (lf_setlock): Ditto. * select.cc (pselect): Ditto. Set per-thread signal_arrived using set_thread_waiting(). * gendef: Don't special case handling of _cygtls::sig for threads. * gentls_offsets: Use #pragma once in tlsoffsets.h. * ntdll.h: Use #pragma once. * poll.cc: Reflect set_signal_mask() argument reordering. * posix_ipc.cc (ipc_mutex_lock): Use cancelable_wait rather than WFMO. (ipc_cond_timedwait): Set perl-thread signal arrived using set_thread_waiting(). * security.h: Use #pragma once. * signal.cc (abort): Reflect set_signal_mask() argument reordering. (clock_nanosleep): Ditto. Change call to cancelable_wait to properly specify handling of cancel and interrupt. (sigwaitinfo): Remove handling of per-thread event in favor of per-thread signal_arrived. Use cancelable_wait rather than WFSO. * sigproc.cc (signal_arrived): Delete definition. (create_signal_arrived): Ditto. * sigproc.h (signal_arrived): Delete declaration. (set_signal_mask): Avoid defining as a "C" function. Don't conditionally declare. (create_signal_arrived): Delete declaration. * syscalls.cc (rename): Use cygwait() rather than WFSO. * thread.h (fast_mutex::lock): Use cw_infinite rather than LARGE_NULL. * wait.cc (wait4): Ditto. * thread.cc (pthread_mutex::lock): Ditto. (pthread::join): Ditto. (semaphore::_wait): Ditto. (pthread_kill): Remove set_threadkill() accommodation. * tlsoffsets.h: Regenerate.
2012-07-21* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 17.Christopher Faylor
2012-07-20 * pathnames.sgml (pathnames-intro): Remove paragraph on UNC paths.Corinna Vinschen
Try to be clearer on POSIX vs. Win32 paths. (unc-paths): New section. (cygdrive): Fix a few SGML qualifiers. * setup-net.sgml: Move ntsec section from here... * using.sgml: ..to here.
2012-07-19 * woutsup.h: Just include winlean.h.Corinna Vinschen
2012-07-19*** empty log message ***Corinna Vinschen
2012-07-19 * mount.cc (getmntent_r): Remove unused but set variable.Yaakov Selkowitz
2012-07-18 * new-features.sgml (ov-new1.7.16): Document getmntent_r.Yaakov Selkowitz
2012-07-18 * cygwin.din (getmntent_r): Export.Corinna Vinschen
* mount.cc (getmntent_r): New function. * posix.sgml (std-gnu): Add getmntent_r. * include/mntent.h (getmntent_r): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2012-07-18 * faq-programming.xml (faq.programming.unix-gui): Update toYaakov Selkowitz
reflect the availability of X11 toolkits on Cygwin.
2012-07-12 * winlean.h: Make sure certain Windows macros are undefined again.Corinna Vinschen
Add comment to explain why. * winsup.h: Include winlean.h from C sources as well. * libc/minires-os-if.c: Drop including ntdef.h. Fix previous ChangeLog entry.
2012-07-12 * pseudo-reloc.cc: Drop including wchar.h.Corinna Vinschen
(__report_error): Define module as WCHAR. * advapi.cc: Drop including wchar.h. * kernel32.cc: Ditto.
2012-07-11 * Makefile.in (cygcheck.exe): Link against psapi.dll.Corinna Vinschen
* bloda.cc: Change include section to work with Mingw64 headers. Include psapi.h. Use SystemProcessInformation instead of SystemProcessesAndThreadsInformation throughout and add define for w32api headers. Ditto for PSYSTEM_PROCESS_INFORMATION vs. PSYSTEM_PROCESSES. (system_module_list): New type to replace SYSTEM_MODULE_INFORMATION. Change usage throughout accordingly. (get_module_list): Fetch module list using PSAPI functions EnumDeviceDrivers and GetDeviceDriverBaseNameA. * cygcheck.cc (max): Define as __max if not defined already. (alloca): Only define if not defined already. (handle_unique_object_name): Use explicit sharing flags rather than FILE_SHARE_VALID_FLAGS which officially is only available in DDK headers. (PRODUCT_ULTIMATE_E): Only define if not defined already. * dump_setup.cc: Change include section to work with Mingw64 headers. (NtQueryAttributesFile): Drop NTOSAPI aka DECLSPEC_IMPORT. * strace.cc: Change include section to work with Mingw64 headers. (alloca): Only define if not defined already.
2012-07-11 * cygtls.cc (well_known_dlls): Add ole32.dll and wbemprox.dll.Corinna Vinschen
2012-07-09 * cygwin.sc (.rdata): Revert patch from 2012-07-06.Corinna Vinschen
2012-07-09 * passwd.cc (getpass): Make check for closed stream more reliable.Corinna Vinschen
Check if setting tty attributes worked and only revert to old state if so.
2012-07-09 * Makefile.in, configure.in, mkvers.sh: Revert accidental checkin fromCorinna Vinschen
2012-07-06.
2012-07-08* Makefile.in: Change mingw_lib (temporarily?) back to w32api_lib.Christopher Faylor
2012-07-06 * cygpath.cc: Change including headers to allow building againstCorinna Vinschen
Mingw64 headers. Include ntdef.h and ntdll.h rather than ddk headers. Define _WIN32_WINNT and WINVER as 0x0602. (RtlEqualUnicodePathPrefix): Drop definition. Pulled in from ntdll.h now. (get_device_name): s/Zw/Nt. * dumper.cc: Include sys/param.h (dumper::dump_memory_region): Use MIN rather than min. * locale.cc: Include stdlib.h. Define _WIN32_WINNT and WINVER as 0x0602. * ps.cc: Include ntdef.h and ntdll.h rather than ddk headers. * regtool.cc (regDeleteKeyEx): Drop WINADVAPI qualifier.
2012-07-06 * winlean.h (__STRALIGN_H_): Drop definition.Corinna Vinschen
2012-07-06 * fhandler_procnet.cc: Fix copyright.Corinna Vinschen
* syslog.cc: Ditto. * libc/minires-os-if.c: Ditto. * libc/minires.h: Ditto.
2012-07-06Add files missing in previous checkinCorinna Vinschen
2012-07-06 In terms of network related functionality, rely on Winsock definitionsCorinna Vinschen
as much as possible: * dtable.cc: Drop including sys/socket.h. * fhandler_procnet.cc: Change includes accordingly. * fhandler_socket.cc: Ditto. (fhandler_socket::listen): Avoid gcc error message initializing sin6. (LPFN_WSARECVMSG): Only define when building against w32api headers. * net.cc: Change includes accordingly. Define USE_SYS_TYPES_FD_SET and __WSA_ERR_MACROS_DEFINED. Define _INC_NETIOAPI temporarily and explain why. (struct _IP_ADAPTER_UNICAST_ADDRESS_LH): Only define when building against w32api headers. (struct _IP_ADAPTER_ADDRESSES_LH): Ditto. (SIO_GET_INTERFACE_LIST): Ditto. (ws_freeaddrinfo): Rename from freeaddrinfo so as not to collide with Winsock declaration. Change througout. (ws_getaddrinfo): Ditto. (ws_getnameinfo): Ditto. * select.cc: Include netdb.h after defining USE_SYS_TYPES_FD_SET. * syslog.cc: Drop including netinet/in.h. Define USE_SYS_TYPES_FD_SET and include ws2tcpip.h. * include/netdb.h (struct addrinfo): Don't define when building Cygwin. * include/cygwin/if.h: Don't declare if_xxx functions when building Cygwin. * include/cygwin/in.h: Disable most definitions when building Cygwin. * include/cygwin/socket.h: Disable sockaddr and sockaddr_storage definitions when building Cygwin. Same for MCAST_INCLUDE/MCAST_EXCLUDE. * libc/inet_addr.c: Don't define __INSIDE_CYGWIN__ nor __INSIDE_CYGWIN_NET__. * libc/inet_network.c: Ditto. * libc/minires.h: Drop redundant inclusion of netdb.h. Define __INSIDE_CYGWIN_NET__ only before including netdb.h and resolver headers.
2012-07-06 * include/winsock.h: Keep IP_OPTIONS and SO_xxx definitions whenCorinna Vinschen
building Cygwin. * include/winsock2.h: Keep sockaddr and sockaddr_storage definitions when building Cygwin.
2012-07-06 * winbase.h: Throughout use LONG rather than long type to prepare forCorinna Vinschen
64 bit. (InterlockedCompareExchangePointer): Define.
2012-07-06 * fhandler_registry.cc (RegOpenUserClassesRoot): Only define whenCorinna Vinschen
building against w32api headers. (RegOpenCurrentUser): Ditto. * fhandler_tty.cc (GetNamedPipeClientProcessId): Ditto. * ntdll.h (enum _PROCESSINFOCLASS): Add ProcessImageFileName. (RtlInitAnsiString): Declare. (RtlUnicodeStringToAnsiSize): Declare. * sched.cc (GetForegroundWindow): Ditto. * sec_helper.cc (SECURITY_NT_NON_UNIQUE): Define as SECURITY_NT_NON_UNIQUE_RID when building against w32api headers. (cygsid::get_sid): Use SECURITY_NT_NON_UNIQUE rather than SECURITY_NT_NON_UNIQUE_RID. (__sec_user): Use PISECURITY_DESCRIPTOR rather than PSECURITY_DESCRIPTOR to allow valid pointer arithmetic. (_recycler_sd): Ditto. (_everyone_sd): Ditto.
2012-07-06 * advapi32.cc (_ADVAPI32_): Drop definition.Corinna Vinschen
* kernel32.cc (_KERNEL32_): Ditto. * winlean.h: Add definitions required to use Mingw64 headers. (FILE_SHARE_VALID_FLAGS): Drop definition.
2012-07-06 * winsup.h (_WIN32_WINNT): Define. Explain why.Corinna Vinschen
2012-07-06 * libc/rcmd.cc: Don't undef __INSIDE_CYGWIN_NET__.Corinna Vinschen
2012-07-06 * cygwin.sc (.rdata): Include all sections starting with .rdata.Corinna Vinschen
(.debug_pubtypes): Make sure section is loaded at the end like all other debug sections.
2012-07-06 * Makefile.common (ALL_CFLAGS): Change := to = to allow overriding inCorinna Vinschen
dependent Makefiles.
2012-07-04* dcrt0.cc (build_argv): Guard against NULL pointer dereference found by Clang.Christopher Faylor
2012-07-04* exceptions.cc (setup_handler): Remove unneeded assignment found by Clang.Christopher Faylor
2012-07-04* hookapi.cc (find_first_notloaded_dll): Remove unused assignment ofChristopher Faylor
importRVASize found by Clang.
2012-07-04* fhandler_tty.cc (fhandler_pty_slave::read): Remove duplicate assignment toChristopher Faylor
bytes_in_pipe found by Clang.
2012-07-04fix typoChristopher Faylor
2012-07-03* exceptions.cc (exception::handle): Use error_code in klog, as intended.Christopher Faylor
Found by Clang.
2012-07-03 * fhandler.h (class fhandler_dev_clipboard): Remove member eof.Corinna Vinschen
* fhandler_clipboard.cc: Throughout remove handling of eof member. (fhandler_dev_clipboard::write): Handle EOF condition immediately, rather than pushing it erroneously to the next read call. Rearrange code. Fix bug in CF_UNICODETEXT case which potentially dropped single bytes at the end of the buffer. Add comment. * strfuncs.cc (sys_cp_wcstombs): Allow returning non-NUL-terminated buffer if dst != NULL and len == (size_t) -1. Extend leading comment to explain what's returned in more detail.
2012-07-03* fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicateChristopher Faylor
assignment found by Clang.
2012-07-03* fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS errorChristopher Faylor
condition pointed to by Clang.
2012-07-02* pinfo.cc (_pinfo::commune_request): Eliminate unneeded assignment found byChristopher Faylor
Clang.
2012-07-02* external.cc (fillout_pinfo): Return NULL rather than 0.Christopher Faylor
(exit_process): Guard against NULL pointer dereference found by Clang.
2012-07-02* mount.cc (mount_info::conv_to_win32_path): Eliminate unneeded assignmentChristopher Faylor
found by CLANG. * path.cc (symlink_info::check): Remove unneeded/unused variable found by CLANG.
2012-07-02* path.cc (symlink_info::check): Remove unneeded/unused variable.Christopher Faylor
2012-07-02 * dll_init.cc (dll_list::alloc): Take long UNC paths into account.Corinna Vinschen
2012-07-02* Makefile.in: Add some more optimization flags for cygwait, malloc and ↵Christopher Faylor
path. Explain why -fomit-frame-pointer doesn't work right for passwd.o and path.o. Add -static to link command line for cygwin0.dll. * fhandler_disk_file.cc (fhandler_disk_file::facl): Reorganize slightly to silence compiler warning when compiling with -fstack-check. * net.cc (inet_ntop6): Initialize structure members to silence compiler warning when compiling with -fstack-check. * pseudo-reloc.cc (_pei386_runtime_relocator): Make this a C function. Detect NULL u. * winsup.h (_pei386_runtime_relocator): Declare this as extern "C". * lib/_cygwin_crt0_common.cc (_pei386_runtime_relocator): Call with NULL argument. * signal.cc (sigaction_worker): Eliminate last argument. Let callers report their own strace info. Regparmize. (sigaction): Reflect sigaction_worker changes. (siginterrupt): Ditto. * exceptions.cc: Update copyright.
2012-07-02* path.cc: Perform some whitespace fixups throughout.Christopher Faylor
2012-06-29 * kernel32.cc (_KERNEL32_): Define. Explain why.Corinna Vinschen
(CreateFileMappingW): Drop undocumented flProtect flags.