summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* adjust libnosys config for aarch64 to avoid linker error when switching from ↵Alexander Fedotov2017-10-092-0/+4
| | | | rdimon.specs to nosys.specs
* cygwin: Remove workaround for GCC 6 null pointer check warningsKen Brown2017-10-091-1/+1
|
* cygwin: Remove comparison of 'this' to NULL in _pinfo::existsKen Brown2017-10-095-8/+13
| | | | Fix all callers.
* cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::killKen Brown2017-10-091-3/+12
| | | | Fix all callers.
* cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::environKen Brown2017-10-092-2/+2
| | | | Fix all callers.
* cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::fdKen Brown2017-10-092-2/+2
| | | | Fix all callers.
* cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::pipe_fhandlerKen Brown2017-10-091-1/+1
| | | | Fix all callers.
* cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::commune_requestKen Brown2017-10-091-1/+1
| | | | Fix all callers.
* cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::cmdlineKen Brown2017-10-093-3/+3
| | | | Fix all callers.
* cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::cwdKen Brown2017-10-092-2/+2
| | | | Fix all callers.
* cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::rootKen Brown2017-10-092-2/+2
| | | | Fix all callers.
* cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::fdsKen Brown2017-10-092-2/+2
| | | | Fix all callers.
* cygwin: Remove comparisons of 'this' to 'NULL' in fhandler_dsp.ccKen Brown2017-10-091-15/+40
| | | | Fix all callers.
* RTEMS: Make pthread_mutex_t self-containedSebastian Huber2017-10-051-2/+28
| | | | Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* RTEMS: Make pthread_cond_t self-containedSebastian Huber2017-10-051-2/+6
| | | | Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* RTEMS: Make pthread_rwlock_t self-containedSebastian Huber2017-10-051-2/+7
| | | | Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* RTEMS: Make pthread_barrier_t self-containedSebastian Huber2017-10-051-1/+7
| | | | Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* RTEMS: Make sem_t self-containedSebastian Huber2017-10-051-2/+6
| | | | Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* RTEMS: Optimize pthread_once_tSebastian Huber2017-10-052-7/+6
| | | | | | Reduce size of pthread_once_t and make it zero-initialized. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* newlib/libm/complex/cargl.c change imag() real() to cimagl() creall()newlib-snapshot-20170922Brian Inglis2017-09-191-1/+1
|
* Fix warnings and documentation in strnstr.cSebastian Huber2017-09-191-4/+3
| | | | Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* cygwin: workaround GCC 6 changesYaakov Selkowitz2017-09-123-2/+6
| | | | | | | | | | | | | GCC 6 includes a number of new warnings which cause Cygwin to either not compile, or not work properly even if said warnings are ignored: https://cygwin.com/ml/cygwin-developers/2017-09/msg00000.html https://gcc.gnu.org/gcc-6/porting_to.html For now, we use the flags necessary to revert to GCC 5 behaviour until we can fix the code properly. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Revert "cygwin: only expose /dev/con{in,out,sole} when started from a ↵Yaakov Selkowitz2017-09-111-1/+1
| | | | | | | | | | | | Windows console" This caused serious regressions when running from a cmd window: https://cygwin.com/ml/cygwin/2017-09/msg00114.html This reverts commit b706c6b479422d31f0124b92c21b4cb536bbddff. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Change time_t to 64-bit by defaultSebastian Huber2017-09-077-3/+60
| | | | | | | | | In order to avoid the year 2038 problem, define time_t to a signed integer with at least 64-bits. The type for time_t can be forced to long with the --enable-newlib-long-time_t configure option or with the _USE_LONG_TIME_T system configuration define. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* Remove harmful casts in gmtime_r()Sebastian Huber2017-09-071-2/+2
| | | | | | | | In case time_t is long, then the cast to long is a nop. In case time_t is __int_least64_t, then the cast to long may truncate the value before the division. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* Let RTEMS provide clock()Sebastian Huber2017-09-071-1/+1
| | | | | | | | | | | Newlib uses _times_r() in clock(). The problem is that the _times_r() clock frequency is defined by sysconf(_SC_CLK_TCK). The clock frequency of clock() is the constant CLOCKS_PER_SEC. FreeBSD uses getrusage() for clock(). Since RTEMS has only one process, the implementation can be simplified. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* stdio.h: Don't define unlocked macros using static inline on C++cygwin-2_9_0-releaseCorinna Vinschen2017-09-041-1/+1
| | | | | | | | | | | | In C++, the usage of static inline functions for getchar_unlocked and putchar_unlocked may result in error messages like error: ‘_putchar_unlocked’ was not declared in this scope Fix this by not using the _getchar_unlocked and _putchar_unlocked macros in C++. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Document crypt_rYaakov Selkowitz2017-09-021-0/+1
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Remove some dangerous advice from the FAQAchim Gratz2017-09-021-4/+8
|
* include: fix ffs, fls guardsYaakov Selkowitz2017-08-301-2/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* newlib: string/Makefile.am (CHEWOUT_FILES): Add strnstr.defCorinna Vinschen2017-08-302-2/+2
| | | | | | Regenerate strings/Makefile.in Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: strnstr: drop traditional synopisisCorinna Vinschen2017-08-301-7/+0
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Add man page entry for strnstr.c.Sichen Zhao2017-08-302-0/+43
|
* Modify strnstr.c.Sichen Zhao2017-08-301-55/+10
|
* cygwin: add strptime %F fix to release notesCorinna Vinschen2017-08-291-0/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* winsup/cygwin/libc/strptime.cc(__strptime) fix %F widthBrian Inglis2017-08-291-2/+4
|
* cygwin: document %s support in strptimeCorinna Vinschen2017-08-292-0/+6
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Fix compile error due to new strnstr()Sebastian Huber2017-08-281-43/+0
| | | | | | | | | | | | | | | Remove local strnstr() implementation to fix compile error: newlib/libc/iconv/lib/aliasesi.c:53:8: error: conflicting types for 'strnstr' _DEFUN(strnstr, (haystack, needle, length), ^ In file included from newlib/libc/iconv/lib/aliasesi.c:29:0: newlib/libc/include/string.h:125:10: note: previous declaration of 'strnstr' was here char *strnstr(const char *, const char *, size_t) __pure; ^~~~~~~ Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* cygwin: export strnstrCorinna Vinschen2017-08-254-3/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: rebuild string/Makefile.inCorinna Vinschen2017-08-251-27/+49
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Port strnstr.c to newlib.Sichen Zhao2017-08-252-0/+4
|
* Import strnstr.c from FreeBSD.Sichen Zhao2017-08-251-0/+65
|
* Revert "headers: avoid bareword attributes" for clangEric Blake2017-08-251-14/+16
| | | | | | | | | | | | | | | This reverts most of commit 979d467ff6e39ee5c52cf1aac7a6c9c63058141c. We cannot avoid some bareword attributes until clang is fixed to properly support __-decorated attributes; see this bug: https://bugs.llvm.org/show_bug.cgi?id=34319 The macros in question expand to the empty string under gcc, so only compilation under clang is affected, and since clang has the bug, the obvious solution is to roll back the changes, and document the issue. Signed-off-by: Eric Blake <eblake@redhat.com>
* RTEMS: Use __uint64_t for _CLOCK_T_Sebastian Huber2017-08-251-0/+3
| | | | | | | | This addresses: https://devel.rtems.org/ticket/2135 Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* Make _CLOCK_T_ system configurableSebastian Huber2017-08-251-0/+3
| | | | | | | Let systems optionally provide the _CLOCK_T_ type via <machine/_types.h>. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* newlib/libc/time/strptime.c(strptime_l) add %F %s support for strptimeBrian Inglis2017-08-251-2/+32
|
* winsup/cygwin/libc/strptime.cc(__strptime) add %s support to strptimeBrian Inglis2017-08-251-0/+20
|
* move ILP32 sanity check on heap base code under ARM_RDI_MONITORAlexander Fedotov-B556132017-08-241-4/+5
|
* cygwin: only expose /dev/con{in,out,sole} when started from a Windows consoleCorinna Vinschen2017-08-231-1/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Add myself to RISC-V Port MaintainerKito Cheng2017-08-211-0/+1
|