Home | History | Annotate | Download | only in gen

Lines Matching defs:record

93 static char	*toprec;	/* Additional record specified by cgetset() */
151 * Cgetcap searches the capability record buf for the capability cap with
207 * Cgetent extracts the capability record name from the NULL terminated file
211 * -1 if the requested record couldn't be found, -2 if a system error was
241 * pointer to a malloc'ed capability record with all tc= capabilities fully
257 char *record, *newrecord;
281 * Check if we have a top record from cgetset().
284 if ((record = malloc(topreclen + BFRAG)) == NULL) {
288 (void)strcpy(record, toprec); /* XXX: strcpy is safe */
290 rp = record + topreclen + 1;
297 if ((record = malloc(BFRAG)) == NULL) {
301 r_end = record + BFRAG;
304 * Loop through database array until finding the record.
327 free(record);
328 retval = cdbget(capdbp, &record, name);
330 /* no record available */
335 clen = strlen(record);
341 memmove(cbuf, record, clen + 1);
364 * Find the requested capability record ...
373 * There is always room for one more character in record.
374 * R_end always points just past end of record.
375 * Rp always points just past last character in record.
389 rp = record;
401 free(record);
451 * left in record buffer, try to get
458 pos = rp - record;
459 newsize = r_end - record + BFRAG;
460 newrecord = realloc(record, newsize);
462 free(record);
468 record = newrecord;
469 r_end = record + newsize;
470 rp = record + pos;
488 if (*record == '\0' || *record == '#')
492 * See if this is the record we want ...
494 if (cgetmatch(record, name) == 0)
495 if (nfield == NULL || !nfcmp(nfield, record)) {
506 free(record);
511 * Got the capability record, but now we have to expand all tc=name
525 * There is room for one more character in record.
526 * R_end points just past end of record.
527 * Rp points just past last character in record.
528 * Scan points at remainder of record that needs to be
531 scan = record;
562 free(record);
576 /* not interested in name field of tc'ed record */
586 /* make sure interpolated record is `:'-terminated */
595 * new record.
602 pos = rp - record;
603 newsize = r_end - record + diff + BFRAG;
604 tcpos = tcstart - record;
605 tcposend = tcend - record;
606 newrecord = realloc(record, newsize);
608 free(record);
615 record = newrecord;
616 r_end = record + newsize;
617 rp = record + pos;
618 tcstart = record + tcpos;
619 tcend = record + tcposend;
623 * Insert tc'ed record into our record.
645 *len = rp - record - 1; /* don't count NUL */
648 realloc(record, (size_t)(rp - record))) == NULL) {
649 free(record);
653 record = newrecord;
656 *cap = record;
685 /* If not an index to another record, leave. */
700 * record buf, -1 if not.
711 * Start search at beginning of record.
716 * Try to match a record name.
729 * Match failed, skip to next name in record.
892 * rather than the duplicate entry record. This is a
906 * capability record pointed to by buf. A pointer to a decoded, NUL
1041 * capability record pointed to by buf. The difference between cgetustr()
1126 * capability record pointed to by buf. The numeric value is returned in
1194 * Compare name field of record.