Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-its committed Feb 22, 2022
1 parent 93eff84 commit 539697b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/target/ext/host_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ bitflags! {
///
/// Extracted from the GDB documentation at
/// [Open Flags](https://sourceware.org/gdb/current/onlinedocs/gdb/Open-Flags.html#Open-Flags)
/// [LLDB-specific Flags](https://github.com/llvm/llvm-project/blob/ec642ceebc1aacc8b16249df7734b8cf90ae2963/lldb/include/lldb/Host/File.h#L47-L66)
pub struct HostIoOpenFlags: u32 {
/// A read-only file.
const O_RDONLY = 0x0;
Expand All @@ -25,16 +26,13 @@ bitflags! {
/// Exclusive access.
const O_EXCL = 0x800;

// LLDB-specific flags, as documented at:
// https://github.com/llvm/llvm-project/blob/ec642ceebc1aacc8b16249df7734b8cf90ae2963/lldb/include/lldb/Host/File.h#L47-L66

/// Do not block
/// LLDB extension: Do not block.
const O_NONBLOCK = 1 << 28;
/// Do not follow symlinks
/// LLDB extension: Do not follow symlinks.
const O_DONT_FOLLOW_SYMLINKS = 1 << 29;
/// Close the file when executing a new process
/// LLDB extension: Close the file when executing a new process.
const O_CLOSE_ON_EXEC = 1 << 30;
/// Invalid value
/// LLDB extension: Invalid value.
const O_INVALID = 1 << 31;
}
}
Expand Down

0 comments on commit 539697b

Please sign in to comment.