unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: XingLi <lixing@loongson.cn>
To: Szabolcs Nagy <szabolcs.nagy@arm.com>, Xi Ruoyao <xry111@xry111.site>
Cc: Wang Xuerui <i.swmail@xen0n.name>,
	adhemerval.zanella@linaro.org, libc-alpha@sourceware.org,
	caiyinyu@loongson.cn, wanghongliang@loongson.cn,
	hejinyang@loongson.cn
Subject: Re: [PATCH] linux: Change syscall return value to long int
Date: Tue, 29 Nov 2022 18:54:50 +0800	[thread overview]
Message-ID: <a4de222a-81ad-4327-e4af-fe90521ae98d@loongson.cn> (raw)
In-Reply-To: <Y4XS3gNxTPP7mHnw@arm.com>



在 2022/11/29 下午5:37, Szabolcs Nagy 写道:
> The 11/29/2022 17:12, Xi Ruoyao wrote:
>> Xuerui: can you help to rewrite the commit message?  The code change
>> seems obvious but I'm not sure how to describe the rationale precisely
>> either.
> 
> what about:
> 
> linux: Use long int for syscall return value
> 
> The linux syscall ABI returns long, so the generic syscall code for
> linux should use long for the return value.
> 
> This fixes the truncation of the return value of the syscall function
> when that does not fit into an int.
> 
thanks


      reply	other threads:[~2022-11-29 10:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-29  3:16 [PATCH] linux: Change syscall return value to long int XingLi
2022-11-29  8:55 ` Szabolcs Nagy via Libc-alpha
2022-11-29  9:12   ` Xi Ruoyao via Libc-alpha
2022-11-29  9:37     ` Szabolcs Nagy via Libc-alpha
2022-11-29 10:54       ` XingLi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a4de222a-81ad-4327-e4af-fe90521ae98d@loongson.cn \
    --to=lixing@loongson.cn \
    --cc=adhemerval.zanella@linaro.org \
    --cc=caiyinyu@loongson.cn \
    --cc=hejinyang@loongson.cn \
    --cc=i.swmail@xen0n.name \
    --cc=libc-alpha@sourceware.org \
    --cc=szabolcs.nagy@arm.com \
    --cc=wanghongliang@loongson.cn \
    --cc=xry111@xry111.site \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).