| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
'-fno-exceptions -fno-rtti' are already present in the compile command
COMPILE.cc set by Makefile.common, so we don't need to add them to
CXXFLAGS as well.
|
|
|
|
|
|
|
| |
Invoke grep in text mode when looking for version strings inside the
cygwin DLL, so it outputs something more informative than:
Binary file ../cygwin/cygwin0.dll matches
|
|
|
|
|
|
|
|
|
|
|
|
| |
The overflow check in mEMALIGn erroneously checks for INT_MAX,
albeit the input parameter is size_t. Fix this to check for
__SIZE_MAX__ instead. Also, it misses to check the req against
adding the alignment before calling mALLOc.
While at it, add out-of-bounds checks to pvALLOc, nano_memalign,
nano_valloc, and Cygwin's (unused) dlpvalloc.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
| |
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
| |
Don't call cstrdup on NULL pointers.
This fixes a crash that was observed when cloning an fhandler whose
path_conv member had freed its strings.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Replace the 'WCHAR pipe_name_buf[48]' class member by 'PWCHAR
pipe_name_buf', and allocate space for the latter as needed.
Change the default constructor to accommodate this change, and add a
destructor that frees the allocated space.
Also change get_pipe_name and clone to accommodate this change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By default, libltp tests will create temporary files in a subdirectory
of /tmp, which will (nowadays) be located relative to the test DLL (by
assuming that it is in /bin). This will evaluate to the directory
$target_builddir/winsup/tmp, which doesn't exist.
The location used for these temporary files can be explicitly controlled
by setting the TDIRECTORY env var. Arrange to set that env var to the
/cygdrive path of a tmp subdirectory of the build directory.
Unfortunately, libltp doesn't clean the temporary directory if
TDIRECTORY is set, and some tests assume they are started in a clean
directory, so we need to do that in tcl.
|
|
|
|
|
|
| |
Set the PATH so that tests can pick up cygwin0.dll. Looks like this was
dropped by accident in 2e488e95 ("Don't rely on in-build tools"), so
restore it as it was prior to 9d89f634.
|
|
|
|
|
| |
In winsup.exp, don't consider a command failed if it produced any output
(e.g. if the compiler produced warnings). Instead check the exit code.
|
|
|
|
|
| |
Use an absolute path to libltp includes, to allow for the fact that
we'll be compiling tests in a subdirectory.
|
|
|
|
|
|
|
| |
Drop MINGW_FE, which I can't find any trace of, and instead detect and
use MinGW compilers.
This requires adding AC_CANONICAL_TARGET, to set $target_cpu.
|
|
|
|
|
|
|
|
|
| |
This is now required as cygwin_build is defined in terms of
target_builddir.
(Note that in other subdirectories, the autoconf variable
target_builddir is AC_SUBST-ed as a side-effect of using a macro from
winsup/acinclude.m4, which is perhaps less than ideal)
|
|
|
|
| |
Move adding libltp to the VPATH after Makefile.common, which sets VPATH.
|
|
|
|
|
| |
Avoid a 'Makefile.in seems to ignore the --datarootdir setting' warning
when configuring in testsuite directory.
|
| |
|
|
|
|
|
| |
Doing this properly using AC_CONFIG_SUBDIRS is necessary to get the
correct paths in flags given to the compiler specified in CC/CXX.
|
|
|
|
| |
Also remove unneeded aclocal.m4 for an old aclocal version.
|
| |
|
|
|
|
|
| |
That script appends a '-E', since we only use $(CC) to preprocess, and
thus adding '-c' is having no effect.
|
|
|
|
| |
Untouched since added in 66a83f3e, and described as 'non-working'.
|
|
|
|
| |
defined
|
|
|
|
|
|
|
|
| |
The autoconf variable all_host is used to make building of the stub
library used by the testsuite conditional on not cross-compiling.
Make it unconditional, so we will notice if it's broken when
cross-compiling.
|
|
|
|
|
| |
Remove autoconf variable DLL_NAME, which has a constant value which is
only used in one place.
|
|
|
|
|
| |
The autoconf variable build_exeext isn't defined, and (since the doc
subdirectory doesn't build any executables) it's value isn't used.
|
| |
|
|
|
|
|
|
|
| |
This reverts commit 74a164f1c162645f4389bbd9edb2f89a630853af.
Shame we can't use '&:' for a grouped target here, since that requires
GNU make 4.3
|
|
|
|
|
|
|
|
|
|
|
| |
b55e3f19 was a bit too aggressive in dropping, rather than just
un-exporting these Makefile variables. We need to set these to the
configured host compiler if we are cross-compiling, otherwise they
default to the build compiler.
Also export CC to the mkvers.sh script (which requires it since
4eca5e6a). It's unclear why we can't just cause windres to use the
build 'cpp' as the pre-processor there.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The return value is now -NaN.
This fixes a bug in the mingw-w64 code that was imported into Cygwin.
The fix is consistent with Posix and Linux. It is also consistent
with the current mingw-w64 code, with one exception: The mingw-w64
code sets errno to EDOM if the input is -NaN, but this appears to
differ from Posix and Linux.
Addresses: https://cygwin.com/pipermail/cygwin/2020-October/246606.html
|
|
|
|
|
|
|
|
| |
- Calling ResizePseudoConsole() generates some escape sequences.
Due to this behaviour, if the output of non-cygwin app is piped
to less, screen is sometimes distorted when the screen is resized.
With this patch, ResizePseudoConsole() is not called if stdout is
redirected.
|
|
|
|
|
|
| |
- If output of non-cygwin process is piped to cygwin process, such
as less, the non-cygwin process sometimes fails to start and hangs.
This patch fixes the issue.
|
|
|
|
|
|
| |
If MSG_WAITALL is set, recv_internal calls WSARecv or WSARecvFrom in a
loop, in an effort to fill all the scatter-gather buffers. The test
for whether all the buffers are full was previously incorrect.
|
| |
|
|
|
|
|
| |
Drop do-nothing install_host target, which is only used when not
cross-compiling.
|
|
|
|
| |
It's used in one place, and it's value is unconditional.
|
|
|
|
|
| |
Express that gendef generates sigfe.s and cygwin.def in a slightly less
nutty way.
|
|
|
|
| |
The data it contains isn't referenced since 9e9bc3a4.
|
|
|
|
| |
Remove lsaauth, not built since 2741dd05.
|
|
|
|
|
|
| |
In autogen.sh, use 'aclocal --system-acdir' rather than 'aclocal --acdir'.
'--acdir' was deprecated in automake 1.11 and removed in automake 1.13.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ccwrap massages the compiler's standard include directories to remove
'/usr/include/w32api', with the intent of allowing it to be overriden by
'--with-windows-headers' (See 4c36016b).
I'm not 100% convinced that this is always working as desired, since in
some places w32api includes are done using <w32api/something.h>, which
will find them via the path /usr/include.
If this does turn out to be needed, this could also be implemented by
constructing the appropriate compiler flags once, rather than on every
compiler invocation.
|
|
|
|
|
|
| |
Stop using c++wrap for MinGW-compiled utilities.
(Partially reverts 96079146)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As discussed in GCC bug 97088
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97088), parameters in
prototypes of library functions should use reserved names, or no name
at all.
This patch moves the internal struct __tzrule_struct to its own
internal header sys/_tz_structs.h. This is included from newlib's
time code as well as from Cygwin's localtime wrapper.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
| |
Remove doc/ug-info.xml, not used in any document.
|
| |
|
|
|
|
|
| |
Remove autoconf variable INSTALL_LICENSE, which has a constant value
which is only used once.
|
|
|
|
|
|
| |
The autoconf variable LIBSERVER isn't defined, and it's value isn't
used. (The Makefile.in contains a literal value for the name of this
library instead).
|
|
|
|
| |
Not done consistently, and probably never used.
|
|
|
|
|
|
|
|
| |
This is only needed if we are using an ancient make which doesn't set
${MAKE}, but we say "This makefile requires GNU make." everywhere.
It only has an effect if @SET_MAKE@ is used, which we aren't doing
consistently.
|
|
|
|
|
| |
This used to turn off -nostdinc on a per-file basis, but has no effect
since 4c36016b5706.
|