Lines Matching refs:buf
39 mntent* getmntent_r(FILE* fp, struct mntent* e, char* buf, int buf_len) {
41 while (fgets(buf, buf_len, fp) != NULL) {
45 if (sscanf(buf, " %n%*s%n %n%*s%n %n%*s%n %n%*s%n %d %d",
48 e->mnt_fsname = &buf[fsname0];
49 buf[fsname1] = '\0';
51 e->mnt_dir = &buf[dir0];
52 buf[dir1] = '\0';
54 e->mnt_type = &buf[type0];
55 buf[type1] = '\0';
57 e->mnt_opts = &buf[opts0];
58 buf[opts1] = '\0';