public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: setrlimit always fails
Date: Tue, 16 Feb 2021 11:33:43 -0700	[thread overview]
Message-ID: <58dfae9d-3fe5-4245-b4fd-8ff80bf6d8fe@SystematicSw.ab.ca> (raw)
In-Reply-To: <2dd8de1e-f29f-534e-a476-fc65162d09cf@gmail.com>

On 2021-02-16 08:22, Marco Atzeri via Cygwin wrote:
> On 16.02.2021 15:53, Patrick Chkoreff wrote:
>> Corinna Vinschen wrote on 2/15/21 3:48 PM:
>>
>>> On Feb 15 14:54, Patrick Chkoreff wrote:
>>>> Corinna Vinschen wrote on 2/15/21 4:14 AM:
>>>> To fix that, I must define _USE_XOPEN
>>>
>>> You really, really must not use this macro.
>>
>> I'm glad to hear something definitive about that.  I don't even remember
>> how I arrived at that hack.
> 
> FYI
> 
> /usr/include/sys/features.h
> 
> provides the full framework for the different options

Define both to allow everything:

_DEFAULT_SOURCE enables BSD and SysV features, is the default if *NO* others 
defined, and replaces old _BSD_SOURCE and/or _SVID_SOURCE
_GNU_SOURCE enables all the GNU, X/Open, POSIX, C, etc. features but original 
Unix SysV and BSD extensions

Search online for man 7 feature_test_macros, copy from a Linux system, or 
download, and install the man page under /usr/local/man/man7/ for reference.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

  reply	other threads:[~2021-02-16 18:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-11 15:23 Patrick Chkoreff
2021-02-12  2:06 ` Ken Brown
2021-02-12  7:26   ` Brian Inglis
2021-02-12  9:12     ` Corinna Vinschen
2021-02-12 18:56       ` Brian Inglis
2021-02-12 20:38         ` Brian Inglis
2021-02-12 15:11   ` Patrick Chkoreff
2021-02-15  9:14     ` Corinna Vinschen
2021-02-15 19:54       ` Patrick Chkoreff
2021-02-15 20:48         ` Corinna Vinschen
2021-02-16 14:53           ` Patrick Chkoreff
2021-02-16 15:22             ` Marco Atzeri
2021-02-16 18:33               ` Brian Inglis [this message]
2021-02-12  9:11 ` Corinna Vinschen

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=58dfae9d-3fe5-4245-b4fd-8ff80bf6d8fe@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@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).