From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by sourceware.org (Postfix) with ESMTPS id AE52C3858D28 for ; Tue, 17 Jan 2023 14:55:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE52C3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oo1-xc29.google.com with SMTP id 187-20020a4a09c4000000b004d8f3cb09f5so8035015ooa.6 for ; Tue, 17 Jan 2023 06:55:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=YqrgVz6WhvLyeWv0YSDxgsdt4ir9pfg9FaNLlFo1S18=; b=NdJmDPoh/J/+xqWMBHjNkiROlBMZ2M5K9XHgDlJC7SVadsbYdH+gq0ODI/AIL20r5S uhVjLhIaTM18DIEViPiqYhxnqQFfIAEhWC5bh7isDLZ08gLvJJqQJlEVJ/K0OH0PPwVA xrmt/HunOW3Ylzxppgx9Qd89FKtWqiZ9oRe5TAMagF1SFRfo5iozGioxxtQx5h+SLvZX ev+TLp8737ANJtzrYT5B1FUWAfJaqgWY9MSVNasASXTlPxplIyq6aGc86wc8nDjyH8gN h57SDkt1coPQh6NDdVzxuKMopAefimUFlYMGrlydxxtYig8nihjVeJ5SCYtN2AlK14nS U1TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YqrgVz6WhvLyeWv0YSDxgsdt4ir9pfg9FaNLlFo1S18=; b=n2f9iX95hUaAxQ0eThKIavmy2dcL4EUcVx6bl1ZWPOY3g2XqW6f9+qJe+RlD91htMe UsJ7qjfCovhRuLzX4w0BwGYT5KjztkC/Pc08CYMM4sg4OV0jrzub844i62yIHtoqSQ5E KfVXnFlxWtTAIDX/xN0nv0/1c1W+gs2JKRNi2mde78eqPi0g4QSKMKPZuBUPvVmYO9KU LvD6cA7bVnl5caZnm0oN6MRVweYlY8k1m4gCmEyrJVbPoO0Oa3bxE+6XFkq6JMy/MVW4 kaD003Hwzuj2Sa4Ov8oqfMMq2nDM7x7G9hvxqmj2ydzahT+wA2FtM+SKoo1Hbp6EESSZ SadQ== X-Gm-Message-State: AFqh2kpeNojjuv9JWBe4f0YeqJ8GeN5zDiMJTYsSkyv6IYoarrXDutON ni2MmuuJ59gF1ZHfJk3f2oYa9JcpLBDlBaQ8pec= X-Google-Smtp-Source: AMrXdXs5QuZGE2dItPCxttmJ/R5eCpi7kAfa29LZ+NAAtDPH5LwAtKy5+30O+i75XUreGeurDrSlTg== X-Received: by 2002:a05:6820:42:b0:4f5:22d4:75f5 with SMTP id v2-20020a056820004200b004f522d475f5mr1745900oob.0.1673967311970; Tue, 17 Jan 2023 06:55:11 -0800 (PST) Received: from ?IPV6:2804:1b3:a7c1:1652:49fa:2dd7:dbd:38f6? ([2804:1b3:a7c1:1652:49fa:2dd7:dbd:38f6]) by smtp.gmail.com with ESMTPSA id f23-20020a4ae617000000b0049fd5c02d25sm2725467oot.12.2023.01.17.06.55.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 06:55:11 -0800 (PST) Message-ID: Date: Tue, 17 Jan 2023 11:55:08 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: bug in roundup(3) from Content-Language: en-US To: Alejandro Colomar , GNU C Library Cc: linux-man References: <1825384a-e02a-c19d-eb22-aedc749046bc@gmail.com> From: Adhemerval Zanella Netto Organization: Linaro In-Reply-To: <1825384a-e02a-c19d-eb22-aedc749046bc@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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: On 16/01/23 17:46, Alejandro Colomar via Libc-alpha wrote: > Hi! > > Do you think this is something to be fixed without important performance penalties, or should we just document the bug and live with it? That's the problem with ill-defined interfaces, each implementation might eventually differs. It seems that BSD, AIX, and Solaris follows glibc implementation by wrapping around (Solaris also provides it through sysmacros.h instead of param.h). The exception is macOS that saturates the value. I really won't bother with this interface, since potentially changing it might generate more potentially breakage than improvements.