Skip to content

Commit

Permalink
Fix name of some syscalls in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aconz2 committed Sep 22, 2024
1 parent 0a2283a commit c7b8b58
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/opcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ opcode! {
// === 5.15 ===

opcode! {
/// Make a directory, equivalent to `mkdirat2(2)`.
/// Make a directory, equivalent to `mkdirat(2)`.
pub struct MkDirAt {
dirfd: { impl sealed::UseFd },
pathname: { *const libc::c_char },
Expand All @@ -1377,7 +1377,7 @@ opcode! {
}

opcode! {
/// Create a symlink, equivalent to `symlinkat2(2)`.
/// Create a symlink, equivalent to `symlinkat(2)`.
pub struct SymlinkAt {
newdirfd: { impl sealed::UseFd },
target: { *const libc::c_char },
Expand All @@ -1400,7 +1400,7 @@ opcode! {
}

opcode! {
/// Create a hard link, equivalent to `linkat2(2)`.
/// Create a hard link, equivalent to `linkat(2)`.
pub struct LinkAt {
olddirfd: { impl sealed::UseFd },
oldpath: { *const libc::c_char },
Expand Down Expand Up @@ -1739,10 +1739,10 @@ opcode! {
opcode! {
/// Wait on a futex, like but not equivalant to `futex(2)`'s `FUTEX_WAIT_BITSET`.
///
/// Wait on a futex at address `futex` and which still has the value `val` and with `futex2(2)`
/// Wait on a futex at address `futex` and which still has the value `val` and with `futex(2)`
/// flags of `futex_flags`. `musk` can be set to a specific bitset mask, which will be matched
/// by the waking side to decide who to wake up. To always get woken, an application may use
/// `FUTEX_BITSET_MATCH_ANY` (truncated to futex bits). `futex_flags` follows the `futex2(2)`
/// `FUTEX_BITSET_MATCH_ANY` (truncated to futex bits). `futex_flags` follows the `futex(2)`
/// flags, not the `futex(2)` v1 interface flags. `flags` are currently unused and hence `0`
/// must be passed.
#[derive(Debug)]
Expand Down Expand Up @@ -1775,7 +1775,7 @@ opcode! {
/// Wake up waiters on a futex, like but not equivalant to `futex(2)`'s `FUTEX_WAKE_BITSET`.
///
/// Wake any waiters on the futex indicated by `futex` and at most `val` futexes. `futex_flags`
/// indicates the `futex2(2)` modifier flags. If a given bitset for who to wake is desired,
/// indicates the `futex(2)` modifier flags. If a given bitset for who to wake is desired,
/// then that must be set in `mask`. Use `FUTEX_BITSET_MATCH_ANY` (truncated to futex bits) to
/// match any waiter on the given futex. `flags` are currently unused and hence `0` must be
/// passed.
Expand Down

0 comments on commit c7b8b58

Please sign in to comment.