Lines Matching refs:linebuf
59 struct mntent *getmntent_r(FILE *f, struct mntent *mnt, char *linebuf, int buflen)
61 int n[8], use_internal = (linebuf == SENTINEL);
70 linebuf = internal_buf;
72 fgets(linebuf, buflen, f);
75 if (!strchr(linebuf, '\n')) {
81 len = strlen(linebuf);
84 sscanf(linebuf, " %n%*[^ \t]%n %n%*[^ \t]%n %n%*[^ \t]%n %n%*[^ \t]%n %d %d",
87 } while (linebuf[n[0]] == '#' || n[1]==len);
89 linebuf[n[1]] = 0;
90 linebuf[n[3]] = 0;
91 linebuf[n[5]] = 0;
92 linebuf[n[7]] = 0;
94 mnt->mnt_fsname = unescape_ent(linebuf+n[0]);
95 mnt->mnt_dir = unescape_ent(linebuf+n[2]);
96 mnt->mnt_type = unescape_ent(linebuf+n[4]);
97 mnt->mnt_opts = unescape_ent(linebuf+n[6]);