From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) by sourceware.org (Postfix) with ESMTPS id DCD423857027 for ; Tue, 16 Feb 2021 18:33:44 +0000 (GMT) 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.inglis@systematicsw.ab.ca Received: from [192.168.1.104] ([24.64.172.44]) by shaw.ca with ESMTP id C5ANlbXsonRGtC5AOlxL9I; Tue, 16 Feb 2021 11:33:44 -0700 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 Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com References: <1c233bc7-401b-568f-36d5-48c4f1d4dcea@cornell.edu> <20210215091419.GJ4251@calimero.vinschen.de> <2dd8de1e-f29f-534e-a476-fc65162d09cf@gmail.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-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit 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@cygwin.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: , X-List-Received-Date: Tue, 16 Feb 2021 18:33:47 -0000 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.]