- java.lang.Object
-
- de.ibapl.jnhw.common.memory.AbstractNativeMemory
-
- de.ibapl.jnhw.common.memory.OpaqueMemory32
-
- de.ibapl.jnhw.common.memory.Struct32
-
- de.ibapl.jnhw.posix.Signal.Ucontext_t
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Signal
public static class Signal.Ucontext_t extends Struct32
POSIX:structure ucontext_t.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
OpaqueMemory32.OpaqueMemory32Producer<T extends OpaqueMemory32,P extends AbstractNativeMemory>
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
AbstractNativeMemory.NativeMemoryAlignment
-
-
Field Summary
Fields Modifier and Type Field Description Signal.Mcontext_tuc_mcontextA machine-specific representation of the saved context.Signal.Sigset_tuc_sigmaskThe set of signals that are blocked when this context is active.Signal.Stack_tuc_stackThe stack used by this context.-
Fields inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
sizeInBytes
-
Fields inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
baseAddress, LOG, memoryOwner
-
-
Constructor Summary
Constructors Constructor Description Ucontext_t()Ucontext_t(boolean clearMem)Ucontext_t(NativeAddressHolder baseAddress)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intalignof()voidnativeToString(Appendable sb, String indentPrefix, String indent)static intoffsetof_Uc_mcontext()static intoffsetof_Uc_sigmask()static intoffsetof_Uc_stack()static intsizeof()Get the real size of struct ucontext_t natively.Signal.Ucontext_tuc_link(OpaqueMemory32.OpaqueMemory32Producer<Signal.Ucontext_t,Signal.Ucontext_t> producer)Pointer to the context that is resumed when this context returns.-
Methods inherited from class de.ibapl.jnhw.common.memory.Struct32
getBaseDataType, nativeToHexString
-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
calcNextOffset, clear, copy, copy, equals, getByte, hashCode, memset, nativeToString, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Field Detail
-
uc_sigmask
public final Signal.Sigset_t uc_sigmask
The set of signals that are blocked when this context is active. POSIX:structure ucontext_t.
-
uc_stack
public final Signal.Stack_t uc_stack
The stack used by this context. POSIX:structure ucontext_t.
-
uc_mcontext
public final Signal.Mcontext_t uc_mcontext
A machine-specific representation of the saved context. POSIX:structure ucontext_t.
-
-
Constructor Detail
-
Ucontext_t
public Ucontext_t() throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
Ucontext_t
public Ucontext_t(boolean clearMem) throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
Ucontext_t
public Ucontext_t(NativeAddressHolder baseAddress) throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof() throws NoSuchNativeTypeException
Get the real size of struct ucontext_t natively.- Returns:
- the native value sizeof(struct ucontext_t).
- Throws:
NoSuchNativeTypeException
-
alignof
@AlignOf public static int alignof() throws NoSuchNativeTypeException
- Throws:
NoSuchNativeTypeException
-
offsetof_Uc_sigmask
public static int offsetof_Uc_sigmask() throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
offsetof_Uc_stack
public static int offsetof_Uc_stack() throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
offsetof_Uc_mcontext
public static int offsetof_Uc_mcontext() throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
uc_link
public final Signal.Ucontext_t uc_link(OpaqueMemory32.OpaqueMemory32Producer<Signal.Ucontext_t,Signal.Ucontext_t> producer) throws NoSuchNativeTypeException
Pointer to the context that is resumed when this context returns. POSIX:structure ucontext_t.- Throws:
NoSuchNativeTypeException
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-