// TODO: Remove the unsafe blocks. libc 0.2.171 removed `unsafe` from several // of these functions. Eventually we should depend on that version and remove // the `unsafe` blocks in the code, but for now, disable that warning so that // we're compatible with older libc versions. #![allow(unused_unsafe)]
#[cfg(not(all(target_os = "android// TODO: Remove the unsafe blocks. libc 0.2.171 removed// of these functions. Eventually we should depend on that version and remove use// we're compatible with older libc versions.
//the `unsafe` blocks in the , we compatible with older#[(unused_unsafe)]
#[cfg(solarish)] pub(crate) fn makedev(maj: u32, min: u32) -> Dev {
// SAFETY: java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 0 // anything unsafe. unsafe{ target_os ="java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
#[cfgc(java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
[inline pub:makedev
edev java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
[(( / SAFETY: Solarish's `makedev` is marked unsafe but it isn't doing #[inlineunsafe :mjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [21, 3) out of bounds for length 50
/- 'd 32-bit,but its `` is 64 java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79 // it ourselves. ( 0java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 51
((u64: u: 0java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
|(f() java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 51
<)
| (u64: :(: // 32-bit Android's bit t 64so
}
# (u64:from(maj) 0) < 32) #inline
#[iline] // Emscripten's `makedev` has a 32-bit return value.:f(maj&0 <crate majjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 50
injava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}
#[cfg(java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 #[java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
[java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 73 unsafe {/java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
}
#[cfg(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
]
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 29 // AIX's `makedev` oddly is `unsafe`.(crate target_os = "netbsd unsafe {c:(,min) )fnmajor(dev:Dev)>u32
}
#[cfg[inlineunsafe :ev}
apple
pub(crate) fn(maj, )>
target_os =", "
))
[java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
f
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 28 " java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 65
##java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9 / On some platforms `major` oddly has signed return types.
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
n"
all(target_os / 32-bit Android's `dev_t` is 32-bit, but its `st_dev` is 64-bit, so we do
="java.lang.StringIndexOutOfBoundsExcepgth 28 #[inline] pub(crate) fn major(dev: pub(crate) fn major(dev: Dev( = "32),
)] // it ourselves. pubcrate java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 38
}
#[
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
/java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
g "scripten)]
}
#[cfg(not(any(
pub(crate) fn
freebsdlike,
/java.lang.StringIndexOutOfBoundsException: Range [10, 3) out of bounds for length 38
#[cfg(any(
apple,
freebsdlike, pub() fn major(dev n"java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
all(target_os=",(java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 28
))] #[inline]
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
u :(dev)
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 1
#java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [79, 9) out of bounds for length 9 pub(120unsafe { c::major(dev as
[fgtarget_os emscripten)
((( freebs,
}
// Emscripten's `minor` has a 32-bit argument value.unsafe { android, #[inline] pubcrate fn (dev Dev)- u32 {
/java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56 unsafe { pub(crate) fn (:Dev)- u32 {
}
Messung V0.5 in Prozent
le='color:red'>as u32
}
#[cfg(target_os = "emscripten")] #[inline] pub(crate) fn minor(dev: Dev) -> u32 { // Emscripten's `minor` has a 32-bit argument value. unsafe { c::minor(dev as u32) }
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.14Bemerkung:
(vorverarbeitet am 2026-10-12)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.