[PATCH v2] Cygwin: Have tmpfile(3) use O_TMPFILE

2021-02-10 Thread Mark Geisert
Per discussion on cygwin-developers, a Cygwin tmpfile(3) implementation has been added to syscalls.cc. This overrides the one supplied by newlib. Then the open(2) flag O_TMPFILE was added to the open call that tmpfile internally makes. This v2 patch removes O_CREAT from open() call as O_TMPFILE

Re: [PATCH] Cygwin: pty: Reduce unecessary input transfer.

2021-02-10 Thread Takashi Yano via Cygwin-patches
On Wed, 10 Feb 2021 18:02:59 +0900 Takashi Yano wrote: > - Currently, input transfer is performed every time one line is read(), > if the non-cygwin app is running in the background. With this patch, > transfer is triggered by setpgid() rather than read() so that the > unnecessary input trans

Re: [PATCH] Cygwin: Have tmpfile(3) use O_TMPFILE

2021-02-10 Thread Corinna Vinschen via Cygwin-patches
On Feb 10 01:07, Mark Geisert wrote: > Hi Corinna, > > Corinna Vinschen via Cygwin-patches wrote: > > Hi Mark, > > > > On Feb 9 02:50, Mark Geisert wrote: > > > Per discussion on cygwin-developers, a Cygwin tmpfile(3) implementation > > > has been added to syscalls.cc. This overrides the one su

Re: [PATCH] Cygwin: Have tmpfile(3) use O_TMPFILE

2021-02-10 Thread Mark Geisert
Hi Corinna, Corinna Vinschen via Cygwin-patches wrote: Hi Mark, On Feb 9 02:50, Mark Geisert wrote: Per discussion on cygwin-developers, a Cygwin tmpfile(3) implementation has been added to syscalls.cc. This overrides the one supplied by newlib. Then the open(2) flag O_TMPFILE was added to

[PATCH] Cygwin: pty: Reduce unecessary input transfer.

2021-02-10 Thread Takashi Yano via Cygwin-patches
- Currently, input transfer is performed every time one line is read(), if the non-cygwin app is running in the background. With this patch, transfer is triggered by setpgid() rather than read() so that the unnecessary input transfer can be reduced much in that situation. --- winsup/cygwin/f