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