Lines Matching defs:lbuf
292 char lbuf[128], *cp, *ep, *dev, *fstyp;
298 snprintf(lbuf, sizeof(lbuf), "%s/etc/fstab", rootdev);
299 if ((fd = open(lbuf, O_RDONLY)) < 0)
304 while (fgetstr(lbuf, sizeof(lbuf), fd) >= 0) {
305 if ((lbuf[0] == 0) || (lbuf[0] == '#'))
309 for (cp = lbuf; (*cp != 0) && !isspace(*cp); cp++)
315 dev = strdup(lbuf);
337 snprintf(lbuf, sizeof(lbuf), "%s:%s", fstyp, dev);
340 setenv("vfs.root.mountfrom", lbuf, 0);