summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gdb/Jan Kratochvil2010-09-063-78/+80
| | | | | | | | | * common/signals.c (ANY): Remove. (SET): No longer use ANY. include/gdb/ * signals.def: Replace all ANY uses by SET with specific numbers. * signals.h (ANY): Remove.
* * cygpath.cc (RtlEqualUnicodePathPrefix): New helper function.Corinna Vinschen2010-09-062-10/+73
| | | | | | | | | | | | (HARDDISK_PREFIX): Move. (GLOBALROOT_PREFIX): Define. (get_device_name): Take GLOBALROOT_PREFIX into account. Improve check for path to allow filesystem access via block devices. Potentially drop \\.\ prefix if resulting path is a valid DOS pathname. (do_pathconv): Make sure to drop \\?\ prefix only if path is actually a filesystem based path. (print_version): Fix copyright.
* * Makefile.in (DLL_OFILES): Add fhandler_procsys.o.Corinna Vinschen2010-09-0620-216/+816
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * devices.h (enum fh_devices): Add FH_PROCSYS. * devices.in (dev_procsys_storage): New device. * devices.cc: Regenerate. * dtable.cc (build_fh_pc): Add code to allocate fhandler_procsys. * fhandler.h (proc_len): Convert to size_t. (procsys): Declare. (procsys_len): Declare. (enum virtual_ftype_t): Move here from fhandler_virtual.h. Add members supported by fhandler_procsys. (fhandler_virtual::exists): Return virtual_ftype_t. Change in all derived classes. (class fhandler_procsys): New class. (fhandler_union): Add fhandler_procnet and fhandler_procsys members. * fhandler_disk_file.cc (__DIR_mounts::check_missing_mount): Use ro_u_proc. (fhandler_base::fstat_by_handle): Don't copy attributes if file is an NT device. (fhandler_base::fstat_by_name): Ditto. * fhandler_netdrive.cc (fhandler_netdrive::exists): Return virtual_ftype_t. * fhandler_proc.cc (proc_tab): Sort alphabetically. Use _VN macro to store length. (proc_len): Change to size_t. (proc_tab_cmp): New static function. (virt_tab_search): New function to search entry in virt_tab_t arrays. Use throughout in /proc and sibling classes instead of loop. (fhandler_proc::exists): Return virtual_ftype_t. * fhandler_process.cc (process_tab): Sort alphabetically. Use _VN macro to store length. (fhandler_process::exists): Return virtual_ftype_t. (fhandler_process::open): Simplify code. * fhandler_procnet.cc (procnet_tab): Sort alphabetically. Use _VN macro to store length. (fhandler_procnet::exists): Return virtual_ftype_t. (fhandler_procnet::open): Simplify. * fhandler_procsys.cc: New file. * fhandler_registry.cc (fhandler_registry::exists): Return virtual_ftype_t. * fhandler_virtual.cc (fhandler_virtual::exists): Ditto. * fhandler_virtual.h (enum virtual_ftype_t): Move to fhandler.h. (virt_tab_t): Add name_len member. (_VN): New macro. (virt_tab_search): Declare. * mount.cc (mount_info::conv_to_win32_path): Fix comment. Backslashify isprocsys_dev paths. * ntdll.h (STATUS_OBJECT_TYPE_MISMATCH): Define (STATUS_INSTANCE_NOT_AVAILABLE): Define. (STATUS_PIPE_NOT_AVAILABLE): Define. (STATUS_INVALID_PIPE_STATE): Define. (STATUS_PIPE_BUSY): Define. (SYMBOLIC_LINK_QUERY): Define. (NtOpenSymbolicLinkObject): Declare. (NtQuerySymbolicLinkObject): Declare. * path.cc (path_conv::check): Accommodate fact that exists method returns virtual_ftype_t now. Add cases for new virtual_ftype_t types. (cygwin_conv_path): Add GLOBALROOT prefix to native device paths. Make sure to strip \\?\ prefix only for actual filesystem-based paths, not for all paths. * path.h (isproc_dev): Add FH_PROCSYS. (isprocsys_dev): Define.
* * mount.cc (mount_info::from_fstab_line): Reorder to make sure allCorinna Vinschen2010-09-042-2/+11
| | | | | | mounts from user fstab are user mounts. (mount): Make sure all mounts are user mounts, even those added via mount -a.
* libdecnumber/Andreas Krebbel2010-09-032-0/+57
| | | | | | | | | | | | | | 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro. * Makefile.in: Add aclocal.m4 dependency to dfp.m4. * configure: Regenerate. * aclocal.m4: Regenerate. config/ 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * dfp.m4: New file.
* * sigoproc.cc (sigproc_init): Use American spelling in comment.Christopher Faylor2010-09-022-1/+5
|
* * dcrt0.cc (dll_crt0_0): Remove myself settings.Christopher Faylor2010-09-015-6/+17
| | | | | | | * fork.cc (fork): Set myself process_state * pinfo.cc (pinfo_init): Ditto. (pinfo::thisproc): Make sure any sendsig setting is correctly copied. * pinfo.h: Update copyright. Remove unused code.
* * cygthread.cc (cygthread::create): Fix incorrect use of name rather thanChristopher Faylor2010-09-0114-98/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __name. * cygthread.h (cygthread::cygthread): Create versions which eliminate 'n' parameter. * dcrt0.cc (dll_crt0_1): Remove check for threadfunc_ix. Remove obsolete comments. Set process_state to active here. * fhandler_netdrive.cc (create_thread_and_wait): Use shortened cygthread constructor. * timer.cc (timer_tracker::settime): Ditto. * window.cc (HWND): Ditto. * fhandler_tty.cc: Use shortened cygthread constructor, where appropriate, throughout. * select.cc: Ditto. * fork.cc (frok::child): Remove wait_for_sigthread. (fork): Reformat if for slightly better clarity. * init.cc (dll_finished_loading): New variable. (dll_entry): Use dll_finished_loading to determine when we should call merge_threadfunc. * sigproc.cc (no_signals_available): Simplify by using my_readsig. (wait_sig_inited): Delete. (wait_sig): Define as void function. (pending_signals): Accommodate change to wait_sig definition. (wait_for_sigthread): Delete definition. (sigproc_init): Initialize signal pipe here, before wait_sig thread is created. Use void form of cygthread creation. (init_sig_pipe): Delete. (wait_sig): Return void rather than DWORD. Assume previous initialization of signal pipe. Set my_sendsig to NULL when exiting. * sigproc.h (wait_for_sigthread): Delete declaration.
* * fhandler_netdrive.cc (fhandler_netdrive::readdir): Set d_type.Corinna Vinschen2010-09-013-2/+9
| | | | | (fhandler_netdrive::seekdir): Fix test for readdir return value. * fhandler_registry.cc (fhandler_registry::seekdir): Ditto.
* * include/cygwin/version.h: Bump DLL minor version number to 8.Corinna Vinschen2010-09-012-1/+5
|
* * path.cc (normalize_posix_path): Preserve //./ and //?/ prefixes.Corinna Vinschen2010-08-312-0/+21
| | | | | (path_conv::check): Allow access to root directory of native NT disk devices.
* * include/cygwin/version.h: Bump DLL minor version number to 7.Corinna Vinschen2010-08-312-1/+5
|
* * dcrt0.cc (dll_crt0_0): Move sigproc_init later, after cygheap initializationChristopher Faylor2010-08-302-6/+12
| | | | | since it relies on the cygheap existing (even if it shouldn't matter do to dll initialization serialization).
* * posix.sgml (std-notes): Fix typos and incorrectnesses.Corinna Vinschen2010-08-302-8/+12
|
* * new-features.sgml (ov-new1.7.7): Document change to binmode/textmodeCorinna Vinschen2010-08-303-8/+28
| | | | | link libs. * textbinary.sgml (textbin-devel): Ditto.
* * autoload.cc (MsgWaitForMultipleObjectsEx): Define.Corinna Vinschen2010-08-305-4/+46
| | | | | | | | | | (MsgWaitForMultipleObjects): Remove. * select.cc (select_stuff::wait): Use MsgWaitForMultipleObjectsEx with QS_ALLPOSTMESSAGE and, if possible, MWMO_INPUTAVAILABLE flags. Explain why. Fix a potential crash due to a NULL pointer in WAIT_FAILED case. (peek_windows): Use filter pattern on NT4. Explain why. * wincap.h (wincaps::has_mwmo_inputavailable): New element. * wincap.cc: Implement above element throughout.
* add missing fileChristopher Faylor2010-08-301-0/+30
|
* * winlean.h: New file.Christopher Faylor2010-08-3013-61/+52
| | | | | | | | | | | | | | | | * automode.c: Use "winlean.h". * binmode.c: Ditto. * gmon.c: Ditto. * textmode.c: Ditto. * textreadmode.c: Ditto. * winsup.h: Ditto. * lib/cygwin_attach_dll.c: Ditto. * lib/dll_main.cc: Ditto. * profile.c: Ditto. * crt0.c: Ditto. Cleanup ancient cruft. Add dummy calls to cygwin_premain*. * include/sys/cygwin.h: Remove old stuff. Move premain declarations nearer to other cygwin-specific function declarations. * globals.cc: Add comment.
* * ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES toCorinna Vinschen2010-08-282-1/+6
| | | | LOAD_WITH_ALTERED_SEARCH_PATH.
* * new-features.sgml (ov-new1.7.7): Document change to avoid DLLCorinna Vinschen2010-08-282-0/+10
| | | | hijacking.
* * loadlib.h: New header implementing safe LoadLibrary calls.Corinna Vinschen2010-08-2813-15/+95
| | | | | | | | | | | | Include throughout files using LoadLibrary function. * cygcheck.cc (dump_sysinfo): Retrieve kernel32.dll handle via GetModuleHandle, rather than using LoadLibrary. * cygpath.cc (get_long_name): Ditto. (do_sysfolders): Append .dll suffix in LoadLibrary call. * ldh.cc (WinMain): Use LoadLibraryExW with DONT_RESOLVE_DLL_REFERENCES to avoid loading malicious library code. * locale.cc (print_locale_with_codeset): Change way to retrieve kernel32.dll path.
* * autoload.cc (LoadDLLprime): Change dllname storage to string16.Corinna Vinschen2010-08-287-45/+63
| | | | | | | | | | | | | | | | (struct dll_info): Convert name to WCHAR. (std_dll_init): Load DLLs with full path to windows system directory. Add hint to Microsoft security advisory. * dcrt0.cc (init_windows_system_directory): New function. (dll_crt0_0): Call init_windows_system_directory first. * exceptions.cc (windows_system_directory): Move to globals.cc. (windows_system_directory_length): Ditto. (events_init): Drop code fetching windows_system_directory. * globals.cc (windows_system_directory): New global variable. (windows_system_directory_length): Ditto. * net.cc (load_ipv6_funcs): Use windows_system_directory rather than GetSystemDirectoryW. * netdb.cc (open_system_file): Ditto. Simplify debug output.
* 2010-08-26 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2010-08-273-3/+8
| | | | | * include/w32api.h: Increment version to 3.15. * Makefile.in: Ditto.
* 2010-08-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-272-3/+8
| | | | | * Makefile.in: Update naming convention and compression format (lzma), leaving existing naming convention and compression format as is for Cygwin.
* * new-features.sgml (ov-new1.7.7): Change to describe partialCorinna Vinschen2010-08-273-77/+63
| | | | | | | reversion to pre-1.7.6 behaviour. (ov-new1.7.6): Deprecate description of CWD handling. * pathnames.sgml (pathnames-win32-api): Rewrite to reflect new CWD behaviour.
* * external.cc (sync_wincwd): Remove.Corinna Vinschen2010-08-277-53/+52
| | | | | | | | | | | (cygwin_internal): Drop CW_SYNC_WINCWD case. * globals.cc (ro_u_pipedir): New R/O unicode string. * ntdll.h (RtlSetCurrentDirectory_U): Declare. * path.cc (cwdstuff::set): Improve comments. Drop setting Win32 CWD to \\?\PIPE\ on init. Keep Win32 CWD in sync, if possible. Set to \\?\PIPE\ otherwise. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Revert to 230. * include/sys/cygwin.h (cygwin_getinfo_types): Remove CW_SYNC_WINCWD.
* * syscalls.c (_isatty): Fix return value.Corinna Vinschen2010-08-272-3/+13
|
* * fhandler_proc.cc (format_proc_partitions): Improve comment.Corinna Vinschen2010-08-272-2/+11
|
* * cygpath.cc (get_device_name): Prefer the \\.\X: DOS device forCorinna Vinschen2010-08-262-2/+17
| | | | harddisks, if available.
* * fhandler_proc.cc (format_proc_partitions): Simplify code and enableCorinna Vinschen2010-08-262-85/+54
| | | | partition layout printing for non-privileged users.
* 2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-262-0/+11
| | | | | | | * include/oleacc.h (STATE_SYSTEM_HASPOPUP, STATE_SYSTEM_NORMAL, STATE_SYSTEM_PROTECTED): Define. Thank you to Marcus von Appen for reporting the issue.
* 2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-262-0/+12
| | | | | | | * include/winuser.h (CF_DIBV5): Define. (CF_MAX): Adjust accordingly. Thank you to Lenard Lindstrom for reporting the issue.
* 2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-263-41/+120
| | | | | | | * include/sspi.h (QuerySecurityContextToken): Define. * lib/secur32.def: Regenerate using gendef on a Win7 machine. Thank you to Magnus Hagander for reporting the issue.
* 2010-08-25 Ali Sabil <asabil@users.sourceforge.net>Chris Sutcliffe2010-08-262-0/+23
| | | | * include/ocidl.h: Define COBJMACROS for IPropertyBag and IPropertyBag2.
* 2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-262-1/+13
| | | | | | * include/shlwapi (ASSOCDATA): Update definition. Thank you to Frederic Deschamps for reporting the issue.
* 2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-262-2/+18
| | | | | | | | * include/winbase.h (COPY_FILE_OPEN_SOURCE_FOR_WRITE, COPY_FILE_ALLOW_DECRYPTED_DESTINATION, COPY_FILE_COPY_SYMLINK, COPY_FILE_NO_BUFFERING): Define. Thank you to Roland Schwingel for reporting the issue.
* Add missing thank you notes.Chris Sutcliffe2010-08-251-0/+4
|
* 2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-253-1/+6
| | | | | * include/winuser.h (HHOOK): Move definition from here... * include/windef.h: ...to here, as per MSDN.
* 2010-08-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-252-3/+9
| | | | | | * include/winbase.h (GetEnvironmentStrings, GetEnvironmentStringsA): Per MSDN, change return type to LPCH. (GetEnvironmentStringsW): Per MSDN, change return type to LPWCH.
* * libc/posix/opendir.c (opendir): Fix potential memory leak.Corinna Vinschen2010-08-252-0/+5
|
* * mount.cc (fs_info::update): Fix comments.Corinna Vinschen2010-08-252-4/+8
|
* * syscalls.cc (rename): Open file with FILE_READ_ATTRIBUTES.Corinna Vinschen2010-08-252-4/+11
|
* 2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-253-6/+11
| | | | | * include/prsht.h (SNDMDG, POSTMSG): Fix typo. * include/windowsx.h (SNDMSG): Ditto.
* 2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-242-18/+40
| | | | | | * include/prsht.h (SNDMSG, POSTMSG): Define macros and use throughout. Thank you to Ozkan Sezer for reporting the issue.
* 2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-242-103/+117
| | | | | | * include/windowsx.h (SNDMSG): Define macro and use throughout. Thank you to Chris Oldwood for reporting the issue.
* 2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-242-1/+7
| | | | | | * include/oleacc.h (AccessibleObjectFromEvent): Correct definition. Thank you to Rick Walsh for reporting the issue.
* 2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-242-0/+14
| | | | * include/winbase.h (MoveFileWithProcessA, MoveFileWithProgressW): Define.
* 2010-08-24 Vinky <rabbit_vinky@users.sourceforge.net>Chris Sutcliffe2010-08-242-0/+9
| | | | * include/winbase.h (OVERLAPPED): Correct definition.
* 2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-242-6/+13
| | | | | | | * include/winnt.h (IMAGE_NT_HEADERS32, IMAGE_NT_HEADERS64): Correct definition. Thank you to Pasi Ruokola for reporting the issue.
* 2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-242-1/+7
| | | | | | * include/exdisp.h (get_RegisterAsBrowser): Fix typo. Thank you to cheznonnon for reporting the issue.