Lines Matching refs:status
367 if (wire.status)
369 DBG(DBG_ERR, "auth_callback: bad status %d\n", wire.status);
413 if (wire.status)
415 DBG(DBG_ERR, "auth_callback: bad status %d\n", wire.status);
424 if (wire.status)
426 DBG(DBG_ERR, "auth_callback: bad status %d\n", wire.status);
441 if (wire.status)
443 DBG(DBG_ERR, "auth_callback: bad status %d\n", wire.status);
547 if (w->status || (unsigned) h >= (unsigned) num_handles || !handle[h].inuse)
551 "(h=%d, %s)\n", op, h, strerror (w->status));
1341 SANE_Status status;
1346 status = check_host (w->io.fd);
1347 if (status != SANE_STATUS_GOOD)
1356 if (w->status)
1358 DBG (DBG_ERR, "init: bad status after sanei_w_set_dir: %d\n", w->status);
1363 if (w->status || word != SANE_NET_INIT)
1365 DBG (DBG_ERR, "init: bad status=%d or procnum=%d\n",
1366 w->status, word);
1371 if (w->status)
1373 DBG (DBG_ERR, "init: bad status after sanei_w_init_req: %d\n", w->status);
1382 if (w->status)
1384 DBG (DBG_ERR, "init: bad status after sanei_w_free: %d\n", w->status);
1394 if (status == SANE_STATUS_GOOD)
1396 status = sane_init (&be_version_code, auth_callback);
1397 if (status != SANE_STATUS_GOOD)
1399 sane_strstatus (status));
1406 status = SANE_STATUS_INVAL;
1409 reply.status = status;
1410 if (status != SANE_STATUS_GOOD)
1414 if (w->status || status != SANE_STATUS_GOOD)
1448 reply->status = SANE_STATUS_IO_ERROR;
1457 reply->status = SANE_STATUS_IO_ERROR;
1503 reply->status = SANE_STATUS_IO_ERROR;
1511 reply->status = SANE_STATUS_IO_ERROR;
1519 reply->status = SANE_STATUS_IO_ERROR;
1541 reply->status = sane_start (be_handle);
1542 if (reply->status == SANE_STATUS_GOOD)
1569 reply->status = SANE_STATUS_IO_ERROR;
1578 reply->status = SANE_STATUS_IO_ERROR;
1598 reply->status = SANE_STATUS_IO_ERROR;
1606 reply->status = SANE_STATUS_IO_ERROR;
1614 reply->status = SANE_STATUS_IO_ERROR;
1622 reply->status = sane_start (be_handle);
1623 if (reply->status == SANE_STATUS_GOOD)
1659 SANE_Status status;
1688 status = SANE_STATUS_GOOD;
1700 pass back this status to the client: */
1704 if (status == SANE_STATUS_GOOD)
1706 status = SANE_STATUS_EOF;
1712 status = SANE_STATUS_IO_ERROR;
1738 status = SANE_STATUS_CANCELLED;
1749 else if (status == SANE_STATUS_GOOD
1769 status = sane_read (be_handle, buf + reader, nbytes, &length);
1780 if (status != SANE_STATUS_GOOD)
1785 "do_scan: status = `%s'\n", sane_strstatus(status));
1795 buf[reader] = status;
1798 sane_strstatus(status));
1812 while (status == SANE_STATUS_GOOD || bytes_in_buf > 0 || status_dirty);
1813 DBG (DBG_MSG, "do_scan: done, status=%s\n", sane_strstatus (status));
1833 if (w->status)
1836 "process_request: bad status %d\n", w->status);
1850 reply.status =
1864 if (w->status)
1868 strerror (w->status));
1875 reply.status = SANE_STATUS_INVAL;
1896 reply.status = i;
1905 reply.status = SANE_STATUS_INVAL;
1923 reply.status = SANE_STATUS_ACCESS_DENIED;
1931 reply.status = sane_open (name, &be_handle);
1933 sane_strstatus (reply.status));
1936 if (reply.status == SANE_STATUS_GOOD)
1940 reply.status = SANE_STATUS_NO_MEM;
1994 if (w->status || (unsigned) req.handle >= (unsigned) num_handles
2000 , req.handle, strerror (w->status));
2026 w->status = ENOMEM;
2029 "h=%d (%s)\n", req.handle, strerror (w->status));
2040 reply.status = sane_control_option (be_handle, req.option,
2064 reply.status = sane_get_parameters (be_handle, &reply.params);
2086 reply.status = SANE_STATUS_DEVICE_BUSY;
2093 if (reply.status == SANE_STATUS_GOOD)
2164 if (reply.status == SANE_STATUS_GOOD)
2279 wait_child (pid_t pid, int *status, int options)
2285 ret = waitpid(pid, status, options);