summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
...
* * new-features.xml (ov-new1.7.26): Add new section.Corinna Vinschen2013-12-072-0/+19
|
* * path.cc (symlink_native): Workaround Windows 8.1 bug: Drop long pathCorinna Vinschen2013-12-073-4/+35
| | | | prefix from symlink target path. Add comment to explain why.
* * syscalls.cc (dup): Use cygheap_fdnew properly.Christopher Faylor2013-12-062-1/+5
|
* * cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will haveChristopher Faylor2013-12-055-10/+33
| | | | | | | | | | | | been set by a previous function. * dtable.h (dtable::extend): Accept second size_t argument. * dtable.cc (dtable::extend): Accept second "min" argument which allows checking for OPEN_MAX_MAX boundary conditions. (dtable_init): Accommodate second argument to dtable::extend. (dtable::find_unused_handle): Ditto. * syscalls.cc (setdtablesize): Ditto. (dup): Return any error passed by cygheap_fdnew() directly. (getdtablesize): Just return dtable size directly.
* * dtable.cc (dtable::find_unused_handle): When extending, always make sure thatChristopher Faylor2013-12-042-1/+8
| | | | there is a NOFILE_INCR chunk following the free fd.
* * configure.ac: Back out stupid change.Christopher Faylor2013-12-033-10/+11
| | | | * configure: Regenerate.
* * select.cc (select): Add workaround for, as yet undebugged, pathological case.Christopher Faylor2013-12-032-3/+11
|
* * configure.ac: Don't require 64-bit compiler for 32-bit builds.Christopher Faylor2013-12-033-100/+114
| | | | * configure: Regenerate.
* * dtable.cc (dtable::find_unused_handle): Break out of the right loop.Christopher Faylor2013-12-012-2/+6
|
* * dtable.cc (dtable::find_unused_handle): Fix off-by-one error. Always exitChristopher Faylor2013-12-013-18/+29
| | | | | | | | | through the bottom. (cygwin_attach_handle_to_fd): Make sure that fd tab is locked for the duration of this function. * dtable.h (dtable::lock): Make public. (dtable::unlock): Ditto. (dtable): Remove friends.
* Fix ChangeLog entryCorinna Vinschen2013-12-011-3/+4
|
* * dtable.cc (dtable::extend): Change local variable new_size to size_tCorinna Vinschen2013-12-013-3/+10
| | | | | | as well. * thread.cc: Fix comment.
* .Christopher Faylor2013-12-011-2/+5
|
* * dtable.h (dtable::first_fd_for_open): Change declaration to size_t.Christopher Faylor2013-12-013-10/+18
| | | | | | | | | (dtable::extend): Change parameter to size_t. (dtable::find_unused_handle): Ditto. * dtable.cc: Remove now-unused header. (dtable::extend): Remove pointless test. Change parameter to size_t. (dtable::find_unused_handle): Rework to avoid MAX calculation in extend() call. Change parameter to size_t.
* * dtable.cc (build_fh_pc): When creating an archetype, use native name ratherChristopher Faylor2013-12-013-1/+12
| | | | than unix name if name doesn't exist.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 27.Christopher Faylor2013-11-292-1/+5
|
* * include/cygwin/stdlib.h(initstate, random, setstate, srandom) :Jon TURNEY2013-11-292-0/+9
| | | | Prototype if not __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
* * new-features.xml (ov-new1.7.26): Fix section ID and title. AddCorinna Vinschen2013-11-292-1/+11
| | | | posix_spawn item.
* * include/glob.h: Fix invalid use of 'restrict' error.Corinna Vinschen2013-11-282-1/+5
|
* * syscalls.cc (try_to_bin): Enhance debug output in case reopen fails.Corinna Vinschen2013-11-272-1/+6
|
* * syscalls.cc (try_to_bin): Drop fh_dup, reuse tmp_fh instead.Corinna Vinschen2013-11-272-3/+6
|
* * syscalls.cc (try_to_bin): Take additional parameter to get file openCorinna Vinschen2013-11-273-5/+43
| | | | | | | flags. If the file to move to the bin has been opened casesensitive, reopen it caseinsensitive. Explain why. Revert the default name of the Vista-and-later recycler to mixed case for readability. (unlink_nt): Call try_to_bin with file open flags as evaluated.
* * nlsfuncs.cc (wcscoll): Add "__restrict" to definition.Corinna Vinschen2013-11-262-2/+7
| | | | (wcsxfrm): Ditto.
* * common.din: Export posix_spawn[...] functions.Corinna Vinschen2013-11-266-2/+56
| | | | | | | * exec.cc (execve): Add EXPORT_ALIAS _execve. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * posix.sgml (std-susv4): Add posix_spawn[...] here. (std-notimpl): Drop here.
* * nlsfuncs.cc (strcoll): Add "__restrict" to definition.Corinna Vinschen2013-11-262-2/+7
| | | | (strxfrm): Ditto.
* Throughout, keep function definitions and declarations in sync withCorinna Vinschen2013-11-2515-30/+47
| | | | newlib in terms of C99 "restrict" keyword.
* * dtable.cc: Include sys/param.h for MAX definition.Corinna Vinschen2013-11-242-0/+5
|
* Throughout, drop unnecessary explicit includes of windows header filesCorinna Vinschen2013-11-2421-49/+23
| | | | | | | | | | | | included by default. * winlean.h: Add long comment to explain why we have to define certain symbols. (_NORMALIZE_): Define. (_WINNLS_): Drop definition and subsequent undef. (_WINNETWK_): Ditto. (_WINSVC_): Ditto. 2013-11-23 Eric Blake <eblake@redhat.com>
* *** empty log message ***Corinna Vinschen2013-11-241-0/+2
|
* dup2: fix off-by-one crashEric Blake2013-11-233-2/+15
| | | | | | * dtable.cc (dup3): Fix off-by-one. (find_unused_handle): Reduce time spent expanding during dup. * syscalls.cc (setdtablesize): Report error on invalid value.
* * new-features.xml (ov-new1.7.26): Add new section.Corinna Vinschen2013-11-232-0/+39
|
* * include/cygwin/stdlib.h (realpath): Drop declaration. It's declaredCorinna Vinschen2013-11-202-1/+5
| | | | in newlib's stdlib.h now.
* * cygcheck.cc (RtlGetVersion): Declare.Corinna Vinschen2013-11-192-9/+18
| | | | | | | | (dump_sysinfo): Call RtlGetVersion rather than GetVersionEx to get correct OS info even on Windows 8.1. Don't check return value since RtlGetVersion never fails per MSDN. Move fetching kernel32 module handle where it's really needed. Drop temporary comment added by previous checkin.
* * ntdll.h (RtlGetVersion): Declare.Corinna Vinschen2013-11-195-7/+20
| | | | | | | * wincap.cc (wincapc::init): Rather than GetVersionEx, call RtlGetVersion which is not crippled by missing Windows 8.1 manifest. * wincap.h (wincapc): Change type of version to RTL_OSVERSIONINFOEXW. Align formatting of all class members.
* * cygcheck.cc (dump_sysinfo): Revert Windows 8.1 hack. It's notCorinna Vinschen2013-11-192-11/+9
| | | | working. Add a (hopefully temporary) comment.
* * wincap.cc (wincapc::init): Revert previous change. It's not working.Corinna Vinschen2013-11-193-13/+4
|
* *** empty log message ***Corinna Vinschen2013-11-191-0/+4
|
* * net.cc (cygwin_getaddrinfo): Fix a comment. Only memset whints ifCorinna Vinschen2013-11-192-7/+17
| | | | | | hints is NULL. Add a comment and set whints.ai_family explicitely to AF_UNSPEC to follow glibc man page closely. Check flags against whints for locality.
* * wincap.cc (wincapc::init): Fix dwMinorVersion for Windows 8.1 andCorinna Vinschen2013-11-192-0/+14
| | | | Server 2012. Explain why this is necessary.
* Add missing entryCorinna Vinschen2013-11-191-0/+3
|
* * cygcheck.cc (dump_sysinfo): Drop code trying to fetch OSVERSIONINFOCorinna Vinschen2013-11-192-21/+22
| | | | | | if fetching OSVERSIONINFOEX failed. Drop code handling unsupported platform IDs. Add code to tweak dwMinorVersion on Windows 8.1 if no manifest is present.
* * autoload.cc (IdnToAscii): Define.Corinna Vinschen2013-11-196-998/+335
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (IdnToUnicode): Define. (FreeAddrInfoW): Define. (GetAddrInfoW): Define. (GetNameInfoW): Define. * net.cc: Drop W. Richard STEVENS libgai implementation. (cygwin_freeaddrinfo): Move code from ipv4_freeaddrinfo here. Move definition up in file to avoid forward declaration in ga_duplist. (ga_dup): Take addrinfoW as input. Add parameters to get IDN flags and to set error value. Handle IDN flags and especially AI_CANONIDN. Convert input wchar_t ai_canonname string to multibyte for output. (ga_duplist): Add parameters to get IDN flags and to set error value and propagate to ga_dup. Call cygwin_freeaddrinfo. (gai_errmap): Add comments. Align error strings to GLibc. Add EAI_IDN_ENCODE entry. (get_ipv6_funcs): Remove. (load_ipv6_guard): Remove. (ipv6_inited): Remove. (load_ipv6): Remove. (load_ipv6_funcs): Remove. (cygwin_getaddrinfo): Drop calling load_ipv6. Handle AI_IDN* flags. Convert input strings to wchar_t and call GetAddrInfoW/FreeAddrInfoW. In case hints is NULL, set default ai_flags explicitely to AI_V4MAPPED | AI_ADDRCONFIG, as documented for Glibc. Only add AI_ALL if AI_ADDRCONFIG is not given. Unconditionally add Windows-specific AI_DISABLE_IDN_ENCODING to ai_flags to make IDN behaviour compatible to Glibc even on Windows 8 and later. (cygwin_getnameinfo): Drop calling load_ipv6. Handle NI_IDN* flags. Call GetNameInfoW and convert returned strings from wchar_t to multibyte. * include/netdb.h: Add comments to describe flags and error values. (AI_*): Define all flags using hex values for clearness. (AI_IDN): Define. (AI_CANONIDN): Define. (AI_IDN_ALLOW_UNASSIGNED): Define. (AI_IDN_USE_STD3_ASCII_RULES): Define. (NI_*): Define all flags using hex values for clearness. (NI_IDN): Define. (NI_IDN_ALLOW_UNASSIGNED): Define. (NI_IDN_USE_STD3_ASCII_RULES): Define. (EAI_IDN_ENCODE): Define.
* * Makefile.in (cygcheck.exe): Link against wininet.dll.Corinna Vinschen2013-11-194-102/+26
| | | | | | | | | | (dumper.exe): Link against psapi.dll. * cygcheck.cc (_WIN32_WINNT): Define as 0x0602. (pInternetCloseHandle): Drop pointer. (PRODUCT_UNLICENSED): Drop definition. (PRODUCT_PROFESSIONAL_WMC): Ditto. (package_grep): Delete code loading wininet functions dynamically, just call functions directly.
* *** empty log message ***Corinna Vinschen2013-11-191-0/+2
|
* * cygcheck.cc (dump_sysinfo): Distinguish Windows 8 and 8.1, as wellCorinna Vinschen2013-11-192-47/+33
| | | | | | | | | as Windows Server 2012 and 2012 R2. Add missing commas in products array to avoid crashes. Drop Windows NT4 and 2000 printouts. Just call IsWow64Process, GetNativeSystemInfo, and GetDiskFreeSpaceEx directly, rather than loading them dynamically, since they are exported by all supported OS versions. Fix questionable type usage in call to GetDiskFreeSpaceEx.
* * faq-setup.xml (faq.setup.uninstall-service): Describe how to unhookCorinna Vinschen2013-11-122-0/+14
| | | | cyglsa DLL from OS before uninstalling.
* * faq-setup.xml: Throughout remove setup.exe, use setup or setup-x86...Corinna Vinschen2013-11-113-74/+111
| | | | | | | | | | instead. (faq.setup.cli): Reproduce latest --help output. (faq.setup.noroot): New section. (faq.setup.setup-fails-on-ts): Remove section. * setup-net.xml (internet-setup): Mention setup-x86{_64} in first paragraph. Add note to allow using setup.exe in subsequent paragraphs. Add paragraph to introduce --no-admin option.
* * Makefile.in: Properly cd to directory sans install_ prefix. Report on errorsChristopher Faylor2013-11-072-3/+8
| | | | on doc install. Only 'all' is special.
* winsup/ChangeLog:Christopher Faylor2013-11-0718-449/+504
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate. * configure.cygwin: Default to '.' if can't find a winsup directory. winsup/cygserver/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate. winsup/cygwin/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate. winsup/utils/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate.
* * Makefile.in: Reinstate ignoring of errors for doc target.Christopher Faylor2013-11-062-6/+6
|