summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* cygwin: mmap: fix a fork failure with private, anonymous mappingsCorinna Vinschen2017-12-101-0/+7
| | | | | | | | | | | | | Rounddown incoming addr on a page boundary. Without this, we may end up with a fork error for private, anonymous maps. The reason is, we use VirtualAlloc in this case which will potentially overcommit if addr is not on a page boundary. This isn't taken into account in bookkeeping, but fixup_mmaps_after_fork will eventually stumble over this when trying to reproduce the copy-on-write pages: VirtualQuery returns a region reaching beyond the supposedly allocated address range and from there it goes downhill. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cygwin: Improve discussion of linker library ordering in faq-programmingJon Turney2017-12-081-1/+36
| | | | Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
* makedoc: warn about some obsolete and deprecated commandsJon Turney2017-12-082-16/+15
| | | | | | | | | | To follow up the thread starting at [1], since all uses of TRAD_SYNOPSIS have been removed, and all uses of ANSI_SYNOPSIS have been renamed to SYNOPSIS, we can now warn about the use of these. [1] https://sourceware.org/ml/newlib/2017/msg01182.html Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
* makedoc: exit with non-zero status on errorJon Turney2017-12-071-8/+12
| | | | Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
* makedoc: make errors visibleJon Turney2017-12-0746-182/+139
| | | | | | | | | | | | Discard QUICKREF sections, rather than writing them to stderr Discard MATHREF sections, rather than discarding as an error Pass NOTES sections through to texinfo, rather than discarding as an error Don't redirect makedoc stderr to .ref file Remove makedoc output on error Remove .ref files from CLEANFILES Regenerate Makefile.ins Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
* cygwin: doc: cleanup cygutils infoCorinna Vinschen2017-12-054-39/+15
| | | | | | Especially don't keep on about d2u and u2d. Dos2unix exists. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: vfwscanf: fix negation bug in %[ conversionCorinna Vinschen2017-12-041-1/+1
| | | | | | | | | | | Old BSD bug: While ^ is recognized and the set of matching characters is negated, the code neglects to increment the pointer pointing to the matching characters. Thus, on a negation expression like %[^xyz], the matching doesn't only stop at x, y, or z, but incorrectly also on ^. Fix this by setting the start pointer after recognizing the ^. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* ssp: add Object Size Checking for wchar.h, part 1Yaakov Selkowitz2017-12-043-0/+109
| | | | | | | The following functions are also guarded in glibc: fwprintf, swprintf, wprintf, vfwprintf, vswprintf, vwprintf. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: document %l[ and bump API minorCorinna Vinschen2017-12-013-1/+8
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: vfscanf: Implement %l[Corinna Vinschen2017-12-011-2/+88
| | | | | | Just as %lc and %ls, this is only enabled on ELIX_LEVEL >= 2. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: vf[w]scanf: Fix conversion multibyte <-> wchar_tCorinna Vinschen2017-12-012-25/+53
| | | | | | | | | | | | | * vfscanf: per POSIX, if the target type is wchar_t, the width is counted in (multibyte) characters, not in bytes. * vfscanf: Handle UTF-8 multibyte sequences converted to surrogate pairs on UTF-16 systems. * vfwscanf: Don't count high surrogates in input against field width counting. Per POSIX, input is Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* newlib: vf[w]scanf: Drop width computation mixupCorinna Vinschen2017-12-012-70/+44
| | | | | | | | | | | | | | | | | | | The width value keeps the maximum field width. This is the maximum field width of the *input*. It's *never* to be used in conjunction with the number of bytes or characters written to the output argument. However, especially in vfwscanf, the code is partially taken from NetBSD which erroneously subtracts the number of multibyte chars written to the argument from the width variable, thus potentially subtracting up to MB_CUR_MAX from width for a single character in the input stream. To make matters worse, the previous patch adding %m added basically the same mistake for 'c' type input. Fix it. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* HOWTO: remove reference to TRAD_SYNOPSISYaakov Selkowitz2017-12-011-7/+1
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* mathfp: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0128-344/+28
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* math: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0128-310/+28
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* libm/machine: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-013-12/+3
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* complex: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0123-23/+23
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* libm/common: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0130-133/+30
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* unix: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-012-32/+2
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* time: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0112-83/+12
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* sys: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-014-34/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* string: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0185-546/+85
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* stdlib: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0150-607/+51
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* stdio64: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-017-81/+7
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* stdio: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0175-1022/+75
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* signal: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-013-29/+3
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* search: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-013-28/+3
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* reent: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0122-200/+25
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* posix: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-012-2/+2
|
* misc: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-013-12/+3
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* powerpc: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-018-231/+8
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* nds32: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-011-5/+1
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* microblaze: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-014-25/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* locale: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-015-21/+5
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* iconv: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-011-39/+1
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ctype: remove TRAD_SYNOPSISYaakov Selkowitz2017-12-0133-189/+33
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ssp: add Object Size Checking for unistd.h, part 2Yaakov Selkowitz2017-12-012-3/+44
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* cygwin: Document latest changes, bump API minorCorinna Vinschen2017-11-303-1/+26
| | | | Signed-off-by: Corinna Vinschen <corinna@vinschen.de>