78 lines
1.5 KiB
Java
78 lines
1.5 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.tridium.platform.qnx;
|
|
|
|
public class WaitPidResponse {
|
|
private int rc;
|
|
private int errno;
|
|
private int status;
|
|
|
|
public int getRc() {
|
|
return this.rc;
|
|
}
|
|
|
|
public int getErrno() {
|
|
return this.errno;
|
|
}
|
|
|
|
public int getStatus() {
|
|
return this.status;
|
|
}
|
|
|
|
public int WEXITSTATUS() {
|
|
return this.status >> 8 & 0xFF;
|
|
}
|
|
|
|
public boolean WIFCONTINUED() {
|
|
boolean bl = false;
|
|
if ((this.status & (char)-1) == (char)-1) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public boolean WIFEXITED() {
|
|
boolean bl = false;
|
|
if ((this.status & 0xFF) == 0) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public boolean WIFSIGNALED() {
|
|
boolean bl = false;
|
|
if ((this.status & 0xFF) != 0 && (this.status & 0xFF00) == 0) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public boolean WIFSTOPPED() {
|
|
boolean bl = false;
|
|
if ((this.status & 0xFF) == 127 && (this.status & 0xFF00) != 0) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public int WSTOPSIG() {
|
|
return this.status >> 8 & 0xFF;
|
|
}
|
|
|
|
public int WTERMSIG() {
|
|
return this.status & 0x7F;
|
|
}
|
|
|
|
public String toString() {
|
|
return "rc=" + this.rc + ", errno = " + this.errno + ", status = " + this.status;
|
|
}
|
|
|
|
private WaitPidResponse(int n, int n2, int n3) {
|
|
this.rc = n;
|
|
this.errno = n2;
|
|
this.status = n3;
|
|
}
|
|
}
|
|
|