Messages in this thread | | | From | David Laight <> | Subject | RE: [PATCH v2 2/5] tools/nolibc: Add statx() and make stat() rely on statx() when available | Date | Wed, 8 Feb 2023 22:39:18 +0000 |
| |
From: chris.chenfeiyang@gmail.com > Sent: 08 February 2023 10:18 > > loongarch and riscv32 only have statx(). arc, hexagon, nios2 and > openrisc have statx() and stat64() but not stat() or newstat(). > Add statx() and make stat() rely on statx() to make them happy. > ... > +#ifdef __NR_statx > +static __attribute__((unused)) > +int sys_stat(const char *path, struct stat *buf) > +{ > + struct statx stat;
If seems wrong that 'stat' has type 'struct statx' and 'buf' type 'struct stat *'.
Maybe s/stat./statx./ and s/buf->/stat->/ ?
David
- Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)
| |