Lines Matching refs:fp
145 FILE *fp;
153 fp = fopen("/tmp/locktag", "a");
154 if (fp) {
156 fprintf(fp, "%19.19s read lock acquired\n", ctime(&t));
157 fclose(fp);
167 FILE *fp;
175 fp = fopen("/tmp/locktag", "a");
176 if (fp) {
178 fprintf(fp, "%19.19s write lock acquired\n", ctime(&t));
179 fclose(fp);
189 FILE *fp;
197 fp = fopen("/tmp/locktag", "a");
198 if (fp) {
200 fprintf(fp, "%19.19s ----- lock released\n", ctime(&t));
201 fclose(fp);
280 FILE *fp;
294 if ((fp = fopen(CFG_PIDFILE, "r")) == NULL)
296 if (fscanf(fp, "%d\n", &pid) != 1) {
297 fclose(fp);
300 fclose(fp);