]> git.proxmox.com Git - rustc.git/blobdiff - vendor/rustix/src/backend/linux_raw/runtime/tls.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / vendor / rustix / src / backend / linux_raw / runtime / tls.rs
index 43ed25d7d07b0cd8e0ab4ffc5c653a35488116e5..8cc156a715490faca3f521d7146239b63ff263d0 100644 (file)
@@ -1,3 +1,9 @@
+//! TLS utilities.
+//!
+//! # Safety
+//!
+//! This file contains code that reads the raw phdr array pointed to by the
+//! kernel-provided AUXV values.
 #![allow(unsafe_code)]
 
 use super::super::c;
@@ -18,7 +24,7 @@ pub(crate) fn startup_tls_info() -> StartupTlsInfo {
 
     let phdrs = exe_phdrs_slice();
 
-    // Safety: We assume the phdr array pointer and length the kernel provided
+    // SAFETY: We assume the phdr array pointer and length the kernel provided
     // to the process describe a valid phdr array.
     unsafe {
         for phdr in phdrs {