Skip to content

Commit

Permalink
solarish update stat type with st_fstype field.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Nov 26, 2024
1 parent f81b8c0 commit bd5a0d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions libc-test/semver/solarish.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ LIO_WRITE
PIPE_BUF
SIGEV_PORT
_POSIX_VDISABLE
_ST_FSTYPSZ
aio_cancel
aio_error
aio_fsync
Expand Down
4 changes: 3 additions & 1 deletion src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ s! {
pub st_ctime_nsec: c_long,
pub st_blksize: crate::blksize_t,
pub st_blocks: crate::blkcnt_t,
__unused: [c_char; 16],
pub st_fstype: [c_char; _ST_FSTYPSZ as usize],
}

pub struct termios {
Expand Down Expand Up @@ -2029,6 +2029,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
Expand Down

0 comments on commit bd5a0d3

Please sign in to comment.