Skip to content

Commit e1d85d5

Browse files
authored
Merge pull request #4145 from devnexen/solarish_stat_upd
solarish update stat type with st_fstype field.
2 parents 0140785 + bd5a0d3 commit e1d85d5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libc-test/semver/solarish.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ LIO_WRITE
1717
PIPE_BUF
1818
SIGEV_PORT
1919
_POSIX_VDISABLE
20+
_ST_FSTYPSZ
2021
aio_cancel
2122
aio_error
2223
aio_fsync

src/unix/solarish/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ s! {
344344
pub st_ctime_nsec: c_long,
345345
pub st_blksize: crate::blksize_t,
346346
pub st_blocks: crate::blkcnt_t,
347-
__unused: [c_char; 16],
347+
pub st_fstype: [c_char; _ST_FSTYPSZ as usize],
348348
}
349349

350350
pub struct termios {
@@ -2029,6 +2029,8 @@ pub const _SC_XOPEN_STREAMS: c_int = 761;
20292029
pub const _SC_IPV6: c_int = 762;
20302030
pub const _SC_RAW_SOCKETS: c_int = 763;
20312031

2032+
pub const _ST_FSTYPSZ: c_int = 16;
2033+
20322034
pub const _MUTEX_MAGIC: u16 = 0x4d58; // MX
20332035
pub const _COND_MAGIC: u16 = 0x4356; // CV
20342036
pub const _RWL_MAGIC: u16 = 0x5257; // RW

0 commit comments

Comments
 (0)