Module de.ibapl.jnhw.posix
Package de.ibapl.jnhw.posix
Class Signal.Siginfo_t<T extends OpaqueMemory32>
- 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.Siginfo_t<T>
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Signal
public static class Signal.Siginfo_t<T extends OpaqueMemory32> extends Struct32
POSIX:structure siginfo_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.Sigval<T>si_valueSignal value.-
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 Siginfo_t()Siginfo_t(NativeAddressHolder address)Create a wrapper around some unknown mem - it will NOT be freed
-
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_Si_value()longsi_addr()Address of faulting instruction.longsi_band()Band event for SIGPOLL.intsi_code()Signal code.intsi_errno()If non-zero, an errno value associated with this signal, as described in <errno.h>.intsi_pid()Sending process ID.pid_t si_pid Sending process ID..intsi_signo()Signal number.intsi_status()Exit value or signal.intsi_uid()Sending process ID.uid_t si_uid Real user ID of sending process.static intsizeof()Get the real size of struct siginfo_t natively.-
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
-
si_value
public final Signal.Sigval<T extends OpaqueMemory32> si_value
Signal value. POSIX:structure siginfo_t.
-
-
Constructor Detail
-
Siginfo_t
public Siginfo_t()
-
Siginfo_t
public Siginfo_t(NativeAddressHolder address)
Create a wrapper around some unknown mem - it will NOT be freed- Parameters:
address-
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof()
Get the real size of struct siginfo_t natively.- Returns:
- the native value sizeof(struct siginfo_t).
-
alignof
@AlignOf public static int alignof()
-
offsetof_Si_value
public static int offsetof_Si_value()
-
si_signo
public final int si_signo()
Signal number. POSIX:structure siginfo_t.- Returns:
- the native value of si_signo.
-
si_code
public final int si_code()
Signal code. POSIX:structure siginfo_t.- Returns:
- the native value of si_code.
-
si_errno
public final int si_errno()
If non-zero, an errno value associated with this signal, as described in <errno.h>. POSIX:structure siginfo_t.- Returns:
- the native value of si_errno.
-
si_pid
public final int si_pid()
Sending process ID.pid_t si_pid Sending process ID.. POSIX:structure siginfo_t.- Returns:
- the native value of si_pid.
-
si_uid
public final int si_uid()
Sending process ID.uid_t si_uid Real user ID of sending process. POSIX:structure siginfo_t.- Returns:
- the native value of si_pid.
-
si_addr
public final long si_addr()
Address of faulting instruction. POSIX:structure siginfo_t.- Returns:
- the native value of si_addr.
-
si_status
public final int si_status()
Exit value or signal. POSIX:structure siginfo_t.- Returns:
- the native value of si_status.
-
si_band
public final long si_band() throws NoSuchNativeTypeMemberExceptionBand event for SIGPOLL. POSIX:structure siginfo_t.- Returns:
- the native value of si_band.
- Throws:
NoSuchNativeTypeMemberException
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-