stub proc_state.processor

This commit is contained in:
Doug MacEachern 2005-11-23 01:28:51 +00:00
parent 92a33c7caf
commit ef15aa3434
5 changed files with 5 additions and 0 deletions

View File

@ -736,6 +736,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->tty = pstat->tty;
procstate->priority = pstat->priority;
procstate->nice = pstat->nice;
procstate->processor = SIGAR_FIELD_NOTIMPL;
proc_status_get(sigar, pid, procstate);

View File

@ -215,6 +215,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->tty = -1;
procstate->state = 'R';
procstate->threads = -1;
procstate->processor = -1;
return SIGAR_OK;
}

View File

@ -280,6 +280,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->nice = SIGAR_FIELD_NOTIMPL;
procstate->tty = info.pi_ttyd;
procstate->threads = SIGAR_FIELD_NOTIMPL;
procstate->processor = SIGAR_FIELD_NOTIMPL;
switch (info.pi_status) {
case PI_ACTIVE:

View File

@ -137,6 +137,7 @@ int sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->tty = -1;
procstate->state = 'R';
procstate->threads = -1;
procstate->processor = -1;
return SIGAR_OK;
}

View File

@ -949,6 +949,7 @@ SIGAR_DECLARE(int) sigar_proc_state_get(sigar_t *sigar, sigar_pid_t pid,
procstate->nice = SIGAR_FIELD_NOTIMPL;
procstate->tty = SIGAR_FIELD_NOTIMPL;
procstate->threads = pinfo->threads;
procstate->processor = SIGAR_FIELD_NOTIMPL;
return SIGAR_OK;
}