Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solarish update stat type with st_fstype field. #4145

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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