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 25, 2024
1 parent 951cab5 commit f61d38b
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 @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f61d38b

Please sign in to comment.