From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7521 invoked from network); 19 May 2021 07:55:55 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 19 May 2021 07:55:55 -0000 Received: (qmail 4080 invoked by uid 550); 19 May 2021 07:55:54 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 4047 invoked from network); 19 May 2021 07:55:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :message-id:content-transfer-encoding; bh=GmmNZdO9FoNP+URm8CVNoqZEAE+6NAUH5yKD/2Xach0=; b=NyS2LXGAiHslbRFa3JaBrL6GdYzEAePCOhxgssi2OqhPB9zLNDzxhhdeGmTmPBYmuY DILDDwQ82iet2ZqLY6EjMRf7yeLuW4RAtIDgB6fwJoROLEt8NoCktz98mycuYD9yjEW+ 1DOLY8avYf9lRpAfzZUVsTAnUmSVcp6YkDRcc5FtrU+gpkaX6vERiE+sPOL8yLbR6cm6 D4f6Gu8f1H48fjgcCaVXOBI2XKl0tSHap1ewqmumUz0Un8j68P8RSOVp0Ib+C2/2DZ4/ +cBjE0r2BnGnGvAoYzJIF/NS7j0WUmNdycOdY/+bq6vWJFfV5eurfucDM/4B+UN97kOx Pzew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=GmmNZdO9FoNP+URm8CVNoqZEAE+6NAUH5yKD/2Xach0=; b=WUf4FLM3EKPDLTiH595GtSetlJ9FLXOOOrvEdOSfVsV9ZMX+Wlr96JhuFPWrXX9CyF Br6U7QD//eB9rI36oeZECH3tl8m0/CuyCO1IVCXeo/H2bO35IIS5PlRjbdGxDNdp80q0 DHf1HTXfRbwFAfAA9MUrgXreqUgjGHrEZiiZueXeec68JS6oIW32jXplGwsDaYbjFTgT p1WosxnXtenPQ+3FtJoix/5kdsjrnxK3rRXYXtD3RSd3bAaLgALuQhJjlOFh7N1FxLnT R0PybaprJjC/3LshdmluOSbwrpwG9XnosCBbN43xOs3PkEeNuoet/re0DnM1RQ64fNv4 IIVg== X-Gm-Message-State: AOAM530l58bq6S9ug0ECgUMN6lR25Pe7uPCKnvaiASQDoKR6JiOMZ5tJ +G3ByalQ1aI77Ciw2gy5VoY= X-Google-Smtp-Source: ABdhPJyxixB1OI/aDHOrXuCSWxO1sTnVnOdgtw1LfeEEZG1X/SV2T9BzrHfTlNyK4EM1OAwePFLTdA== X-Received: by 2002:a17:903:20cc:b029:f0:cc11:51c2 with SMTP id i12-20020a17090320ccb02900f0cc1151c2mr9571799plb.32.1621410941336; Wed, 19 May 2021 00:55:41 -0700 (PDT) Date: Wed, 19 May 2021 17:55:35 +1000 From: Nicholas Piggin To: Joakim Tjernlund , "ldv@altlinux.org" , "mpe@ellerman.id.au" Cc: "libc-dev@lists.llvm.org" , "linux-api@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "musl@lists.openwall.com" References: <20200611081203.995112-1-npiggin@gmail.com> <20210518231331.GA8464@altlinux.org> <9b5ea7059c5a5d4e9ccccd7d73ce2c66b2203f52.camel@infinera.com> In-Reply-To: <9b5ea7059c5a5d4e9ccccd7d73ce2c66b2203f52.camel@infinera.com> MIME-Version: 1.0 Message-Id: <1621410291.c7si38sa9q.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [musl] Re: Linux powerpc new system call instruction and ABI Excerpts from Joakim Tjernlund's message of May 19, 2021 5:33 pm: > On Wed, 2021-05-19 at 02:13 +0300, Dmitry V. Levin wrote: >> Hi, >>=20 >> On Thu, Jun 11, 2020 at 06:12:01PM +1000, Nicholas Piggin wrote: >> [...] >> > - Error handling: The consensus among kernel, glibc, and musl is to mo= ve to >> > =C2=A0=C2=A0using negative return values in r3 rather than CR0[SO]=3D1= to indicate error, >> > =C2=A0=C2=A0which matches most other architectures, and is closer to a= function call. >=20 > What about syscalls like times(2) which can return -1 without it being an= error? They do become errors / indistinguishable and have to be dealt with by=20 libc or userspace. Which does follow what most architectures do (all=20 except ia64, mips, sparc, and powerpc actually). Interesting question though, it should have been noted. Thanks, Nick