Lines Matching defs:dumpdev
315 char dumpdev[PATH_MAX];
321 len = sizeof(dumpdev);
322 if (sysctlbyname(sysctlname, &dumpdev, &len, NULL, 0) != 0) {
330 if (strlen(dumpdev) == 0)
331 (void)strlcpy(dumpdev, _PATH_DEVNULL, sizeof(dumpdev));
339 ctx = dumpdev;
343 printf("%s\n", dumpdev);
374 opendumpdev(const char *arg, char *dumpdev)
379 strlcpy(dumpdev, arg, PATH_MAX);
381 i = snprintf(dumpdev, PATH_MAX, "%s%s", _PATH_DEV, arg);
388 fd = open(dumpdev, O_RDONLY);
390 err(EX_OSFILE, "%s", dumpdev);
397 char dumpdev[PATH_MAX];
511 fd = opendumpdev(dev, dumpdev);
513 check_size(fd, dumpdev);