Skip to content

Commit f61d38b

Browse files
committed
solarish update stat type with st_fstype field.
ref illumos: https://illumos.org/man/2/stat ref solaris: https://docs.oracle.com/cd/E36784_01/html/E36872/stat-2.html
1 parent 951cab5 commit f61d38b

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
@@ -338,7 +338,7 @@ s! {
338338
pub st_ctime_nsec: ::c_long,
339339
pub st_blksize: ::blksize_t,
340340
pub st_blocks: ::blkcnt_t,
341-
__unused: [::c_char; 16],
341+
pub st_fstype: [::c_char; _ST_FSTYPSZ as usize],
342342
}
343343

344344
pub struct termios {
@@ -2023,6 +2023,8 @@ pub const _SC_XOPEN_STREAMS: ::c_int = 761;
20232023
pub const _SC_IPV6: ::c_int = 762;
20242024
pub const _SC_RAW_SOCKETS: ::c_int = 763;
20252025

2026+
pub const _ST_FSTYPSZ: ::c_int = 16;
2027+
20262028
pub const _MUTEX_MAGIC: u16 = 0x4d58; // MX
20272029
pub const _COND_MAGIC: u16 = 0x4356; // CV
20282030
pub const _RWL_MAGIC: u16 = 0x5257; // RW

0 commit comments

Comments
 (0)