BASEPATH
n = strlcpy(buf, BASEPATH, size);
n = snprintf(buf, size, BASEPATH "%d", unit);
if (strncmp(name, BASEPATH, strlen(BASEPATH)) != 0) {
if (strncmp(name, BASEPATH, strlen(name)) == 0)
m->unit = strtol(name + strlen(BASEPATH), NULL, 10);
(void)snprintf(m->name, sizeof(m->name), BASEPATH "%d", m->unit);