Lines Matching defs:path
53 char *path;
56 path = g_device_path_open(name, &fd, dowrite);
57 if (path != NULL)
58 free(path);
271 * Return the device path device given a partial or full path to its node.
278 char *path;
298 if ((path = strdup(devpath)) == NULL) {
306 return (path);
309 /* If we're not given an absolute path, assume /dev/ prefix. */
311 asprintf(&path, "%s%s", _PATH_DEV, devpath);
312 if (path == NULL)
314 fd = open(path, dowrite ? O_RDWR : O_RDONLY);
316 free(path);
324 free(path);
333 return (path);