X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DCD423857027 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca X-Authority-Analysis: v=2.4 cv=cagXElPM c=1 sm=1 tr=0 ts=602c1008 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=94nOnFI1EgyDtX4ev68A:9 a=QEXdDO2ut3YA:10 To: cygwin AT cygwin DOT com References: <1c233bc7-401b-568f-36d5-48c4f1d4dcea AT cornell DOT edu> <20210215091419 DOT GJ4251 AT calimero DOT vinschen DOT de> <2dd8de1e-f29f-534e-a476-fc65162d09cf AT gmail DOT com> From: Brian Inglis Organization: Systematic Software Subject: Re: setrlimit always fails Message-ID: <58dfae9d-3fe5-4245-b4fd-8ff80bf6d8fe@SystematicSw.ab.ca> Date: Tue, 16 Feb 2021 11:33:43 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <2dd8de1e-f29f-534e-a476-fc65162d09cf@gmail.com> Content-Language: en-CA X-CMAE-Envelope: MS4xfGxrLouv+6YdL+761y+hPYR3gVtN/tKc2TaM2cnPwlDIdgf8o564M0zKP3kEGG6U+ecqwkbOjsqCp7nmBhjvInISSYm/xbSQyBKJOMthL+quExcJfVbo UlUTm1WHneWL0wUbMcvfXuj0tYk7/HWbnoKKqTxYJ/bz6vipMqGbpuH9+/fWUqUHYVGTYcQTxeQqjHOrX35xBFEw/OnN1RhH/h8= X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 11GIXoW9005711 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.] -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple