[PATCH v2 4/4] tools/nolibc: sys.h: apply __syscall() helper

Thomas Weißschuh thomas at t-8ch.de
Tue Jun 6 23:05:30 PDT 2023


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



More information about the linux-riscv mailing list