Re: Virtual Windows folders - make them visible?

2020-11-19 Thread Biswapriyo Nath via Cygwin
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:

Re: Autoconf files need v2.69

2020-11-18 Thread Biswapriyo Nath via Cygwin
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:

Autoconf files need v2.69

2020-11-18 Thread Biswapriyo Nath via Cygwin
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 +++

How to compile only cygwin1.dll in newlib-cygwin repository?

2020-11-17 Thread Biswapriyo Nath via Cygwin
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:

Re: find_fast_cwd problem

2020-08-05 Thread Biswapriyo Nath via Cygwin
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:

Re: Default mingw _WIN32_WINNT

2020-05-04 Thread Biswapriyo Nath via Cygwin
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:

[PATCH] winsup/cygwin: remove defines added in mingw-w64 v7.0.0

2020-03-31 Thread Biswapriyo Nath via Cygwin
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

Re: ACL: Why SYSTEM doesn't have full access set on newly created files?

2020-03-26 Thread Biswapriyo Nath via Cygwin
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

Re: [ANNOUNCEMENT] Updated: w32api-{headers,runtime}-7.0.0-1 (x86/x86_64)

2019-11-14 Thread Biswapriyo Nath
Also, w32api-headers version 7 for x86_64 is missing. Link: https://cygwin.com/cgi-bin2/package-grep.cgi?grep=w32api=x86_64 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info:

Re: Update mingw-w64 headers

2019-10-28 Thread Biswapriyo Nath
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]:

Update mingw-w64 headers

2019-10-28 Thread Biswapriyo Nath
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:

Re: [ANNOUNCEMENT] cygwin 3.1.0-0.7 (TEST)

2019-10-24 Thread Biswapriyo Nath
> 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

Re: [ANNOUNCEMENT] cygwin 3.1.0-0.7 (TEST)

2019-10-24 Thread Biswapriyo Nath
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",

How does linker choose library with same function export?

2019-10-19 Thread Biswapriyo Nath
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:

Re: bash (3312) C:\tools\cygwin\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x180331408/0x18032D408.

2019-10-19 Thread Biswapriyo Nath
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

Re: assert does not show output in cygwin test build

2019-10-09 Thread Biswapriyo Nath
>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:

assert does not show output in cygwin test build

2019-10-09 Thread Biswapriyo Nath
* 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,

Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3

2019-09-03 Thread Biswapriyo Nath
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’?

Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3

2019-09-01 Thread Biswapriyo Nath
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()

Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3

2019-08-30 Thread Biswapriyo Nath
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

[ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3

2019-08-29 Thread Biswapriyo Nath
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

Use poll with Windows socket

2019-08-07 Thread Biswapriyo Nath
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

Function call difference between cygwin and Windows

2019-07-19 Thread Biswapriyo Nath
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

Re: AF_HYPERV address family not supported

2019-07-10 Thread Biswapriyo Nath
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:

Re: cygwin can not be compiled with gcc 8.3.0

2019-07-05 Thread Biswapriyo Nath
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]:

Re: cygwin can not be compiled with gcc 8.3.0

2019-07-05 Thread Biswapriyo Nath
> .. 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

cygwin can not be compiled with gcc 8.3.0

2019-07-05 Thread Biswapriyo Nath
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

AF_HYPERV address family not supported

2019-07-04 Thread Biswapriyo Nath
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