Package ghidra.pcode.emu.unix
Class AbstractEmuUnixSyscallUseropLibrary.UnixStructuredPart
java.lang.Object
ghidra.pcode.struct.StructuredSleigh
AnnotatedEmuSyscallUseropLibrary<T>.ghidra.pcode.emu.sys.AnnotatedEmuSyscallUseropLibrary.StructuredPart
ghidra.pcode.emu.unix.AbstractEmuUnixSyscallUseropLibrary.UnixStructuredPart
- Enclosing class:
AbstractEmuUnixSyscallUseropLibrary<T>
protected class AbstractEmuUnixSyscallUseropLibrary.UnixStructuredPart
extends AnnotatedEmuSyscallUseropLibrary<T>.StructuredPart
System calls defined using Structured Sleigh
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.pcode.struct.StructuredSleigh
StructuredSleigh.FreshLabel, StructuredSleigh.Label, StructuredSleigh.LVal, StructuredSleigh.Param, StructuredSleigh.RVal, StructuredSleigh.Stmt, StructuredSleigh.StmtWithVal, StructuredSleigh.StructuredSleighError, StructuredSleigh.StructuredUserop, StructuredSleigh.UseropDecl, StructuredSleigh.Var, StructuredSleigh.WrapIf
-
Field Summary
Fields inherited from class ghidra.pcode.struct.StructuredSleigh
FALL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
gatherScatterIovec
(StructuredSleigh.Var in_fd, StructuredSleigh.Var in_iovec, StructuredSleigh.Var in_iovcnt, StructuredSleigh.UseropDecl subOp) Inline the gather or scatter pattern for an iovec syscallvoid
unix_readv
(StructuredSleigh.Var in_fd, StructuredSleigh.Var in_iovec, StructuredSleigh.Var in_iovcnt) The UNIXreadv
system callvoid
unix_writev
(StructuredSleigh.Var in_fd, StructuredSleigh.Var in_iovec, StructuredSleigh.Var in_iovcnt) The UNIXwritev
system callMethods inherited from class ghidra.pcode.struct.StructuredSleigh
_break, _continue, _for, _goto, _if, _result, _return, _while, addDataTypeSource, addDataTypeSources, computeDerefType, computeElementLength, computeFloatSize, doGenerate, e, emitAssignmentTypeMismatch, emitDerefNonPointer, emitParameterCountMismatch, emitParameterTypeMismatch, emitResultTypeMismatch, encodeFloat, findComponent, findComponentByName, generate, generate, generate, getMethodLookup, isAssignable, lang, lit, litd, litf, litf, local, local, reg, s, temp, type, types, userop
-
Constructor Details
-
UnixStructuredPart
protected UnixStructuredPart()
-
-
Method Details
-
gatherScatterIovec
protected void gatherScatterIovec(StructuredSleigh.Var in_fd, StructuredSleigh.Var in_iovec, StructuredSleigh.Var in_iovcnt, StructuredSleigh.UseropDecl subOp) Inline the gather or scatter pattern for an iovec syscallThis is essentially a macro by virtue of the host (Java) language. Note that
StructuredSleigh._result(RVal)
from here will cause the whole userop to return, not just fromgatherScatterIovec(Var, Var, Var, UseropDecl)
. -
unix_readv
public void unix_readv(StructuredSleigh.Var in_fd, StructuredSleigh.Var in_iovec, StructuredSleigh.Var in_iovcnt) The UNIXreadv
system call- Parameters:
in_fd
- the file descriptorin_iovec
- pointer to the vector of buffersin_iovcnt
- the number of buffers
-
unix_writev
public void unix_writev(StructuredSleigh.Var in_fd, StructuredSleigh.Var in_iovec, StructuredSleigh.Var in_iovcnt) The UNIXwritev
system call- Parameters:
in_fd
- the file descriptorin_iovec
- pointer to the vector of buffersin_iovcnt
- the number of buffers
-