stand: aarch64 has different nlinks than amd64

Some typedefs are system dependent, so move them into stat_arch.h where
they are used.  On amd64, nlinks is a int64_t, while on aarch64 it's an
int (or int32_t).

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-12-03 22:46:21 -07:00
parent e15d8f2384
commit 929c6216b1
4 changed files with 6 additions and 1 deletions

View file

@ -6,6 +6,8 @@
* Note: From the musl project
*/
typedef int host_nlink_t;
struct host_kstat {
host_dev_t st_dev;
host_ino_t st_ino;

View file

@ -6,6 +6,8 @@
* Note: From the musl project
*/
typedef uint64_t host_nlink_t;
struct host_kstat {
host_dev_t st_dev;
host_ino_t st_ino;

View file

@ -6,6 +6,8 @@
* Note: From the musl project
*/
typedef uint64_t host_nlink_t;
struct host_kstat {
host_dev_t st_dev;
host_ino_t st_ino;

View file

@ -37,7 +37,6 @@ long host_syscall(int number, ...);
*/
typedef uint64_t host_dev_t;
typedef uint64_t host_ino_t;
typedef int64_t host_nlink_t;
typedef unsigned int host_mode_t;
typedef unsigned int host_uid_t;
typedef unsigned int host_gid_t;