Lines Matching defs:metafp
129 static FILE *metafp;
386 if ((metafp = fopen(metafile, "a")) == NULL)
1218 fputc(' ', metafp);
1219 fputc(ug, metafp);
1221 fprintf(metafp, "id=%jd", (intmax_t)id);
1223 fprintf(metafp, "name=%s", str);
1228 * if metafp is not NULL, output mtree(8) full path name and settings to
1229 * metafp, to allow permissions to be set correctly by other tools,
1242 if (!metafp)
1254 if (fcntl(fileno(metafp), F_SETLKW, &metalog_lock) == -1) {
1272 fprintf(metafp, ".%s%s type=%s", *p ? "/" : "", p, type);
1275 fprintf(metafp, " mode=%#o", mode);
1278 fprintf(metafp, " link=%s", buf);
1281 fprintf(metafp, " size=%lld", (long long)size);
1283 fprintf(metafp, " time=%lld.%0*lld",
1288 fprintf(metafp, " %s=%s", digest, digestresult);
1290 fprintf(metafp, " flags=%s", fflags);
1292 fprintf(metafp, " tags=%s", tags);
1293 fputc('\n', metafp);
1294 fflush(metafp); /* flush output */
1297 if (fcntl(fileno(metafp), F_SETLKW, &metalog_lock) == -1) {