Lines Matching refs:sfsprintf

173 			n = sfsprintf(ret, sizeof(ret), "I closed\n", key.dptr);
178 if (val.dptr) n = sfsprintf(ret, sizeof(ret), "I %s\n", val.dptr);
182 n = sfsprintf(ret, sizeof(ret), "E db io error\n");
184 else n = sfsprintf(ret, sizeof(ret), "W %s not in db\n", key.dptr);
207 if (val.dptr) n = sfsprintf(ret, sizeof(ret), "I %s %s\n", key.dptr, val.dptr);
213 n = sfsprintf(ret, sizeof(ret), "E db io error\n");
215 else n = sfsprintf(ret, sizeof(ret), "E %s not in db\n", key.dptr);
219 else n = sfsprintf(ret, sizeof(ret), "I %s\n", key.dptr);
226 n = sfsprintf(ret, sizeof(ret), "E db io error\n");
228 else n = sfsprintf(ret, sizeof(ret), "W end of scan\n");
242 sfsprintf(ret, sizeof(ret), "%s.dir", key.dptr);
268 if (cp->db) n = sfsprintf(ret, sizeof(ret), "I %s opened\n", key.dptr);
269 else n = sfsprintf(ret, sizeof(ret), "E %s cannot open\n", key.dptr);
275 n = sfsprintf(ret, sizeof(ret), "E db is readonly\n");
280 if (!dbm_store(cp->db->dbm, key, val, DBM_REPLACE)) n = sfsprintf(ret, sizeof(ret), "I entered\n");
284 n = sfsprintf(ret, sizeof(ret), "E db io error\n");
286 else n = sfsprintf(ret, sizeof(ret), "E %s not changed\n", key.dptr);
288 else if (!dbm_delete(cp->db->dbm, key)) n = sfsprintf(ret, sizeof(ret), "I deleted\n");
292 n = sfsprintf(ret, sizeof(ret), "E db io error\n");
294 else n = sfsprintf(ret, sizeof(ret), "W %s not in db\n", key.dptr);
298 n = sfsprintf(ret, sizeof(ret), "I quit\n");
303 n = sfsprintf(ret, sizeof(ret), "I ready to scan\n");
306 n = sfsprintf(ret, sizeof(ret), "I %s %s %u\n", id + 10, csname(0L), getpid());
309 n = sfsprintf(ret, sizeof(ret), "E invalid command %s\n", cmd);
312 n = sfsprintf(ret, sizeof(ret), "E db not open\n");