summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* cygwin: add LFS_CFLAGS etc. to confstr/getconfYaakov Selkowitz2018-01-163-1/+13
| | | | | | These are used, for instance, when cross-compiling the Linux kernel. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* newlib: fvprintf: fix get_arg for !_MB_CAPABLEIvan Grokhotkov2018-01-091-0/+2
| | | | | | | Code path for _MB_CAPABLE scans for the '%' character and advances 'fmt' pointer past '%'. Code path for !_MB_CAPABLE leaved fmt pointing to '%', which caused the state machine to go from START to DONE state immediately.
* fix incompatible pointer type for va_list in nano versions of printf and ↵Alexander Fedotov2018-01-082-5/+24
| | | | scanf for target like PowerPC
* RISC-V: Add gdb sim and newlib nano support. Fix a few misc minor bugs.Jim Wilson2017-12-264-6/+111
|
* RISC-V: Moved syscalls to separate files to fix aliasing problems.Jim Wilson2017-12-2637-450/+513
|
* RISC-V: Updated syscall to take 6 argumentsJim Wilson2017-12-262-22/+26
|
* RISC-V: Add nanosleep functionalityJim Wilson2017-12-263-1/+14
|
* RISC-V: Fix libnosys build.Jim Wilson2017-12-262-0/+4
|
* cleanup winsup/doc/etc.{postinstall,preremove}.cygwin-doc.sh quote test ↵Brian Inglis2017-12-222-7/+8
| | | | variables, correct utility paths, define site in preremove
* winsup/doc/etc.postinstall.cygwin-doc.sh fix shell variable typoBrian Inglis2017-12-221-1/+1
|
* cygwin: block devices: fix file offset after short writesnewlib-snapshot-20171222Corinna Vinschen2017-12-192-2/+13
| | | | | | | | | | | | | | | When reading/writing block devices, Cygwin emulates Linux, providing a byte-exact file position, albeit the underlying device drivers don't. Unfortunately this only worked correctly for reading. The raw_write method failed to revalidate the buffer after the read-modify-write cycle in case len is not a multiple of the sector length. This in turn resulted in lseek reporting a wrong file pointer. Also, fix a condition for invalidating the buffer after writing from a remaining read buffer. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: document sigtimedwait and ftell{o} patchCorinna Vinschen2017-12-182-2/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: ftello{64}: Handle appending stream without fflushingCorinna Vinschen2017-12-182-14/+26
| | | | | | | | Neither upstream FreeBSD nor glibc ever call fflush from ftell and friends. In border cases it has the tendency to return wrong or unexpected values, for instance on block devices. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: ftello{64}: Fix type of returned valueCorinna Vinschen2017-12-182-8/+8
| | | | | | | Especially don't just use -1L since _off_t/_off64_t are not guaranteed to be of type long. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: Availability of _kill() in sys/signal.hMartin Aberg2017-12-181-2/+0
| | | | | | Make prototype of _kill() always visible when _COMPILING_NEWLIB is defined. This makes <sys/signal.h> consistent with the use of _COMPILING_NEWLIB in <sys/unistd.h>, <sys/times.h>, etc.
* Cygwin: rearrange sigwait functions, convert sigwait_common to inlineCorinna Vinschen2017-12-181-45/+43
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Cygwin: Implement sigtimedwaitMark Geisert2017-12-185-5/+39
| | | | | Abstract out common code from sigwait/sigwaitinfo/sigtimedwait to implement the latter.
* winsup: Belatedly add Mark Geisert to CONTRIBUTORSCorinna Vinschen2017-12-181-0/+1
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: Don't do double divide in powf.Jim Wilson2017-12-131-1/+3
| | | | * Use 0.0f instead of 0.0 in divide.
* Don't call double rint from float powf.Jim Wilson2017-12-131-2/+2
| | | | | | | | | | | | | Updated patch to use 0.0f in addition to calling rintf. Tested same way as before, with a testcase that triggers the code and make check. OK? newlib/ * libm/math/wf_pow.c (powf): Call rintf instead of rint. Use 0.0f for compare.
* Update MAINTAINERS file email address.Jim Wilson2017-12-121-1/+1
| | | | | | | | To update my email address to my current employer. Specifix died quite a while ago, and I've had two jobs in the interim. newlib/ * MAINTAINERS: Update my email address.
* cygwin: add mmap fork fix to 2.10.0 release testCorinna Vinschen2017-12-101-0/+3
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: mmap: fix comment and formatting, drop unused codeCorinna Vinschen2017-12-101-8/+5
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>