• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/libc/gen/

Lines Matching refs:record

65 static char	*toprec;	/* Additional record specified by cgetset() */
98 * Cgetcap searches the capability record buf for the capability cap with
152 * Cgetent extracts the capability record name from the NULL terminated file
156 * -1 if the requested record couldn't be found, -2 if a system error was
175 * pointer to a malloc'ed capability record with all tc= capabilities fully
193 char *record, *cbuf;
205 * Check if we have a top record from cgetset().
208 if ((record = malloc (topreclen + BFRAG)) == NULL) {
212 (void)strcpy(record, toprec);
215 rp = record + topreclen + 1;
222 if ((record = malloc(BFRAG)) == NULL) {
226 r_end = record + BFRAG;
229 * Loop through database array until finding the record.
246 free(record);
247 retval = cdbget(capdbp, &record, name);
249 /* no record available */
254 cbuf = strdup(record);
274 * Find the requested capability record ...
283 * There is always room for one more character in record.
284 * R_end always points just past end of record.
285 * Rp always points just past last character in record.
297 rp = record;
307 free(record);
321 if (rp > record && *(rp-1) == '\\') {
331 * left in record buffer, try to get
338 pos = rp - record;
339 newsize = r_end - record + BFRAG;
340 record = reallocf(record, newsize);
341 if (record == NULL) {
347 r_end = record + newsize;
348 rp = record + pos;
363 if (*record == '\0' || *record == '#')
367 * See if this is the record we want ...
369 if (cgetmatch(record, name) == 0) {
370 if (nfield == NULL || !nfcmp(nfield, record)) {
382 free(record);
387 * Got the capability record, but now we have to expand all tc=name
399 * There is room for one more character in record.
400 * R_end points just past end of record.
401 * Rp points just past last character in record.
402 * Scan points at remainder of record that needs to be
405 scan = record;
437 free(record);
451 /* not interested in name field of tc'ed record */
462 /* make sure interpolated record is `:'-terminated */
471 * new record.
478 pos = rp - record;
479 newsize = r_end - record + diff + BFRAG;
480 tcpos = tcstart - record;
481 tcposend = tcend - record;
482 record = reallocf(record, newsize);
483 if (record == NULL) {
490 r_end = record + newsize;
491 rp = record + pos;
492 tcstart = record + tcpos;
493 tcend = record + tcposend;
497 * Insert tc'ed record into our record.
519 *len = rp - record - 1; /* don't count NUL */
521 if ((record =
522 reallocf(record, (size_t)(rp - record))) == NULL) {
527 *cap = record;
556 /* If not an index to another record, leave. */
571 * record buf, -1 if not.
582 * Start search at beginning of record.
587 * Try to match a record name.
601 * Match failed, skip to next name in record.
762 * rather than the duplicate entry record. This is a
776 * capability record pointed to by buf. A pointer to a decoded, NUL
902 * capability record pointed to by buf. The difference between cgetustr()
974 * capability record pointed to by buf. The numeric value is returned in
1038 * Compare name field of record.