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
2016-12-23Bump release to 2.5.0 for yearly snapshot.newlib-2_5_0Jeff Johnston
2016-12-22This is an attempt to fix the problem described here:Jeff Johnston
https://sourceware.org/ml/newlib/2016/msg01139.html https://gcc.gnu.org/ml/gcc/2016-12/msg00010.html There is no change if libtool is used. Some run-time support libraries provided by GCC (e.g. libgomp) use configure checks to detect certain features, e.g. availability of thread-local storage. The configure script generates a test program and tries to compile and link it. It should use target libraries and startfiles of the build tree if available and not random ones from the installation prefix for this procedure. The search directories specified by -B are a bit special, see for_each_path() in gcc.c of the GCC sources. First a search is performed on all search paths with the multilib directory appended (if desired), then a second search is performed on demand with the base directory only. For each multilib there is a "newlib" subdirectory. This directory is specified by a -B option for the support libraries. In order to find the newlib artifacts (ctr0.o, libc.a, libg.a and libm.a) they must be located in a proper multilib subdirectory withing the build directory. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-12-20RTEMS: Increase SEM_VALUE_MAXSebastian Huber
RTEMS defined SEM_VALUE_MAX to 32767 unlike other systems like FreeBSD and glibc. A common value is INT_MAX. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-12-17Export getentropy and getrandom callsCorinna Vinschen
getentropy per OpenBSD http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/getentropy.2 getrandom per Linux http://man7.org/linux/man-pages/man2/getrandom.2.html Note that GRND_NONBLOCK is not handled
2016-12-16Remove extraneous float casts in wcstod.c.Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-12-16Remove extraneous float casts in strtod.c.Jeff Johnston
2016-12-152016-12-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>cygwin-2_6_1-releaseJeff Johnston
* libc/stdlib/strtod.c (strtof_l): Set errno to ERANGE when double to float conversion results in infinity. (strtof): Likewise. * libc/stdlib/wcstod.c (wcstof_l): Likewise. (wcstof): Likewise.
2016-12-152016-12-15 Giuseppe Musumeci <giuseppe.musumeci@broadcom.com>Jeff Johnston
__sinit initialises some common file descriptors as line buffered and relies on the first users of such FDs to call __smakebuf_r. If __smakebuf_r realises there's no space for a buffer (malloc returns NULL), it makes them unbuffered. However, while setting the __SNBF bit, it doesn't clear the __SLBF bit in the flags. Depending on the order in which functions check buffering flags in the FD, sometime they assume it's line buffered (e.g. __sfvwrite_r), trashing application memory that's not really been allocated to them. This patch solves the problem by clearing the unbuffered/line buffered flag when setting the line buffered/unbuffered flag.
2016-12-15Fix some broken links in Cygwin FAQJon Turney
GNU no longer encourages the use of documentation mirrors, to avoid referring to obsolete documentation. Also www.fsf.org/manual/ is just a redirect to www.gnu.org/manual/ Links to using-utils.html #fragments are no longer correct as each utility is now a separate page, since 646745cb. indiana.edu seems to have moved XLiveCD information, without a redirect. Linking to clean_setup.pl on cygwin.com doesn't work, as direct downloads aren't allowed, so instead state where it can be found on a mirror. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2016-12-14Define RtlGenRandom correctly in ntsecapi.h wrapperCorinna Vinschen
Include ntsecapi.h where required and just redefine RtlGenRandom correctly in the ntsecapi.h wrapper. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-12-14Rearrange RNG code slightlyCorinna Vinschen
In preparation of exporting getentropy/getrandom to userspace, rearrange code a bit: - Define RtlGenRandom in ntdll.h. - Drop calls to getentropy in favor of RtlGenRandom (fhandler_socket, fhandler_dev_random). - Add try/except blocks in fhandler_dev_random to return EFAULT rather than crashing if buffer pointer is invalid. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-12-13Cygwin: Add release messages for last two checkinsCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-12-13Fix incorrect path conversion on non-existent files on network sharesCorinna Vinschen
NtOpenFile/NtCreateFile on non-existent paths on network drives has a bug. Assuming a path Z:\dir\file. Further assuming that Z:\dir does not exist. The first NtOpenFile("Z:\dir\file") correctly returns STATUS_OBJECT_PATH_NOT_FOUND. Subsequent calls incorrectly return STATUS_OBJECT_NAME_NOT_FOUND. This appears to be some kind of caching behaviour. Waiting a while before repeating the call correctly returns STATUS_OBJECT_PATH_NOT_FOUND again. This patch works around the observed misbehaviour. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-12-13Check for .exe file in cygwin_conv_pathCorinna Vinschen
So far, when converting from POSIX to Windows notation, cygwin_conv_path fails to check for .exe suffix, so /path/foo did not return /path/foo.exe even if this file exists. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-12-12Big-endian fix for memcpy-armv7m.SJulian Brown
In the case of memcpy-armv7m.S being built for a big-endian multilib (including armv7 without a specific profile), realignment code made assumptions about the byte ordering being little-endian. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-12-06Fix 'make man' for parallel makeJon Turney
Ensure the Python Lex/Yacc (PLY) cache used by makedocbook is initialized before it is used by parallelizable rules to make the DocBook XML, as it appears that these can collide in cache generation, leading to errors. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2016-12-06Cygwin 2.6.1: Add missing release textCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-12-06Add <devctl.h> per POSIX 1003.26-2003Joel Sherrill
2016-12-05Add missing crt0 symbols for RTEMSSebastian Huber
In order to enable proper detection of thread-local storage availability we have to provide some symbols on ARM. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-28path_conv: When encountering a ".(/)+" sequence, skip *all* slashesCorinna Vinschen
The original code only skipped the "./", but missed to test if more trailing slashes are present. This in turn leads to invalid conversion. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-28Enforce no arguments for __get_current_locale/__get_C_localeCorinna Vinschen
Remember: foo() != foo(void) Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-28Correct argument to __get_current_locale.Douglas
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24Self-contained pthread_spinlock_t for RTEMSSebastian Huber
Turn pthread_spinlock_t into a self-contained object. On uni-processor configurations, interrupts are disabled in the lock/trylock operations and the previous interrupt status is restored in the corresponding unlock operations. On SMP configurations, a ticket lock is a acquired and released in addition. See also: https://devel.rtems.org/ticket/2674 This implementation is simple and efficient. However, this test case of the Linux Test Project would fail due to call of printf() and sleep() during spin lock ownership: https://github.com/linux-test-project/ltp/blob/master/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/1-2.c Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-24regex: Fix typo in CHaddrangeCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24cygutils: Fix resource leak in get_short_pathsCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24Fix typo in kill(1)Corinna Vinschen
buf is just a local buffer, sig is ultimately pointing to the signal string. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24_pinfo::set_ctty: Check potential NULL pointer in debug_printf statementCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24Eliminate unused parameter from path_conv::eq_workerCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24Remove redundant check for NULL pointer in cygwin_exception::dump_exceptionCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24Fix copy/paste typo in fhandler_console::scroll_buffer_screenCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24Don't allow sending invalid signals from user spaceCorinna Vinschen
Don't allow signal 0 in signal(2), sigaction(2), siginterrupt(3). Don't allow any signal in sigqueue(3) but explicitely handle signal 0 as in kill(2). Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24raise: Add missing extern "C"Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24login_tty: Rewrite following FreeBSD's tracesCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24fcwd_access_t: Add missing breaks in f_cwd pointer computationCorinna Vinschen
Fixes Coverity CIDs 59893/59894 Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24Add comments to intentional switch fallthroughsCorinna Vinschen
Clarify Coverity "Missing break in switch" messages. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-24Add length check creating domain\group stringsCorinna Vinschen
Fix Coverity CID 153932 Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-22Provide <memory.h>Sebastian Huber
Provide <memory.h> for all standard Newlib targets and remove Cygwin-specific header. Most POSIX like systems provide this historic header. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-22Declare non-standard pthread_yield()Sebastian Huber
The non-standard pthread_yield() function is available at least on Cygwin, FreeBSD and glibc. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-17Move pthread types to <sys/_pthreadtypes.h>Sebastian Huber
This makes it possible provide operating system specific types for <pthread.h>. It is in line with the FreeBSD header file structure and allows a future cleanup of <pthread.h> to not expose unrelated things via <sys/types.h> and <unistd.h>. Glibc uses the similar <bits/pthreadtypes.h> for this purpose. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-17Add _TICKET_LOCK_INITIALIZER to <sys/lock.h>Sebastian Huber
Add _TICKET_LOCK_INITIALIZER to statically initialize a _Ticket_lock_Control structure. This makes it possible to embed a ticket lock in other structures outside of <sys/lock.h>. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-17Use __inline in <sys/lock.h> for RTEMSSebastian Huber
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-17Add release note for commit 8a32c24Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-16Use allocation granularity as the 'page_size' in /proc/<pid>/status as well, ↵Erik M. Bray
for consistency with /proc/<pid>/statm
2016-11-16statm should report memory as multiples of allocation_granularity instead of ↵Erik M. Bray
page_size that ensures that values in statm mupltiplied by POSIX _SC_PAGESIZE give the correct values
2016-11-08sys/cdefs.h: Define __hidden as empty on CygwinCorinna Vinschen
Non-default visibility attributes are unsupported on PE/COFF, so don't use in __hidden definition for Cygwin. Add comment. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-11-07Use external header file for kernel space timeSebastian Huber
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-07Add kernel space header for <sys/lock.h> for RTEMSSebastian Huber
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-07Use external header file for kernel space typesSebastian Huber
The FreeBSD kernel types are not used in Newlib. Provide them via an external header file to decouple Newlib and FreeBSD updates for RTEMS. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-11-07Provide cap_ioctl_t for RTEMSSebastian Huber
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-10-25Fix pdf build failure with texinfo 6.1.0Thomas Preudhomme
Hi, make pdf on Ubuntu 16.04 fail with: newlib/libc/libc.texinfo:9: Missing @endcsname inserted. After a lot of fiddling the reason appears to be the combination of concept and function index despite a lack of concept index entries. Arguably texinfo should not error in that case but here we are, newlib will fail to build its documentation on some systems because of this. Since libc.texinfo only contains function index entries this patch simply removes the combination of indices. It does the same for libm.texinfo which has concept index entries but no function index entries. Tested by running make pdf, make dvi, make info and make html successfully. libc.pdf appears to have only one index as expected. == Proposed commit message == Fix pdf build failure with texinfo 6.1.0 as provided in Ubuntu 16.04. Index combination in libc.texinfo and libm.texinfo fails because both file have only one type of index entries. Removing index combination is thus harmless and solves the problem. Is this ok for master? Best regards, Thomas