Lines Matching defs:node
909 /* Figure out the correct device node to open */
4849 * Called from main to construct the name of the device node to open.
4850 * Initially tries to stat the node exactly as provided, if that fails
4856 char *node;
4864 node = devname;
4866 /* Try the node as provided first */
4867 if (stat(node, (struct stat *)&statbuf) == -1) {
4874 if ((node = malloc(space)) == NULL) {
4876 "for device node.\n");
4880 /* Copy over the default path and the provided node */
4881 (void) strncpy(node, DEFAULT_PATH, strlen(DEFAULT_PATH));
4883 (void) strlcpy(node + strlen(DEFAULT_PATH), devname, space);
4886 if (stat(node, (struct stat *)&statbuf) == -1) {
4898 "fdisk: %s must be a raw device.\n", node);
4902 return (node);