| 264 | } |
| 265 | |
| 266 | FILE *fdopen_tempfile(struct tempfile *tempfile, const char *mode) |
| 267 | { |
| 268 | if (!is_tempfile_active(tempfile)) |
| 269 | BUG("fdopen_tempfile() called for inactive object"); |
| 270 | if (tempfile->fp) |
| 271 | BUG("fdopen_tempfile() called for open object"); |
| 272 | |
| 273 | tempfile->fp = fdopen(tempfile->fd, mode); |
| 274 | return tempfile->fp; |
| 275 | } |
| 276 | |
| 277 | const char *get_tempfile_path(struct tempfile *tempfile) |
| 278 | { |
no test coverage detected