From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.web.de (mout.web.de [212.227.15.3]) by sourceware.org (Postfix) with ESMTPS id 6352D3836C74 for ; Mon, 15 Feb 2021 10:36:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6352D3836C74 X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.2.103] ([84.143.151.159]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LyV2E-1lyeyh0Qpq-015oJX; Mon, 15 Feb 2021 11:36:37 +0100 Subject: Re: (stat(...) == -1 || faccessat(...) == -1) && errno == EINTR ?!?? To: Florian Weimer Cc: libc-help@sourceware.org, Godmar Back References: <000830b6-1cf0-6349-5667-a5af6894ac1b@web.de> <87czx1fzun.fsf@oldenburg.str.redhat.com> <8a591e0e-33bb-7518-5e31-42f0545a940e@web.de> <878s7pfyvc.fsf@oldenburg.str.redhat.com> <87zh05eioa.fsf@oldenburg.str.redhat.com> From: Tobias Bading Message-ID: <27b2d09a-d5a9-c64e-6d18-ca3bfa0d253d@web.de> Date: Mon, 15 Feb 2021 11:36:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87zh05eioa.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:xFXrBK3MpBxEjjTpoZjKy/tjKxVSgFOSdTz1xHD4/w3QMq1m0aM ugl1hk+eS8NqeRS7umEL0Wn03guhTbPe1jq440pRTHoZLaHy1aeAkdUYFlZgkUKaNbaOI/i L8LVODpxxkAh4OxPnrVtUDQtDHYijgxNTO+wwSU9k92h7WbkpTlDaVJYY0p7IUv4WqmKDdw 44heltelYGtM3u9dM1boA== X-UI-Out-Filterresults: notjunk:1;V03:K0:FabGKTI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_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2021 10:36:43 -0000 On 15.02.21 11:20, Florian Weimer wrote: > * Tobias Bading: >>> Yes, this is not a POSIX conformance issue. >> >> o.O >> >> I don't get it. How is a developer supposed to decide in which cases >> EINTR handling is required? Check the man page on every platform the >> code is supposed to work on and hope that at least one platform mentio= ns >> EINTR if the function is indeed able to fail that way? > > The issue here is that one Linux file system (CIFS) behaves differently > from most other file systems.=C2=A0 That is not something that can be > addressed with documentation at the level of the manual pages. > Practically speaking, I would say this is a file system bug. Yes, looks like a file system bug in this case. But I'm wondering how this is supposed to work in general: I'm writing some piece of code and are about to call a POSIX function. How the heck am I supposed to figure out whether EINTR handling is required if I can't rely on the man page and the POSIX spec? Tobias