summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* 2010-08-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2010-08-242-48/+114
| | | | * lib/ws2_32.def: Regenerate using gendef on a Win7 machine.
* 2010-08-24 Ozkan Sezer <sezero@users.sourceforge.net>Chris Sutcliffe2010-08-242-15/+41
| | | | | | | | | | | | | | | | | | | | | | | * winnt.h: Fix several SUBLANG ID errors (ref: http://msdn.microsoft.com/en-us/library/dd318693(VS.85).aspx). (SUBLANG_UI_CUSTOM_DEFAULT): 0x05, not 0x03. (SUBLANG_HAUSA_NIGERIA): Bad ID name, correct one is ... (SUBLANG_HAUSA_NIGERIA_LATIN): ... this. (SUBLANG_INUKTITUT_CANADA_LATIN): 0x02, not 0x01. (SUBLANG_IRISH_IRELAND): 0x02, not 0x01. (SUBLANG_LAO_LAO_PDR): Bad ID name, correct one is ... (SUBLANG_LAO_LAO): ... this. (SUBLANG_LOWER_SORBIAN_GERMANY): 0x02, not 0x01. (SUBLANG_SAMI_SKOLT_FINLAND): 0x08, not 0x03. (SUBLANG_SAMI_INARI_FINLAND): 0x09, not 0x03. (SUBLANG_SYRIAC_SYRIA): define as SUBLANG_SYRIAC (what MSDN mentions). (SUBLANG_TIGRIGNA_ERITREA): 0x02, not 0x01. (SUBLANG_BENGALI_INDIA): 0x01, not 0x00. (SUBLANG_BENGALI_BANGLADESH): 0x02, not 0x01. (SUBLANG_PUNJABI_INDIA): 0x01, not 0x00. (SUBLANG_PUNJABI_PAKISTAN): not defined in MSDN. (SUBLANG_ROMANIAN_ROMANIA): 0x01, not 0x00. (SUBLANG_ROMANIAN_MOLDOVA): not defined in MSDN.
* 2010-08-24 LRN <lrn1986@gmail.com>Chris Sutcliffe2010-08-243-1/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/mmreg.h (MPEGLAYER3WAVEFORMAT, WAVE_FORMAT_UNKNOWN, WAVE_FORMAT_PCM, WAVE_FORMAT_ADPCM, WAVE_FORMAT_IEEE_FLOAT, WAVE_FORMAT_VSELP, WAVE_FORMAT_IBM_CVSD, WAVE_FORMAT_ALAW, WAVE_FORMAT_MULAW, WAVE_FORMAT_OKI_ADPCM, WAVE_FORMAT_DVI_ADPCM, WAVE_FORMAT_MEDIASPACE_ADPCM, WAVE_FORMAT_SIERRA_ADPCM, WAVE_FORMAT_G723_ADPCM, WAVE_FORMAT_DIGIFIX, WAVE_FORMAT_DIALOGIC_OKI_ADPCM, WAVE_FORMAT_MEDIAVISION_ADPCM, WAVE_FORMAT_CU_CODEC, WAVE_FORMAT_YAMAHA_ADPCM, WAVE_FORMAT_SONARC, WAVE_FORMAT_DSPGROUP_TRUESPEECH, WAVE_FORMAT_ECHOSC1, WAVE_FORMAT_AUDIOFILE_AF36, WAVE_FORMAT_APTX, WAVE_FORMAT_AUDIOFILE_AF10, WAVE_FORMAT_PROSODY_1612, WAVE_FORMAT_LRC, WAVE_FORMAT_DOLBY_AC2, WAVE_FORMAT_GSM610, WAVE_FORMAT_MSNAUDIO, WAVE_FORMAT_ANTEX_ADPCME, WAVE_FORMAT_CONTROL_RES_VQLPC, WAVE_FORMAT_DIGIREAL, WAVE_FORMAT_DIGIADPCM, WAVE_FORMAT_CONTROL_RES_CR10, WAVE_FORMAT_NMS_VBXADPCM, WAVE_FORMAT_ROLAND_RDAC, WAVE_FORMAT_ECHOSC3, WAVE_FORMAT_ROCKWELL_ADPCM, WAVE_FORMAT_ROCKWELL_DIGITALK, WAVE_FORMAT_XEBEC, WAVE_FORMAT_G721_ADPCM, WAVE_FORMAT_G728_CELP, WAVE_FORMAT_MSG723, WAVE_FORMAT_MPEG, WAVE_FORMAT_RT24, WAVE_FORMAT_PAC, WAVE_FORMAT_MPEGLAYER3, WAVE_FORMAT_LUCENT_G723, WAVE_FORMAT_CIRRUS, WAVE_FORMAT_ESPCM, WAVE_FORMAT_VOXWARE, WAVE_FORMAT_CANOPUS_ATRAC, WAVE_FORMAT_G726_ADPCM, WAVE_FORMAT_G722_ADPCM, WAVE_FORMAT_DSAT, WAVE_FORMAT_DSAT_DISPLAY, WAVE_FORMAT_VOXWARE_BYTE_ALIGNED, WAVE_FORMAT_VOXWARE_AC8, WAVE_FORMAT_VOXWARE_AC10, WAVE_FORMAT_VOXWARE_AC16, WAVE_FORMAT_VOXWARE_AC20, WAVE_FORMAT_VOXWARE_RT24, WAVE_FORMAT_VOXWARE_RT29, WAVE_FORMAT_VOXWARE_RT29HW, WAVE_FORMAT_VOXWARE_VR12, WAVE_FORMAT_VOXWARE_VR18, WAVE_FORMAT_VOXWARE_TQ40, WAVE_FORMAT_SOFTSOUND, WAVE_FORMAT_VOXWARE_TQ60, WAVE_FORMAT_MSRT24, WAVE_FORMAT_G729A, WAVE_FORMAT_MVI_MV12, WAVE_FORMAT_DF_G726, WAVE_FORMAT_DF_GSM610, WAVE_FORMAT_ISIAUDIO, WAVE_FORMAT_ONLIVE, WAVE_FORMAT_SBC24, WAVE_FORMAT_DOLBY_AC3_SPDIF, WAVE_FORMAT_ZYXEL_ADPCM, WAVE_FORMAT_PHILIPS_LPCBB, WAVE_FORMAT_PACKED, WAVE_FORMAT_RHETOREX_ADPCM, WAVE_FORMAT_IRAT, WAVE_FORMAT_VIVO_G723, WAVE_FORMAT_VIVO_SIREN, WAVE_FORMAT_DIGITAL_G723, WAVE_FORMAT_CREATIVE_ADPCM, WAVE_FORMAT_CREATIVE_FASTSPEECH8, WAVE_FORMAT_CREATIVE_FASTSPEECH10, WAVE_FORMAT_QUARTERDECK, WAVE_FORMAT_FM_TOWNS_SND, WAVE_FORMAT_BTV_DIGITAL, WAVE_FORMAT_VME_VMPCM, WAVE_FORMAT_OLIGSM, WAVE_FORMAT_OLIADPCM, WAVE_FORMAT_OLICELP, WAVE_FORMAT_OLISBC, WAVE_FORMAT_OLIOPR, WAVE_FORMAT_LH_CODEC, WAVE_FORMAT_NORRIS, WAVE_FORMAT_ISIAUDIO, WAVE_FORMAT_SOUNDSPACE_MUSICOMPRESS, WAVE_FORMAT_DVM, WAVE_FORMAT_RAW_AAC1, WAVE_FORMAT_MPEG_HEAAC, WAVE_FORMAT_MPEG_ADTS_AAC, WAVE_FORMAT_DRM, WAVE_FORMAT_DTS, WAVE_FORMAT_WMAVOICE9, WAVE_FORMAT_WMASPDIF, WAVE_FORMAT_WMAUDIO_LOSSLESS, WAVE_FORMAT_WMAUDIO2, WAVE_FORMAT_WMAUDIO3, WAVE_FORMAT_MPEG_LOAS, WAVE_FORMAT_RAW_SPORT, WAVE_FORMAT_ESST_AC3, WAVE_FORMAT_DTS2): Define. * include/msacm.h (HACMDRIVERID, HACMDRIVER, HACMSTREAM, HACMOBJ, ACMSTREAMHEADER, WAVEFILTER, acmDriverAddA, acmDriverAddW, acmDriverRemove, acmMetrics, acmStreamOpen, acmStreamSize, acmStreamPrepareHeader, acmStreamUnprepareHeader, acmStreamReset, acmStreamClose, acmStreamConvert): Define.
* * include/cygwin/version.h: Fix comment.Corinna Vinschen2010-08-242-1/+5
|
* * external.cc (cygwin_internal): In CW_CVT_MNT_OPTS case, initializeCorinna Vinschen2010-08-242-1/+6
| | | | flags with *pflags to restore original behaviour.
* 2010-08-23 LRN <lrn1986@gmail.com>Chris Sutcliffe2010-08-242-0/+134
| | | | | | | | | | * include/winbase.h (SYMBOLIC_LINK_FLAG_DIRECTORY, FILE_NAME_NORMALIZED, FILE_NAME_OPENED, VOLUME_NAME_DOS, VOLUME_NAME_GUID, VOLUME_NAME_NONE, VOLUME_NAME_NT, FILE_BASIC_INFO, FILE_STANDARD_INFO, FILE_NAME_INFO, FILE_STREAM_INFO, FILE_COMPRESSION_INFO, FILE_ATTRIBUTE_TAG_INFO, FILE_ID_BOTH_DIR_INFO, FILE_REMOTE_PROTOCOL_INFO, FILE_INFO_BY_HANDLE_CLASS, GetFileInformationByHandleEx, GetFinalPathNameByHandleA, GetFinalPathNameByHandleW): Define.
* Fix location of this file to be where it was initially intended.Jeff Johnston2010-08-231-0/+0
|