Lines Matching defs:key
70 v1_to_v2(DBT *key __unused, DBT *data)
112 DBT key, data;
118 key.data = &keydata;
119 key.size = strlen(keydata);
121 rv = DB_GET(pacct_db, &key, &data, 0);
123 warn("get key %s from process accounting stats", ci->ci_comm);
129 } else { /* it's not there; zero it and copy the key */
131 bcopy(key.data, newci.ci_comm, key.size);
138 rv = DB_PUT(pacct_db, &key, &data, 0);
140 warn("add key %s to process accounting stats", ci->ci_comm);
143 warnx("duplicate key %s in process accounting stats",
163 DBT key, data, ndata;
176 * Retrieve them into new DB, sorted by appropriate key.
189 rv = DB_SEQ(pacct_db, &key, &data, R_FIRST);
215 next: rv = DB_SEQ(pacct_db, &key, &data, R_NEXT);