/* * pbs_selstat() - Selectable status * Return status information for jobs that meet certain selection * criteria. This is a short-cut combination of pbs_selecljob() * and repeated pbs_statjob(). */ struct batch_status * pbs_selstat_err( int c, struct attropl *attrib, char *extend, int *local_errno) { if (PBSD_select_put(c, PBS_BATCH_SelStat, attrib, extend) == 0) return (PBSD_status_get(local_errno, c)); else return ((struct batch_status *)0); } /* END pbs_selstat_err() */
struct batch_status * pbs_selstat( int c, struct attropl *attrib, char *extend) { pbs_errno = 0; if (PBSD_select_put(c, PBS_BATCH_SelStat, attrib, extend) == 0) return (PBSD_status_get(&pbs_errno, c)); else return ((struct batch_status *)0); } /* END pbs_selstat() */
struct batch_status * PBSD_status(int c, int function, char *objid, struct attrl *attrib, char *extend) { int rc; struct batch_status *PBSD_status_get(int c); /* send the status request */ if (objid == NULL) objid = ""; /* set to null string for encoding */ rc = PBSD_status_put(c, function, objid, attrib, extend, 0, NULL); if (rc) { return NULL; } /* get the status reply */ return (PBSD_status_get(c)); }