File tree Expand file tree Collapse file tree 7 files changed +16
-16
lines changed
src/unix/linux_like/linux/musl Expand file tree Collapse file tree 7 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type MappedName = Box<dyn Fn(&MapInput) -> Option<String>>;
22
22
type Skip = Box < dyn Fn ( & MapInput ) -> bool > ;
23
23
/// A function that determines whether a variable or field is volatile.
24
24
type VolatileItem = Box < dyn Fn ( VolatileItemKind ) -> bool > ;
25
- /// A function that determines whether a function arument is an array.
25
+ /// A function that determines whether a function argument is an array.
26
26
type ArrayArg = Box < dyn Fn ( crate :: Fn , Parameter ) -> bool > ;
27
27
/// A function that determines whether to skip a test, taking in the identifier name.
28
28
type SkipTest = Box < dyn Fn ( & str ) -> bool > ;
Original file line number Diff line number Diff line change @@ -77,14 +77,14 @@ mod generated_tests {
77
77
{ %- for constant in ctx. const_tests +%}
78
78
79
79
// Test that the value of the constant is the same in both Rust and C.
80
- // This performs a byte by byte comparision of the constant value.
80
+ // This performs a byte by byte comparison of the constant value.
81
81
pub fn { { constant. test_name } } ( ) {
82
82
type T = { { constant. rust_ty } } ;
83
83
extern "C" {
84
84
fn ctest_const__ { { constant. id } } ( ) -> * const T ;
85
85
}
86
86
87
- /* HACK: The slices may contian uninitialized data! We do this because
87
+ /* HACK: The slices may contain uninitialized data! We do this because
88
88
* there isn't a good way to recursively iterate all fields. */
89
89
90
90
let r_val: T = { { constant. rust_val } } ;
@@ -261,7 +261,7 @@ mod generated_tests {
261
261
262
262
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
263
263
264
- // Fill the unitialized memory with a deterministic pattern.
264
+ // Fill the uninitialized memory with a deterministic pattern.
265
265
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
266
266
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
267
267
for i in 0 ..SIZE {
Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ mod generated_tests {
46
46
}
47
47
48
48
// Test that the value of the constant is the same in both Rust and C.
49
- // This performs a byte by byte comparision of the constant value.
49
+ // This performs a byte by byte comparison of the constant value.
50
50
pub fn ctest_const_ON ( ) {
51
51
type T = bool ;
52
52
extern "C" {
53
53
fn ctest_const__ON ( ) -> * const T ;
54
54
}
55
55
56
- /* HACK: The slices may contian uninitialized data! We do this because
56
+ /* HACK: The slices may contain uninitialized data! We do this because
57
57
* there isn't a good way to recursively iterate all fields. */
58
58
59
59
let r_val: T = ON ;
@@ -161,7 +161,7 @@ mod generated_tests {
161
161
162
162
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
163
163
164
- // Fill the unitialized memory with a deterministic pattern.
164
+ // Fill the uninitialized memory with a deterministic pattern.
165
165
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
166
166
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
167
167
for i in 0 ..SIZE {
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ mod generated_tests {
326
326
327
327
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
328
328
329
- // Fill the unitialized memory with a deterministic pattern.
329
+ // Fill the uninitialized memory with a deterministic pattern.
330
330
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
331
331
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
332
332
for i in 0 ..SIZE {
@@ -450,7 +450,7 @@ mod generated_tests {
450
450
451
451
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
452
452
453
- // Fill the unitialized memory with a deterministic pattern.
453
+ // Fill the uninitialized memory with a deterministic pattern.
454
454
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
455
455
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
456
456
for i in 0 ..SIZE {
Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ mod generated_tests {
435
435
436
436
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
437
437
438
- // Fill the unitialized memory with a deterministic pattern.
438
+ // Fill the uninitialized memory with a deterministic pattern.
439
439
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
440
440
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
441
441
for i in 0 ..SIZE {
@@ -566,7 +566,7 @@ mod generated_tests {
566
566
567
567
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
568
568
569
- // Fill the unitialized memory with a deterministic pattern.
569
+ // Fill the uninitialized memory with a deterministic pattern.
570
570
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
571
571
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
572
572
for i in 0 ..SIZE {
@@ -690,7 +690,7 @@ mod generated_tests {
690
690
691
691
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
692
692
693
- // Fill the unitialized memory with a deterministic pattern.
693
+ // Fill the uninitialized memory with a deterministic pattern.
694
694
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
695
695
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
696
696
for i in 0 ..SIZE {
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ mod generated_tests {
412
412
413
413
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
414
414
415
- // Fill the unitialized memory with a deterministic pattern.
415
+ // Fill the uninitialized memory with a deterministic pattern.
416
416
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
417
417
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
418
418
for i in 0 ..SIZE {
@@ -543,7 +543,7 @@ mod generated_tests {
543
543
544
544
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
545
545
546
- // Fill the unitialized memory with a deterministic pattern.
546
+ // Fill the uninitialized memory with a deterministic pattern.
547
547
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
548
548
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
549
549
for i in 0 ..SIZE {
@@ -667,7 +667,7 @@ mod generated_tests {
667
667
668
668
let input_ptr = input. as_mut_ptr ( ) . cast :: < u8 > ( ) ;
669
669
670
- // Fill the unitialized memory with a deterministic pattern.
670
+ // Fill the uninitialized memory with a deterministic pattern.
671
671
// From Rust to C: every byte will be labelled from 1 to 255, with 0 turning into 42.
672
672
// From C to Rust: every byte will be inverted from before (254 -> 1), but 0 is still 42.
673
673
for i in 0 ..SIZE {
Original file line number Diff line number Diff line change @@ -926,7 +926,7 @@ extern "C" {
926
926
pub fn dirname ( path : * mut c_char ) -> * mut c_char ;
927
927
pub fn basename ( path : * mut c_char ) -> * mut c_char ;
928
928
929
- // Addded in `musl` 1.1.20
929
+ // Added in `musl` 1.1.20
930
930
pub fn getrandom ( buf : * mut c_void , buflen : size_t , flags : c_uint ) -> ssize_t ;
931
931
932
932
// Added in `musl` 1.1.24
You can’t perform that action at this time.
0 commit comments