From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 0FD98385C6DB for ; Thu, 30 Nov 2023 12:00:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0FD98385C6DB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0FD98385C6DB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701345638; cv=none; b=HXofwLCdGJhlQNetopdw11PDZLIxZNMZlhmD2Yo1MLV4fHZiN0mAKm6orQE+MPTXuRr28De2ezISQ2qK11FIQA1YeDs9u3gRBypTybbNp0W0KElp7HsG2bWvws+U8Ijoyv6PySMiapBLBNHv5LZHnedvr8DhoX+RkGuvUHCCSCo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701345638; c=relaxed/simple; bh=5jpLGqCRSaPU+NO691nZE5KjvwfxyhTPQ9n7HT66jik=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=JmQSEnUoLf5g2LXL+YqLYdGxaFR3OkUkZltFfpiaYyWhygvEf1WIYqy2Y8MznhkIem3FT9fdH/Ag5xKOfWQCHdaddrfPfdNhYocyTvigSFzs3cejdIGdvemmYrUW5X5nIlh5s0nOjcXUFepKQMH6yzgIFe/C7WnpiTB4/Fym+gI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701345637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5zDyNQnTe/a1a+K5frhqHKl1OV9alFTyrp2wttcHkEw=; b=Q2HB59A38Z6kMo9vi+MAWFb+HIA0+H+S6zDlfTYLZvSVf5Ua60Dw/ZmzYVKIZaFYOAzmeE gGnuEZOjEmOUsf5hjZeM7ssC7FnapyQiYsmecMlsKOMEAq8ppnSrbjZdQxlySDOyPaG2bs mSNiGCRI0qPZG3NSg1vFQrE6IYAlPwk= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-606-2RUQTxZFMoCA8i6Y4hWb_Q-1; Thu, 30 Nov 2023 07:00:34 -0500 X-MC-Unique: 2RUQTxZFMoCA8i6Y4hWb_Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 96B7B28040B1; Thu, 30 Nov 2023 12:00:33 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 58B172166B27; Thu, 30 Nov 2023 12:00:32 +0000 (UTC) From: Florian Weimer To: Alejandro Colomar Cc: GNU C Library , Linux man-pages , Iker Pedrosa , shadow <~hallyn/shadow@lists.sr.ht>, Michael Kerrisk Subject: Re: strtol(3) setting of errno References: Date: Thu, 30 Nov 2023 13:00:30 +0100 In-Reply-To: (Alejandro Colomar's message of "Thu, 30 Nov 2023 10:22:09 +0100") Message-ID: <87cyvrv4bl.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * Alejandro Colomar: > Now I realize that commit was probably wrong, and one needs to check > both errno and the return value to determine that the call failed. Can > you please confirm what the correct specification of strtol(3) is? The most detailed specification we have is the one that is in POSIX. Thanks, Florian