Add various basic docstrings

This commit is contained in:
Peter Limkilde Svendsen
2024-10-27 23:25:57 +01:00
parent 9ac0226c93
commit 06fec0b843
12 changed files with 29 additions and 0 deletions
+4
View File
@@ -1,3 +1,5 @@
//! Platform abstractions and environment.
use crate::{
error::ResultExt,
io::{self, Read, Write},
@@ -38,9 +40,11 @@ pub use redox_rt::auxv_defs;
use self::types::*;
pub mod types;
/// The global `errno` variable used internally in relibc.
#[thread_local]
pub static ERRNO: Cell<c_int> = Cell::new(0);
/// The `argv` argument available to a program's `main` function.
#[allow(non_upper_case_globals)]
pub static mut argv: *mut *mut c_char = ptr::null_mut();
#[allow(non_upper_case_globals)]