All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.unidbg.ios.struct.sysctl.EProc64 Maven / Gradle / Ivy

The newest version!
package com.github.unidbg.ios.struct.sysctl;

import com.github.unidbg.pointer.UnidbgStructure;
import com.sun.jna.Pointer;

import java.util.Arrays;
import java.util.List;

/**
 * eproc
 */
public class EProc64 extends UnidbgStructure {

    private static final int WMESGLEN = 7;
    private static final int COMAPT_MAXLOGNAME = 12;

    public EProc64(Pointer p) {
        super(p);
    }

    public long e_paddr; /* address of proc */
    public long e_sess; /* session pointer */
    public Pcred64 e_pcred; /* process credentials */
    public Ucred e_ucred; /* current credentials */
    public VmSpace64 e_vm; /* address space */
    public int e_ppid; /* parent process id */
    public int e_pgid; /* process group id */
    public short e_jobc; /* job control counter */
    public int e_tdev; /* controlling tty dev */
    public int e_tpgid; /* tty process group id */
    public long e_tsess; /* tty session pointer */
    public byte[] e_wmesg = new byte[WMESGLEN + 1]; /* wchan message */
    public int e_xsize; /* text size */
    public short e_xrssize; /* text rss */
    public short e_xccount; /* text references */
    public short e_xswrss;
    public int e_flag;
    public byte[] e_login = new byte[COMAPT_MAXLOGNAME]; /* short setlogin() name */
    public int[] e_spare = new int[4];

    @Override
    protected List getFieldOrder() {
        return Arrays.asList("e_paddr", "e_sess", "e_pcred", "e_ucred", "e_vm", "e_ppid", "e_pgid", "e_jobc",
                "e_tdev", "e_tpgid", "e_tsess", "e_wmesg", "e_xsize", "e_xrssize", "e_xccount", "e_xswrss",
                "e_flag", "e_login", "e_spare");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy