Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Oct 11, 2024
1 parent fe399a9 commit e08491b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/high_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,12 @@ pub fn spawn_cell(
}

/// Get inherited file descriptors.
///
/// # Example
///
/// ```
/// let fds = inherited_fds();
/// ```
pub fn inherited_fds() -> Vec<u64> {
let mut fds = [0u64; 64];
let l = syscalls::inherited_fds(&mut fds);
Expand Down

0 comments on commit e08491b

Please sign in to comment.