[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <793fc122-1409-4092-b39c-ea348de8ba14@t-8ch.de>
Date: Wed, 7 Jun 2023 08:05:30 +0200
From: Thomas Weißschuh <thomas@...ch.de>
To: Zhangjin Wu <falcon@...ylab.org>
Cc: w@....eu, arnd@...db.de, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, linux-riscv@...ts.infradead.org
Subject: Re: [PATCH v2 4/4] tools/nolibc: sys.h: apply __syscall() helper
Hi Zhangjin,
On 2023-06-07 13:39:20+0800, Zhangjin Wu wrote:
>
> As a summary, will use 'sysret()' and something like:
>
> static __attribute__((unused))
> int chdir(const char *path)
> {
> return sysret(chdir(path));
> }
>
> to renew the syscall helper patchset, Thanks you very much.
But please to use the "__" prefix.
Otherwise it could conflict with user code.
Thomas
Powered by blists - more mailing lists