summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Cygwin: Drop HZ usage in favor of MSPERSEC and CLOCKS_PER_SECCorinna Vinschen2018-02-126-19/+25
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: Define MSPERSEC and fix USPERSEC commentCorinna Vinschen2018-02-121-1/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: Fix x86 compiler warningCorinna Vinschen2018-02-071-1/+1
| | | | | | | | | The previous patch introduced a compiler warning on x86. Given time_t is only 4 bytes on x86 we get a long vs. unsigned long comparison in timeval_to_ms. Fix it by careful casting. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: sockets: Handle SO_RCVTIMEO and SO_SNDTIMEOCorinna Vinschen2018-02-076-2/+98
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: setsockopt/getsockopt: Add missing optlen checksCorinna Vinschen2018-02-071-2/+21
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: Cleanup time handlingCorinna Vinschen2018-02-0713-97/+115
| | | | | | | | | | | * Redefine NSPERSEC to NS100PERSEC * Define NSPERSEC as nanosecs per second * Define USPERSEC as microsecs per second * Use above constants throughout where appropriate * Rename to_us to timespec_to_us and inline * Rename it_bad to timespec_bad and inline Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: setsockopt/getsockopt: Clean up codeCorinna Vinschen2018-02-061-118/+207
| | | | | | | | | Rearrange setsockopt/getsockopt into per level/per optname preprocessing switch, actual call, per level/per optname postprocessing switch for better readability as well as extensibility. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: bindresvport: Guard prototypes with __MISC_VISIBLECorinna Vinschen2018-02-051-0/+2
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: bindresvport: Try hard to find unused portCorinna Vinschen2018-02-052-8/+84
| | | | | | | | | | Workaround the problem that bind doesn't fail with EADDRINUSE if a socket with the same local address is still in TIME_WAIT. Use IP Helper functions to check if such a socket exist and don't even try this port, if so. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: bindresvport: check correctness of address familyCorinna Vinschen2018-02-051-1/+10
| | | | | | | | | | | | Assuming the address parameter is non-NULL, the test in cygwin_bindresvport_sa only tests if the address family is supported at all, which is insufficient. Check if the incoming address family matches the socket address family and for being AF_INET in cygwin_bindresvport since the latter doesn't support any other family. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: bindresvport_sa: Ignore incoming port numberCorinna Vinschen2018-02-051-12/+4
| | | | | | | Ignore port number just like glibc, otherwise suffer EADDRINUSE in subsequent connect calls. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: Use SO_EXCLUSIVEADDRUSECorinna Vinschen2018-02-051-1/+1
| | | | | | | We're still using ~SO_REUSEADDR because SO_EXCLUSIVEADDRUSE wasn't defined in Mingw. But it is in Mingw-w64, so fix it. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: bump version to 2.10.1Corinna Vinschen2018-02-021-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: drop Cygwin license from sys/select.hcygwin-2_10_0-releaseCorinna Vinschen2018-02-021-11/+0
| | | | | | This license was accidentally retained when moving the file from Cygwin to newlib. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix vprintf and vfscanf for GCC PR 14577Jon Beniston2018-02-012-33/+24
|
* epiphany: Additional setjmp() and longjmp() symsSebastian Huber2018-01-311-0/+4
| | | | | | | At least with Binutils 2.30 and GCC 7.3 we need symbol definitions without the leading underscore. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* ssp: do not use __ssp_protected_ symbol prefixesYaakov Selkowitz2018-01-261-1/+0
| | | | | | | | | This is a NetBSD-specific detail which does not apply to Newlib, causing linking issues in certain scenarios: https://cygwin.com/ml/cygwin/2018-01/msg00189.html Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Disable powf/log2?f/exp2?f optimization for single-precision Arm FPUThomas Preudhomme2018-01-251-1/+3
| | | | | | | | | | | | | | | | New optimized powf, logf, log2f, expf and exp2f yield worse performance on Arm targets with only single precision instructions because the double precision arithmetic is then implemented via softfloat routines. This patch uses the old implementation when double precision instructions are not available on Arm targets. Testing: Built newlib with GCC's rmprofile Arm multilibs and compared before/after -> only the above functions are changed and calls to them (name change from logf to __ieee754_logf and similar). Testing the changed function on a panel of values yields the same result before the original patches to improve them and after this one. Double checking the performance by looping the same panel of values being tested on Arm Cortex-M4 does show the performance regression is fixed.
* Define internal function mythreadname() -- revisedMark Geisert2018-01-245-4/+21
| | | | | | This new function returns the name of the calling thread; works for both cygthreads and pthreads. All calls to cygthread::name(/*void*/) replaced by calls to mythreadname(/*void*/).
* cygwin: 2.10.0 release text: fix formattingCorinna Vinschen2018-01-221-11/+11
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Declare pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlockYaakov Selkowitz2018-01-221-0/+4
| | | | | | | These were added in commit 8128f5482f2b1889e2336488e9d45a33c9972d11 but without their public declarations. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: update docs for 2.10.0Yaakov Selkowitz2018-01-193-4/+56
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: add gencat toolYaakov Selkowitz2018-01-192-1/+697
| | | | | | This is needed for compiling catalog files used in catgets(3) calls. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: add catopen, catgets, catcloseYaakov Selkowitz2018-01-195-1/+584
| | | | | | The implementation is taken from FreeBSD with #ifdef __CYGWIN__ modifications. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Guard langinfo.h nl_item from multiple typedefsYaakov Selkowitz2018-01-191-0/+3
| | | | | | This is a prerequisite of adding nl_types.h support to Cygwin. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Fix syntax error in exit.cOrlando Arias2018-01-191-1/+1
| | | | | | This patch fixes a syntax error in exit.c that was introduced during the ANSI-fication of newlib. The patch fixes a compile-time issue that arises when newlib is configured with the --enable-lite-exit feature.
* cygwin: make <sys/socket.h> completely visible from <netinet/in.h>Yaakov Selkowitz2018-01-191-1/+1
| | | | | | | | | While POSIX mandates that certain socket types shall be defined by the inclusing of <netinet/in.h>, it also says that this header may also make visible all <sys/socket.h> symbols. Glibc does this, and without out it, some packages end up requiring an additional #include <sys/socket.h>. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: remove inclusion of <sys/time.h> from <sys/socket.h>Yaakov Selkowitz2018-01-191-1/+0
| | | | | | | | POSIX does not mention the inclusion of <sys/time.h> in <sys/socket.h> or <netinet/in.h>, nor is there anything in the latter two that would require the former. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Bump release to 3.0.0 for yearly snapshotnewlib-snapshot-20180118newlib-3.0.0Jeff Johnston2018-01-18108-1156/+1153
| | | | - major release required due to removal of K&R support
* RISC-V: isatty: return 0 on errorChih-Mao Chen2018-01-181-1/+1
|
* RISC-V: Fix alignment issue in sigjmp_bufKito Cheng2018-01-181-1/+3
|
* ansification: remove ansidecl.h from makedocYaakov Selkowitz2018-01-172-176/+51
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: fix makedoc for ANSI CYaakov Selkowitz2018-01-171-2/+2
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _HAVE_STDCYaakov Selkowitz2018-01-1737-444/+1
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _EXFUN, _EXFUN_NOTHROWYaakov Selkowitz2018-01-1798-1825/+1767
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _EXFNPTR, _EXPARMYaakov Selkowitz2018-01-1713-81/+77
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _DEFUNYaakov Selkowitz2018-01-17729-2605/+1338
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _VOLATILE, _SIGNEDYaakov Selkowitz2018-01-171-4/+0
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _VOIDYaakov Selkowitz2018-01-1741-106/+104
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _DEFUN_VOIDYaakov Selkowitz2018-01-1747-96/+94
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _CAST_VOIDYaakov Selkowitz2018-01-1717-38/+36
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _PTRYaakov Selkowitz2018-01-1772-230/+228
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _VOID_PTRYaakov Selkowitz2018-01-1718-148/+145
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _PARAMSYaakov Selkowitz2018-01-1741-457/+451
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _NOARGSYaakov Selkowitz2018-01-174-6/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _DOTSYaakov Selkowitz2018-01-1725-45/+43
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _CONSTYaakov Selkowitz2018-01-17322-1147/+1145
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _ANDYaakov Selkowitz2018-01-17517-1773/+1771
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: add asm/bitsperlong.h, dummy asm/posix_types.h headersYaakov Selkowitz2018-01-173-0/+34
| | | | | | These changes are necessary for cross-compiling the Linux kernel. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Make __always_inline macro compatible with glibcYaakov Selkowitz2018-01-161-1/+1
| | | | | | For example, this is used when cross-compiling the Linux kernel on Cygwin. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>