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

chore: fix some typos #3664

Merged
merged 1 commit into from
Apr 24, 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
6 changes: 3 additions & 3 deletions src/teeos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub type ssize_t = isize;

pub type pid_t = c_int;

// aarch64 specifc
// aarch64 specific
pub type c_char = u8;

pub type wchar_t = u32;
Expand All @@ -61,9 +61,9 @@ pub type c_ulong = u64;
pub struct _CLongDouble(pub u128);

// long double in C means A float point value, which has 128bit length.
// but some bit maybe not used, so the really length of long double could be 80(x86) or 128(power pc/IEEE)
// but some bit maybe not used, so the real length of long double could be 80(x86) or 128(power pc/IEEE)
// this is different from f128(not stable and not included default) in Rust, so we use u128 for FFI(Rust to C).
// this is unstable and will couse to memfault/data abort.
// this is unstable and will cause to memfault/data abort.
pub type c_longdouble = _CLongDouble;

pub type pthread_t = c_ulong;
Expand Down
2 changes: 1 addition & 1 deletion src/unix/haiku/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ extern "C" {
pub fn find_path_for_path_etc(
path: *const ::c_char,
dependency: *const ::c_char,
architectur: *const ::c_char,
architecture: *const ::c_char,
baseDirectory: path_base_directory,
subPath: *const ::c_char,
flags: u32,
Expand Down