int pbs_manager_err( int c, int command, int objtype, char *objname, struct attropl *attrib, char *extend, int *local_errno) { return(PBSD_manager(c, PBS_BATCH_Manager, command, objtype, objname, attrib, extend, local_errno)); } /* END pbs_manager_err() */
int pbs_checkpointjob(int c, char *jobid, char *extend) { if ((jobid == (char *)0) || (*jobid == '\0')) return (pbs_errno = PBSE_IVALREQ); return PBSD_manager(c, PBS_BATCH_CheckpointJob, MGR_CMD_SET, MGR_OBJ_JOB, jobid, NULL, extend); }
int pbs_deljob(int c, char *jobid, char *extend) { struct attropl *aoplp = (struct attropl *)NULL; if ((jobid == (char *)0) || (*jobid == '\0')) return (pbs_errno = PBSE_IVALREQ); return PBSD_manager(c, PBS_BATCH_DeleteJob, MGR_CMD_DELETE, MGR_OBJ_JOB, jobid, aoplp, extend); }
/** * @brief * Send the Delete Job request to the server * really just an instance of the manager request * * @param[in] c - connection handler * @param[in] resv_id - reservation identifier * @param[in] extend - string to encode req * * @return int * @retval 0 success * @retval !0 error * */ int __pbs_delresv(int c, char *resv_id, char *extend) { struct attropl *aoplp = NULL; if ((resv_id == NULL) || (*resv_id == '\0')) return (pbs_errno = PBSE_IVALREQ); return PBSD_manager(c, PBS_BATCH_DeleteResv, MGR_CMD_DELETE, MGR_OBJ_JOB, resv_id, aoplp, extend); }
int __pbs_rlsjob(int c, char *jobid, char *holdtype, char *extend) { struct attropl aopl; if ((jobid == NULL) || (*jobid == '\0')) return (pbs_errno = PBSE_IVALREQ); aopl.name = ATTR_h; aopl.resource = NULL; if ((holdtype == NULL) || (*holdtype == '\0')) aopl.value = "u"; else aopl.value = holdtype; aopl.op = SET; aopl.next = NULL; return PBSD_manager(c, PBS_BATCH_ReleaseJob, MGR_CMD_SET, MGR_OBJ_JOB, jobid, &aopl, extend); }
int pbs_manager( int c, int command, int objtype, char *objname, struct attropl *attrib, char *extend) { int rc; rc = PBSD_manager( c, PBS_BATCH_Manager, command, objtype, objname, attrib, extend); return(rc); } /* END pbs_manager() */