Lines Matching refs:record

92 static char	*toprec;	/* Additional record specified by cgetset() */
150 * Cgetcap searches the capability record buf for the capability cap with
209 * Cgetent extracts the capability record name from the NULL terminated file
213 * -1 if the requested record couldn't be found, -2 if a system error was
243 * pointer to a malloc'ed capability record with all tc= capabilities fully
266 char *record, *newrecord;
290 * Check if we have a top record from cgetset().
293 if ((record = malloc(topreclen + BFRAG)) == NULL) {
297 (void)strcpy(record, toprec); /* XXX: strcpy is safe */
299 rp = record + topreclen + 1;
306 if ((record = malloc(BFRAG)) == NULL) {
310 r_end = record + BFRAG;
313 * Loop through database array until finding the record.
331 free(record);
332 retval = cdbget(capdbp, &record, name);
334 /* no record available */
339 clen = strlen(record);
345 memmove(cbuf, record, clen + 1);
368 * Find the requested capability record ...
377 * There is always room for one more character in record.
378 * R_end always points just past end of record.
379 * Rp always points just past last character in record.
393 rp = record;
405 free(record);
455 * left in record buffer, try to get
462 pos = rp - record;
463 newsize = r_end - record + BFRAG;
464 newrecord = realloc(record, newsize);
466 free(record);
472 record = newrecord;
473 r_end = record + newsize;
474 rp = record + pos;
492 if (*record == '\0' || *record == '#')
496 * See if this is the record we want ...
498 if (cgetmatch(record, name) == 0)
499 if (nfield == NULL || !nfcmp(nfield, record)) {
513 * Got the capability record, but now we have to expand all tc=name
526 * There is room for one more character in record.
527 * R_end points just past end of record.
528 * Rp points just past last character in record.
529 * Scan points at remainder of record that needs to be
532 scan = record;
563 free(record);
577 /* not interested in name field of tc'ed record */
587 /* make sure interpolated record is `:'-terminated */
596 * new record.
603 pos = rp - record;
604 newsize = r_end - record + diff + BFRAG;
605 tcpos = tcstart - record;
606 tcposend = tcend - record;
607 newrecord = realloc(record, newsize);
609 free(record);
616 record = newrecord;
617 r_end = record + newsize;
618 rp = record + pos;
619 tcstart = record + tcpos;
620 tcend = record + tcposend;
624 * Insert tc'ed record into our record.
646 *len = rp - record - 1; /* don't count NUL */
649 realloc(record, (size_t)(rp - record))) == NULL) {
650 free(record);
654 record = newrecord;
657 *cap = record;
686 /* If not an index to another record, leave. */
701 * record buf, -1 if not.
712 * Start search at beginning of record.
717 * Try to match a record name.
730 * Match failed, skip to next name in record.
893 * rather than the duplicate entry record. This is a
907 * capability record pointed to by buf. A pointer to a decoded, NUL
1041 * capability record pointed to by buf. The difference between cgetustr()
1125 * capability record pointed to by buf. The numeric value is returned in
1193 * Compare name field of record.