Home | History | Annotate | Download | only in ext2ed

Lines Matching refs:fp

108 	FILE *fp;
113 if ( (fp=fopen (file_name,"rt"))==NULL) {
118 while (!feof (fp)) {
119 fgets (current_line,500,fp);
120 if (feof (fp)) break;
127 fgets (current_line,500,fp);
128 if (feof (fp)) break;
130 if (feof (fp)) break;
132 fgets (current_line,500,fp);
136 fgets (current_line,500,fp);
148 fgets (current_line,500,fp);
153 fclose (fp);
488 FILE *fp;
493 if ((fp=fopen (buffer,"rt"))==NULL) {
498 while (get_next_option (fp,option,value)) {
518 fclose (fp);return (0);
529 fclose (fp);return (0);
540 fclose (fp);return (0);
551 fclose (fp);return (0);
574 fclose (fp);return (0);
580 fclose (fp);return (0);
585 fclose (fp);
589 int get_next_option (FILE *fp,char *option,char *value)
595 if (feof (fp)) return (0);
597 if (feof (fp)) return (0);
598 fgets (buffer,500,fp);
609 FILE *fp;
615 if ( (fp=fopen ("/etc/mtab","rt"))==NULL) {
620 while (!feof (fp)) {
621 fgets (current_line,500,fp);
622 if (feof (fp)) break;
625 mounted=1;fclose (fp);return;
629 fclose (fp);