Lines Matching defs:filepath
245 char filepath[PATH_SIZE];
251 strlcpy(filepath, devicepath, sizeof(filepath));
252 strlcat(filepath, "/", sizeof(filepath));
253 strlcat(filepath, file, sizeof(filepath));
255 dbg("will wait %i sec for '%s'", timeout, filepath);
258 if (stat(filepath, &stats) == 0) {
259 info("file '%s' appeared after %i loops", filepath, (timeout * WAIT_LOOP_PER_SECOND) - loop-1);
264 info("device disappeared while waiting for '%s'", filepath);
267 info("wait for '%s' for %i mseconds", filepath, 1000 / WAIT_LOOP_PER_SECOND);
270 info("waiting for '%s' failed", filepath);