import oshi.software.os.*; static OSProcess oshi_currentProcess() { OperatingSystem os = oshi_operatingSystem(); int pid = os.getProcessId(); ret os.getProcess(pid); }