Here is the sample code that I've tried.
#include
#include
#include
#ifndef AF_HYPERV
#define AF_HYPERV 34
#endif
int main(void)
{
int s = socket(AF_HYPERV, SOCK_STREAM, 0);
if (s > 0)
printf("success\n");
else
printf("%s\n", strerror(errno));
}
Is this by-design? Or am I
make command shows:
```
In file included from /d/newlib-cygwin/winsup/cygwin/aio.cc:10:
/d/newlib-cygwin/winsup/cygwin/path.h: In member function 'path_conv&
path_conv::eq_worker(const path_conv&, const char*)':
/d/newlib-cygwin/winsup/cygwin/path.h:316:33: error: 'void*
memcpy(void*, const void*,
> .. uhm, sort of ... [1] is deprecated
If it is deprecated then why the FAQ is not fixed yet?
> cygwin is built using cygport ...
Is there any docs about it? I don't find the cygwin.cygport file in source
tree. Also I don't use source tarballs, git is my first choice. Also the
configure script
Now I'm sure that the issue in cygwin source code. I've installed all the
components. Also find same issue[1] provided a year ago. Cygwin needs some
papering[2] for gcc 8.3.0.
[1]: https://github.com/Tencent/rapidjson/issues/1246
[2]:
https://github.com/mintty/mintty/commit/f7df4adf1775638b2aa75
Can anyone provide a function calls between cygwin socket() and Windows
socket() as a flowchart? For example, with AF_INET.
In source code (fhandler_socket_inet::socket), I see bunch of function
pointers which seems confusing to me.
--
Problem reports: http://cygwin.com/problems.html
FAQ:
If a function calls both cygwin and Windows functions the binary creates
extra subroutine (in assembly) for cygwin ones. Example:
* Windows function:
call cs:CreatePipe
* cygwin function:
call ioctl
ioctl proc near
jmp cs:__imp_ioctl
endp
The binary is statically compiled. Why
I've tried to use poll() with a Windows socket (from WSASocket) and a
cygwin side file descriptor (fd). But it is only signaled for fd only.
At first, I have seen that fhandler_socket_wsock::set_socket_handle() casts
SOCKET to int. So, is it possible to use poll() with the SOCKET type? Or Is
there
On Thursday, August 29, 2019, Corinna Vinschen
wrote:
> Support the new pseudo console in PTY. Pseudo console is a new feature
in Windows 10 1809, which provides console APIs on virtual terminal.
Some queries about this specific feature:
1a. In fhandler_pty_mater::ioctl function, shouldn't the
On Friday, August 30, 2019, Takashi Yano wrote:
> If ioctl(TIOCSWINSZ, ...)
is called from other process, it fails.
The HPCON isn't a handle. It's a pointer of a struct of three handles. In
my opinion, I think it's consistent with pty functions in libc. Like in
forkpty(2) the pid is returned in
To Corinna Vinschen:
> We can only use what's part of the current w32api-headers package.
I occasionally contribute to mingw-w64 repository. Is there anything I can
do so that cygwin uses latest headers and libraries from mingw-w64?
To Takashi Yano:
> Then, is it possible to DuplicateHandle() f
While compiling cygwin with gcc version 7.4.0 (GCC) this error is shown:
Making all in reent
/d/newlib-cygwin/newlib/libc/reent/execr.c: In function ‘_wait_r’:
/d/newlib-cygwin/newlib/libc/reent/execr.c:120:14: warning: implicit
declaration of function ‘_wait’; did you mean ‘wait’?
[-Wimplicit-fun
* mintty version: mintty 3.0.6 (x86_64-pc-cygwin)
* cygwin version: 3.1.0-0.6
* code:
#include
int main() {
int x = 1;
assert(x == 0);
}
* Expected result: The terminal should show this message which appers
in latest stable cygwin version.
assertion "x == 0" failed: file "test.c", line 6, f
>From Takashi Yano's query, I ran those command, the last one shows the
assertion output. But wait! I rename the home folder (~) in cygwin
then revert it back. Now there is no issue. Don't know what happened.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://c
It seems to be issue in Travis CI. See this forum post:
https://travis-ci.community/t/cygwin-issue-cygheap-base-mismatch-detected/5359
If you are in hurry you can use Appveyor CI. I'm using it without any
issue. One has to just add `C:\cygwin64\bin` in PATH variable in YAML file.
--
Problem repo
I want to use socket() from ws2_32.dll file. But cygwin1.dll also has that
export. When I use `-lws2_32` option, will gcc **always** choose
ws2_32.lib? My query is somewhat similar with FAQ #5.11.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/fa
While using GetFileType API upon standard console handle, GetLastError
shows error code 187 aka. ERROR_SEM_NOT_FOUND. GetLastError shows 0
(zero) in stable cygwin version. Here is the test code:
#include
#include
int main(void)
{
SetLastError(0);
printf("%d (%d)\n", GetFileType(GetStdHa
> I cannot reproduce the problem
Why everything happen to my PC :( Maybe this issue in my setup.
> Could you please let us know more detail about your environment, compiler,
> etc?
Windows 10 Pro Insider build 19008 x86_64. GCC 8.3.0.
> What happens if you execute cmd.exe?
No error code in cm
The C header files are way behind the current mingw-w64 repository. Can you
update that package in cygwin?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin
I did not mean the release page [1]. I mean the cygwin headers is older
than the current mingw-w64 git repository [2]. The latest tag is v6.0.0.
[3]
Wait, did you mean there should be a new "stable" tag or release in
mingw-w64 so that cygwin can import it?
[1]: http://mingw-w64.org/doku.php/downl
Also, w32api-headers version 7 for x86_64 is missing.
Link: https://cygwin.com/cgi-bin2/package-grep.cgi?grep=w32api&arch=x86_64
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe i
Same issue here. I use git in msys2 for correct file permissions. Also
if I install cygwin and reinstall Windows 10 OS then Windows programs
can not edit any cygwin files. I have to take ownership with takeown
and icacls commands then chmod the files.
I found a temporary workaround. 1. Add `noacl`
Patch file attached.
From fcc8f83f4d47ba9f755725c64218f2f13e9a8e2d Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath
Date: Wed, 1 Apr 2020 11:20:00 +0530
Subject: [PATCH] winsup/cygwin: remove defines added in mingw-w64 v7.0.0
Signed-off-by: Biswapriyo Nath
---
winsup/cygwin/mmap.cc | 3
Chaging the defines in package may break others installation. You can set
the version in source code as you need, for example:
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x602
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation:
By "Linux", if you mean Linux kernel then try to use new Windows Subsystem
for Linux (WSL) or any GNU/Linux operating system in a virtual machine.
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.ht
Is it possible to compile only cygwin1.dll in newlib-cygwin
repository? I want to skip building all docs and the installation of
xmlto like programs. Also there is an error:
../../../../winsup/cygwin/gendef: No such file or directory
Any hint?
--
Problem reports: https://cygwin.com/problems.ht
Currently the autoconf files in newlib-cygwin repo are in 2.64 version
but the latest autoconf package is version 2.69. So, autoreconf
command shows errors. Possible diff attached.
diff --git a/config/override.m4 b/config/override.m4
index 52bd1c3..1c3c298 100644
--- a/config/override.m4
+++ b/conf
I am not familiar with newlib. Please feel free whatever you want to
do with my previously provided diff. Also my previous question is
unanswered.
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.ht
One query. I can do `cd /c/Windows/Sysnative` in x86 cygwin. What's
the point of having a virtual folder?
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.c
28 matches
Mail list logo