|
Message-ID: <39446a33-e5df-8912-e39d-308101275e8a@loongson.cn> Date: Wed, 27 Apr 2022 09:58:44 +0800 From: 王洪亮 <wanghongliang@...ngson.cn> To: musl@...ts.openwall.com Subject: Re: Re: add loongarch64 port 在 2022/3/31 下午4:14, Arnd Bergmann 写道: > The __NR_fstat and __NR_newfstatat symbols are only defined by > the kernel if __ARCH_WANT_NEW_STAT is set, which should not be > by the time the kernel port is merged. Instead, user space should > call statx() here, which continues to be supported as a superset. > > > Arnd there is a build error if I remove __NR_fstat and __NR_newfstatat, the architecture-independent code depends on the __NR_fstat and __NR_fstatat defined in architecture platform. How to deal with this issue? In file included from src/stat/fstatat.c:8: src/stat/fstatat.c: In function ‘fstatat_kstat’: src/stat/fstatat.c:78:19: error: ‘SYS_fstat’ undeclared (first use in this function); did you mean ‘SYS_statx’? ret = __syscall(SYS_fstat, fd, &kst); src/stat/fstatat.c:80:20: error: ‘SYS_fstatat’ undeclared (first use in this function); did you mean ‘SYS_fstatfs’? ret = __syscall(SYS_fstatat, fd, path, &kst, flag); Hongliang Wang
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.