Expand description

Flags used as an argument to many system calls

Structs

Enums

Constants

Only accepted for mmap2(2).

Do a “partial allocation”, which means that not all of the frames specified in the frame count size actually have to be allocated. This means that if the allocator was unable to find a physical memory range large enough, it can instead return whatever range it decides is optimal. Thus, instead of letting one driver get an expensive 128MiB physical memory range when the physical memory has become fragmented, and failing, it can instead be given a more optimal range. If the device supports scatter-gather lists, then the driver only has to allocate more ranges, and the device will do vectored I/O.

The bitmask of the partial allocation strategy. Currently four different strategies are supported. If PARTIAL_ALLOC is not set, this bitmask is no longer reserved.

Sent when a child is cloned, giving you the opportunity to trace it. If you don’t catch this, the child is started as normal.

Special meaning, depending on the event. Usually, when fired before an action, it will skip performing that action.

Stop on a software breakpoint, such as the int3 instruction for x86_64.

Stop just before exiting for good.

Stop after a syscall is handled.

Stop before a syscall is handled. Send PTRACE_FLAG_IGNORE to not handle the syscall.

Stop before a signal is handled. Send PTRACE_FLAG_IGNORE to not handle signal.

Stop after exactly one instruction. TODO: This may not handle fexec/signal boundaries. Should it?

Only allocate memory within the 32-bit physical memory space. This is necessary for some devices may not support 64-bit memory.

The frame that will be allocated, is going to reside anywhere in 64-bit space. This flag is redundant for the most part, except when overriding some other default.

Functions

True if status indicates a core dump was created.

If wifexited(status), the exit status.

True if status indicates the child continued after a stop.

True if status indicates normal termination.

True if STATUS indicates termination by a signal.

True if status indicates the child is stopped.

If wifstopped(status), the signal that stopped the child.

If wifsignaled(status), the terminating signal.