Lines Matching refs:path
243 static void check(char *path, long int value)
248 snprintf(fullpath, BUFSIZ, PATH_KSM "%s", path);
252 tst_res(TFAIL, "%s is not %ld but %ld.", path, value,
255 tst_res(TPASS, "%s is %ld.", path, actual_val);
546 char path[BUFSIZ], path1[BUFSIZ];
552 snprintf(path, BUFSIZ,
554 if (path_exist(path)) {
555 snprintf(path1, BUFSIZ, "%s/online", path);
629 int path_exist(const char *path, ...)
634 va_start(ap, path);
635 vsnprintf(pathbuf, sizeof(pathbuf), path, ap);
644 char path[BUFSIZ];
648 snprintf(path, BUFSIZ, PATH_SYSVM "%s", sys_file);
649 SAFE_FILE_PRINTF(path, "%ld", tune);
661 char path[BUFSIZ];
664 snprintf(path, BUFSIZ, PATH_SYSVM "%s", sys_file);
665 SAFE_FILE_SCANF(path, "%ld", &tune);