Lines Matching defs:contents
4 * The contents of this file are subject to the terms of the
406 * returns 1 if contents is a minor node in /devices.
408 * if contents is a /dev node, mn_root = contents
410 * if contents is a /devices node, mn_root set to the '/'
414 dmap_minor_root(const char *contents, const char **mn_root)
420 if ((ptr = strstr(contents, prefix)) != NULL) {
431 if (strncmp(contents, prefix, strlen(prefix)) == 0) {
435 *mn_root = contents + strlen(prefix) - 1;
441 *mn_root = contents;
458 char contents[PATH_MAX + 1];
468 linksize = readlink(devpath, contents, PATH_MAX);
473 contents[linksize] = '\0';
477 * if the link contents is not a minor node assume
478 * that link contents is really a pointer to another
479 * link, and if so recurse and read its link contents.
481 if (dmap_minor_root((const char *)contents, (const char **)&ptr) !=
483 if (strncmp(contents, slashdev, strlen(slashdev)) == 0) {
485 (void) strcpy(stage_link, contents);
496 (void) strcat(stage_link, contents);