From e823130c21e719498a020336e55367c146b41423 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 25 Nov 2024 19:57:35 +0000 Subject: [PATCH] solarish update stat type with st_fstype field. --- libc-test/semver/solarish.txt | 1 + src/unix/solarish/mod.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libc-test/semver/solarish.txt b/libc-test/semver/solarish.txt index 057fafb92f1de..3e672ebfb3f11 100644 --- a/libc-test/semver/solarish.txt +++ b/libc-test/semver/solarish.txt @@ -17,6 +17,7 @@ LIO_WRITE PIPE_BUF SIGEV_PORT _POSIX_VDISABLE +_ST_FSTYPSZ aio_cancel aio_error aio_fsync diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 7731c92de425c..79d6c1dd3badd 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -338,7 +338,7 @@ s! { pub st_ctime_nsec: ::c_long, pub st_blksize: ::blksize_t, pub st_blocks: ::blkcnt_t, - __unused: [::c_char; 16], + pub st_fstype: [::c_char; _ST_FSTYPSZ as usize], } pub struct termios { @@ -2023,6 +2023,8 @@ pub const _SC_XOPEN_STREAMS: ::c_int = 761; pub const _SC_IPV6: ::c_int = 762; pub const _SC_RAW_SOCKETS: ::c_int = 763; +pub const _ST_FSTYPSZ: ::c_int = 16; + pub const _MUTEX_MAGIC: u16 = 0x4d58; // MX pub const _COND_MAGIC: u16 = 0x4356; // CV pub const _RWL_MAGIC: u16 = 0x5257; // RW