#include "c.h"
#include "nls.h"
#include "blkdev.h"
+#include "pathnames.h"
struct bdc {
long ioc; /* ioctl code */
}
}
-#define PROC_PARTITIONS "/proc/partitions"
-
void
report_all_devices(void) {
FILE *procpt;
char device[210];
int ma, mi, sz;
- procpt = fopen(PROC_PARTITIONS, "r");
+ procpt = fopen(_PATH_PROC_PARTITIONS, "r");
if (!procpt)
- err(EXIT_FAILURE, _("cannot open %s"), PROC_PARTITIONS);
+ err(EXIT_FAILURE, _("cannot open %s"), _PATH_PROC_PARTITIONS);
while (fgets(line, sizeof(line), procpt)) {
if (sscanf (line, " %d %d %d %200[^\n ]",