Open Flags (Debugging with GDB)

From Get docs
Gdb/docs/latest/gdb/Open-Flags


Open Flags

All values are given in hexadecimal representation.

  O_RDONLY        0x0
  O_WRONLY        0x1
  O_RDWR          0x2
  O_APPEND        0x8
  O_CREAT       0x200
  O_TRUNC       0x400
  O_EXCL        0x800