summaryrefslogtreecommitdiffstats
path: root/newlib
Commit message (Collapse)AuthorAgeFilesLines
* 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-1736-440/+1
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _EXFUN, _EXFUN_NOTHROWYaakov Selkowitz2018-01-1789-1800/+1742
| | | | 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-17622-2372/+1220
| | | | 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-1739-104/+102
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _DEFUN_VOIDYaakov Selkowitz2018-01-1743-89/+87
| | | | 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-1771-228/+226
| | | | 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-1730-379/+373
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _NOARGSYaakov Selkowitz2018-01-171-3/+1
| | | | 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-17321-1146/+1144
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* ansification: remove _ANDYaakov Selkowitz2018-01-17453-1688/+1686
| | | | 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-161-0/+4
| | | | | | 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 nanosleep functionalityJim Wilson2017-12-261-1/+1
|
* 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.
* 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.
* 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>
* 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>
* 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>