d7f07b3dde* configure.ac: Don't require 64-bit compiler for 32-bit builds. * configure: Regenerate.
Christopher Faylor
2013-12-03 18:37:40 +0000
f4fc6b0663* libc/sys/rtems/sys/cpuset.h: Use __inline instead of inline.
Corinna Vinschen
2013-12-03 16:07:33 +0000
9bd3bcc642* libc/include/machine/_default_types.h: Move extern "C" after header includes. Include <sys/features.h> for __GNUC_PREREQ__(). (__u?int.*_t): Define via GCC provided __U?INT.*_TYPE__ if available. (__intptr_t): Define. (__uintptr_t): Likewise. * libc/include/stdint.h: Include <machine/_default_types.h> instead of <_ansi.h>. (u?int.*_t): Define via __u?int.*_t provided by <machine/_default_types.h>. (u?int_fast.*_t): Define via GCC provided __U?INT_FAST.*_TYPE__ if available. (U?INT.*(MIN|MAX)): Define via GCC provided __U?INT.*(MIN|MAX)__ if available. (U?INT.*_C): Define via GCC provided __U?INT.*_C if available. * libc/include/sys/cdefs.h: Use <machine/_default_types.h> instead of <stdint.h>. * libc/sys/rtems/sys/cpuset.h: Likewise. * libc/sys/rtems/machine/_types.h: Include <stdint.h> for FreeBSD compatibility.
Corinna Vinschen
2013-12-03 16:04:41 +0000
9262c05537* dtable.cc (dtable::find_unused_handle): Break out of the right loop.
Christopher Faylor
2013-12-01 19:17:56 +0000
f456b9f6f8* dtable.cc (dtable::find_unused_handle): Fix off-by-one error. Always exit 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.
Christopher Faylor
2013-12-01 17:52:48 +0000
eeaa47ef21* dtable.cc (dtable::extend): Change local variable new_size to size_t as well.
Corinna Vinschen
2013-12-01 10:27:16 +0000
bc54373f85.
Christopher Faylor
2013-12-01 02:58:03 +0000
499494d2cc* dtable.h (dtable::first_fd_for_open): Change declaration to size_t. (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.
Christopher Faylor
2013-12-01 02:52:54 +0000
483c843a6a* dtable.cc (build_fh_pc): When creating an archetype, use native name rather than unix name if name doesn't exist.
Christopher Faylor
2013-12-01 02:09:22 +0000
a534dfd26e2013-11-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-11-29 23:35:34 +0000
62c28b76ac2013-11-29 Jennifer Averett <jennifer.averett@oarcorp.com>
Joel Sherrill
2013-11-29 23:14:57 +0000
8116e5e59b* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 27.
Christopher Faylor
2013-11-29 13:31:54 +0000
390aa0b67f* include/cygwin/stdlib.h(initstate, random, setstate, srandom) : Prototype if not __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
Jon TURNEY
2013-11-29 13:05:43 +0000
fea986bdc6* new-features.xml (ov-new1.7.26): Fix section ID and title. Add posix_spawn item.
Corinna Vinschen
2013-11-29 10:14:13 +0000
f8b02da153* include/glob.h: Fix invalid use of 'restrict' error.
Corinna Vinschen
2013-11-28 10:00:01 +0000
2d500942762013-11-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-11-27 14:53:59 +0000
376b177749* syscalls.cc (try_to_bin): Enhance debug output in case reopen fails.
Corinna Vinschen
2013-11-27 14:48:27 +0000
854ed5f03a* syscalls.cc (try_to_bin): Take additional parameter to get file open 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.
Corinna Vinschen
2013-11-27 14:27:34 +0000
963addfa27* libc/machine/mips/setjmp.S: Fix definition of macro FPR_LAYOUT for ABI == N32.
Corinna Vinschen
2013-11-27 12:45:56 +0000
a00d2722b62013-11-26 Matheus Almeida <Matheus.Almeida@imgtec.com>
Jeff Johnston
2013-11-26 19:58:19 +0000
6221252b5e2013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill
2013-11-26 14:38:58 +0000
4d3c733045* libc/posix/posix_spawn.c: Drop using namespace.h.
Corinna Vinschen
2013-11-26 13:51:19 +0000
6fe752f94f* libc/posix/posix_spawn.c: Eliminate OS function calls not present in newlib or Cygwin. (process_spawnattr): Use sigprocmask rather than _sigprocmask. Use sigaction rather than _sigaction. (process_file_actions_entry): Use dup2 rather than _dup2. (do_posix_spawn): Use execvpe rather than _execvpe. Use waitpid rather than _waitpid.
Corinna Vinschen
2013-11-26 13:48:00 +0000
d264970f792013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill
2013-11-25 17:55:33 +0000
05efdc441d* libc/include/spawn.h (posix_spawn_file_actions_destroy): Fix typo in function name. * libc/posix/posix_spawn.c (posix_spawn_file_actions_destroy): Ditto.
Corinna Vinschen
2013-11-25 17:23:30 +0000
d4828703372013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com>
Joel Sherrill
2013-11-25 13:46:23 +0000
3073f26d6aThroughout, keep function definitions and declarations in sync with newlib in terms of C99 "restrict" keyword.
Corinna Vinschen
2013-11-25 11:38:08 +0000
bd1af1cab5* dtable.cc: Include sys/param.h for MAX definition.
Corinna Vinschen
2013-11-24 13:01:25 +0000
d2a88d9792Throughout, drop unnecessary explicit includes of windows header files 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.
Corinna Vinschen
2013-11-24 12:13:36 +0000
9cd69d84ef2013-11-22 Bryan Dunsmore <dunsmoreb@gmail.com>
Joel Sherrill
2013-11-23 01:25:47 +0000
849fe25d0e2013-11-22 Chirayu Desai <chirayudesai1@gmail.com>
Joel Sherrill
2013-11-22 22:39:51 +0000
2464ecbf642013-11-21 Daniel Ramirez <javamonn@gmail.com>
Joel Sherrill
2013-11-22 01:17:42 +0000
d0d3968f8f2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill
2013-11-21 19:27:17 +0000
9977fcbc422013-11-21 Julio Gutierrez <jgutleyva@gmail.com>
Joel Sherrill
2013-11-21 17:04:57 +0000
a7c32583112013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill
2013-11-21 16:44:39 +0000
c9e978ed1b2013-11-21 Daniel Ramirez <javamonn@gmail.com>
Joel Sherrill
2013-11-21 16:42:17 +0000
21cf2aee532013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill
2013-11-21 16:39:06 +0000
32e2cbeeab2013-11-21 Daniel Ramirez <javamonn@gmail.com>
Joel Sherrill
2013-11-21 16:35:47 +0000
37d3b04f88[AArch64] Set errno in ftruncate() and truncate().
Marcus Shawcroft
2013-11-21 15:53:52 +0000
eee6552c95[ARM] set errno in ftruncate and truncate stubs.
Marcus Shawcroft
2013-11-21 15:49:05 +0000
3c7451d8de2013-11-20 Daniel Ramirez <javamonn@gmail.com>
Joel Sherrill
2013-11-20 18:22:27 +0000
ea9d80921f2013-11-20 Chirayu Desai <chirayudesai1@gmail.com>
Joel Sherrill
2013-11-20 16:25:50 +0000
a2c4eac5d02013-11-20 Daniel Ramirez <javamonn@gmail.com>
Joel Sherrill
2013-11-20 13:39:36 +0000
c03063e2fc* include/cygwin/stdlib.h (realpath): Drop declaration. It's declared in newlib's stdlib.h now.
Corinna Vinschen
2013-11-20 09:48:04 +0000
8273b2112f* libc/include/stdlib.h: Declare realpath only if !__STRICT_ANSI__.
Corinna Vinschen
2013-11-20 09:46:39 +0000
8856f1f00e* cygcheck.cc (RtlGetVersion): Declare. (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.
Corinna Vinschen
2013-11-19 22:26:37 +0000
c9f36df332* ntdll.h (RtlGetVersion): Declare. * 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.
Corinna Vinschen
2013-11-19 22:21:11 +0000
f8863cbe54* cygcheck.cc (dump_sysinfo): Revert Windows 8.1 hack. It's not working. Add a (hopefully temporary) comment.
Corinna Vinschen
2013-11-19 20:43:04 +0000
0732e52c41* net.cc (cygwin_getaddrinfo): Fix a comment. Only memset whints if 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.
Corinna Vinschen
2013-11-19 18:07:46 +0000
705b50fe39* wincap.cc (wincapc::init): Fix dwMinorVersion for Windows 8.1 and Server 2012. Explain why this is necessary.
Corinna Vinschen
2013-11-19 18:01:04 +0000
d134686a10* cygcheck.cc (dump_sysinfo): Drop code trying to fetch OSVERSIONINFO if fetching OSVERSIONINFOEX failed. Drop code handling unsupported platform IDs. Add code to tweak dwMinorVersion on Windows 8.1 if no manifest is present.
Corinna Vinschen
2013-11-19 17:44:33 +0000
670c036efaFix date
Joel Sherrill
2013-11-19 17:39:43 +0000
aed5f73fa82013-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill
2013-11-19 17:32:24 +0000
7dffe44b092013-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill
2013-11-19 17:28:04 +0000
5b56e9b02b* autoload.cc (IdnToAscii): Define. (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.
Corinna Vinschen
2013-11-19 13:29:37 +0000
ff125797e3* libc/posix/closedir.c: Fix use after free. Remove useless test dd_fd != -1 * libc/posix/readdir.c: Remove useless test dd_fd == -1 * libc/posix/readdir_r.c: Ditto.
Corinna Vinschen
2013-11-19 11:48:02 +0000
700a3783ee* Makefile.in (cygcheck.exe): Link against wininet.dll. (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.
Corinna Vinschen
2013-11-19 11:14:36 +0000
32fefe6e24* cygcheck.cc (dump_sysinfo): Distinguish Windows 8 and 8.1, as well 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.
Corinna Vinschen
2013-11-19 10:43:10 +0000
481cb456a42013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com>
Joel Sherrill
2013-11-18 17:28:06 +0000
8ab08406da2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com>
Joel Sherrill
2013-11-18 17:26:52 +0000
7c62befe16[AArch64] Provide ftruncate() and truncate() stubs.
Marcus Shawcroft
2013-11-18 10:04:56 +0000
c709105913[ARM] Provide ftruncate() and truncate() stubs.
Marcus Shawcroft
2013-11-18 09:53:46 +0000
02365c2064* newlib/libc/include/getopt.h (struct option): name field should be "const char *". * newlib/libc/stdlib/getopt.c (getopt_internal): Use fputs()/fputc() instead of fprintf() to save code space. Fix signed/unsigned comparison.
Corinna Vinschen
2013-11-13 09:09:45 +0000
8246caa942* faq-setup.xml (faq.setup.uninstall-service): Describe how to unhook cyglsa DLL from OS before uninstalling.
Corinna Vinschen
2013-11-12 22:21:32 +0000
4146cc5ce7* faq-setup.xml: Throughout remove setup.exe, use setup or setup-x86... 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.
Corinna Vinschen
2013-11-11 12:48:31 +0000
874e065fa1* libm/libm.texinfo: Rename node Index to Document Index. * libc/libc.texinfo: Rename node Library Index to Document Index.
Corinna Vinschen
2013-11-08 12:48:29 +0000
13dbf6b0aa* Makefile.in: Properly cd to directory sans install_ prefix. Report on errors on doc install. Only 'all' is special.
Christopher Faylor
2013-11-07 00:29:46 +0000
2a6d6db8e2winsup/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx>
Christopher Faylor
2013-11-07 00:19:52 +0000
01eddfd7b2* Makefile.in: Reinstate ignoring of errors for doc target.
Christopher Faylor
2013-11-06 23:26:23 +0000
2a98b3363e* libc/stdio/fvwrite.c: Allow writing in larger chunks for fully buffered and unbuffered files, to improve write performance.
Corinna Vinschen
2013-11-04 14:18:44 +0000
5b312b4747* devices.in (dev_cygdrive_storage): Revert mapping to \Device\Null. (dev_storage): Ditto for /dev. * devices.cc: Regenerate. * fhandler.cc (fhandler_base::open_null): New method to open a fake \Device\Null handler. (fhandler_base::open): Fix formatting. Change O_ACCMODE test to a switch statement. Simplify a test which still tested for a now unused create_disposition. * fhandler.h (fhandler_base::open_null): Declare. (fhandler_netdrive::close): Declare. * fhandler_dev.cc (fhandler_dev::open): Open fake \Device\Null handle by just calling new open_null method. * fhandler_disk_file.cc (fhandler_cygdrive::open): Ditto. * fhandler_netdrive.cc (fhandler_netdrive::open): Call open_null rather than setting nohandle. (fhandler_netdrive::close): New method. * fhandler_registry.cc (fetch_hkey): Fix token in RegOpenUserClassesRoot call. Create valid key for HKEY_CURRENT_CONFIG by mapping to real key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current. (fhandler_registry::open): Set nohandle only when using pseudo registry handle. * fhandler_virtual.cc (fhandler_virtual::opendir): Call open rather than just setting nohandle here. * fhandler_virtual::fstatvfs): Set ST_RDONLY fs flag. * globals.cc (ro_u_null): New readonly UNICODE_STRING for \Device\Null. * path.h (path_conv::set_path): Revert previous change caring for wide_path.
Corinna Vinschen
2013-10-31 14:26:42 +0000
a5f316d8cf* libc/stdio/fvwrite.h: change type of uio_resid from int to size_t to fix fwrite() of > 2GByte buffers.
Corinna Vinschen
2013-10-31 10:35:54 +0000
566fd12b68Implement malloc_stats for nano. * libc/stdlib/nano-mallocr.c (RONECALL): New parameter macro. (sbrk_start): New variable. (current_mallinfo, free_list): Forward declaration of data. (chunk): Define size as long type. (mallinfo): Synchronize with latest malloc.h. (nano_*): Forward declaration of functions. (get_chunk_from_ptr): Defined to static inline. (nano_mallinfo): Implement this function. (nano_malloc_stats): Implement this function.
Corinna Vinschen
2013-10-30 15:53:05 +0000
751bbaf96a* devices.in (dev_cygdrive_storage): Map to \Device\Null. (dev_storage): Map /dev and /dev/windows to \Device\Null. * devices.cc: Regenerate. * dir.cc (opendir): Create unique id. Explain why. * fhandler.h (fhandler_dev::get_dev): Implement inline. (fhandler_cygdrive::close): Drop declaration. (fhandler_cygdrive::get_dev): Implement inline. (fhandler_windows::get_hwnd): Ditto. (fhandler_windows::set_close_on_exec): Drop declaration. (fhandler_windows::fixup_after_fork): Ditto. * fhandler_dev.cc (fhandler_dev::open): Call fhandler_disk_file::open without O_CREAT flag. Explain why. Create \Device\Null handle if /dev/ doesn't actually exist. (fhandler_dev::close): Drop nohandle case. (fhandler_dev::fstatvfs): Drop nohandle check. Test for fs_got_fs instead. Set ST_RDONLY fs flag for simulated /dev. (fhandler_dev::opendir): If /dev doesn't exist, call open() to create fake \Device\Null handle. Don't set nohandle. Set dir_exists correctly. (fhandler_dev::rewinddir): Call fhandler_disk_file::rewinddir only if /dev is a real directory. * fhandler_disk_file.cc (fhandler_disk_file::opendir): If called for the cygdrive dir, call open() to create fake \Device\Null handle. Only attach __DIR_mounts buffer to dir if not called for cygdrive dir. Don't set nohandle. (fhandler_cygdrive::open): Create \Device\Null handle. (fhandler_cygdrive::close): Remove. (fhandler_cygdrive::fstatvfs): Set ST_RDONLY fs flag. * fhandler_windows.cc (fhandler_windows::open): Create \Device\Null handle. (fhandler_windows::read): Don't add io_handle to WFMO handle array. Change subsequent test for return value accordingly. Fix test for "message arrived". (fhandler_windows::set_close_on_exec): Remove. (fhandler_windows::fixup_after_fork): Remove. * path.h (path_conv::set_path): Make sure wide_path is NULL when setting a new path. * select.cc (peek_windows): Use correct hWnd value, not io_handle. (fhandler_windows::select_read): Don't use io_handle as wait object. (fhandler_windows::select_write): Ditto. (fhandler_windows::select_except): Ditto.
Corinna Vinschen
2013-10-30 09:44:47 +0000
0160e166eemerge from gcc
DJ Delorie
2013-10-29 15:14:27 +0000
2e178c6909* exception.h (_exception_list): Drop redefinition for x86_64. * include/exceptions.h: Disable content for x86_64 since it's not using frame based exception handling anymore.
Corinna Vinschen
2013-10-26 09:37:34 +0000
7a1dc2a940* flock.cc (fhandler_base::lock): Only refuse to lock nohandle and old-style console devices when called to perform BSD flock locking. Add a FIXME to comment and align description.
Corinna Vinschen
2013-10-25 18:40:57 +0000