diff --git a/rtl/linux/loongarch64/cp_new_stat.inc b/rtl/linux/loongarch64/cp_new_stat.inc index 72b4d4f59b..70fe665be1 100644 --- a/rtl/linux/loongarch64/cp_new_stat.inc +++ b/rtl/linux/loongarch64/cp_new_stat.inc @@ -14,7 +14,7 @@ **********************************************************************} - procedure cp_new_stat(nbuf: pstatx; buf: pstat); + procedure cp_new_stat(nbuf: pstatx64; buf: pstat); begin buf^.st_dev:=makedev(nbuf^.stx_dev_major,nbuf^.stx_dev_minor); diff --git a/rtl/linux/ossysc.inc b/rtl/linux/ossysc.inc index fd1ba5d907..dea904daef 100644 --- a/rtl/linux/ossysc.inc +++ b/rtl/linux/ossysc.inc @@ -122,7 +122,7 @@ end; function Fpstat(path: pchar; var buf: stat):cint; [public, alias : 'FPC_SYSC_STAT']; var - nbuf:tstatx; + nbuf:tstatx64; begin Fpstat:=do_syscall(syscall_nr_statx,AT_FDCWD,TSysParam(path),AT_NO_AUTOMOUNT,STATX_BASIC_STATS,TSysParam(@nbuf)); @@ -430,7 +430,7 @@ end; function Fpfstat(fd : cint; var sb : stat): cint; [public, alias : 'FPC_SYSC_FSTAT']; var - nbuf:tstatx; + nbuf:tstatx64; nonestr:char=#0; begin diff --git a/rtl/linux/ostypes.inc b/rtl/linux/ostypes.inc index 9115acc2e0..f380e9e1a8 100644 --- a/rtl/linux/ostypes.inc +++ b/rtl/linux/ostypes.inc @@ -102,14 +102,14 @@ type PStat = ^Stat; { Referred to rtl/linux/linux.pp } - statx_timestamp = record + statx64_timestamp = record tv_sec : cint64; tv_nsec : cuint32; __reserved : cint32; end; - pstatx_timestamp = ^statx_timestamp; + pstatx64_timestamp = ^statx64_timestamp; - tstatx = record + tstatx64 = record stx_mask : cuint32; stx_blksize : cuint32; stx_attributes : cuint64; @@ -122,17 +122,17 @@ type stx_size : cuint64; stx_blocks : cuint64; stx_attributes_mask : cuint64; - stx_atime : statx_timestamp; - stx_btime : statx_timestamp; - stx_ctime : statx_timestamp; - stx_mtime : statx_timestamp; + stx_atime : statx64_timestamp; + stx_btime : statx64_timestamp; + stx_ctime : statx64_timestamp; + stx_mtime : statx64_timestamp; stx_rdev_major : cuint32; stx_rdev_minor : cuint32; stx_dev_major : cuint32; stx_dev_minor : cuint32; __spare2 : array[0..13] of cuint64; end; - pstatx = ^tstatx; + pstatx64 = ^tstatx64; { directory services } { the Dirent type for getdents64 is no longer declared as ending with