add missing #[deprecated] annotations

add #[deprecated] annotation to functions that are marked
as 'legacy' or 'obsolecent' (according to their comments)
This commit is contained in:
sourceturner
2026-04-19 21:32:23 +02:00
committed by sourceturner
parent cad9a0dfc8
commit 885118ccac
7 changed files with 17 additions and 1 deletions
+1
View File
@@ -1113,6 +1113,7 @@ pub unsafe extern "C" fn rand() -> c_int {
/// # Deprecation
/// The `rand_r()` function was marked as obsolescent in the Open Group Base
/// Specifications Issue 7, and the function was removed in Issue 8.
#[deprecated]
#[unsafe(no_mangle)]
pub unsafe extern "C" fn rand_r(seed: *mut c_uint) -> c_int {
if seed.is_null() {