Lines Matching defs:path
30 static void mkdir_p(char *path) {
34 path = strdup(path);
35 path = dirname(path);
36 stat(path, &statbuf);
39 free(path);
43 for (ptr = path; ptr != NULL; ptr = strchr(ptr, '/')) {
44 if (ptr == path) {
51 mkdir(path, 0755);
58 mkdir(path, 0755);
59 free(path);
174 static int make_dev_from_event(struct hotplug2_event_t *event, char *path, mode_t devmode) {
196 path = replace_key_by_value(path, event);
197 mkdir_p(path);
198 rv = mknod(path, devmode, makedev(atoi(major), atoi(minor)));
199 free(path);