Yaakov Selkowitz
00bf01789e
cygwin: update docs for 2.10.0
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-19 13:19:22 -06:00
Yaakov Selkowitz
e5d52a2db9
cygwin: add gencat tool
...
This is needed for compiling catalog files used in catgets(3) calls.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-19 13:19:21 -06:00
Yaakov Selkowitz
cadc12f695
cygwin: add catopen, catgets, catclose
...
The implementation is taken from FreeBSD with #ifdef __CYGWIN__ modifications.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-19 13:19:21 -06:00
Yaakov Selkowitz
bd62f539de
Guard langinfo.h nl_item from multiple typedefs
...
This is a prerequisite of adding nl_types.h support to Cygwin.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-19 13:19:21 -06:00
Orlando Arias
b7e0f286a2
Fix syntax error in exit.c
...
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.
2018-01-19 19:58:10 +01:00
Yaakov Selkowitz
061710370c
cygwin: make <sys/socket.h> completely visible from <netinet/in.h>
...
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>
2018-01-19 12:08:27 -06:00
Yaakov Selkowitz
fa47495755
cygwin: remove inclusion of <sys/time.h> from <sys/socket.h>
...
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>
2018-01-19 12:08:26 -06:00
Jeff Johnston
fffd2770db
Bump release to 3.0.0 for yearly snapshot
...
- major release required due to removal of K&R support
2018-01-18 13:07:45 -05:00
Chih-Mao Chen
f2c9e55faf
RISC-V: isatty: return 0 on error
2018-01-18 09:21:10 +01:00
Kito Cheng
cba678ba02
RISC-V: Fix alignment issue in sigjmp_buf
2018-01-18 09:21:10 +01:00
Yaakov Selkowitz
4cd1905add
ansification: remove ansidecl.h from makedoc
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:33 -06:00
Yaakov Selkowitz
7bfa24c495
ansification: fix makedoc for ANSI C
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:32 -06:00
Yaakov Selkowitz
7192f84096
ansification: remove _HAVE_STDC
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:30 -06:00
Yaakov Selkowitz
70ee6b17df
ansification: remove _EXFUN, _EXFUN_NOTHROW
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:29 -06:00
Yaakov Selkowitz
77f16db546
ansification: remove _EXFNPTR, _EXPARM
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:27 -06:00
Yaakov Selkowitz
9087163804
ansification: remove _DEFUN
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:26 -06:00
Yaakov Selkowitz
44276afe2a
ansification: remove _VOLATILE, _SIGNED
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:21 -06:00
Yaakov Selkowitz
67ee0cac4c
ansification: remove _VOID
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:20 -06:00
Yaakov Selkowitz
fff27f8429
ansification: remove _DEFUN_VOID
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:19 -06:00
Yaakov Selkowitz
670b01da7f
ansification: remove _CAST_VOID
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:17 -06:00
Yaakov Selkowitz
e6321aa6a6
ansification: remove _PTR
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:16 -06:00
Yaakov Selkowitz
0403b9c8c4
ansification: remove _VOID_PTR
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:14 -06:00
Yaakov Selkowitz
eea249da3b
ansification: remove _PARAMS
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:13 -06:00
Yaakov Selkowitz
e13e191b60
ansification: remove _NOARGS
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:11 -06:00
Yaakov Selkowitz
2310096fbc
ansification: remove _DOTS
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:10 -06:00
Yaakov Selkowitz
0bda30e1ff
ansification: remove _CONST
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:08 -06:00
Yaakov Selkowitz
6783860a2e
ansification: remove _AND
...
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:05 -06:00
Yaakov Selkowitz
1e39db3062
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>
2018-01-17 03:09:35 -06:00
Yaakov Selkowitz
82339fcd71
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>
2018-01-16 13:24:42 -06:00
Yaakov Selkowitz
2cb24159fb
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>
2018-01-16 12:12:45 -06:00
Ivan Grokhotkov
1d01586b62
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.
2018-01-09 09:52:18 +01:00
Alexander Fedotov
fcd33916ac
fix incompatible pointer type for va_list in nano versions of printf and scanf for target like PowerPC
2018-01-08 11:05:05 +01:00
Jim Wilson
9588ff7555
RISC-V: Add gdb sim and newlib nano support. Fix a few misc minor bugs.
2017-12-26 12:31:33 -08:00
Jim Wilson
28d5b98038
RISC-V: Moved syscalls to separate files to fix aliasing problems.
2017-12-26 12:27:52 -08:00
Jim Wilson
347b083911
RISC-V: Updated syscall to take 6 arguments
2017-12-26 12:26:19 -08:00
Jim Wilson
a6633677b9
RISC-V: Add nanosleep functionality
2017-12-26 12:24:45 -08:00
Jim Wilson
e807c51d78
RISC-V: Fix libnosys build.
2017-12-26 12:18:42 -08:00
Brian Inglis
3cc77b4f29
cleanup winsup/doc/etc.{postinstall,preremove}.cygwin-doc.sh quote test variables, correct utility paths, define site in preremove
2017-12-22 20:15:32 +01:00
Brian Inglis
ae3bd4f49e
winsup/doc/etc.postinstall.cygwin-doc.sh fix shell variable typo
2017-12-22 20:15:32 +01:00
Corinna Vinschen
eb4bfe4621
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>
2017-12-19 18:58:06 +01:00
Corinna Vinschen
d5abcdd5a7
Cygwin: document sigtimedwait and ftell{o} patch
...
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-12-18 20:21:15 +01:00
Corinna Vinschen
6e5b39940a
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>
2017-12-18 20:17:51 +01:00
Corinna Vinschen
dc2d175721
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>
2017-12-18 20:15:27 +01:00
Martin Aberg
1251555311
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.
2017-12-18 19:58:05 +01:00
Corinna Vinschen
7af691a784
Cygwin: rearrange sigwait functions, convert sigwait_common to inline
...
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-12-18 19:46:35 +01:00
Mark Geisert
24ff42d79a
Cygwin: Implement sigtimedwait
...
Abstract out common code from sigwait/sigwaitinfo/sigtimedwait to
implement the latter.
2017-12-18 19:46:18 +01:00
Corinna Vinschen
314ddf908c
winsup: Belatedly add Mark Geisert to CONTRIBUTORS
...
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-12-18 19:46:18 +01:00
Jim Wilson
c874f1145f
newlib: Don't do double divide in powf.
...
* Use 0.0f instead of 0.0 in divide.
2017-12-13 11:33:19 +01:00
Jim Wilson
c338bc2255
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.
2017-12-13 11:03:10 +01:00
Jim Wilson
efce18d754
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.
2017-12-12 13:50:30 +01:00