Lines Matching refs:OK
503 return OK; in _recycle_handle()
519 return OK; in _stop_status_thread()
599 _send_status_callback(jq, cb_param, JOB_RUNNING, jq->blocked_reasons, OK); in _job_status_callback()
621 _send_status_callback(jq, cb_param, JOB_BLOCKED, blocked_reasons, OK); in _job_status_callback()
672 _send_status_callback(jq, cb_param, JOB_RUNNING, 0, OK); in _print_job_state_callback()
679 _send_status_callback(jq, cb_param, JOB_BLOCKED, jq->blocked_reasons, OK); in _print_job_state_callback()
727 result = OK; in _start_status_thread()
734 if (result == OK) { in _start_status_thread()
746 if (result == OK) { in _start_status_thread()
847 while (OK == msgQReceive(_msgQ, (char *) &msg, sizeof(msg), WAIT_FOREVER)) { in _job_thread()
872 job_result = OK; in _job_thread()
876 while (sem_trywait(&_job_start_wait_sem) == OK) { in _job_thread()
878 while (sem_trywait(&_job_end_wait_sem) == OK) { in _job_thread()
943 _send_status_callback(jq, cb_param, JOB_BLOCKED, blocked_reasons, OK); in _job_thread()
962 PRINT_STATUS_IDLE) ? OK : ERROR); in _job_thread()
967 if (job_result == OK) { in _job_thread()
980 if (job_result == OK) { in _job_thread()
981 _send_status_callback(jq, cb_param, JOB_RUNNING, 0, OK); in _job_thread()
987 if (job_result == OK) { in _job_thread()
1001 if (job_result == OK) { in _job_thread()
1007 if ((job_result == OK) && (jq->print_ifc->start_job != NULL) && in _job_thread()
1014 if (job_result == OK && jq->plugin->start_job != NULL) { in _job_thread()
1020 if (job_result == OK) { in _job_thread()
1025 if (jq->is_dir && (job_result == OK)) { in _job_thread()
1028 ((job_result == OK) || (job_result == CORRUPT)) && in _job_thread()
1048 while (OK == msgQReceive(jq->pageQ, (char *) &page, sizeof(page), in _job_thread()
1194 if (job_result == OK) { in _job_thread()
1203 } else if (job_result == OK) { in _job_thread()
1205 for (i = 0; ((i < jq->job_params.num_copies) && (job_result == OK)); i++) { in _job_thread()
1259 if (job_result == OK) { in _job_thread()
1283 if (result == OK) { in _job_thread()
1332 case OK: in _job_thread()
1400 result = OK; in _start_thread()
1408 if (result == OK) { in _start_thread()
1420 if (result == OK) { in _start_thread()
1440 return OK; in _stop_thread()
1499 if (_start_thread() != OK) { in wprintInit()
1641 result = OK; in wprintGetCapabilities()
1660 if (result == OK) { in wprintGetCapabilities()
1694 errno = OK; in _get_print_format()
1743 return OK; in wprintGetDefaultJobParams()
1755 result = OK; in wprintGetFinalJobParams()
1916 if (OK == stat(pathname, &stat_buf)) { in wprintStartJob()
2037 (msgQSend(_msgQ, (char *) &msg, sizeof(msg), NO_WAIT, MSG_Q_FIFO) == OK)) { in wprintStartJob()
2038 errno = OK; in wprintStartJob()
2073 result = OK; in wprintEndJob()
2077 WAIT_FOREVER) == OK)) { in wprintEndJob()
2086 WAIT_FOREVER) == OK)) { in wprintEndJob()
2118 } else if (OK == stat(filename, &stat_buf)) { in wprintPage()
2156 if (result == OK) { in wprintPage()
2188 errno = OK; in wprintCancelJob()
2191 if ((jq->cancel_ok == true) && (errno != OK)) { in wprintCancelJob()
2205 errno = (jq->cancel_ok ? OK : ENOTSUP); in wprintCancelJob()
2207 result = OK; in wprintCancelJob()
2210 result = OK; in wprintCancelJob()
2211 errno = (jq->cancel_ok ? OK : ENOTSUP); in wprintCancelJob()
2227 errno = OK; in wprintCancelJob()
2228 result = OK; in wprintCancelJob()
2251 (OK == msgQReceive(_msgQ, (char *) &msg, sizeof(msg), NO_WAIT))) {} in wprintExit()
2261 while (sem_trywait(&_job_end_wait_sem) == OK); in wprintExit()
2262 while (sem_trywait(&_job_start_wait_sem) == OK); in wprintExit()
2266 && (OK == msgQReceive(_msgQ, (char *) &msg, sizeof(msg), NO_WAIT))) {} in wprintExit()
2279 return OK; in wprintExit()