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-11-11Update year range in copyright notice of binutils filesAlan Modra
2021-11-11Update the address of the FSF in the copyright notice of files which were ↵Nick Clifton
using the old address. top * COPYING.LIBGLOSS: Update address of FSF in copyright notice. bfd * cpu-mt.c: Update address of FSF in copyright notice. * elf32-m32c.c: Likewise. * elf32-mt.c: Likewise. * elf32-rl78.c: Likewise. * elf32-rx.c: Likewise. * elf32-rx.h: Likewise. * elf32-spu.h: Likewise. * hosts/x86-64linux.h: Likewise. etc * add-log.el: Update address of FSF in copyright notice. gas * config/tc-m32c.c: Update address of FSF in copyright notice. * config/tc-m32c.h: Likewise. * config/tc-mt.c: Likewise. * config/tc-mt.h: Likewise. * config/tc-visium.c: Likewise. * config/tc-visium.h: Likewise. * testsuite/gas/rx/explode: Likewise. ld * testsuite/ld-mn10300/mn10300.exp: Update address of FSF in copyright notice.
2021-11-11update-copyright.py for binutilsAlan Modra
This is a modified form of gcc's contrib/update-copyright.py. * update-copyright.py: New file. * add-log.el: Update copyright year range. * texi2pod.pl: Likewise.
2021-11-11Fix compile time warning messages building with gcc v6.1.1Nick Clifton
etc * texi2pod.pl: Escape curly braces, whilst searching for keyword strong. gas * config/tc-arm.c: For non-ELF based targets skip ARM feature sets that are not supported. * config/tc-arc.c (md_apply_fix): Avoid left shifting a signed constant. * config/tc-cr16.c (check_range): Likewise. * config/tc-nios2.c (nios2_check_overflow): Likewise.
2021-11-10Cygwin: pipe: Handle WAIT_CANCELED when waiting read_mtx.Takashi Yano
- Add missing handling for WAIT_CANCELED in cygwait() for read_mtx in raw_read().
2021-11-10newlib: mips: delete glibc-specific logicMike Frysinger
This code looks like it's written to be copied & pasted between diff C libraries and relies on _LIBC only being used with glibc. This will break when newlib changes from _COMPILING_NEWLIB to _LIBC, so delete the glibc-specific logic ahead of time.
2021-11-08Cygwin: pipe: Avoid false EOF while reading output of C# programs.Takashi Yano
- If output of C# program is redirected to pipe, pipe reader falsely detects EOF. This happens after overhaul of pipe implementation. This patch fixes the issue. Addresses: https://cygwin.com/pipermail/cygwin/2021-November/249777.html
2021-11-06libgloss: regenerate aclocal.m4 & configure w/newer versionsMike Frysinger
Regenerate the files using automake-1.15 & autoconf-2.69 to match the binutils/gdb/gcc projects. Ran: libgloss $ find -name configure.ac -printf '%h\n' | while read d; do (cd $d; export WANT_AUTOCONF=2.69 WANT_AUTOMAKE=1.15; aclocal-1.15 -I.. && autoconf-2.69); done
2021-11-06libgloss/newlib: update configure.ac in Makefile.in filesMike Frysinger
The maintainer rules refer to configure.in directly, so update that after renaming all the configure.ac files.
2021-11-04Cygwin: fix permission problem when writing DAC info on Samba sharesCorinna Vinschen
Cygwin always requests FILE_WRITE_ATTRIBUTES permissions when trying to change DAC information. This can lead to permission problems when trying to chmod/chown files on Samba shares. Drop requesting FILE_WRITE_ATTRIBUTES on Samba shares and go with WRITE_DAC/WRITE_OWNER only. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-04Cygwin: Add a new 3.4.0 rel notes fileCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-04Cygwin: add release note for rounding issueCorinna Vinschen
Also rename release 3.4.0 to 3.3.2. It doesn't make sense to duplicate the issues fixed in 3.3.x into the 3.4.0 relnotes. Only patches not backported into 3.3.x belong into 3.4.0. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-04ldtoa: fix dropping too many digits from outputCorinna Vinschen
ldtoa cuts the number of digits it returns based on a computation of number of supported bits (144) divide by log10(2). Not only is the integer approximation of log10(2) ~= 8/27 missing a digit here, it also fails to take really small double and long double values into account. Allow for the full potential precision of long double values. At the same time, change the local string array allocation to request only as much bytes as necessary to support the caller-requested number of digits, to keep the stack size low on small targets. In the long run a better fix would be to switch to gdtoa, as the BSD variants, as well as Mingw64 do. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-03Cygwin: console: Prevent the exec'ed bash from exiting by Ctrl-C.Takashi Yano
- Currently, bash occasionally exits by Ctrl-C with the following scenario. 1) Start bash in the command prompt. 2) Run 'exec bash'. 3) Press Ctrl-C several times. This patch fixes the issue.
2021-11-02Cygwin: add release noteCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-11-02Cygwin: console: Fix yet another bug on input when signalled.Takashi Yano
- Currently, read() returns EINTR due to a bug if signal handler is SIG_DFL and the process is suspended by Ctrl-Z and restarted. This patch fixes the issue.
2021-11-02Cygwin: console: Fix a bug on input when signalled.Takashi Yano
- This patch fixes the bug that Ctrl-C sometimes does not work as expected in Windows Terminal. Addresses: https://cygwin.com/pipermail/cygwin/2021-November/249749.html
2021-10-29Cygwin: remove unused lsaauth authentication functionCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-29Cygwin: remove support for Vista entirelyCorinna Vinschen
Fix up a few comments while at it Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-29Cygwin: drop support for systems not supporting the CONSOLE LOGON SIDCorinna Vinschen
i. e. Vista/2008. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-29Cygwin: drop support for systems not supporting RFC 4646 localesCorinna Vinschen
i. e. Vista/2008. This drops support for the sr_CS locale. Regenerate LC_MESSAGES and LC_TIME ERA data from more recent Linux Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-29Cygwin: drop support for systems not supporting processor groupsCorinna Vinschen
i. e., Vista/2008. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-29Cygwin: drop support for simple invisible console codeCorinna Vinschen
i. e., Vista/2008. AllocConsole appears to allow creating a console only on the currently visible desktop since Windows 7, which broke the simple code opening the console on an invisible desktop in an invisible window station. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-29Cygwin: drop support for systems not supporting QueryUnbiasedInterruptTimeCorinna Vinschen
i. e., Vista/2008 Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-29Cygwin: drop Vista WOW64 specific child process handle bugCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-28Cygwin: bump DLL major versioncygwin-3.4.0-devCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-28Cygwin: bump DLL minor versionCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-27Unconditionally declare strsignalcygwin-3_3_0-releaseChristian Biesinger via Newlib
Currently, newlib does not declare strsignal if DEFS_H is defined, ostensibly to work around a gdb bug. However, gdb itself compiles even with this ifndef removed, and this makes sim (another part of gdb) fail to compile. Since it is not clear exactly what issue this was working around, this patch just replaces that ifdef with the correct check, i.e. __POSIX_VISIBLE >= 200809.
2021-10-27libgloss/riscv: Fix hard coded reference to configure.in after renameLewis Revill
The file configure.in was renamed to configure.ac in libgloss/riscv but the hard coded name in the Makefile for that directory was not updated. This patch simply renamed this to configure.ac.
2021-10-26Cygwin: convert malloc lock to SRWLOCKCorinna Vinschen
Per https://cygwin.com/pipermail/cygwin-developers/2021-October/012429.html, we may encounter a crash when starting multiple threads during process startup (here: fhandler_fifo::fixup_after_{fork,exec}) which in turn allocate memory via malloc. The problem is concurrent usage of malloc before the malloc muto has been initialized. To fix this issue, convert the muto to a SRWLOCK and make sure it is statically initalized. Thus, malloc can be called as early as necessary and malloc_init is only required to check for user space provided malloc. Note that this requires to implement a __malloc_trylock macro to be called from fork. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-26Cygwin: Make native clipboard layout same for 32- and 64-bitMark Geisert
This patch unifies the layout of the clipboard descriptor cygcb_t for 32- and 64-bit Cygwin. It allows correct copy/paste between the two environments without corruption of user's copied data and without access violations due to interpreting that data as a size field. The definitions of CYGWIN_NATIVE and cygcb_t are moved to a new include file, sys/clipboard.h. The include file is used by fhandler_clipboard.cc as well as getclip.c and putclip.c in the Cygwin cygutils package. When copy/pasting between 32- and 64-bit Cygwin environments, both must be running version 3.3.0 or later for successful operation.
2021-10-22Cygwin: document sig2str and str2sig in version.hKen Brown
2021-10-22Cygwin: drop outdated -O3 optimization for malloc and syncCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-21Cygwin: update cygcheck OS informationCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-10-19Cygwin: pipe: Use NtQuerySystemInformation() instead of EnumProcesses().Takashi Yano
- Using EnumProcess() breaks Windows Vista compatibility. This patch replaces EnumProcesses() with NtQuerySystemInformation(). Addresses: https://cygwin.com/pipermail/cygwin-developers/2021-October/012422.html
2021-10-13string: Fix buffer overrun in picolibc/newlib/libc/string/strrchr.c (#184)Keith Packard
Reported by prodisDown: In picolibc/newlib/libc/string/strrchr.c if (i) { while ((s=strchr(s, i))) { last = s; s++; } } else { last = strchr(s, i); } Value (for example 0xFFFFFF00) in if (i) can pass test and then be typecasted to char inside strchr(). Then s++ and then buffer overrun. It can be fixed by preventive typecast i = (int) (char) i; or typecasting inside expression if ((char) i). Fixed by casting to char. Signed-off-by: Keith Packard <keithp@keithp.com>
2021-10-10Cygwin: pty: Fix handle leak regarding attach_mutex.Takashi Yano
- If the process having master pty opened is forked, attach_mutex fails to be closed when master is closed. This patch fixes the issue.
2021-10-08Cygwin: pty: Fix master closing error regarding attach_mutex.Takashi Yano
- If two or more pty masters are opened in a process, closing master causes error when closing attach_mutex. This patch fixes the issue. Addresses: https://cygwin.com/pipermail/cygwin-developers/2021-October/012418.html
2021-10-07sys/tree.h: Red child with black sibling rotationsSebastian Huber
Add specialized rotations RB_RED_ROTATE_LEFT() and RB_RED_ROTATE_RIGHT() which may be used if we rotate a red child which has a black sibling. Such a red node must have at least two child nodes so that the following red-black tree invariant is fulfilled: Every path from a given node to any of its descendant NULL nodes goes through the same number of black nodes. PARENT / \ BLACK RED / \ BLACK BLACK
2021-10-05sys/tree.h: Add parent rotationsSebastian Huber
Add specialized rotations RB_PARENT_ROTATE_LEFT() and RB_PARENT_ROTATE_RIGHT() which may be used if the parent node exists and the direction of the child is known. The specialized rotations are derived from RB_ROTATE_LEFT() and RB_ROTATE_RIGHT() where the RB_SWAP_CHILD() was replaced by a simple assignment.
2021-10-05sys/tree.h: Simplify chain of conditionsSebastian Huber
In RB_GENERATE_REMOVE_COLOR() simplify a chain of conditions of the following pattern if (x) { ... } else if (!x) { ... } to if (x) { ... } else { ... }
2021-10-05sys/tree.h: Simplify loop conditionSebastian Huber
We have #define RB_ISRED(elm, field) \ ((elm) != NULL && RB_COLOR(elm, field) == RB_RED) So, the RB_ISRED() contains an implicit check for NULL. In RB_GENERATE_REMOVE_COLOR() the "elm" pointer cannot be NULL in the while condition. Use RB_COLOR(elm) == RB_BLACK instead.
2021-09-23Cygwin: pipe: Use ProcessHandleInformation if available.Takashi Yano
- The commit b531d6b0 introduced temporary_query_hdl() which uses SystemHandleInformation. With this patch, ProcessHandleInformation rather than SystemHandleInformation is used if it is available. This request is faster, however, is only available since Windows 8, therefore, SystemHandleInformation is used for Windows Vista and 7 as before.
2021-09-21Cygwin: pipe: Introduce temporary query_hdl.Takashi Yano
- The commit f79a4611 introduced query_hdl, which is the read pipe handle kept in the write pipe instance in order to determine if the pipe is ready to write in select(). This implementation has a potential risk that the write side fails to detect the closure of the read side if more than one writer exists and one of them is a non-cygwin process. With this patch, the strategy of commit f79a4611 is used only if the process is running as a service. For a normal process, instead of keeping query_hdl in the write pipe instance, it is retrieved temporarily when select() is called. Actually, we want to use tenporary query_hdl for all processes, however, it does not work for service processes due to OpenProcess() failure.
2021-09-18Cygwin: pipes: remove unnecessary NULL checks for hdl_cnt_mtxKen Brown
In view of the previous changes to open_setup, we can always assume that hdl_cnt_mtx is non-NULL.
2021-09-18Cygwin: make callers of open_setup check for failureKen Brown
open_setup is called by dtable::init_std_file_from_handle and fhandler_base::open_with_arch. In both cases, failure of open_setup is now a fatal error. Currently this can only happen in the following situation: A Cygwin process is started by a non-Cygwin process, one of the standard IO handles is a pipe handle, and Cygwin is unable to create a required mutex (read_mtx or hdl_cnt_mtx).
2021-09-18Cygwin: fhandler_pipe::open_setup: fail on error creating mutexesKen Brown
2021-09-18Cygwin: allow open_setup to failKen Brown
Convert fhandler_base::open_setup to a (virtual) method that returns a bool result. For the moment, it and its overrides always return true.
2021-09-18Cygwin: statically link the tools in winsup/utils/mingwKen Brown
This fixes the problem reported here: https://cygwin.com/pipermail/cygwin-developers/2021-September/012375.html
2021-09-17Cygwin: fix typos in release notesKen Brown