Skip to content

Commit

Permalink
chore: fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: whosehang <[email protected]>

(backport <rust-lang#3664>)
(cherry picked from commit e2e73d7)
  • Loading branch information
whosehang authored and tgross35 committed Nov 17, 2024
1 parent bd40454 commit 179acc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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 @@ -1300,7 +1300,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

0 comments on commit 179acc2

Please sign in to comment.