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
AgeCommit message (Collapse)Author
2021-12-12Cygwin: pipe: Restore blocking mode for cygwin process at startup.topic/pipeTakashi Yano
- Set blocking mode properly at startup of cygwin process. This is needed if the cygwin process is executed from non-cygwin process.
2021-12-12Cygwin: Document that the pipe_byte option is now set by defaultKen Brown
2021-12-12Cygwin: fhandler_pipe::raw_read: minor code cleanupKen Brown
Remove references to STATUS_THREAD_SIGNALED and STATUS_THREAD_CANCELED, which can't occur any more.
2021-12-12Cygwin: pipe: Adopt FILE_SYNCHRONOUS_IO_NONALERT flag for read pipe.Takashi Yano
- With this patch, FILE_SYNCHRONOUS_IO_NONALERT flag is applied to the read pipe so that native C# programs work with cygwin pipe. To handle signals in reading pipe with this flag set, the read pipe itself is always set to nonblocking mode and simulates the blocking behaviour in raw_read(). - Default to byte mode rather than message mode in order to make C# programs work with cygwin pipe. Addresses: https://cygwin.com/pipermail/cygwin/2021-March/247987.html
2021-12-12Cygwin: console: Fix console mode of non-cygwin apps in background.Takashi Yano
- If the non-cygwin app is started in the background in console, the console mode is broken for the app. This patch fixes the issue.
2021-12-12Cygwin: pty: Fix console mode of non-cygwin apps in background.Takashi Yano
- If the non-cygwin app is started in the background in pseudo console, the console mode is broken for the app. This patch fixes the issue.
2021-12-12Cygwin: pty: Fix Ctrl-C handling for non-cygwin apps in background.Takashi Yano
- With pseudo console enabled, if the non-cygwin app is started in the background and put it into the foreground, the process cannot be stopped by Ctrl-C. This patch fixes the issue.
2021-12-12Cygwin: pty: Add missing input transfer when switch_to_pcon_in state.Takashi Yano
- This patch fixes the bug that input is wrongly sent to io_handle_nat rather than io_handle when neither read() nor select() is called after the cygwin app is started from non-cygwin app. This happens only if psuedo console is disabled. Addresses: https://cygwin.com/pipermail/cygwin-patches/2021q4/011587.html
2021-12-11Cygwin: clipboard: Make intent of the code clearer.Takashi Yano
2021-12-11Cygwin: path: Fix path conversion of virtual drive.Takashi Yano
- The last change in path.cc introduced a bug that causes an error when accessing a virtual drive which mounts UNC path such as "\\server\share\dir" rather than "\\server\share". This patch fixes the issue.
2021-12-10newlib: Regenerate all autotools filesJon Turney
Regenerate all aclocal.m4, configure and Makefile.in files.
2021-12-10newlib: Enable automake silent rulesJon Turney
Use AM_SILENT_RULES, to enable automake silent rules (by default), if we are using a version of automake which supports it (>=1.11). Silent rules can be disabled by configuring with '--disable-silent-rules', or invoking 'make V=1'. For ease of reviewing, this patch doesn't contain configure and Makefile.in regeneration. Future work: There are a few compilations which are not silenced by this, as they use custom rules.
2021-12-08Cygwin: Update configure.ac to use AC_CONFIG_HEADERSJon Turney
This avoids warning with autoconf >= 2.70: configure.ac:47: warning: The macro `AC_CONFIG_HEADER' is obsolete. AC_CONFIG_HEADERS has been supported since before autconf 2.59, the minimum version we can be using, controlled by AC_PREREQ.
2021-12-08Cygwin: path: Convert UNC path prefix back to drive letter.Takashi Yano
- When symlink_info::check() is called with the path having drive letter and UNC path is mounted to the drive, the path is replaced with UNC path. With this patch, UNC path prefix is converted back to drive letter. This fixes the issue: https://cygwin.com/pipermail/cygwin/2021-November/250087.html https://cygwin.com/pipermail/cygwin/2021-December/250103.html
2021-12-07Cygwin: clipboard: Fix a bug in read().Takashi Yano
- Fix a bug in fhandler_dev_clipboard::read() that the second read fails with 'Bad address'. Addresses: https://cygwin.com/pipermail/cygwin/2021-December/250141.html
2021-12-03ldtoa: Import gdtoa from OpenBSD.Takashi Yano
- This patch uses gdtoa imported from OpenBSD if newlib configure option "--enable-newlib-use-gdtoa=no" is NOT specified. gdtoa provides more accurate output and faster conversion than legacy ldtoa, while it requires more heap memory.
2021-12-03frexpl: Support smaller long double of LDBL_MANT_DIG == 53.Takashi Yano
- Currently, frexpl() supports only the following cases. 1) LDBL_MANT_DIG == 64 or 113 2) 'long double' is equivalent to 'double' This patch add support for LDBL_MANT_DIG == 53.
2021-12-03Revert "ctype: use less short names in public header"Corinna Vinschen
This patch fixed a problem which isn't in newlib, but in projects incorrectly using symbols from the reserved namespace. This reverts commit 3ba1bd0d9dbc015c14a0aaafcef042f706d1249a.
2021-12-03Cygwin: Fix typo in new-features.xmlTakashi Yano
2021-12-02Cygwin: errno: handle ERROR_CASE_DIFFERING_NAMES_IN_DIRCorinna Vinschen
Rather than special case status code 0xc00004b3, add status and matching error code to ntdll.h and handle it as part of the standard error mapping. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-12-02Cygwin: console: Fix OSC sequence handling.Takashi Yano
- Currently, some OSC escape sequences, such as 'OSC 110 BEL', are not handled correctly. This patch fixes the issue.
2021-11-30Modifying patch from: marian.buschsieweke@ovgu.deJeff Johnston
The code accessing the floating point control/status register, namely #define __cfc1(__fcsr) __asm __volatile("cfc1 %0, $31" : "=r" (__fcsr) does not compile with mips16. This changed the makefile to pass -mno-mips16 to avoid the following compiler error: mips-mti-elf fails with "Error: unrecognized opcode `cfc1 $3,$31'"
2021-11-30Cygwin: get/setrlimit: move RLIMIT_AS handling into static functionsCorinna Vinschen
To keep getrlimit/setrlimit clean, move the RLIMIT_AS code into local static functions __set_rlimit_as and __get_rlimit_as. Also, make adding process to the job the last step, to be able to close and release the job resources if anything failed. Add matching comment. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-30Cygwin: setrlimit: Add a permission checkCorinna Vinschen
If the incoming soft limit is less restrictive than the current hard limit, bail out with EPERM. Given the previous sanity check, this implies trying to raise the hard limit. While, theoretically, this should be allowed for privileged processes, Windows has no matching concept in terms of job limits Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-30Cygwin: get_rlimit_stack: add a commentCorinna Vinschen
...just to see what it's used for. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-29stdio: Fix issue of printing "%La" format with large exp part.Takashi Yano
- Currently, printf("%La\n", 1e1000L) crashes with segv due to lack of frexpl() function. With this patch, frexpl() function has been implemented in libm to solve this issue. Addresses: https://sourceware.org/pipermail/newlib/2021/018718.html
2021-11-26Cygwin: add 3.4 release messagesCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-26Cygwin: get/setrlimit: implement RLIMIT_ASCorinna Vinschen
Code based on the idea implemented by the oneTBB project, see https://github.com/oneapi-src/oneTBB Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-26ldtoa: Fix insufficient valid output digits for "%f" format.Takashi Yano
- If the number has large integer part and small fraction part is specified in output format, e.g. printf("%.3f", sqrt(2)*1e60);, valid output digits were insufficient. This patch fixes the issue.
2021-11-23Cygwin: fhandler_fifo::raw_read: handle STATUS_PENDINGKen Brown
NtReadFile can return STATUS_PENDING occasionally even in non-blocking mode. Check for this and wait for NtReadFile to complete. To avoid code repetition, do this in a static helper function nt_read.
2021-11-23Cygwin: fhandler_pipe::raw_read: fix handle leakKen Brown
Slightly rearrange the code to avoid returning without closing the event handle.
2021-11-22Cygwin: Fix release note 3.3.3.Takashi Yano
- Removes the bug fix entry that was accidentally added to the release notes 3.3.3, even though it had been already fixed in 3.3.2.
2021-11-22Cygwin: sigproc: Fix potential race issue regarding exit_state.Takashi Yano
- If sig_send() is called while another thread is processing exit(), race issue regarding exit_state may occur. This patch fixes the issue.
2021-11-22ldtoa: don't restrict outbuf size to ndigitsCorinna Vinschen
https://cygwin.com/pipermail/cygwin/2021-November/249930.html reported a regression introduce by using a dynamically sized local char array in favor of a statically sized array. Fix this by reverting to a statically sized array, using a small buffer on the stack for a reasonable number of requested digits, a big mallocated buffer otherwise. This should work for small targets as well, given that malloc is used in printf anyway right now. This is *still* hopefully just a temporary measure, unless somebody actually provides a new ldtoa. Fixes: 4d90e53359145 ("ldtoa: fix dropping too many digits from output") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-22Cygwin: add release message for raise fixCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-22Cygwin: raise: align return value and error checking to LinuxCorinna Vinschen
raise(2) on Linux returns the same values and sets errno independent of calling kill(2) or pthread_kill(3). Align code to behave the same. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-22Cygwin: raise: fix check for multithreaded processCorinna Vinschen
The check for the pthread self pointer in TLS is misleading, given the main thread has this pointer initialized as well. Check for the global __isthreaded flag as well. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-22Cygwin: pthread_kill: check for invalid signal numberCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-22Cygwin: fhandler_netdrive: improve debug outputCorinna Vinschen
Add debug output for errors when calling WNet functions. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-19Cygwin: sigproc: Do not send signal to myself if exiting.Takashi Yano
- This patch fixes the issue that process sometimes hangs for 60 seconds with the following scenario. 1) Open command prompt. 2) Run "c:\cygwin64\bin\bash -l" 3) Compipe the following source with mingw compiler. /*--- Begin ---*/ #include <stdio.h> int main() {return getchar();} /*---- End ----*/ 4) Run "tcsh -c ./a.exe" 5) Hit Ctrl-C.
2021-11-18Cygwin: console: Fix interference issue regarding master thread.Takashi Yano
- This patch fixes the issue that ReadConsoleInputW() call in the master thread interferes with the input process of non-cygwin apps.
2021-11-17Cygwin: pipe: Suppress unnecessary set_pipe_non_blocking() call.Takashi Yano
- Call set_pipe_non_blocking(false) only if the pipe will be really inherited to non-cygwin process.
2021-11-17Cygwin: Correct the release notes 3.3.3.Takashi Yano
- Fix incorrect description of the bug fixes part.
2021-11-17Cygwin: pipe: Handle STATUS_PENDING even for nonblocking mode.Takashi Yano
- NtReadFile() and NtWriteFile() seems to return STATUS_PENDING occasionally even in nonblocking mode. This patch adds handling for STATUS_PENDING in nonblocking mode. Addresses: https://cygwin.com/pipermail/cygwin/2021-November/249910.html
2021-11-16Cygwin: fix up cached DOS file attributes after file creationCorinna Vinschen
The file attributes after creating a file are not necessarily identical to the attributes we passed as argument to NtCreateFile. This results in subsequent operations like fchmod or facl to set the DOS file attributes to unexpected values. The fix is to request file attributes from the OS after file creation and cache those. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-16Revert "Cygwin: set the FILE_ATTRIBUTE_ARCHIVE DOS attribute on file creation"Corinna Vinschen
This reverts commit 2b28977149b1e8858b597890906f21cdecde84ce. This patch fixes the symptoms, but not the actual problem. Revert and try again.
2021-11-16Cygwin: Drop 'make check' from AppVeyorJon Turney
Appveyor has quite restrictive concurrent job limits for free projects, so reduce the job's runtime by dropping 'make check' to avoid blocking (since we're now also running that in a GitHub action).
2021-11-16Cygwin: Extend GitHub workflow to also build on WindowsJon Turney
2021-11-16Fix 'make man' after 67208d9eJon Turney
Remove a left over use of doc/Makefile after 67208d9e ('newlib: merge doc into top-level Makefile') to fix 'make man'.
2021-11-16Cygwin: console: Handle Unicode surrogate pairs.Johannes Schindelin
When running Cygwin's Bash in the Windows Terminal (see https://docs.microsoft.com/en-us/windows/terminal/ for details), Cygwin is receiving keyboard input in the form of UTF-16 characters. UTF-16 has that awkward challenge that it cannot map the full Unicode range, and to make up for it, there are the ranges U+D800-U+DBFF and U+DC00-U+DFFF which are illegal except when they come in a pair encoding for Unicode characters beyond U+FFFF. Cygwin does not handle such surrogate pairs correctly at the moment, as can be seen e.g. when running Cygwin's Bash in the Windows Terminal and then inserting an emoji (e.g. via Windows + <dot>, which opens an emoji picker on recent Windows versions): Instead of showing an emoji, this shows the infamous question mark in a black triangle, i.e. the invalid Unicode character. Let's special-case surrogate pairs in this scenario. This fixes https://github.com/git-for-windows/git/issues/3281 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>