From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin-patches@cygwin.com
Subject: Re: [PATCH] Cygwin: redefine some macros for Linux compatibility
Date: Thu, 7 Jul 2022 10:44:28 +0200 [thread overview]
Message-ID: <Ysac7M2R4NKpDMHK@calimero.vinschen.de> (raw)
In-Reply-To: <b3d8d4c2-59f6-e3c4-4394-1a77a6ad9c9d@cornell.edu>
On Jul 6 16:51, Ken Brown wrote:
> On 7/6/2022 4:25 PM, Ken Brown wrote:
> > Patch attached.
> >
> > I wasn't sure whether the API bump was warranted for such a trivial
> > change. But the fact is that some programs compiled prior to the patch
> > will behave differently if they are recompiled after the patch. For
> > example, emacs limits the number of open subprocesses to FD_SETSIZE, so
> > this number will change when emacs is recompiled for Cygwin 3.4.0. Is
> > that a good enough reason to bump the API?
>
> Oh, wait a minute there's already been an API bump from 341 to 342, so I
> guess there's no need for another. I could just add the FD_SETSIZE and
> NOFILE changes to the explanation for that bump.
Just bump. It doesn't hurt.
The patch is fine. I was going to say we should drop OPEN_MAX, too,
just as on Linux, but that would be wrong because we really use OPEN_MAX
as a limit.
Thanks,
Corinna
Idle musing:
We could think about dropping OPEN_MAX, too. getdtablesize() and
sysconf(_SC_OPEN_MAX) could be implemented as requesting the rlimit_cur
value of getrlimit(RLIMIT_NOFILE), as in glibc. Per the current Linux
source, the start values for RLIMIT_NOFILE are 1024 as soft, and 4096 as
hard limit...
prev parent reply other threads:[~2022-07-07 8:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 20:25 Ken Brown
2022-07-06 20:51 ` Ken Brown
2022-07-07 8:44 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Ysac7M2R4NKpDMHK@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin-patches@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).