Lines Matching refs:pathname
269 char pathname[32]; in get_msr() local
272 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in get_msr()
273 fd = open(pathname, O_RDONLY); in get_msr()
275 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in get_msr()
281 err(-1, "%s offset 0x%llx read failed", pathname, (unsigned long long)offset); in get_msr()
1759 char pathname[32]; in check_dev_msr() local
1761 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_dev_msr()
1762 if (stat(pathname, &sb)) in check_dev_msr()
1775 char pathname[32]; in check_permissions() local
1790 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_permissions()
1791 if (euidaccess(pathname, R_OK)) { in check_permissions()