]>
sourceware.org Git - newlib-cygwin.git/log
Jeff Johnston [Thu, 18 Jan 2018 18:07:45 +0000 (13:07 -0500)]
Bump release to 3.0.0 for yearly snapshot
- major release required due to removal of K&R support
Chih-Mao Chen [Thu, 16 Nov 2017 08:08:16 +0000 (16:08 +0800)]
RISC-V: isatty: return 0 on error
Kito Cheng [Fri, 17 Nov 2017 06:50:52 +0000 (14:50 +0800)]
RISC-V: Fix alignment issue in sigjmp_buf
Yaakov Selkowitz [Mon, 4 Dec 2017 09:59:06 +0000 (03:59 -0600)]
ansification: remove ansidecl.h from makedoc
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 09:25:26 +0000 (03:25 -0600)]
ansification: fix makedoc for ANSI C
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 05:58:31 +0000 (23:58 -0600)]
ansification: remove _HAVE_STDC
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 05:54:48 +0000 (23:54 -0600)]
ansification: remove _EXFUN, _EXFUN_NOTHROW
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 04:52:13 +0000 (22:52 -0600)]
ansification: remove _EXFNPTR, _EXPARM
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 03:43:30 +0000 (21:43 -0600)]
ansification: remove _DEFUN
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 03:48:55 +0000 (21:48 -0600)]
ansification: remove _VOLATILE, _SIGNED
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 03:12:33 +0000 (21:12 -0600)]
ansification: remove _VOID
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 03:00:43 +0000 (21:00 -0600)]
ansification: remove _DEFUN_VOID
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 02:56:37 +0000 (20:56 -0600)]
ansification: remove _CAST_VOID
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 02:53:22 +0000 (20:53 -0600)]
ansification: remove _PTR
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 02:45:02 +0000 (20:45 -0600)]
ansification: remove _VOID_PTR
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 02:41:16 +0000 (20:41 -0600)]
ansification: remove _PARAMS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 02:32:27 +0000 (20:32 -0600)]
ansification: remove _NOARGS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 02:28:42 +0000 (20:28 -0600)]
ansification: remove _DOTS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 02:25:16 +0000 (20:25 -0600)]
ansification: remove _CONST
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Mon, 4 Dec 2017 01:31:41 +0000 (19:31 -0600)]
ansification: remove _AND
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Wed, 17 Jan 2018 09:03:23 +0000 (03:03 -0600)]
cygwin: add asm/bitsperlong.h, dummy asm/posix_types.h headers
These changes are necessary for cross-compiling the Linux kernel.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Tue, 16 Jan 2018 19:24:42 +0000 (13:24 -0600)]
Make __always_inline macro compatible with glibc
For example, this is used when cross-compiling the Linux kernel on Cygwin.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Tue, 16 Jan 2018 03:15:28 +0000 (21:15 -0600)]
cygwin: add LFS_CFLAGS etc. to confstr/getconf
These are used, for instance, when cross-compiling the Linux kernel.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Ivan Grokhotkov [Tue, 9 Jan 2018 06:07:25 +0000 (14:07 +0800)]
newlib: fvprintf: fix get_arg for !_MB_CAPABLE
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.
Alexander Fedotov [Mon, 25 Dec 2017 13:28:22 +0000 (16:28 +0300)]
fix incompatible pointer type for va_list in nano versions of printf and scanf for target like PowerPC
Jim Wilson [Tue, 26 Dec 2017 20:30:27 +0000 (12:30 -0800)]
RISC-V: Add gdb sim and newlib nano support. Fix a few misc minor bugs.
Jim Wilson [Tue, 26 Dec 2017 20:27:52 +0000 (12:27 -0800)]
RISC-V: Moved syscalls to separate files to fix aliasing problems.
Jim Wilson [Tue, 26 Dec 2017 20:26:19 +0000 (12:26 -0800)]
RISC-V: Updated syscall to take 6 arguments
Jim Wilson [Tue, 26 Dec 2017 20:24:45 +0000 (12:24 -0800)]
RISC-V: Add nanosleep functionality
Jim Wilson [Tue, 26 Dec 2017 20:18:42 +0000 (12:18 -0800)]
RISC-V: Fix libnosys build.
Brian Inglis [Fri, 22 Dec 2017 18:35:56 +0000 (11:35 -0700)]
cleanup winsup/doc/etc.{postinstall,preremove}.cygwin-doc.sh quote test variables, correct utility paths, define site in preremove
Brian Inglis [Fri, 22 Dec 2017 18:32:57 +0000 (11:32 -0700)]
winsup/doc/etc.postinstall.cygwin-doc.sh fix shell variable typo
Corinna Vinschen [Tue, 19 Dec 2017 17:58:06 +0000 (18:58 +0100)]
cygwin: block devices: fix file offset after short writes
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>
Corinna Vinschen [Mon, 18 Dec 2017 19:21:15 +0000 (20:21 +0100)]
Cygwin: document sigtimedwait and ftell{o} patch
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Mon, 18 Dec 2017 19:17:51 +0000 (20:17 +0100)]
newlib: ftello{64}: Handle appending stream without fflushing
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>
Corinna Vinschen [Mon, 18 Dec 2017 19:15:27 +0000 (20:15 +0100)]
newlib: ftello{64}: Fix type of returned value
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>
Martin Aberg [Sun, 17 Dec 2017 18:23:51 +0000 (19:23 +0100)]
newlib: Availability of _kill() in sys/signal.h
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.
Corinna Vinschen [Mon, 18 Dec 2017 18:44:30 +0000 (19:44 +0100)]
Cygwin: rearrange sigwait functions, convert sigwait_common to inline
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Mark Geisert [Fri, 15 Dec 2017 01:05:55 +0000 (17:05 -0800)]
Cygwin: Implement sigtimedwait
Abstract out common code from sigwait/sigwaitinfo/sigtimedwait to
implement the latter.
Corinna Vinschen [Mon, 18 Dec 2017 18:42:42 +0000 (19:42 +0100)]
winsup: Belatedly add Mark Geisert to CONTRIBUTORS
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Jim Wilson [Tue, 12 Dec 2017 19:39:13 +0000 (11:39 -0800)]
newlib: Don't do double divide in powf.
* Use 0.0f instead of 0.0 in divide.
Jim Wilson [Tue, 12 Dec 2017 19:38:01 +0000 (11:38 -0800)]
Don't call double rint from float powf.
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.
Jim Wilson [Tue, 12 Dec 2017 00:14:18 +0000 (16:14 -0800)]
Update MAINTAINERS file email address.
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.
Corinna Vinschen [Sun, 10 Dec 2017 13:32:34 +0000 (14:32 +0100)]
cygwin: add mmap fork fix to 2.10.0 release test
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Sun, 10 Dec 2017 13:11:41 +0000 (14:11 +0100)]
cygwin: mmap: fix comment and formatting, drop unused code
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Sun, 10 Dec 2017 13:11:03 +0000 (14:11 +0100)]
cygwin: mmap: fix a fork failure with private, anonymous mappings
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>
Jon Turney [Mon, 6 Mar 2017 17:45:40 +0000 (17:45 +0000)]
cygwin: Improve discussion of linker library ordering in faq-programming
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Jon Turney [Tue, 5 Dec 2017 18:40:44 +0000 (18:40 +0000)]
makedoc: warn about some obsolete and deprecated commands
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>
Jon Turney [Mon, 4 Dec 2017 18:24:55 +0000 (18:24 +0000)]
makedoc: exit with non-zero status on error
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Jon Turney [Mon, 4 Dec 2017 18:08:28 +0000 (18:08 +0000)]
makedoc: make errors visible
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>
Corinna Vinschen [Tue, 5 Dec 2017 16:58:02 +0000 (17:58 +0100)]
cygwin: doc: cleanup cygutils info
Especially don't keep on about d2u and u2d. Dos2unix exists.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Mon, 4 Dec 2017 16:05:11 +0000 (17:05 +0100)]
newlib: vfwscanf: fix negation bug in %[ conversion
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>
Yaakov Selkowitz [Fri, 1 Dec 2017 18:45:14 +0000 (12:45 -0600)]
ssp: add Object Size Checking for wchar.h, part 1
The following functions are also guarded in glibc:
fwprintf, swprintf, wprintf, vfwprintf, vswprintf, vwprintf.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Corinna Vinschen [Fri, 1 Dec 2017 17:21:59 +0000 (18:21 +0100)]
cygwin: document %l[ and bump API minor
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Fri, 1 Dec 2017 16:53:59 +0000 (17:53 +0100)]
newlib: vfscanf: Implement %l[
Just as %lc and %ls, this is only enabled on ELIX_LEVEL >= 2.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Fri, 1 Dec 2017 16:18:26 +0000 (17:18 +0100)]
newlib: vf[w]scanf: Fix conversion multibyte <-> wchar_t
* 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>
Corinna Vinschen [Fri, 1 Dec 2017 12:47:26 +0000 (13:47 +0100)]
newlib: vf[w]scanf: Drop width computation mixup
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>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:52:35 +0000 (02:52 -0600)]
HOWTO: remove reference to TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:51:13 +0000 (02:51 -0600)]
mathfp: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:45:57 +0000 (02:45 -0600)]
math: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:37:42 +0000 (02:37 -0600)]
libm/machine: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:37:04 +0000 (02:37 -0600)]
complex: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:36:17 +0000 (02:36 -0600)]
libm/common: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:23:19 +0000 (02:23 -0600)]
unix: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:22:31 +0000 (02:22 -0600)]
time: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:21:24 +0000 (02:21 -0600)]
sys: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:20:06 +0000 (02:20 -0600)]
string: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:17:18 +0000 (02:17 -0600)]
stdlib: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:06:47 +0000 (02:06 -0600)]
stdio64: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:05:02 +0000 (02:05 -0600)]
stdio: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 07:43:14 +0000 (01:43 -0600)]
signal: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 07:41:48 +0000 (01:41 -0600)]
search: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 07:41:14 +0000 (01:41 -0600)]
reent: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 08:01:32 +0000 (02:01 -0600)]
posix: remove TRAD_SYNOPSIS
Yaakov Selkowitz [Thu, 30 Nov 2017 07:39:06 +0000 (01:39 -0600)]
misc: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 07:38:25 +0000 (01:38 -0600)]
powerpc: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 07:38:06 +0000 (01:38 -0600)]
nds32: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 07:37:32 +0000 (01:37 -0600)]
microblaze: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 07:20:53 +0000 (01:20 -0600)]
locale: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 07:19:48 +0000 (01:19 -0600)]
iconv: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 07:17:11 +0000 (01:17 -0600)]
ctype: remove TRAD_SYNOPSIS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 21:38:15 +0000 (15:38 -0600)]
ssp: add Object Size Checking for unistd.h, part 2
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Corinna Vinschen [Thu, 30 Nov 2017 20:57:16 +0000 (21:57 +0100)]
cygwin: Document latest changes, bump API minor
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Thu, 30 Nov 2017 20:50:23 +0000 (21:50 +0100)]
newlib: vf[w]scanf: Implement POSIX %m modifier
* The new code is guarded with _WANT_IO_POSIX_EXTENSIONS, but
this is automatically enabled with _WANT_IO_C99_FORMATS for now.
* vfscanf neglects to implement %l[, so %ml[ is not implemented yet
either.
* Sidenote: vfwscanf doesn't allow ranges in %[ yet. Strictly this
is allowed per POSIX, but it differes from vfscanf as well as from
glibc.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Thu, 30 Nov 2017 20:34:29 +0000 (21:34 +0100)]
cygwin: [w]mempcpy: fix global symbol
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Thu, 30 Nov 2017 09:47:38 +0000 (10:47 +0100)]
cygwin: x86_64: implement mempcpy/wmempcpy in assembler
* change memcpy to internal _memcpy not setting the return value in %rax
* implement all memcpy-like functions as caller to _memcpy, setting %rax
to correct return value beforehand. This is possible because _memcpy
does not use %rax at all
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Thu, 30 Nov 2017 20:02:38 +0000 (21:02 +0100)]
newlib: vfwscanf: fix miscomputation of max field width in %[] case
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Yaakov Selkowitz [Thu, 30 Nov 2017 05:18:05 +0000 (23:18 -0600)]
Feature test macros overhaul: unistd.h, part 3
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 03:17:09 +0000 (21:17 -0600)]
ssp: add Object Size Checking for stdlib.h
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Corinna Vinschen [Thu, 30 Nov 2017 10:55:27 +0000 (11:55 +0100)]
newlib: vf[w]scanf: add validity checks
POSIX requires that directive characters appear in a certain sequence:
1. '%' or '%<n>$'
2. optional '*'
3. optional field width digits
4. optional 'm' (not yet implemented)
5. optional length modifier ('l', 'L', 'll', 'h', 'hh', 'j', 't', 'z')
6. conversion specifier ('d', 's', etc)
Add a few basic validity checks to that effect, otherwise reject
directive as match failure.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Thu, 30 Nov 2017 10:40:34 +0000 (11:40 +0100)]
newlib: vf[w]scanf: Use SIZE_MAX rather than ~0
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Thu, 30 Nov 2017 10:38:32 +0000 (11:38 +0100)]
newlib: vfscanf: fix formatting
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Thu, 30 Nov 2017 10:36:04 +0000 (11:36 +0100)]
newlib: vf[w]scanf: Only return from a single point to simplify cleanup
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Yaakov Selkowitz [Thu, 30 Nov 2017 01:47:13 +0000 (19:47 -0600)]
cygwin: export wmempcpy
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Thu, 30 Nov 2017 01:45:56 +0000 (19:45 -0600)]
string: add wmempcpy
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Wed, 29 Nov 2017 17:38:54 +0000 (11:38 -0600)]
cygwin: add Object Size Checking to sys/socket.h
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Wed, 29 Nov 2017 17:38:17 +0000 (11:38 -0600)]
cygwin: add Object Size Checking to sys/poll.h
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Sebastian Huber [Tue, 28 Nov 2017 07:00:33 +0000 (08:00 +0100)]
RTEMS: Add semaphore <sys/lock.h> functions
Declare semaphore try wait and post binary functions.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Sebastian Huber [Tue, 28 Nov 2017 06:59:44 +0000 (07:59 +0100)]
RTEMS: Timed wait by ticks <sys/lock.h> functions
Declare timed wait by ticks functions.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Sebastian Huber [Tue, 28 Nov 2017 06:57:51 +0000 (07:57 +0100)]
RTEMS: Add set/get name <sys/lock.h> functions
Add inline functions to set/get the name.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This page took 0.064336 seconds and 5 git commands to generate.