unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Szabolcs Nagy via Libc-alpha <libc-alpha@sourceware.org>
To: Xi Ruoyao <xry111@xry111.site>
Cc: XingLi <lixing@loongson.cn>, 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 09:37:34 +0000	[thread overview]
Message-ID: <Y4XS3gNxTPP7mHnw@arm.com> (raw)
In-Reply-To: <d285acf1214307e67e4aa0dea6305ed41ca491ad.camel@xry111.site>

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.


  reply	other threads:[~2022-11-29  9:38 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 [this message]
2022-11-29 10:54       ` XingLi

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=Y4XS3gNxTPP7mHnw@arm.com \
    --to=libc-alpha@sourceware.org \
    --cc=adhemerval.zanella@linaro.org \
    --cc=caiyinyu@loongson.cn \
    --cc=hejinyang@loongson.cn \
    --cc=i.swmail@xen0n.name \
    --cc=lixing@loongson.cn \
    --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).