Lines Matching refs:status
99 int status;
102 if ((status = cgetent(&bp, printcapdb, printer)) < 0)
103 return status;
104 status = getprintcap_int(bp, pp);
106 return status;
110 * Map the status values returned by cgetfirst/cgetnext into those
116 firstnextmap(int *status)
118 switch (*status) {
122 *status = 0;
125 *status = 1;
128 *status = -2;
131 *status = -3;
145 int status;
149 status = cgetfirst(&bp, printcapdb);
150 if (firstnextmap(&status) == 0) {
152 *error = status;
156 *error = status;
157 status = getprintcap_int(bp, pp);
159 if (error && status)
160 *error = status;
167 int status;
171 status = cgetnext(&bp, printcapdb);
172 if (firstnextmap(&status) == 0) {
174 *error = status;
178 *error = status;
179 status = getprintcap_int(bp, pp);
181 if (error && status)
182 *error = status;
252 CHK(capdb_getaltstr(bp, "st", "spool.status", DEFSTAT,
374 int status;
376 status = cgetstr(bp, lng, result);
377 if (status >= 0 || status == PCAPERR_OSERR)
378 return status;
379 status = cgetstr(bp, shrt, result);
380 if (status >= 0 || status == PCAPERR_OSERR)
381 return status;
398 int status;
400 status = cgetnum(bp, lng, result);
401 if (status >= 0)
402 return status;
403 status = cgetnum(bp, shrt, result);
404 if (status >= 0)
405 return status;